utimens: Fix test failure on macOS 10.13.
[gnulib.git] / ChangeLog
blobfb6a8c2d9d68f957b9ac4a928ef1d712114d34af
1 2021-01-02  Bruno Haible  <bruno@clisp.org>
3         utimens: Fix test failure on macOS 10.13.
4         * lib/utimens.c: Include <string.h>.
6         utimens: Fix test failure on macOS 10.13.
7         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
8         filename ending in a slash that does not point to a directory.
10 2021-01-02  Bruno Haible  <bruno@clisp.org>
12         utimens: Avoid test failures on macOS 10.13.
13         Reported by Martin Storsjö <martin@martin.st> in
14         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
15         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
16         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
17         only the atime is requested to change.
18         * tests/test-futimens.h (test_futimens): Likewise.
19         * tests/test-lutimens.h (test_lutimens): Likewise.
21 2021-01-02  Bruno Haible  <bruno@clisp.org>
23         renameatu: Fix test failures on macOS.
24         Reported by Martin Storsjö <martin@martin.st> in
25         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
26         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
27         Instead, treat it as a variant of renameat, with all possible bugs that
28         renameat might have.
30 2021-01-02  Bruno Haible  <bruno@clisp.org>
32         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
33         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
34         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
35         * tests/test-getgroups.c: Silence gcc warnings of type
36         -Wstringop-overflow.
38 2021-01-02  Bruno Haible  <bruno@clisp.org>
40         timespec_get: Add tests.
41         * tests/test-timespec_get.c: New file.
42         * modules/timespec_get-tests: New file.
44         timespec_get: New module.
45         * lib/time.in.h (timespec_get): New declaration.
46         * lib/timespec_get.c: New file.
47         * m4/timespec_get.m4: New file.
48         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
49         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
50         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
51         HAVE_TIMESPEC_GET.
52         * modules/timespec_get: New file.
53         * tests/test-time-c++.cc (timespec_get): Check signature.
54         * doc/glibc-functions/timespec_get.texi: Mention the new module.
56 2021-01-01  Bruno Haible  <bruno@clisp.org>
58         time: Define TIME_UTC.
59         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
60         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
61         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
62         * tests/test-time.c: Check that TIME_UTC is defined and a positive
63         integer.
64         * doc/posix-headers/time.texi: Mention TIME_UTC.
66 2021-01-01  Bruno Haible  <bruno@clisp.org>
68         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
69         * modules/stddef (Depends-on): Add extensions.
71 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
73         canonicalize: remove NARROW_ADDRESSES optimization
74         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
75         Remove, and remove all uses, as the optimization is arguably not
76         worth the extra complexity.  Suggested by Adhemerval Zanella in:
77         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
79 2021-01-01  Bruno Haible  <bruno@clisp.org>
81         stddef: Try harder to get max_align_t defined on OpenBSD.
82         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
84 2021-01-01  Bruno Haible  <bruno@clisp.org>
86         aligned_alloc: Fix test failure on OpenBSD 6.8.
87         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
88         _ISOC11_SOURCE.
89         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
90         comment.
92 2021-01-01  Bruno Haible  <bruno@clisp.org>
94         posixtm tests: Disable part of the test on plaforms where it fails.
95         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
97 2021-01-01  Bruno Haible  <bruno@clisp.org>
99         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
100         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
101         Solaris 11 OmniOS.
102         * tests/test-c32isprint.c (main): Likewise.
103         * tests/test-c32ispunct.c (main): Likewise.
105 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
107         libc-config: port to Sun C 5.9
108         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
109         definition.  It’s not needed for Gnulib and elicits a diagnostic
110         from Sun C 5.9 Patch 124867-12 2009/11/22.
112 2021-01-01  Bruno Haible  <bruno@clisp.org>
114         quotearg tests: Avoid test failures on Solaris 11.
115         * modules/quotearg-tests (Makefile.am): Set host_os in
116         TESTS_ENVIRONMENT.
117         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
118         directory that contains the .mo file.
120 2021-01-01  Bruno Haible  <bruno@clisp.org>
122         maint: Update copyright notices in --version output.
123         List the most recent year in which changes were made, per
124         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
125         * build-aux/declared.sh (func_version): Say 2019.
126         * build-aux/libtool-next-version (func_version): Likewise.
127         * build-aux/run-test (func_version): Likewise.
128         * check-module (COPYRIGHT_NOTICE): Say 2012.
129         * lib/git-merge-changelog.c (main): Say 2020.
131 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
133         filename: change filename.h comment to LGPLv2.1+
134         * lib/filename.h: Change license notice to match what should be in
135         glibc, and what modules/filename specifies.  This is to simplify
136         syncing with glibc.
138         doc: mention year-0 bugs in Solaris etc.
139         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
140         * doc/posix-functions/localtime.texi:
141         * doc/posix-functions/localtime_r.texi:
142         * doc/posix-functions/mktime.texi:
143         Mention year-0 bugs in localtime etc.
145 2020-12-31  Bruno Haible  <bruno@clisp.org>
147         ptsname_r: Fix test failure on Solaris.
148         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
149         the device.
151 2020-12-31  Bruno Haible  <bruno@clisp.org>
153         posixtm tests: Disable part of the test on plaforms where it fails.
154         * tests/test-posixtm.c (T): Disable two tests on Solaris.
156 2020-12-31  Bruno Haible  <bruno@clisp.org>
158         poll tests: Avoid test failure on AIX.
159         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
160         shutdown" test on AIX.
161         * doc/posix-functions/poll.texi: Mention the AIX bug.
163 2020-12-31  Bruno Haible  <bruno@clisp.org>
165         poll tests: Avoid test failure on BSD and Solaris systems.
166         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
167         "expecting POLLHUP after shutdown" test on all platforms except Linux.
169 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
171         fnmatch: merge from glibc + proposal
172         This merges the change proposed by Adhemerval Zanella in:
173         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
174         which fixes a Gnulib bug that led to a failed assert.
175         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
176         check that it stays nonnegative.  Use __flexarr instead of
177         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
178         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
180         glob: merge proposed glibc changes
181         This merges the change proposed by Adhemerval Zanella in:
182         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
183         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
185 2020-12-31  Bruno Haible  <bruno@clisp.org>
187         memalign: Work around Solaris bug.
188         * lib/memalign.c: New file.
189         * m4/memalign.m4: New file.
190         * modules/memalign (Files): Add them.
191         (Depends-on): Add malloc-h.
192         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
193         memalign.c. Set module indicator.
194         (Include): Include <malloc.h> unconditionally.
195         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
197         malloc-h: Add tests.
198         * tests/test-malloc-h.c: New file.
199         * modules/malloc-h-tests: New file.
200         * tests/test-malloc-h-c++.cc: New file.
201         * modules/malloc-h-c++-tests: New file.
203         malloc-h: New module.
204         * lib/malloc.in.h: New file.
205         * m4/malloc_h.m4: New file.
206         * modules/malloc-h: New file.
207         * doc/glibc-headers/malloc.texi: New file.
208         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
210 2020-12-31  Bruno Haible  <bruno@clisp.org>
212         unistd: Fix portability warnings.
213         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
215 2020-12-31  Bruno Haible  <bruno@clisp.org>
217         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
218         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
219         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
220         * lib/utime.c: Include <errno.h>.
222 2020-12-30  Karl Berry  <karl@freefriends.org>
224         config: srclistvars doc.
225         * config/srclistvars.sh: doc a couple of unusual source repo urls.
227 2020-12-30  Bruno Haible  <bruno@clisp.org>
229         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
230         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
231         with no errno.
232         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
233         EINVAL.
235 2020-12-29  Jim Meyering  <meyering@fb.com>
237         regex-tests: tweak to avoid a clang-10 warning
238         * tests/test-regex.c: Compare with explicit zero, rather than
239         as boolean to avoid this from clang-10:
240         test-regex.c:315:9: error: converting the result of '<<' to a \
241           boolean always evaluates to true \
242           [-Werror,-Wtautological-constant-compare]
243         if (! REG_STARTEND)
245         hash: add casts-to-float to avoid clang-10 warnings
246         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
247         to avoid this warning from clang-10 (for use in grep):
248           hash.c:501:11: error: implicit conversion from 'unsigned long' \
249             to 'float' changes value from 18446744073709551615 to \
250             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
251           if (SIZE_MAX <= new_candidate)
252         (hash_insert_if_absent): Likewise.
254 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
256         canonicalize: fix size overflow treatment
257         This also has some minor cleanups.
258         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
259         stddef.h, since the code no longer refers directly to ptrdiff_t.
260         * lib/canonicalize-lgpl.c (realpath_stk):
261         * lib/canonicalize.c (canonicalize_filename_mode_stk):
262         Treat size overflow like other out-of-memory.
263         * lib/canonicalize.c: No need to include stdlib.h, since
264         the code no longer refers to stdlib.h functions (other
265         than those that canonicalize.h must declare).
266         * lib/canonicalize.c (canonicalize_filename_mode_stk):
267         Do not bother terminating the string result on error.
269 2020-12-29  Bruno Haible  <bruno@clisp.org>
271         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
272         * lib/gl_list.hh: Include <stdlib.h>.
273         * lib/gl_map.hh: Likewise.
274         * lib/gl_omap.hh: Likewise.
275         * lib/gl_set.hh: Likewise.
276         * lib/gl_oset.hh: Likewise.
278 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
280         canonicalize: fix ptrdiff_t overflow bug
281         Problem reported by Adhemerval Zanella in:
282         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
283         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
284         Include intprops.h.
285         (NARROW_ADDRESSES): New constant.
286         * lib/canonicalize-lgpl.c (realpath_stk):m
287         * lib/canonicalize.c (canonicalize_filename_mode_stk):
288         Work even if strlen (END) does not fit in idx_t, or if adding
289         N to it overflows.
290         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
291         Add intprops.
293 2020-12-28  Bruno Haible  <bruno@clisp.org>
295         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
296         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
297         acl_is_expected_elfclass, use 'expr', not 'test'.
299 2020-12-28  Bruno Haible  <bruno@clisp.org>
301         ptsname_r: Fix a compiler warning on Solaris.
302         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
304 2020-12-28  Bruno Haible  <bruno@clisp.org>
306         gnulib-tool: Fix logic whether to add a dummy.c.
307         * gnulib-tool (func_remove_if_blocks): New function.
308         (func_modules_add_dummy): Use it to eliminate all conditional statements
309         from the automake snippet.
311 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
313         faccessat: revert recent EOVERFLOW change
314         I misunderstood the glibc source code.  Deduced from
315         Adhemerval Zanella’s proposed glibc patch in:
316         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
317         * doc/posix-functions/faccessat.texi: It is not a problem.
318         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
319         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
320         * lib/faccessat.c: Revert to simpler version now that
321         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
322         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
323         Remove.  All uses removed.
324         * modules/canonicalize, modules/canonicalize-lgpl (Files):
325         Remove m4/faccessat.m4.
327         canonicalize-lgpl: accommodate picky cpp
328         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
329         case preprocessor is picky.  Reported by Adhemerval Zanella in:
330         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
332         canonicalize: simplify via scratch_buffer_dupfree
333         * config/srclist.txt: Adjust accordingly.
334         * lib/canonicalize-lgpl.c (realpath_stk):
335         * lib/canonicalize.c (canonicalize_filename_mode_stk):
336         Simplify by using scratch_buffer_dupfree.
337         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
338         * lib/malloc/scratch_buffer_dupfree.c: New file.
339         * modules/scratch_buffer (Files, Depends-on):
340         Add malloc/scratch_buffer_dupfree.c.
342 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
344         regex: remove glibc21.m4
345         It doesn’t seem to be needed any more; at least, I couldn’t
346         reproduce the circa-2013 problem.  Perhaps the recent
347         --conditional-dependencies fixes have removed the need for it.
348         * m4/glibc21.m4: Remove.  All uses removed.
350 2020-12-26  Bruno Haible  <bruno@clisp.org>
352         gnulib-tool: Make --conditional-dependencies work with --with-tests.
353         Reported by Paul Eggert in
354         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
355         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
356         dependencies like func_emit_lib_Makefile_am.
358 2020-12-26  Bruno Haible  <bruno@clisp.org>
360         execvpe: Make dependency to stdbool explicit.
361         * lib/execvpe.c: Include <stdbool.h>.
362         * modules/execvpe (Depends-on): Add stdbool.
364         execlp: Add tests.
365         * tests/test-execlp-main.c: New file.
366         * tests/test-execlp.sh: New file.
367         * modules/execlp-tests: New file.
369         execlp: New module.
370         * lib/execlp.c: New file.
371         * m4/execlp.m4: New file.
372         * modules/execlp: New file.
373         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
374         new module.
376         execle: Add tests.
377         * tests/test-execle-main.c: New file.
378         * tests/test-execle.sh: New file.
379         * modules/execle-tests: New file.
381         execle: New module.
382         * lib/execle.c: New file.
383         * m4/execle.m4: New file.
384         * modules/execle: New file.
385         * doc/posix-functions/execle.texi: Mention more Windows problems and the
386         new module.
388         execl: Add tests.
389         * tests/test-execl-main.c: New file.
390         * tests/test-execl.sh: New file.
391         * modules/execl-tests: New file.
393         execl: New module.
394         * lib/execl.c: New file.
395         * m4/execl.m4: New file.
396         * modules/execl: New file.
397         * doc/posix-functions/execl.texi: Mention more Windows problems and the
398         new module.
400         execv: Add tests.
401         * tests/test-execv-main.c: New file.
402         * tests/test-execv.sh: New file.
403         * modules/execv-tests: New file.
405         execv: New module.
406         * lib/execv.c: New file.
407         * m4/execv.m4: New file.
408         * modules/execv: New file.
409         * doc/posix-functions/execv.texi: Mention more Windows problems and the
410         new module.
412         execvp: Add tests.
413         * tests/test-execvp-main.c: New file.
414         * tests/test-execvp.sh: New file.
415         * modules/execvp-tests: New file.
417         execvp: New module.
418         * lib/execvp.c: New file.
419         * m4/execvp.m4: New file.
420         * modules/execvp: New file.
421         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
422         new module.
424         execvpe: Add tests.
425         * tests/test-execvpe-main.c: New file.
426         * tests/test-execvpe.sh: New file.
427         * modules/execvpe-tests: New file.
429         execvpe: New module.
430         * lib/execvpe.c: New file.
431         * m4/execvpe.m4: New file.
432         * modules/execvpe: New file.
433         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
434         new module.
436         execve: Add tests.
437         * tests/test-exec-child.c: New file.
438         * tests/test-execve-main.c: New file.
439         * tests/test-execve.sh: New file.
440         * modules/execve-tests: New file.
442         execve: New module.
443         * lib/execve.c: New file.
444         * m4/execve.m4: New file.
445         * modules/execve: New file.
446         * doc/posix-functions/execve.texi: Mention more Windows problems and the
447         new module.
449         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
450         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
451         execvpe): Add declarations for the new modules.
452         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
453         execv, execve, execvp, execvpe are declared.
454         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
455         REPLACE_EXEC*.
456         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
457         REPLACE_EXEC*.
458         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
459         execlp, execv, execve, execvp, execvpe.
461 2020-12-26  Bruno Haible  <bruno@clisp.org>
463         stack: Fix typo in comments.
464         * lib/stack.h: Fix typo in comments.
466 2020-12-26  Bruno Haible  <bruno@clisp.org>
468         bitset: Fix conflict with 'free-posix' module.
469         * lib/bitset/base.h: Include <stdlib.h>.
471 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
473         idx: change idx.h comment to LGPLv2.1+
474         * lib/idx.h: Change license notice to match what should be in glibc.
475         gnulib-tool will change it as appropriate anyway, so this is just
476         to simplify syncing with glibc.
478 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
480         MODULES.html.sh: Update after 2020-12-19 change.
481         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
483 2020-12-25  Bruno Haible  <bruno@clisp.org>
485         Make it possible to turn off the mkdir override on Windows.
486         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
487         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
489         GNULIB_MDA_MKDIR.
490         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
491         GNULIB_MDA_MKDIR.
492         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
493         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
495         Make it possible to turn off each of the Windows oldnames workarounds.
496         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
497         oldnames workarounds through a GNULIB_MDA_<func> symbol.
498         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
499         * lib/search.in.h (lfind, lsearch): Likewise.
500         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
501         Likewise.
502         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
503         * lib/string.in.h (memccpy, strdup): Likewise.
504         * lib/sys_stat.in.h (chmod, umask): Likewise.
505         * lib/time.in.h (tzset): Likewise.
506         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
507         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
508         read, rmdir, swab, unlink, write): Likewise.
509         * lib/utime.in.h (utime): Likewise.
510         * lib/wchar.in.h (wcsdup): Likewise.
511         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
512         GNULIB_MDA_<func> symbols.
513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
514         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
519         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
521         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
522         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
523         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
524         symbols.
525         * modules/math (Makefile.am): Likewise.
526         * modules/search (Makefile.am): Likewise.
527         * modules/stdio (Makefile.am): Likewise.
528         * modules/stdlib (Makefile.am): Likewise.
529         * modules/string (Makefile.am): Likewise.
530         * modules/sys_stat (Makefile.am): Likewise.
531         * modules/time (Makefile.am): Likewise.
532         * modules/unistd (Makefile.am): Likewise.
533         * modules/utime-h (Makefile.am): Likewise.
534         * modules/wchar (Makefile.am): Likewise.
536 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
538         canonicalize, canonicalize-lgpl: remove lint
539         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
540         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
541         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
542         Sort shared include directives, for consistency.
543         (IF_LINT): New macro.
544         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
545         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
546         New macros.
547         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
548         * lib/canonicalize.c (canonicalize_filename_mode_stk):
549         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
551 2020-12-24  Bruno Haible  <bruno@clisp.org>
553         spawn-pipe: Use posix_spawn by default on native Windows.
554         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
555         (create_pipe): Use it to decide among the two possible implementations.
556         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
558 2020-12-24  Bruno Haible  <bruno@clisp.org>
560         unistd-safer: Implement pipe_safer on native Windows.
561         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
562         * modules/unistd-safer (Depends-on): Add pipe-posix.
564 2020-12-24  Bruno Haible  <bruno@clisp.org>
566         execute: Use posix_spawn by default on native Windows.
567         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
568         (execute): Use it to decide among the two possible implementations.
570 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
572         canonicalize-lgpl: merge proposed libc changes
573         This merges the changes proposed for glibc in:
574         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
575         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
576         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
577         unconditionally.
578         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
579         (ISSLASH) [_LIBC]: Remove.
581 2020-12-24  Bruno Haible  <bruno@clisp.org>
583         posix_spawn-internal: Implement for native Windows.
584         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
585         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
586         do_dup2, do_close): New functions.
587         (__spawni): Implement on native Windows.
588         * modules/posix_spawn-internal (Depends-on): Add filename,
589         concat-filename, findprog-in, malloca, windows-spawn.
590         * doc/posix-functions/posix_spawn.texi: Update.
591         * doc/posix-functions/posix_spawnp.texi: Likewise.
593 2020-12-24  Bruno Haible  <bruno@clisp.org>
595         windows-spawn: Export another auxiliary function.
596         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
597         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
598         extracted from spawnpvech.
599         (spawnpvech): Use it.
601 2020-12-24  Bruno Haible  <bruno@clisp.org>
603         windows-spawn: Export some more auxiliary functions.
604         * lib/windows-spawn.h: Include <stdbool.h>.
605         (struct inheritable_handles): New type.
606         (init_inheritable_handles, compose_handles_block,
607         free_inheritable_handles): New declarations.
608         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
609         New functions, based on spawnvech.
610         (free_inheritable_handles): New function.
611         (spawnpvech): Use them.
613 2020-12-24  Bruno Haible  <bruno@clisp.org>
615         windows-spawn: Export another auxiliary function.
616         * lib/windows-spawn.h (compose_envblock): New declaration.
617         * lib/windows-spawn.c (compose_envblock): New function, extracted from
618         spawnpvech.
619         (spawnpvech): Use it.
621 2020-12-24  Bruno Haible  <bruno@clisp.org>
623         windows-spawn: Export an auxiliary function.
624         * lib/windows-spawn.h (compose_command): New declaration.
625         * lib/windows-spawn.c (compose_command): New function, extracted from
626         spawnpvech.
627         (spawnpvech): Use it.
629 2020-12-24  Bruno Haible  <bruno@clisp.org>
631         posix_spawn* tests: Add support for native Windows.
632         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
633         like Cygwin.
634         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
635         SIGHUP and SIGPIPE. On native Windows, don't call
636         posix_spawnattr_setsigmask.
637         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
638         * tests/test-posix_spawn-fchdir.c (main): Likewise.
639         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
640         output from Cygwin's 'pwd' program.
641         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
642         executable-shell-script part of the test.
643         * tests/test-posix_spawnp-script.c (main): Likewise.
644         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
645         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
646         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
647         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
648         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
649         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
650         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
651         test the POSIX_SPAWN_PORTED conditional.
652         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
653         Define the POSIX_SPAWN_PORTED conditional here.
655 2020-12-24  Bruno Haible  <bruno@clisp.org>
657         sh-filename: Add support for native Windows.
658         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
660 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
662         careadlinkat: improve warning line number
663         This propagates an idea first used in canonicalize-lgpl.
664         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
665         New macro.
666         (careadlinkat): Use it.
668         linkat: use eloop-threshold
669         * lib/linkat.c: Include eloop-threshold.h.
670         Do not include sys/param.h.
671         (MAXSYMLINKS): Remove.
672         (link_follow, linkat_follow): Use __eloop_threshold instead
673         of MAXSYMLINKS.
674         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
675         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
677         canonicalize-lgpl: use eloop-threshold
678         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
679         (MAXSYMLINKS, __eloop_threshold): Remove.
680         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
682         eloop-threshold: new module
683         * config/srclist.txt: Add a comment about it.
684         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
686         canonicalize: prefer faccessat to stat
687         A proper faccessat doesn't have the EOVERFLOW problem, and can be
688         more efficient as it needn't gather data from the filesystem to
689         fill in struct stat.  So use stat only if faccessat is absent,
690         or when checking for symlink loops in canonicalize.c.
691         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
692         Include fcntl.h, for AT_EACCESS.
693         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
694         (file_accessible): New function, based on faccessat but with
695         a fallback to stat and with an EOVERFLOW workaround.
696         (dir_check): Use it.
697         (dir_suffix): New static constant.
698         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
699         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
700         (__faccessat) [!_LIBC]: Define.
701         (realpath_stk): Use dir_suffix now.
702         * lib/canonicalize.c (canonicalize_filename_mode_stk):
703         If logical, don't check each component's existence; just check
704         at the end, as that's enough.
705         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
706         (gl_CANONICALIZE_LGPL_SEPARATE):
707         Require gl_FUNC_FACCESSAT_EOVERFLOW,
708         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
709         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
710         as the code does not use HAVE_READLINK.
711         * modules/canonicalize, modules/canonicalize-lgpl (Files):
712         Add m4/faccessat.m4, m4/lstat.m4.
713         (Depends-on): Add fcntl-lh.
715         faccessat: work around F_OK EOVERFLOW bug
716         * doc/posix-functions/faccessat.texi: Mention the problem.
717         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
718         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
719         for F_OK and EOVERFLOW, which means we can return 0.
720         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
721         (gl_FUNC_FACCESSAT): Use it.
723         stat failing with EOVERFLOW implies existence
724         * lib/euidaccess.c (euidaccess):
725         * lib/file-has-acl.c (file_has_acl):
726         * lib/link.c (link, rpl_link):
727         * lib/mkdir.c (rpl_mkdir):
728         * lib/mkfifo.c (rpl_mkfifo):
729         * lib/mknod.c (rpl_mknod):
730         * lib/ptsname_r.c (__ptsname_r):
731         * lib/symlink.c (rpl_symlink):
732         * lib/symlinkat.c (rpl_symlinkat):
733         * lib/unlink.c (rpl_unlink):
734         * lib/unlinkat.c (rpl_unlinkat):
735         * lib/utime.c (utime):
736         If stat fails with EOVERFLOW the file exists, so treat it that way
737         in file-existence tests that do not need struct stat values.
739         canonicalize-lgpl: remove freea macro
740         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
742         canonicalize, canonicalize-lgpl: fix symlink bug
743         Problem reported by Adhemerval Zanella in:
744         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
745         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
746         (suffix_requires_dir_check, dir_check): New functions.
747         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
748         closer to the related GCC diagnostics.
749         * lib/canonicalize-lgpl.c (realpath_stk):
750         * lib/canonicalize.c (canonicalize_file_mode_stk):
751         Use them to fix a bug with .../symlink-to-regular-file/ etc.
752         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
753         (realpath_stk): New function,
754         with the contents of the old __realpath and a new scratch buffer arg.
755         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
756         (__realpath): Use it.
757         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
758         Add test cases for the bugs.
760 2020-12-24  Bruno Haible  <bruno@clisp.org>
762         execute: Treat signalled processes like wait-process does.
763         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
764         (execute): Recognize the case where the exit code indicates a signalled
765         child process.
766         * tests/test-execute-main.c (main): Update expected test result.
767         * modules/execute (Depends-on): Add sys_wait.
769 2020-12-24  Bruno Haible  <bruno@clisp.org>
771         windows-spawn: Improve errno upon failure on native Windows.
772         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
773         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
774         * tests/executable-script.sh: New file.
775         * tests/test-posix_spawn-script.c (main): Also try executing
776         executable-script.sh.
777         * tests/test-posix_spawnp-script.c (main): Likewise.
778         * tests/test-execute-script.c (main): Likewise.
779         * tests/test-spawn-pipe-script.c (main): Likewise.
780         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
781         * modules/posix_spawnp-tests (Files): Likewise.
782         * modules/execute-tests (Files): Likewise.
783         * modules/spawn-pipe-tests (Files): Likewise.
785 2020-12-24  Bruno Haible  <bruno@clisp.org>
787         findprog-in: Improve errno upon failure on native Windows.
788         * lib/findprog-in.c (find_in_given_path): If the file basename has no
789         dot and the search with a suffix returned no result, do also a search
790         without a suffix, and set errno = ENOEXEC if we find a file in this way.
791         * tests/test-spawn-pipe-script.c (main): Update expected errno.
793 2020-12-23  Bruno Haible  <bruno@clisp.org>
795         posix_spawn, posix_spawnp: Fix execution of scripts.
796         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
797         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
798         or posix_spawnp allows unsecure execution of scripts.
799         * doc/posix-functions/posix_spawn.texi: Document the script execution
800         problem.
801         * doc/posix-functions/posix_spawnp.texi: Likewise.
803 2020-12-23  Bruno Haible  <bruno@clisp.org>
805         Add unit tests regarding execution of scripts.
806         * tests/executable-script: New file.
807         * tests/executable-shell-script: New file.
808         * tests/test-posix_spawn-script.c: New file.
809         * tests/test-posix_spawnp-script.c: New file.
810         * tests/test-execute-script.c: New file.
811         * tests/test-spawn-pipe-script.c: New file.
812         * modules/posix_spawn-tests (Files): Add
813         tests/test-posix_spawn-script.c, tests/executable-script,
814         tests/executable-shell-script.
815         (Makefile.am): Compile and run test-posix_spawn-script.
816         * modules/posix_spawnp-tests (Files): Add
817         tests/test-posix_spawnp-script.c, tests/executable-script,
818         tests/executable-shell-script.
819         (Makefile.am): Compile and run test-posix_spawnp-script.
820         * modules/execute-tests (Files): Add tests/test-execute-script.c,
821         tests/executable-script, tests/executable-shell-script.
822         (Makefile.am): Compile and run test-execute-script.
823         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
824         tests/executable-script, tests/executable-shell-script.
825         (Makefile.am): Compile and run test-spawn-pipe-script.
827 2020-12-23  Bruno Haible  <bruno@clisp.org>
829         Don't execute scripts without '#!' marker through /bin/sh.
830         This reflects the change done in glibc through
831         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
832         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
833         * lib/spawni.c (internal_function): Remove macro.
834         (script_execute): Remove function.
835         (__spawni): Don't invoke script_execute.
836         * lib/execute.c (execute): Disable the ENOEXEC handling.
837         * lib/spawn-pipe.c (create_pipe): Likewise.
838         * NEWS: Mention the change.
840 2020-12-23  Bruno Haible  <bruno@clisp.org>
842         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
843         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
844         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
845         * lib/spawni.c (__spawni): Update function parameters.
847 2020-12-23  Bruno Haible  <bruno@clisp.org>
849         posix_spawn tests: Add two more tests.
850         * tests/test-posix_spawn-inherit0.c: New file, based on
851         tests/test-posix_spawn-open2.c.
852         * tests/test-posix_spawn-inherit1.c: New file, based on
853         tests/test-posix_spawn-open2.c.
854         * modules/posix_spawn-tests (Files): Add them.
855         (Depends-on): Add fflush.
856         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
857         test-posix_spawn-inherit1.
859 2020-12-23  Bruno Haible  <bruno@clisp.org>
861         posix_spawn tests: Add another test.
862         * tests/test-posix_spawn-open2.c: New file, based on
863         tests/test-posix_spawn-open1.c.
864         * modules/posix_spawn-tests (Files): Add it.
865         (Makefile.am): Compile and run test-posix_spawn-open1.
867 2020-12-20  Bruno Haible  <bruno@clisp.org>
869         Remove support for broken <wchar.h> in AIX 3.
870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
872 2020-12-20  Bruno Haible  <bruno@clisp.org>
874         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
875         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
876         * lib/mbchar.h: Likewise.
877         * lib/mbiter.h: Likewise.
878         * lib/mbuiter.h: Likewise.
879         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
880         * lib/mbfile.h: Don't include <time.h>.
881         * lib/mbswidth.h: Update comment.
882         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
883         <wchar.h>.
884         * lib/wctype.in.h: Likewise.
885         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
886         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
887         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
888         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
889         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
890         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
891         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
892         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
893         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
894         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
895         AC_FUNC_MBRTOWC): Likewise.
896         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
897         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
898         Likewise.
899         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
900         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
901         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
902         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
903         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
904         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
905         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
906         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
907         Likewise.
908         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
909         gl_WCSRTOMBS_NULL): Likewise.
910         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
911         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
912         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
914         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
915         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
916         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
917         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
918         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
919         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
921 2020-12-20  Bruno Haible  <bruno@clisp.org>
923         isnanf: Fix autoconf test.
924         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
926 2020-12-20  Bruno Haible  <bruno@clisp.org>
928         Remove some of the support for obsolete IRIX 4 and 5.
929         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
930         libsun.
931         * tests/init.sh (setup_): Don't talk about IRIX 5.
933 2020-12-20  Bruno Haible  <bruno@clisp.org>
935         filemode: Remove Cray support.
936         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
937         (filemodestring): Don't produce an 'M' type.
938         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
939         * m4/st_dm_mode.m4: Remove file.
940         * modules/filemode (Files): Remove it.
942 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
944         free-posix: assume glibc 2.33 fixes this.
945         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
946         Use compile-time test rather than guessing for cross-builds.
948 2020-12-20  Bruno Haible  <bruno@clisp.org>
950         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
951         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
952         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
953         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
955 2020-12-20  Bruno Haible  <bruno@clisp.org>
957         float: Fix compilation error when gnulib's float.h exists twice.
958         Reported by Santiago Vila <sanvila@unex.es>.
959         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
961 2020-12-19  Bruno Haible  <bruno@clisp.org>
963         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
964         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
965         Don't trust _POSIX_VERSION for this test.
967 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
969         free-posix: port to GNU/Linux
970         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
971         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
972         other GNU/Linux hosts.
974 2020-12-19  Bruno Haible  <bruno@clisp.org>
976         free-posix: Add tests.
977         * tests/test-free.c: New file.
978         * tests/macros.h (ASSERT_NO_STDIO,
979         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
980         WRITE_TO_STDERR): New macros.
981         * modules/free-posix-tests: New file.
983 2020-12-18  Bruno Haible  <bruno@clisp.org>
985         free-posix: Add C++ declaration test.
986         * tests/test-stdlib-c++.cc (free): New declaration.
988 2020-12-18  Bruno Haible  <bruno@clisp.org>
990         free-posix: New module, renamed from 'free'.
991         * modules/free-posix: Renamed from modules/free.
992         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
994         not GNULIB_FREE.
995         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
996         GNULIB_FREE.
997         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
998         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
999         what it does.
1000         * NEWS: Mention that module 'free' no longer exists.
1001         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1002         * modules/canonicalize-lgpl (Depends-on): Likewise.
1004 2020-12-18  Bruno Haible  <bruno@clisp.org>
1006         free: Remove support for obsolete platforms.
1007         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1008         CANNOT_FREE_NULL.
1009         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1010         * modules/free (Description): Update.
1011         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1013 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1015         intprops: port to ICC 2021.1 Beta 20201112
1016         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1017         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1018         Add a clause for other compilers that claim to support
1019         __builtin_mul_overflow_p, since we might as well find out about
1020         slackers other than Clang and ICC.
1021         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1022         like older GCCs even when it claims to be a newer one.
1024 2020-12-18  Bruno Haible  <bruno@clisp.org>
1026         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1027         Reported by Stefan Liebler <stli@linux.ibm.com> in
1028         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1029         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1030         GCC 5.x and 6.x.
1031         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1032         GCC 5.x and 6.x.
1034 2020-12-17  Bruno Haible  <bruno@clisp.org>
1036         free: Fix warning.
1037         Reported by Pádraig Brady <P@draigBrady.com> in
1038         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1039         * lib/stdlib.in.h (free): New declaration.
1040         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1041         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1042         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1043         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1044         'free' as a macro here.
1045         * modules/free (Depends-on): Add stdlib.
1046         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1048 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1050         canonicalize-lgpl: fix AIX test failures
1051         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1052         Problem reported by Bruno Haible in:
1053         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1054         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1055         (__realpath): When testing a file name ending in '/', use stat
1056         rather than readlink, so that it does the right thing on AIX.
1057         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1059         canonicalize: omit second readlink when not needed
1060         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1061         Omit second readlink when (can_exist != CAN_MISSING
1062         && startlen != 0 && !logical).  Simplify.
1064         canonicalize: remove arbitrary 8192-byte limit
1065         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1066         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1067         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1068         using scratch buffers.  Lessen the number of differences between
1069         the two source files, to simplify this and future maintenance.
1070         * lib/canonicalize-lgpl.c (__realpath):
1071         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1072         Use scratch buffers instead of malloc and malloca.  This avoids
1073         the need for alloca, and avoids the need for malloc in most cases.
1074         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1075         easier to compare, e.g., by sorting include files and by switching
1076         to the GNU convention of calling file names "file names", not
1077         "path names".  Include stdbool.h, scratch_buffer.h.
1078         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1079         (malloca) [_LIBC]: Remove.
1080         [!_LIBC]: Do not include malloca.h.
1081         (get_path_max): New function, so that pathconf is called only in
1082         the rare and dubious case when when RESOLVED is not null and
1083         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1084         file name, as we care about the longest file name starting from
1085         "/" (not from the input file name), and POSIX does not specify
1086         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1087         not defined, do not worry about overriding a path_max of 0, and do
1088         not let path_max exceed IDX_MAX.
1089         (__realpath): Remove an assumption that file name components
1090         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1091         the Hurd, presumably).
1092         When allocating the result, allocate it to just the right size;
1093         this costs nothing when the result is smaller than 1023 bytes,
1094         and for larger results it's probably worth the CPU to call realloc,
1095         as canonicalize.c already does.
1096         * lib/canonicalize.c: Include attribute.h.
1097         Do not include pathmax.h or xgetcwd.h.
1098         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1099         work on platforms with no fixed limit.
1100         (canonicalize_filename_mode_stk): New function, with
1101         the content of the old canonicalize_filename_mode.
1102         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1103         since the scratch buffers now do memory management for us.
1104         Use rawmemchr instead of adding strlen.
1105         Use mempcpy instead of mempcpy + size.
1106         Assume free preserves errno.
1107         (canonicalize_filename_mode): Use it.
1108         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1109         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1110         scratch_buffer, stdbool, xalloc-die.
1111         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1112         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1114         canonicalize-lgpl: simplify merge to glibc
1115         This patch lessens the differences between git glibc
1116         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1117         The (perhaps wishful) goal is to make them identical.
1118         * lib/canonicalize-lgpl.c [!_LIBC]:
1119         Include <libc-config.h>, not config.h.
1120         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1121         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1122         Do not include alloca.h, since we use malloca now.
1123         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1124         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1125         freea so that the mainline code can be kept #ifdef free.
1126         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1127         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1128         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1129         __eloop_threshold.  All uses of their definiens changed.
1130         (SIZE_MAX): Remove; no longer needed.
1131         (alloc_failed): Remove, and remove all instances.
1132         No need for alloc_failed now that free preserves errno.
1133         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1134         the glibc tradition and is safer when the 2nd argument is null.
1135         Use __rawmemchr instead of strchr.
1136         Use __mempcpy where appropriate.
1137         Simplify test for overflow so that it does not need SIZE_MAX.
1138         Do not preserve errno around free or freea calls; no longer needed.
1139         Mark __realpath with libc_hidden_def.
1140         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1141         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1142         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1144         free: preserve errno
1145         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1146         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1147         platforms that do not preserve errno.
1148         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1149         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1150         * modules/free (configure.ac): Also replace 'free' if
1151         it does not preserve errno.
1153         idx: simplify IDX_MAX, remove IDX_WIDTH
1154         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1155         to UNSIGNED_IDX_T.
1156         (IDX_WIDTH): Remove, since it’s not used and its value
1157         arguably should be PTRDIFF_WIDTH anyway.
1159 2020-12-16  Bruno Haible  <bruno@clisp.org>
1161         posix_spawn_file_actions_addfchdir-tests: Rename test.
1162         * tests/test-posix_spawn-fchdir.c: Renamed from
1163         tests/test-posix_spawn5.c.
1164         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1165         Update.
1167         posix_spawn_file_actions_addchdir-tests: Rename test.
1168         * tests/test-posix_spawn-chdir.c: Renamed from
1169         tests/test-posix_spawn4.c.
1170         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1171         Update.
1173         posix_spawn-tests: Rename test.
1174         * tests/test-posix_spawn-open1.c: Renamed from
1175         tests/test-posix_spawn3.c.
1176         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1178         posix_spawnp-tests: Rename test.
1179         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1180         tests/test-posix_spawn2.c.
1181         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1182         tests/test-posix_spawn2.in.sh.
1183         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1185         posix_spawnp-tests: Rename test.
1186         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1187         tests/test-posix_spawn1.c.
1188         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1189         tests/test-posix_spawn1.in.sh.
1190         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1192 2020-12-14  Bruno Haible  <bruno@clisp.org>
1194         findprog-in: Allow overriding the current directory.
1195         * lib/findprog.h (find_in_given_path): Add directory argument.
1196         * lib/findprog-in.c (find_in_given_path): Likewise.
1197         * lib/execute.c (execute): Update caller.
1198         * lib/spawn-pipe.c (create_pipe): Likewise.
1199         * lib/windows-spawn.c (spawnpvech): Likewise.
1200         * NEWS: Mention the change.
1202 2020-12-14  Bruno Haible  <bruno@clisp.org>
1204         posix_spawn-internal: Make better use of 'const'.
1205         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1206         of argv and envp.
1207         * lib/spawni.c (__spawni, script_execute): Likewise.
1208         * lib/spawn.c (posix_spawn): Update caller.
1209         * lib/spawnp.c (posix_spawnp): Likewise.
1211 2020-12-14  Bruno Haible  <bruno@clisp.org>
1213         spawn: Make it compile on native Windows.
1214         * modules/spawn (Depends-on): Add signal-h.
1216 2020-12-14  Bruno Haible  <bruno@clisp.org>
1218         windows-spawn: Avoid shadowing a variable.
1219         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1221 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1223         string: port memchr macro to AIX 7.2 XLC
1224         Its <string.h> defines a memchr macro to help inlining.
1225         * lib/string.in.h (memchr): #undef before #defining.
1227         canonicalize: fix AIX test failures
1228         Problem reported by Bruno Haible in:
1229         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1230         * lib/canonicalize.c (canonicalize_filename_mode):
1231         When testing a file name ending in '/', use stat rather than
1232         readlink, so that it does the right thing on AIX.
1233         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1234         recent changes in the Gnulib readlink module.
1236         Assume readlink/readlinkat ERANGE fix
1237         * lib/areadlink-with-size.c (areadlink_with_size):
1238         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1239         * lib/careadlinkat.c (readlink_stk):
1240         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1241         since the Gnulib readlink and readlinkat modules now fix that.
1243         getcwd: port to AIX
1244         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1245         in case our sys/stat.h #defined a function macro with the same name.
1247         readlink, readlinkat: add ERANGE portability
1248         Fix some portability issues with Gnulib's readlink and readlinkat,
1249         notably mostly working around the ERANGE problem in AIX and HP-UX.
1250         * doc/posix-functions/readlink.texi:
1251         * doc/posix-functions/readlinkat.texi:
1252         ERANGE problem is mostly fixed now.  Mention AIX problem with
1253         trailing / and EINVAL.  Lessen differences between these two files.
1254         * lib/readlink.c (rpl_readlink):
1255         * lib/readlinkat.c (rpl_readlinkat):
1256         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1257         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1258         Lessen spurious differences between the readlink and readlinkat code.
1259         * lib/readlinkat.c (rpl_readlinkat):
1260         Fix bug where stat was used where fstatat was intended.
1261         * m4/readlink.m4 (gl_FUNC_READLINK):
1262         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1263         to identify readlink problems more precisely.  All uses changed.
1264         Guess no on AIX or HP-UX for this variable.
1265         Add check for whether readlink truncates results,
1266         and define new macro READLINK_TRUCATE_BUG accordingly.
1267         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1268         Also check gl_cv_func_readlink_trailing_slash when deciding
1269         whether to replace readlinkat.
1270         * modules/readlinkat (Depends-on): Most dependencies are also
1271         needed if replacing readlinkat.  fstatat is different, as it
1272         is needed only if replacing an existing readlinkat.
1274 2020-12-13  Bruno Haible  <bruno@clisp.org>
1276         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1277         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1278         the stdin_handle and/or stdout_handle.
1280 2020-12-12  Bruno Haible  <bruno@clisp.org>
1282         Fix gnulib-tool error when some modules occur in tests/.
1283         * doc/gnulib.texi (Specification): Update statistics.
1284         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1285         (Using AC_LIBOBJ): New section.
1286         * check-AC_LIBOBJ: New file.
1287         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1288         * modules/fopen-gnu (Files): Add lib/fopen.c.
1289         * modules/memmem (Files): Add lib/memmem.c.
1290         * modules/renameat (Files): Add lib/at-func2.c.
1291         * modules/strcasestr (Files): Add lib/strcasestr.c.
1292         * modules/strstr (Files): Add lib/strstr.c.
1294 2020-12-11  Bruno Haible  <bruno@clisp.org>
1296         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1297         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1298         elements of argv.
1299         * lib/sh-quote.c (shell_quote_argv): Likewise.
1300         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1301         the return type.
1302         * lib/windows-spawn.c (prepare_spawn): Likewise.
1303         * lib/os2-spawn.h (prepare_spawn): Likewise.
1304         * lib/os2-spawn.c (prepare_spawn): Likewise.
1305         * lib/execute.h (execute): Does not need write access to the elements of
1306         prog_argv.
1307         * lib/execute.c (execute): Likewise.
1308         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1309         Likewise.
1310         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1311         create_pipe_out): Likewise.
1312         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1313         Likewise.
1314         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1315         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1316         * lib/javaexec.h (execute_fn): Does not need write access to the
1317         elements of prog_argv.
1318         * lib/javaexec.c (execute_java_class): Update variable types and remove
1319         casts to 'char *'.
1320         * lib/csharpexec.h (execute_fn): Does not need write access to the
1321         elements of prog_argv.
1322         * lib/csharpexec.c (execute_csharp_using_mono,
1323         execute_csharp_using_sscli): Update variable types and remove casts to
1324         'char *'.
1325         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1326         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1327         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1328         is_jikes_present): Update variable types and remove casts to 'char *'.
1329         * lib/javaversion.c (execute_and_read_line): Does not need write access
1330         to the elements of prog_argv.
1331         * lib/csharpcomp.c (compile_csharp_using_mono,
1332         compile_csharp_using_sscli): Update variable types and remove casts to
1333         'char *'.
1334         * tests/test-sh-quote.c (main): Update variable types and remove casts
1335         to 'char *'.
1336         * tests/test-execute-main.c (main): Update variable types and remove
1337         casts to 'char *'.
1338         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1339         remove casts to 'char *'.
1340         * NEWS: Mention the changes.
1342 2020-12-11  Bruno Haible  <bruno@clisp.org>
1344         execute-tests: Fix compilation error with MSVC.
1345         * tests/test-execute-child.c (is_device): With _fstat, use
1346         'struct _stat', not 'struct stat'.
1348 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1350         vararrays: just use 2.70
1351         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1352         and later, since Autoconf 2.70 matches Gnulib now.
1354         sys_types: just use 2.70
1355         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1356         Reindent to match Autoconf sources.
1357         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1359         stdint: port to Autoconf 2.70
1360         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1361         instead of assuming that AC_INCLUDES_DEFAULT does it.
1362         The old code relied on AC_INCLUDES_DEFAULT being called
1363         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1364         but this does not occur in Autoconf 2.70.
1366         pid_t.m4: just use 2.70
1367         * m4/pid_t.m4 (AC_TYPE_PID_T):
1368         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1370         largefile: just use 2.70
1371         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1372         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1374         AC_C_RESTRICT: update from Autoconf
1375         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1376         as a prerequisite, not 2.69c, since 2.70 is now out.
1377         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1378         Try __restrict__ before __restrict.
1380         extensions: update from Autoconf
1381         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1382         Provide a default implementation for Autoconf 2.69 or earlier.
1383         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1384         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1386         alloca: update from Autoconf
1387         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1388         Trivial update to match Autoconf 2.70.
1390 2020-12-11  Bruno Haible  <bruno@clisp.org>
1392         memchr: Work around memory overrun bug on AIX 7.2.
1393         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1394         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1396 2020-12-11  Bruno Haible  <bruno@clisp.org>
1398         execute-tests: Fix compilation error on AIX in 32-bit mode.
1399         * tests/test-execute-child.c: In order to get the original definition of
1400         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1401         include the system's <sys/stat.h> and use it before including other
1402         header files.
1404 2020-12-10  Bruno Haible  <bruno@clisp.org>
1406         windows-spawn: Relicense under LGPLv2+.
1407         * modules/windows-spawn (License): Change to LGPLv2+.
1409 2020-12-10  Bruno Haible  <bruno@clisp.org>
1411         execute, spawn-pipe: Fix memory leak on native Windows.
1412         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1413         * lib/windows-spawn.c: Don't include xalloc.h.
1414         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1415         prepare_spawn.
1416         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1417         elements of *new_argv together.
1418         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1419         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1420         * lib/os2-spawn.c: Don't include xalloc.h.
1421         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1422         elements of *new_argv together.
1423         * lib/execute.c: Include xalloc.h.
1424         (execute): Check return value of prepare_spawn. Free the memory
1425         allocated by prepare_spawn.
1426         * modules/execute (Depends-on): Add xalloc-die.
1427         * lib/spawn-pipe.c: Include xalloc.h.
1428         (create_pipe): Check return value of prepare_spawn. Free the memory
1429         allocated by prepare_spawn.
1430         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1432 2020-12-10  Bruno Haible  <bruno@clisp.org>
1434         findprog-in: Relicense under LGPLv2+.
1435         Paul Smith's approval is in
1436         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1437         * modules/findprog-in (License): Change to LGPLv2+.
1439 2020-12-10  Bruno Haible  <bruno@clisp.org>
1441         findprog-in: Don't exit upon out-of-memory.
1442         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1443         code.
1444         * lib/findprog-in.c: Don't include xalloc.h.
1445         (find_in_given_path): Call concatenated_filename, not
1446         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1447         return NULL with errno set.
1448         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1449         concat-filename, strdup-posix, malloc-posix.
1451 2020-12-09  Bruno Haible  <bruno@clisp.org>
1453         fmaf: Work around a bug on FreeBSD 12.2/arm.
1454         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1455         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1457 2020-12-09  Bruno Haible  <bruno@clisp.org>
1459         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1460         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1461         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1462         * lib/glthread/threadlib.c: Include <errno.h>.
1463         (glthread_in_use): For FreeBSD, provide an alternative implementation
1464         that uses pthread_key_create.
1466 2020-12-09  Bruno Haible  <bruno@clisp.org>
1468         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1469         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1470         not 'isnan'.
1472 2020-12-08  Bruno Haible  <bruno@clisp.org>
1474         std-gnu11: Make compatible with Autoconf 2.70.
1475         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1476         use.
1478 2020-12-08  Bruno Haible  <bruno@clisp.org>
1480         argp: Avoid undefined behaviour when invoking qsort().
1481         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1482         Reported by Jeffrey Walton <noloader@gmail.com> in
1483         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1484         * lib/argp-help.c (group_cmp): Remove third argument.
1485         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1486         upon hol_cluster_cmp.
1487         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1488         (hol_entry_cmp): Rewritten to implement a total order.
1490 2020-12-08  Bruno Haible  <bruno@clisp.org>
1492         argp: Improve comments.
1493         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1494         null pointer.
1495         (struct hol_entry): Fix comment regarding sort order of group.
1496         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1497         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1498         (hol_cluster_is_child, argp_hol): Move functions.
1499         (HOL_ENTRY_PTRCMP): Remove unused macro.
1501 2020-12-08  Bruno Haible  <bruno@clisp.org>
1503         argp: Don't pass invalid arguments to isspace() and isalnum().
1504         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1505         before passing it to isspace() or isalnum().
1507 2020-12-08  Bruno Haible  <bruno@clisp.org>
1509         argp: Don't rely on undefined behaviour of _tolower().
1510         Patch by Eric Blake
1511         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1512         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1513         not upper-case.  Pass correct range to tolower.
1515 2020-12-07  Bruno Haible  <bruno@clisp.org>
1517         unicodeio: Fix wrong result on FreeBSD.
1518         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1519         characters on all platforms.
1521 2020-12-07  Bruno Haible  <bruno@clisp.org>
1523         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
1524         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
1525         FreeBSD systems.
1527 2020-12-07  Bruno Haible  <bruno@clisp.org>
1529         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
1530         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
1531         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
1532         trivially of sbrk is not available.
1533         * doc/glibc-functions/sbrk.texi: Mention that the function does not
1534         exist in FreeBSD 12.2/arm64.
1535         * doc/glibc-functions/brk.texi: Likewise.
1537 2020-12-07  Bruno Haible  <bruno@clisp.org>
1539         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
1540         Suggested by Zack Weinberg in
1541         <https://savannah.gnu.org/support/?110294>.
1542         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
1543         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
1545 2020-12-07  Bruno Haible  <bruno@clisp.org>
1547         Tweak the Windows oldnames workaround.
1548         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1549         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
1550         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
1551         always.
1552         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
1553         * lib/stdlib.in.h (putenv): Likewise.
1555 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1557         doc: fix flat address space discussion
1558         * doc/gnulib-readme.texi (Other portability assumptions):
1559         Move the all-bits-zero assumption outside the flat address space
1560         section, since the two issues are independent.
1562         doc: document -static-libubsan more
1563         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
1564         -static-libubsan a bit more.  Mostly cons.
1566 2020-12-06  Bruno Haible  <bruno@clisp.org>
1568         doc: Add more details regarding the undefined behaviour sanitizer.
1569         * doc/gnulib-readme.texi (High Quality): Describe
1570         -fsanitize-undefined-trap-on-error better.
1572 2020-12-06  Bruno Haible  <bruno@clisp.org>
1574         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
1575         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1576         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
1577         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
1578         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
1579         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
1580         a preprocessor #define.
1581         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1582         * lib/search.in.h (lfind, lsearch): Likewise.
1583         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1584         Likewise.
1585         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1586         * lib/string.in.h (memccpy, strdup): Likewise.
1587         * lib/sys_stat.in.h (chmod, umask): Likewise.
1588         * lib/time.in.h (tzset): Likewise.
1589         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1590         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1591         read, rmdir, swab, unlink, write): Likewise.
1592         * lib/utime.in.h (utime): Likewise.
1593         * lib/wchar.in.h (wcsdup): Likewise.
1594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1595         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1596         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1598         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1599         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1600         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1601         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1603         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1604         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1605         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1606         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1607         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
1609 2020-12-06  Bruno Haible  <bruno@clisp.org>
1611         doc: Mention some missing function declarations.
1612         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1613         AIX.
1614         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1615         FreeBSD.
1616         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1617         Cygwin.
1618         * doc/pastposix-functions/fcvt.texi: Likewise.
1619         * doc/pastposix-functions/gcvt.texi: Likewise.
1621 2020-12-06  Bruno Haible  <bruno@clisp.org>
1623         doc: Tweak example.
1624         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1625         'print'.
1627 2020-12-06  Bruno Haible  <bruno@clisp.org>
1629         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1630         * tests/test-filenamecat.c: Include idx.h.
1631         (main): Mark prefixlen as nonnegative.
1632         * modules/filenamecat-tests (Depends-on): Add idx.
1634 2020-12-06  Bruno Haible  <bruno@clisp.org>
1636         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1637         * lib/time_rz.c: Include idx.h.
1638         (save_abbr): Mark zone_size as nonnegative.
1639         * modules/time_rz (Depends-on): Add idx.
1641 2020-12-06  Bruno Haible  <bruno@clisp.org>
1643         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1644         * lib/parse-datetime.y: Include idx.h.
1645         (textint): Mark digits as nonnegative.
1646         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1647         dsts_seen, times_seen, zones_seen as nonnegative.
1648         (lookup_word): Mark wordlen as nonnegative.
1649         (yylex): Mark count as nonnegative.
1650         (parse_datetime2): Mark tzsize as nonnegative.
1651         * modules/parse-datetime (Depends-on): Add idx.
1653 2020-12-06  Bruno Haible  <bruno@clisp.org>
1655         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1656         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1657         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1658         nonnegative.
1659         * modules/fnmatch (Depends-on): Add idx.
1661 2020-12-06  Bruno Haible  <bruno@clisp.org>
1663         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1664         * lib/c-stack.c: Include idx.h.
1665         (die): Mark buflen as nonnegative.
1666         * modules/c-stack (Depends-on): Add idx.
1668 2020-12-06  Bruno Haible  <bruno@clisp.org>
1670         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1671         * lib/backupfile.c: Include idx.h.
1672         (numbered_backup): Mark base_offset as nonnegative.
1673         (backupfile_internal): Likewise.
1674         * modules/backup-rename (Depends-on): Add idx.
1675         * modules/backupfile (Depends-on): Likewise.
1677 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1679         doc: fix curved quotes issue
1680         * doc/gnulib.texi: Set txicodequoteundirected and
1681         txicodequotebacktick so that ` and ' in examples do not generate
1682         curved single quotes that do the wrong thing when cut and pasted.
1684         doc: mention static and dynamic checking
1685         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1686         for static and dynamic checking.
1688         intprops: Add INT_ADD_OK etc.
1689         * doc/intprops.texi (Checking Integer Overflow): New section.
1690         * lib/intprops.h: From a suggestion by Bruno Haible in:
1691         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1692         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1694         doc: move exotic platfroms to Target Platforms
1695         * doc/gnulib-intro.texi (Supported Platforms)
1696         (Formerly Supported Platforms, Unsupported Platforms):
1697         New subsections, split off from Target Platforms.
1698         (Unsupported Platforms): Move the exotic-platform stuff here ...
1699         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1700         section.
1702         doc: mention intptr_t etc. and IBM i
1703         * doc/gnulib-readme.texi (Other portability assumptions):
1704         Mention intptr_t and uintptr_t, and that arithmetic on them
1705         works in the usual way.
1706         (Exotic platforms): New section, containing material from
1707         the old 'Integer Portability' section.  Also mention IBM i.
1708         * doc/intprops.texi (Wraparound Arithmetic):
1709         Say that the macros work on unsigned integers too.
1710         (Integer Portability): Remove.
1712 2020-12-04  Bruno Haible  <bruno@clisp.org>
1714         utime: Fix a test failure on macOS 10.13.
1715         Reported by Martin Storsjö <martin@martin.st> in
1716         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1717         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1718         slashes on files.
1719         * lib/utime.c (utime): Add alternative implementation for Unix
1720         platforms.
1721         * modules/utime (Depends-on): Add stat.
1722         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1723         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1724         trailing-slash bug.
1725         * doc/posix-functions/open.texi: Likewise.
1726         * doc/posix-functions/stat.texi: Likewise.
1727         * doc/posix-functions/symlink.texi: Likewise.
1729 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1731         intprops: update doc and mention Unisys
1732         * doc/gnulib-readme.texi (Other portability assumptions):
1733         Also mention ptrdiff_t when talking about widths and overflow.
1734         * doc/intprops.texi (Integer Properties): Summarize new section.
1735         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1736         evaluates its argument.
1737         (Integer Bounds): Fix typo.
1738         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1739         Document that the _WRAPV macros now support pointers to unsigned
1740         integers.
1741         (Integer Range Overflow): Update SEI CERT citation.
1742         (Integer Portability): New subsection, which mentions
1743         the oddball Unisys platforms as non-Gnulib targets.
1745 2020-12-03  Bruno Haible  <bruno@clisp.org>
1747         idx: Clarify that idx_t always behaves like a signed type.
1748         Suggested by Paul Eggert in
1749         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1750         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1751         Don't test UNSIGNED_IDX_T.
1753 2020-12-03  Bruno Haible  <bruno@clisp.org>
1755         idx: New module.
1756         * lib/idx.h: New file.
1757         * modules/idx: New file.
1758         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1759         ptrdiff_t.
1760         * lib/canonicalize.c: Likewise.
1761         * modules/canonicalize-lgpl (Depends-on): Add idx.
1762         * modules/canonicalize (Depends-on): Likewise.
1764 2020-12-03  Bruno Haible  <bruno@clisp.org>
1766         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1767         Reported by Martin Storsjö <martin@martin.st> in
1768         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1769         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1770         (main): Return a different exit code at each point. Allow 100 KB extra
1771         memory consumption.
1772         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1773         doesn't work" diagnostic.
1775 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1777         canonicalize: refactor can_mode flag
1778         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1779         (multiple_bits_set): ... this new static function.  Uses changed.
1780         (canonicalize_filename_mode): Refactor for clarity to avoid
1781         modifying the CAN_MODE argument.
1783         canonicalize: prefer signed integer types
1784         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1785         (seen_triple, canonicalize_filename_mode): Prefer signed to
1786         unsigned types where either will do, as they avoid some glitches
1787         in comparisons and can trap on overflow when debugging.
1789         canonicalize: fix most of another EOVERFLOW issue
1790         * lib/canonicalize.c (canonicalize_filename_mode):
1791         Do not call stat if fewer than 20 symlinks have been traversed.
1792         This avoids EOVERFLOW failure in the common case where there
1793         are not that many symlinks, while continuing to catch loops
1794         (or fail due to EOVERFLOW) in the unusual case when there
1795         are many symlinks to traverse.
1797         canonicalize: do not assume symlinks have st_ino
1798         * lib/canonicalize.c (canonicalize_filename_mode):
1799         When checking for loops, use st_dev and st_ino from the parent
1800         directory not from the symlink, as pre-2017 POSIX says these
1801         members are not reliable for symlinks.  Couple this with START
1802         (the remaining file name to be resolved), not NAME (the whole file
1803         name with START as its suffix).
1804         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1806         canonicalize: fix EOVERFLOW bug
1807         * lib/canonicalize.c (canonicalize_filename_mode):
1808         When testing whether a directory entry is a symbolic link, or a
1809         directory or other, do not use lstat or stat or
1810         areadlink_with_size.  Just use areadlink, as this suffices and it
1811         avoids the EOVERFLOW problem that lstat and stat have.
1812         * modules/canonicalize (Depends-on): Depend on areadlink instead
1813         of areadlink-with-size and stat.
1815         canonicalize-lgpl: fix EOVERFLOW bug
1816         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1817         (__realpath): Do not use lstat.  Just use readlink, as this
1818         suffices and it avoids the EOVERFLOW problem that lstat has.
1819         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1821 2020-12-02  Bruno Haible  <bruno@clisp.org>
1823         strsignal-tests: Fix test failure on macOS 10.13.
1824         Reported by Martin Storsjö <martin@martin.st> in
1825         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1826         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1827         to be longer than the expected result.
1829 2020-12-02  Bruno Haible  <bruno@clisp.org>
1831         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1832         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1833         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1835 2020-12-02  Bruno Haible  <bruno@clisp.org>
1837         spawn-pipe: Allow caller to specify directory for the subprocess.
1838         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1839         Add directory argument.
1840         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1841         (create_pipe): Add directory argument. If specified, resolve the program
1842         file name and make it absolute, first. Pass the directory to spawnpvech
1843         and posix_spawn_file_actions_addchdir.
1844         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1845         argument.
1846         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1847         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1848         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1849         * NEWS: Mention the change.
1850         * lib/csharpcomp.c (compile_csharp_using_mono,
1851         compile_csharp_using_sscli): Update.
1852         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1853         is_gcj_43): Update.
1854         * lib/javaversion.c (execute_and_read_line): Update.
1855         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1856         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1858 2020-12-02  Bruno Haible  <bruno@clisp.org>
1860         execute: Allow caller to specify directory for the subprocess.
1861         * lib/execute.h (execute): Add directory argument.
1862         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1863         (execute): Add directory argument. If specified, resolve the program
1864         file name and make it absolute, first. Pass the directory to spawnpvech
1865         and posix_spawn_file_actions_addchdir.
1866         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1867         posix_spawn, posix_spawn_file_actions_addchdir.
1868         * tests/test-execute-main.c: Add test for passing a directory.
1869         * tests/test-execute-child.c: Likewise.
1870         * tests/test-execute.sh: Update.
1871         * modules/execute-tests (Depends-on): Add mkdir.
1872         * NEWS: Mention the change.
1873         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1874         * lib/csharpexec.c (execute_csharp_using_mono,
1875         execute_csharp_using_sscli): Update.
1876         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1877         compile_using_javac, compile_using_jikes, is_javac_present,
1878         is_jikes_present): Update.
1879         * lib/javaexec.c (execute_java_class): Update.
1881 2020-12-01  Bruno Haible  <bruno@clisp.org>
1883         vma-iter: Add support for macOS11/arm64.
1884         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1885         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1886         and by Martin Storsjö <martin@martin.st> in
1887         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1888         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1890 2020-12-01  Bruno Haible  <bruno@clisp.org>
1892         spawn-pipe: Fix handling of OS/2 kLIBC.
1893         Reported by KO Myung-Hun <komh78@gmail.com> in
1894         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1895         * modules/spawn-pipe (configure.ac): Use the common idiom for
1896         recognizing the OS/2 operating system.
1898 2020-11-30  Bruno Haible  <bruno@clisp.org>
1900         execute: Fix uninitialized use of errno.
1901         * lib/execute.c (execute): Preserve errno across several system calls.
1903 2020-11-30  Bruno Haible  <bruno@clisp.org>
1905         access tests: Fix test failure on native Windows.
1906         * tests/test-access.c (main): Change permissions of f2 file before
1907         attempting to remove it.
1909 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1911         faccessat: link with $(LIB_EACCESS)
1912         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1913         module depends on euidaccess.
1915 2020-11-30  Bruno Haible  <bruno@clisp.org>
1917         execute, spawn-pipe: Make multithread-safe on native Windows.
1918         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1919         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1920         (spawnpvech): New declaration.
1921         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1922         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1923         (_): Remove macro.
1924         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1925         undup_safer_noinherit): Remove functions.
1926         (spawnpvech): New function.
1927         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1928         cloexec, dup2, error, gettext-h.
1929         * lib/execute.c: Include msvc-nothrow.h.
1930         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1931         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1932         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1933         instead of _spawnvpe.
1934         * modules/execute (Depends-on): Add msvc-nothrow.
1935         * modules/spawn-pipe (Depends-on): Likewise.
1937 2020-11-30  Bruno Haible  <bruno@clisp.org>
1939         execute, spawn-pipe: Improve documentation.
1940         * lib/execute.h: Describe progname, prog_path, prog_argv.
1941         * lib/spawn-pipe.h: Likewise.
1943 2020-11-30  Bruno Haible  <bruno@clisp.org>
1945         execute tests: Add more tests.
1946         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1947         inherited file descriptors >= 3.
1948         * tests/test-execute-child.c: Likewise.
1949         * tests/test-execute.sh: Update.
1951 2020-11-30  Bruno Haible  <bruno@clisp.org>
1953         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1954         Reported by comex <comexk@gmail.com> in
1955         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1956         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1957         don't expect an ELF header.
1959 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1961         bitset: use integer_length in table implementation
1962         * lib/bitset/table.c (tbitset_list_reverse): Use
1963         BITSET_FOR_EACH_BIT_REVERSE.
1965 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1967         bitset: use integer_length in list implementation
1968         * lib/bitset/list.c (lbitset_list_reverse): Use
1969         BITSET_FOR_EACH_BIT_REVERSE.
1971 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1973         bitset: use integer_length in vector implementation
1974         * lib/bitset/array.c (vbitset_list_reverse): Use
1975         BITSET_FOR_EACH_BIT_REVERSE.
1977 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1979         bitset: use integer_length in array implementation
1980         * modules/bitset (Depends-on): Add integer_length_l.
1981         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1982         * lib/bitset/array.c (abitset_list_reverse): Use it.
1984 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1986         bitset: style: use consistent names
1987         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1988         and 'boffset' as 'bitoff', for consistency with the other
1989         implementations.
1990         * bitset/table.c (tbitset_list_reverse): Likewise.
1992 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1994         bitset: style: sort header
1995         * lib/bitset/base.h (bitset_ffs): Rename as...
1996         (bitset_ffs_): this.
1997         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1999 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2001         bitset: tests: check BITSET_FOR_EACH_REVERSE
2002         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2003         Check BITSET_FOR_EACH_REVERSE.
2005 2020-11-29  Bruno Haible  <bruno@clisp.org>
2007         spawn-pipe tests: Fix test failure with MSVC.
2008         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2009         (gl_msvc_invalid_parameter_handler): New function.
2010         (main): Set a global invalid-parameter handler.
2011         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2013 2020-11-29  Bruno Haible  <bruno@clisp.org>
2015         execute: Add tests.
2016         * tests/test-execute.sh: New file.
2017         * tests/test-execute-main.c: New file.
2018         * tests/test-execute-child.c: New file.
2019         * modules/execute-tests: New file.
2021 2020-11-29  Bruno Haible  <bruno@clisp.org>
2023         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2024         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2025         works.
2026         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2027         fallback implementation as on Haiku.
2028         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2029         effective.
2030         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2032 2020-11-29  Bruno Haible  <bruno@clisp.org>
2034         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2035         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2036         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2037         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2038         * lib/windows-spawn.c: Remove modifications for kLIBC.
2039         * modules/spawn-pipe (Files): Add the new files.
2040         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2042 2020-11-28  Bruno Haible  <bruno@clisp.org>
2044         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2045         Reported by Paul Eggert in
2046         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2047         * m4/sparcv8+.m4: New file.
2048         * modules/sparcv8+: New file.
2049         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2051 2020-11-28  Bruno Haible  <bruno@clisp.org>
2053         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2054         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2056 2020-11-28  Bruno Haible  <bruno@clisp.org>
2058         windows-spawn: New module.
2059         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2060         implementations.
2061         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2062         * modules/windows-spawn: New file.
2063         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2064         * lib/spawn-pipe.c: Likewise.
2065         * modules/execute (Files): Remove lib/w32spawn.h.
2066         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2067         xalloc.
2068         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2069         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2070         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2071         xalloc.
2072         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2074 2020-11-27  Bruno Haible  <bruno@clisp.org>
2076         ssfmalloc tests: Port to macOS 11.
2077         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2079 2020-11-26  Bruno Haible  <bruno@clisp.org>
2081         Fix dependencies of modules that use '_exit' on native Windows.
2082         Reported by Jim Meyering in
2083         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2084         * modules/_Exit (Depends-on): Add unistd.
2085         * modules/closein (Depends-on): Likewise.
2086         * modules/closeout (Depends-on): Likewise.
2087         * modules/forkpty (Depends-on): Likewise.
2088         * modules/posix_spawn-internal (Depends-on): Likewise.
2089         * modules/savewd (Depends-on): Likewise.
2090         * modules/stat-time-tests (Depends-on): Likewise.
2092 2020-11-26  Bruno Haible  <bruno@clisp.org>
2094         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2095         * modules/raise-tests (Depends-on): Add unistd.
2096         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2098 2020-11-25  Jim Meyering  <meyering@fb.com>
2100         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2101         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2102         non-NULL, since we don't bother handing strdup failure.
2104         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2105         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2106         * tests/test-raise.c: Include unistd.h.
2107         (handler): Use _exit, not exit.
2109 2020-11-23  Bruno Haible  <bruno@clisp.org>
2111         Use the correct printf format attribute for mingw.
2112         Reported by Reuben Thomas <rrt@sc3d.org> in
2113         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2115         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2116         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2118         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2119         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2120         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2121         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2122         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2123         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2125         * modules/vasnprintf (Depends-on): Add stdio.
2126         * lib/vasnprintf.h: Include <stdio.h>.
2127         (asnprintf, vasnprintf): Use the standard printf format attribute.
2129         * modules/xvasprintf (Depends-on): Add stdio.
2130         * lib/xvasprintf.h: Include <stdio.h>.
2131         (xasprintf, xvasprintf): Use the standard printf format attribute.
2133         * modules/xprintf (Depends-on): List stdio first.
2134         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2135         depends on GNULIB_VPRINTF_POSIX.
2136         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2137         GNULIB_VFPRINTF_POSIX.
2139         * modules/c-vasnprintf (Depends-on): Add stdio.
2140         * lib/c-vasnprintf.h: Include <stdio.h>.
2141         (c_vasnprintf): Use the standard printf format attribute.
2143         * modules/c-vasprintf (Depends-on): Add stdio.
2144         * lib/c-vasprintf.h: Include <stdio.h>.
2145         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2147         * modules/c-vsnprintf (Depends-on): Add stdio.
2148         * lib/c-vsnprintf.h: Include <stdio.h>.
2149         (c_vsnprintf): Use the standard printf format attribute.
2151         * modules/c-snprintf (Depends-on): Add stdio.
2152         * lib/c-snprintf.h: Include <stdio.h>.
2153         (c_snprintf): Use the standard printf format attribute.
2155         * modules/c-xvasprintf (Depends-on): Add stdio.
2156         * lib/c-xvasprintf.h: Include <stdio.h>.
2157         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2159         * modules/error (Depends-on): Depend on stdio always.
2160         * lib/error.h: Include <stdio.h>.
2161         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2162         (error, error_at_line): Use a printf format attribute that depends on
2163         GNULIB_VFPRINTF_POSIX.
2164         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2165         _GL_ATTRIBUTE_FORMAT_PRINTF.
2167         * modules/verror (Depends-on): Add stdio.
2168         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2169         (verror, verror_at_line): Use the standard printf format attribute.
2170         * lib/verror.c: Include "error.h".
2172         * modules/argp (Depends-on): Add stdio.
2173         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2174         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2176         * modules/libtextstyle-optional (Depends-on): Add stdio.
2177         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2178         printf format attribute.
2180         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2181         format attribute.
2183 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2185         selinux-at, selinux-h: use const correct declarations
2186         * lib/se-selinux.in.h: Use const for "set" functions,
2187         to match current selinux, and support cleaner user code.
2188         * lib/selinux-at.c: Likewise.
2189         * lib/selinux-at.h: Likewise.
2191 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2193         canonicalize-lgpl: fix memory leak
2194         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2195         which could have occurred if BUF was so large that malloc was
2196         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2197         this eliminates the need to free BUF separately.
2199 2020-11-22  Bruno Haible  <bruno@clisp.org>
2201         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2202         * modules/xvasprintf (Depends-on): Add xalloc.
2203         * modules/pipe-filter-gi (Depends-on): Likewise.
2204         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2205         * modules/spawn-pipe (Depends-on): Likewise.
2207 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2209         bootstrap: add option hooks
2210         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2211         (bootstrap_option_hook): Likewise.
2212         (usage): Call bootstrap_print_option_usage_hook.
2214 2020-11-22  Bruno Haible  <bruno@clisp.org>
2216         argp: Don't break getprogname on non-glibc systems.
2217         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2218         program_invocation_name and program_invocation_short_name.
2220 2020-11-22  Bruno Haible  <bruno@clisp.org>
2222         doc: Document <link.h>.
2223         * doc/glibc-headers/link.texi: New file.
2224         * doc/gnulib.texi: Include it.
2226 2020-11-22  Bruno Haible  <bruno@clisp.org>
2228         doc: Add references to the LSB.
2229         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2230         * doc/posix-functions/*.texi: Likewise.
2232 2020-11-22  Bruno Haible  <bruno@clisp.org>
2234         doc: Fix a makeinfo warning (regression 2020-11-03).
2235         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2237 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2239         parse-datetime: fix printf format typo
2240         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2241         previous patch to this file.  Problem reported by Chris Elvidge in
2242         <https://bugs.gnu.org/44763#32>.
2244         setlocale-null-tests: work around GCC bug 44511
2245         * tests/test-setlocale_null-mt-all.c:
2246         * tests/test-setlocale_null-mt-one.c:
2247         Ignore -Wreturn-type, to work around GCC bug 44511.
2249         nl_langinfo-tests: work around GCC bug 44511
2250         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2251         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2252         Problem reported for GNU grep by Andreas Schwab
2253         <https://bugs.gnu.org/44535>.
2255         selinux-h: add stubs for selabel_open etc.
2256         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2257         because matchpathcon is deprecated in favor of selabel_open etc.,
2258         so this patch adds stubs for these functions.
2259         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2260         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2261         as it is needed for selabel_open and selinux/selinux.h declares
2262         this type here.
2263         * modules/selinux-h (Files): Add the new files.
2264         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2265         (lib_SOURCES): Add se-label.in.h, se-label.c.
2266         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2267         (selinux/label.h): New rule, mimicking selinux/context.h.
2268         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2269         (Include): Add selinux/label.h.
2271 2020-11-21  Bruno Haible  <bruno@clisp.org>
2273         Update after 'test-driver' in Automake changed.
2274         * build-aux/test-driver.diff: Rebase.
2276 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2278         read-file: remove dead assignment
2279         * lib/read-file.c (fread_file): Remove dead assignment when
2280         RF_SENSITIVE is set, flagged by clang-analyzer.
2282 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2284         bitset: tests: exercise the stats too
2286         * tests/test-bitset.c: Display the stats at the end of the test.
2287         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2288         last bin, display "256-..." rather that "256-511", since the last bin
2289         does count item greater than or equal to 256.
2291 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2293         bitset: tests: try harder to break it
2294         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2295         BITSET_LIST_SIZE.
2296         (main): Likewise.
2297         While at it, also exercise super small bitsets.
2299 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2301         bitset: use ffs where possible in the vector implementation
2302         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2304 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2306         bitset: use ffs where possible in the table implementation
2307         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2309 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2311         bitset: check empty and full bitsets
2312         * tests/test-bitset.c (check_zero, check_ones): New.
2313         (check_attributes): Use them.
2315 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2317         bitset: be sure to always return a value
2318         * lib/bitset/array.c (abitset_small_list): Always update *next and
2319         return a value.
2321 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2323         vcs-to-changelog: Expect spaces in file names
2324         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2325         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2326         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2327         tabs to spaces.
2328         (list_changes): Use tabs to identify file names.
2330 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2332         bitset: strengthen tests
2333         * tests/test-bitset.c (compare): Also check count.
2334         Deal only with random values, move the one-bit tests to...
2335         (check_one_bit): this new function.
2336         (check_attributes): Call it.
2338 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2340         bitset: fix iteration over table bitsets
2341         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2343 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2345         bitset: rename internal details for consistency
2346         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2348 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2350         bitset: test: run deterministic tests on several bitset sizes
2351         * tests/test-bitset.c (check_attributes): Run it with small and large
2352         sizes.
2354 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2356         bitset: use ffs where possible in the list implementation
2357         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2359 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2361         bitset: use ffs where possible in array implementation
2362         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2364 2020-11-17  Bruno Haible  <bruno@clisp.org>
2366         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2367         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2368         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2369         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2370         C++ mode.
2372 2020-11-17  Bruno Haible  <bruno@clisp.org>
2374         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2375         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2376         is always declared.
2377         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2378         declared.
2380 2020-11-17  Bruno Haible  <bruno@clisp.org>
2382         Fix link errors on AIX.
2383         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2384         * modules/getumask (Link): Link with $(LIBTHREAD).
2385         * modules/getumask-tests (Makefile.am): Link test-getumask with
2386         $(LIBTHREAD).
2387         * modules/supersede (Link): Link with $(LIBTHREAD).
2388         * modules/supersede-tests (Makefile.am): Link test-supersede with
2389         $(LIBTHREAD).
2390         * modules/fatal-signal (Link): New section.
2391         * modules/execute (Link): New section.
2392         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2393         * modules/javaexec (Link): Link with $(LIBTHREAD).
2394         * modules/spawn-pipe (Link): New section.
2395         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2396         $(LIBTHREAD).
2397         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2398         * modules/javacomp (Link): Link with $(LIBTHREAD).
2399         * modules/javaversion (Link): Link with $(LIBTHREAD).
2400         * modules/pipe-filter-gi (Link): New section.
2401         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2402         test-pipe-filter-gi2-main with $(LIBTHREAD).
2403         * modules/pipe-filter-ii (Link): New section.
2404         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2405         test-pipe-filter-ii2-main with $(LIBTHREAD).
2406         * modules/term-style-control (Link): New section.
2407         * modules/term-style-control-tests (Makefile.am): Link
2408         test-term-style-control-hello, test-term-style-control-yes with
2409         $(LIBTHREAD).
2410         * modules/wait-process (Link): New section.
2411         * modules/nonblocking-pipe-tests (Makefile.am): Link
2412         test-nonblocking-pipe-main with $(LIBTHREAD).
2413         * modules/nonblocking-socket-tests (Makefile.am): Link
2414         test-nonblocking-socket-main with $(LIBTHREAD).
2416 2020-11-16  Bruno Haible  <bruno@clisp.org>
2418         Fix link errors on platforms with libunistring.
2419         * modules/c32isalnum (Link): New section.
2420         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2421         $(LIBUNISTRING).
2422         * modules/c32isalpha (Link): New section.
2423         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2424         $(LIBUNISTRING).
2425         * modules/c32isblank (Link): New section.
2426         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2427         $(LIBUNISTRING).
2428         * modules/c32iscntrl (Link): New section.
2429         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2430         $(LIBUNISTRING).
2431         * modules/c32isdigit (Link): New section.
2432         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2433         $(LIBUNISTRING).
2434         * modules/c32isgraph (Link): New section.
2435         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2436         $(LIBUNISTRING).
2437         * modules/c32islower (Link): New section.
2438         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2439         $(LIBUNISTRING).
2440         * modules/c32isprint (Link): New section.
2441         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2442         $(LIBUNISTRING).
2443         * modules/c32ispunct (Link): New section.
2444         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2445         $(LIBUNISTRING).
2446         * modules/c32isspace (Link): New section.
2447         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2448         $(LIBUNISTRING).
2449         * modules/c32isupper (Link): New section.
2450         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2451         $(LIBUNISTRING).
2452         * modules/c32isxdigit (Link): New section.
2453         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2454         $(LIBUNISTRING).
2455         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2456         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2457         $(LIBUNISTRING).
2459 2020-11-16  Bruno Haible  <bruno@clisp.org>
2461         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2462         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2463         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2464         * modules/getumask-tests (Makefile.am): Link test-getumask with
2465         $(LIBINTL).
2466         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2467         * modules/supersede-tests (Makefile.am): Link test-supersede with
2468         $(LIBINTL).
2469         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2470         $(LIBINTL).
2472 2020-11-16  Bruno Haible  <bruno@clisp.org>
2474         getumask: Document link dependencies.
2475         * modules/getumask (Link): New section.
2477 2020-11-16  Bruno Haible  <bruno@clisp.org>
2479         Update link dependencies in modules after 2020-09-09 change.
2480         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2481         * modules/mkdtemp (Link): Likewise.
2482         * modules/mkostemp (Link): Likewise.
2483         * modules/mkostemps (Link): Likewise.
2484         * modules/mkstemp (Link): Likewise.
2485         * modules/mkstemps (Link): Likewise.
2486         * modules/supersede (Link): Likewise.
2487         * modules/tmpfile (Link): Likewise.
2488         * modules/tmpfile-safer (Link): Likewise.
2490 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2492         getumask-tests: port to Solaris 10 etc.
2493         Problem reported by Tom Christensen in:
2494         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2495         * modules/getumask-tests (test_getumask_LDADD):
2496         Add $(LIB_CLOCK_GETTIME).
2498 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2500         bitset: use ffsl to accelerate iterations over set bits
2501         Suggested by Bruno Haible.
2502         * modules/bitset: Depend upon ffsl.
2503         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2504         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2506 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2508         bitset: more tests
2509         * tests/test-bitset.c (compare): Make it clear that the random values
2510         should not be modified.
2511         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2513 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2515         bitset: fix the copy from lbitset to other types
2516         * lib/bitset/list.c (lbitset_copy): Rename as...
2517         (lbitset_copy_): this.
2518         (lbitset_copy): New.
2519         Dispatch to heterogeneous/homogeneous copy.
2521 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2523         bitset: making debug traces more useful
2524         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
2526         bitset: comment changes
2527         * lib/bitset.c: Move some documenting comments to...
2528         * lib/bitset.h: here.
2529         * lib/bitset/array.c: Fix some comments.
2531 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2533         careadlinkat: warn better about GCC bug 93644
2534         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
2535         not in effect, use "#warning" to let builders know more clearly
2536         about GCC bug 93644, because the bug triggers even if no -W option
2537         is given to GCC.
2539 2020-11-13  Jim Meyering  <meyering@fb.com>
2541         hard-locale-tests: avoid a -Wstrict-prototypes warning
2542         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
2543         changing "main ()" to "main (void)". This was the only case that
2544         triggered a warning when building grep with --enable-gcc-warnings.
2546 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2548         time_rz: simplify CVE-2017-7476 fix
2549         * lib/time_rz.c: Do not include limits.h; I think it was included
2550         under the mistaken impression that limits.h defines SIZE_MAX.
2551         (SIZE_MAX): Remove.
2552         (save_abbr): Put string length into a ptrdiff_t variable,
2553         so that the size comparison works naturally.  This
2554         fixes CVE-2017-7476 in a cleaner way.
2556         parse-datetime: streamline overflow checking
2557         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
2558         did not work for unsigned destinations, and since time_t might
2559         be unsigned that meant it did not work for time_t destinations.
2560         This limitation of INT_ADD_WRAPV has been fixed, so we can
2561         now streamline parse-datetime.y a bit.
2562         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
2563         has not been used for a while.
2564         (yylex, parse_datetime2): Assume C99 declarations after statements.
2565         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
2566         to TYPE_MINIMUM.
2567         (parse_datetime2): No need for time_overflow now that
2568         INT_ADD_WRAPV works for unsigned results.
2570         parse-datetime-tests: port to Alpine Linux 3.12.1
2571         * tests/test-parse-datetime.c: Include errno.h for errno,
2572         and unistd.h for _SC_TZNAME_MAX and sysconf.
2573         (main): In the outlandishly-long time zone abbreviation test,
2574         do not exceed TZNAME_MAX as this has undefined behavior,
2575         and on Alpine Linux 3.12.1 it makes the test fail.
2577 2020-11-09  Pádraig Brady  <P@draigBrady.com>
2579         mgetgroups: avoid warning with clang
2580         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
2581         so disable -Wpointer-sign for all clang versions.
2583 2020-11-07  Bruno Haible  <bruno@clisp.org>
2585         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
2586         Reported by Simon Josefsson in
2587         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
2588         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
2589         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
2590         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2592 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2594         tests: pacify Sun C 5.9
2595         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2596         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2597         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2598         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2599         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2600         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2601         Remove unreachable ‘return NULL;’s.
2603         tests: port better to XLC 12.01
2604         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2605         even in code that is not executed, as IBM XLC 12.01 complains "The
2606         subscript -1 is less than zero."
2607         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2608         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
2609         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
2610         arguments than are required by the macro definition."
2612 2020-11-03  Bruno Haible  <bruno@clisp.org>
2614         aligned-malloc: Use fixes from the new modules.
2615         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2616         aligned_alloc, memalign.
2617         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2619 2020-11-03  Bruno Haible  <bruno@clisp.org>
2621         aligned_alloc: Add tests.
2622         * tests/test-aligned_alloc.c: New file.
2623         * modules/aligned_alloc-tests: New file.
2625         aligned_alloc: New module.
2626         * lib/stdlib.in.h (aligned_alloc): New declaration.
2627         * lib/aligned_alloc.c: New file.
2628         * m4/aligned_alloc.m4: New file.
2629         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2630         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2631         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2632         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2633         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2634         * modules/aligned_alloc: New file.
2635         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2636         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2637         AIX bug.
2639 2020-11-03  Bruno Haible  <bruno@clisp.org>
2641         posix_memalign: Add tests.
2642         * tests/test-posix_memalign.c: New file.
2643         * modules/posix_memalign-tests: New file.
2645         posix_memalign: New module.
2646         * lib/stdlib.in.h (posix_memalign): New declaration.
2647         * lib/posix_memalign.c: New file.
2648         * m4/posix_memalign.m4: New file.
2649         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2650         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2651         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2652         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2653         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2654         * modules/posix_memalign: New file.
2655         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2656         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2657         the OpenBSD bug.
2659 2020-11-03  Bruno Haible  <bruno@clisp.org>
2661         memalign: Add tests.
2662         * tests/test-memalign.c: New file.
2663         * modules/memalign-tests: New file.
2665         memalign: New module.
2666         * modules/memalign: New file.
2667         * doc/glibc-functions/memalign.texi: Mention the new module.
2669 2020-11-03  Bruno Haible  <bruno@clisp.org>
2671         verify tests: Fix crash with GCC (regression 2020-11-02).
2672         * tests/test-verify.c (main): Fix initializer of s.
2674 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2676         mountlist: recognize more file system types as remote
2678         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2679         "remote" file systems from stat.c in coreutils.
2681 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2683         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2684         * tests/test-verify.c (main): Initialize state variable.
2685         Reported by Bruno Haible for GCC 5.4.0.
2687 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2689         dfa.h: support inclusion from C++
2690         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2691         C++ code.  The latter was suggested by Arnold Robbins.
2693 2020-11-01  Bruno Haible  <bruno@clisp.org>
2695         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2696         * tests/test-ssfmalloc.c: Include <limits.h>.
2697         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2699 2020-11-01  Bruno Haible  <bruno@clisp.org>
2701         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2702         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2704 2020-11-01  Jim Meyering  <meyering@fb.com>
2706         dfa-tests: test for today's invalid-merge fix
2707         * tests/test-dfa-invalid-merge.sh: New file.
2708         * modules/dfa-tests (Files): Add it.
2709         (TESTS): Add it.
2711 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2713         dfa: retain sequences of similar nodes in optimization
2714         DFA was merging similar nodes when it should not.  For example,
2715         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2716         is not merged.  Problem reported by Gonzalo Padrino in
2717         https://bugs.gnu.org/44351
2718         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2719         optimization.
2721 2020-11-01  Jim Meyering  <meyering@fb.com>
2723         test-dfa-match-aux.c: accept EREs, not BREs
2724         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2725         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2727 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2729         verify tests: avoid -Wmissing-declarations warnings
2730         * tests/test-verify.c (test_assume_expressions): Add declaration.
2731         (test_assume_optimization): Likewise.
2732         (test_assume_noreturn): Likewise.
2733         (main): Move down after all other definitions.  While at it, also
2734         call test_assume_expressions and test_assume_optimization as a
2735         runtime check.
2737 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2739         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2740         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2741         Perhaps these macros should be removed, as they’re not in either
2742         POSIX or GNU.  They could be moved to stat-macros.h, which would
2743         be cleaner in some sense.
2745 2020-10-25  Bruno Haible  <bruno@clisp.org>
2747         ssfmalloc tests: Small tweaks.
2748         * tests/test-ssfmalloc.c: Add comments.
2749         (alloc_pages): Don't require PROT_EXEC bits.
2750         (block_sizes): Add more small sizes, for better coverage of
2751         ssfmalloc-bitmap.h.
2753         ssfmalloc tests: Portability to Minix.
2754         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2755         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2756         * m4/mmap-anon.m4: Update comment.
2758         ssfmalloc: Portability to AIX.
2759         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2760         (Link): New section.
2761         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2762         $(LIBTHREAD).
2764         ssfmalloc: Portability to Cygwin.
2765         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2766         (pg_offset_t): Define depending on PAGESIZE_MAX.
2767         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2768         (PAGESIZE_MAX): New macro.
2770         ssfmalloc: Fix buffer overrun in bitmap search.
2771         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2772         word *words_end.
2774 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2776         doc: mention ‘restrict’ and C++
2777         * doc/gnulib-readme.texi (C99 features assumed): Document
2778         that ‘restrict’ should be avoided in C++ code.
2780 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2782         selinux-at, selinux-h: port to SELinux 3.1
2783         The new release finally deprecated the typedef 'security_context_t',
2784         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2785         Use the simpler 'char *' instead.
2786         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2787         (lgetfilecon): Likewise.
2788         (fgetfilecon): Likewise.
2789         (map_to_failure): Likewise.
2790         (rpl_getfilecon): Likewise.
2791         (rpl_lgetfilecon): Likewise.
2792         (rpl_fgetfilecon): Likewise.
2793         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2794         (getcon): Adjust type of context parameter.
2795         (freecon): Likewise.
2796         (getfscreatecon): Likewise.
2797         (setfscreatecon): Likewise.
2798         (matchpathcon): Likewise.
2799         (getfilecon): Likewise.
2800         (lgetfilecon): Likewise.
2801         (fgetfilecon): Likewise.
2802         (setfilecon): Likewise.
2803         (lsetfilecon): Likewise.
2804         (fsetfilecon): Likewise.
2805         (security_check_context): Likewise.
2806         (security_check_context_raw): Likewise.
2807         (setexeccon): Likewise.
2808         (security_compute_create): Likewise.
2809         * lib/selinux-at.c (getfileconat): Likewise.
2810         (lgetfileconat): Likewise.
2811         (setfileconat): Likewise.
2812         (lsetfileconat): Likewise.
2813         * lib/selinux-at.h: Likewise.
2815 2020-10-19  Bruno Haible  <bruno@clisp.org>
2817         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2818         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2819         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2820         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2821         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2822         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2823         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2825 2020-10-18  Bruno Haible  <bruno@clisp.org>
2827         ssfmalloc: Add tests.
2828         * tests/test-ssfmalloc.c: New file.
2829         * modules/ssfmalloc-tests: New file.
2831         ssfmalloc: New module.
2832         * lib/ssfmalloc.h: New file.
2833         * lib/ssfmalloc-bitmap.h: New file.
2834         * modules/ssfmalloc: New file.
2836 2020-10-18  Bruno Haible  <bruno@clisp.org>
2838         wchar: Fix configure test result on some versions of AIX.
2839         Reported by Clément Chigot <clement.chigot@atos.net> in
2840         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2841         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2842         systems.
2844 2020-10-18  Bruno Haible  <bruno@clisp.org>
2846         time: Fix warning about asctime when asctime is not used.
2847         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2848         invocation.
2850 2020-10-18  Bruno Haible  <bruno@clisp.org>
2852         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2853         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2854         '_GL_ATTRIBUTE_CONST'.
2855         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2856         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2857         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2858         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2859         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2860         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2861         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2863 2020-10-18  Bruno Haible  <bruno@clisp.org>
2865         obstack: Fix a clang warning.
2866         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2868 2020-10-16  Bruno Haible  <bruno@clisp.org>
2870         hash: Rename hash_delete to hash_remove.
2871         * lib/hash.h (hash_remove): Renamed from hash_delete.
2872         (hash_delete): New declaration.
2873         * lib/hash.c (hash_remove): Renamed from hash_delete.
2874         (hash_delete): New function.
2875         * tests/test-hash.c (main): Update.
2876         * lib/fts-cycle.c (leave_dir): Likewise.
2877         * NEWS: Mention the change.
2879 2020-10-16  Bruno Haible  <bruno@clisp.org>
2881         hash, xhash: Make usable from C++.
2882         * lib/hash.h: Add extern "C".
2884 2020-10-16  Bruno Haible  <bruno@clisp.org>
2886         hash, xhash: Move comments to the .h file.
2887         * lib/hash.c: Move comments meant for the user from here...
2888         * lib/xhash.c: ... and here...
2889         * lib/hash.h: ... to here.
2891 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2893         Don't declare an intention to modify the return value of strerror.
2894         * tests/test-perror2.c (main): Assign the return value of strerror to a
2895         'const char *' variable.
2897 2020-10-11  Bruno Haible  <bruno@clisp.org>
2899         *printf: Avoid "expanded before it was required" warning.
2900         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2901         AC_DEFUN_ONCE.
2903 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2905         getprogname: Add support for OpenServer 6 and UnixWare 7.
2906         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2907         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2909 2020-10-11  Bruno Haible  <bruno@clisp.org>
2911         tests: Avoid a name clash on UnixWare.
2912         Reported by Tim Rice <tim@multitalents.net> in
2913         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2914         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2916 2020-10-11  Bruno Haible  <bruno@clisp.org>
2918         stdioext: Update comments regarding UnixWare.
2919         Reported by Tim Rice <tim@multitalents.net> in
2920         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2921         * lib/fbufmode.c: Update comments.
2922         * lib/fflush.c: Likewise.
2923         * lib/fpending.c: Likewise.
2924         * lib/fpurge.c: Likewise.
2925         * lib/freadable.h: Likewise.
2926         * lib/freadable.c: Likewise.
2927         * lib/freadahead.c: Likewise.
2928         * lib/freading.h: Likewise.
2929         * lib/freading.c: Likewise.
2930         * lib/freadptr.c: Likewise.
2931         * lib/freadseek.c: Likewise.
2932         * lib/fseeko.c: Likewise.
2933         * lib/fseterr.c: Likewise.
2934         * lib/fwritable.h: Likewise.
2935         * lib/fwritable.c: Likewise.
2936         * lib/fwriting.h: Likewise.
2937         * lib/fwriting.c: Likewise.
2939 2020-10-11  Bruno Haible  <bruno@clisp.org>
2941         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
2942         Reported by Tim Rice <tim@multitalents.net> in
2943         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2944         Uses the info from
2945         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
2946         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2948 2020-10-11  Bruno Haible  <bruno@clisp.org>
2950         stdioext: Avoid compilation errors on UnixWare 7.
2951         Reported by Tim Rice <tim@multitalents.net> in
2952         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2953         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2954         * lib/fpurge.c: Likewise.
2955         * lib/freadable.h: Likewise.
2956         * lib/freading.h: Likewise.
2957         * lib/fwritable.h: Likewise.
2958         * lib/fwriting.h: Likewise.
2959         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2960         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2961         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2962         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2963         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2964         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2966 2020-10-11  Bruno Haible  <bruno@clisp.org>
2968         stdioext: Update comments regarding Cygwin.
2969         * lib/fpending.c: Update comments.
2970         * lib/fpurge.c: Likewise.
2971         * lib/freadable.h: Likewise.
2972         * lib/freadable.c: Likewise.
2973         * lib/freading.h: Likewise.
2974         * lib/freading.c: Likewise.
2975         * lib/fwritable.h: Likewise.
2976         * lib/fwritable.c: Likewise.
2977         * lib/fwriting.h: Likewise.
2978         * lib/fwriting.c: Likewise.
2980 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2982         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2983         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2984         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2986 2020-10-10  Bruno Haible  <bruno@clisp.org>
2988         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2989         Reported by Marc Nieper-Wißkirchen in
2990         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2991         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2992         gl_linked_iterator_from_to): Mark as 'pure'.
2993         (gl_linked_iterator_free): Mark as 'const'.
2994         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2995         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2996         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2997         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2998         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2999         (gl_tree_iterator_free): Mark as 'const'.
3000         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3001         'pure'.
3002         (gl_tree_iterator_free): Mark as 'const'.
3003         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3004         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3005         (gl_tree_iterator_free): Mark as 'const'.
3006         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3007         compare_position_threshold): Mark as 'pure'.
3008         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3009         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3010         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3011         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3012         'pure'.
3013         (gl_array_iterator_free): Mark as 'const'.
3014         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3015         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3016         (gl_array_iterator_free): Mark as 'const'.
3017         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3018         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3019         gl_array_iterator_atleast): Mark as 'pure'.
3020         (gl_array_iterator_free): Mark as 'const'.
3021         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3022         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3023         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3024         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3025         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3026         gl_carray_sortedlist_search): Mark as 'pure'.
3027         (gl_carray_iterator_free): Mark as 'const'.
3029 2020-10-10  Bruno Haible  <bruno@clisp.org>
3031         rbtree-list: Avoid possible compiler warnings.
3032         This mirrors the change of avltree-list on 2014-09-16.
3033         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3034         declaration. Add cast to void for ignored value of check_invariants.
3036 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3038         stack: New module.
3039         * MODULES.html.sh: Add entry for the stack module.
3040         * modules/stack: New file.
3041         * modules/stack-tests: New file.
3042         * lib/stack.h: New file.
3043         * tests/test-stack.c: New file.
3045 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3047         attribute: improve const, pure doc
3048         Problem reported by Marc Nieper-Wißkirchen in:
3049         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3050         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3051         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3053 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3055         thread: pacify GCC on Solaris 10
3056         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3057         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3058         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3059         where pthread_t is unsigned int.
3061 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3063         c-stack: avoid AS_IF
3064         Problem reported by Bruno Haible in:
3065         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3066         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3068         c-stack: pacify GCC 9.3.1 when using libsigsegv
3069         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3071 2020-10-04  Bruno Haible  <bruno@clisp.org>
3073         localename: Fix a couple of "unused parameter" warnings.
3074         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3075         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3076         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3077         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3078         parameter list.
3080 2020-10-04  Bruno Haible  <bruno@clisp.org>
3082         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3083         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3084         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3086         HAVE_SNPRINTF_TRUNCATION_C99.
3087         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3088         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3090 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3092         c-stack: streamline Solaris configuration
3093         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3094         the code is used only if a test for sigaltstack worked
3095         in some other way.
3096         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3097         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3098         heuristic does not work).
3099         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3100         we no longer require the libsigsegv module.
3101         (Depends-on): Depend on havelib, not libsigsegv.
3103         c-stack: stop using SIGSTKSZ
3104         It’s been proposed to stop making SIGSTKSZ an integer constant:
3105         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3106         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3107         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3108         * lib/c-stack.c (SIGSTKSZ): Remove.
3109         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3110         All uses changed.
3112         c-stack: fix libsigsegv typo
3113         Problem reported by Bruno Haible in:
3114         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3115         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3116         to be used only on Solaris (exactly where it is not needed!).
3118 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3120         MODULES.html.sh: Fix typo.
3121         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3123 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3125         version-etc: pacify Oracle Studio 12.6
3126         Without this patch, it complains: "version-etc.h", line 64:
3127         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3128         pedantic mode.
3129         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3131 2020-09-27  Bruno Haible  <bruno@clisp.org>
3133         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3134         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3135         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3136         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3137         ourselves; don't use AC_DECL_SYS_SIGLIST.
3139 2020-09-27  Bruno Haible  <bruno@clisp.org>
3141         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3142         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3143         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3144         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3145         instead of _AC_COMPUTE_INT.
3147 2020-09-27  Bruno Haible  <bruno@clisp.org>
3149         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3150         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3151         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3152         Based on a patch by Paul Eggert.
3153         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3154         test STDC_HEADERS. Assume <stdlib.h> exists.
3155         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3157 2020-09-27  Bruno Haible  <bruno@clisp.org>
3159         Enable testing of prereleases of Autoconf 2.70.
3160         Suggested by Paul Eggert in
3161         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3162         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3163         >= 2.70.
3164         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3165         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3166         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3168 2020-09-27  Bruno Haible  <bruno@clisp.org>
3170         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3171         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3172         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3173         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3174         AC_PROG_CC, depending on the Autoconf version.
3176 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3178         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3179         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3180         of AC_HELP_STRING.
3181         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3183 2020-09-27  Bruno Haible  <bruno@clisp.org>
3185         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3186         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3187         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3188         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3190 2020-09-27  Bruno Haible  <bruno@clisp.org>
3192         extensions: Simplify last commit.
3193         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3194         AC_GNU_SOURCE ever.
3196 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3198         extensions: require AC_GNU_SOURCE only for <=2.63
3199         Problem reported by Gavin Smith in:
3200         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3202         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3203         shouldn’t be needed after that, and Autoconf 2.70 complains about
3204         it being obsolete.
3206 2020-09-26  Bruno Haible  <bruno@clisp.org>
3208         regex-tests: Make test more robust.
3209         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3210         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3212 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3214         regex-tests: fix possible Turkish false-alarm
3215         * modules/regex-tests (Depends-on): Add wctype-h.
3216         * tests/test-regex.c: Include wctype.h.
3217         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3218         as the Turkish regex test assumes this.
3220         regex-tests: fix test and add debug output
3221         Perhaps this will fix the recent grep test failure reported at:
3222         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3223         At least, the debug output should help narrow down the failure.
3224         * tests/test-regex.c: Include stdarg.h, stdio.h.
3225         (exit_status): New var.
3226         (report_error): New function.
3227         (main): Use it to report failures to stdout instead of merely
3228         exiting with some nonzero status.  The status info alone isn’t
3229         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3230         regex before calling re_compile_pattern, fixing a portability bug.
3232         regex: no longer match glibc
3233         * config/srclist.txt: Comment out regex_internal.c for now.
3235 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3237         regex: fix ignore-case Turkish bug
3238         * lib/regex_internal.c (build_wcs_upper_buffer):
3239         Do not assume that converting single-byte character to upper
3240         yields a single-byte character.  This is not true for Turkish,
3241         where towupper (L'i') yields L'İ', which is not single-byte.
3242         * tests/test-regex.c (main): Test for this bug.
3244         regex: port to weird isascii platforms
3245         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3247 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3249         dfa: make dfasupported a global function
3250         * lib/dfa.c (dfasupported): Rename, and make it global.
3251         Update caller.
3252         * lib/dfa.h (dfasupported): Add prototype.
3254 2020-09-20  Bruno Haible  <bruno@clisp.org>
3256         canonicalize: Add support for UNC file names on native Windows.
3257         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3258         <https://savannah.gnu.org/bugs/?59079>.
3259         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3260         extend the prefix to include the server.
3262 2020-09-20  Bruno Haible  <bruno@clisp.org>
3264         supersede: Fix test failures on native Windows.
3265         * lib/supersede.c (open_supersede): Handle non-regular files on native
3266         Windows like on Solaris.
3267         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3269 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3271         test-stdalign: test Oracle Studio better
3272         * doc/posix-headers/stdalign.texi (stdalign.h):
3273         * tests/test-stdalign.c (main):
3274         Sun Studio Bug #2125432 seems to be fixed.
3276         c-stack: output diagnostic in single 'write'
3277         * lib/c-stack.c (die): In the typical case, use just one 'write'
3278         syscall to output the diagnostic, as this lessens interleaving.
3279         (die, c_stack_action): Assume C99.
3280         * modules/c-stack (Depends-on): Add c99, mempcpy.
3282         c-stack: improve checking if !libsigsegv
3283         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3284         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3285         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3286         I found these problems while looking into this bug report:
3287         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3288         * lib/c-stack.c: Include c-stack.h first, to test interface.
3289         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3290         max_align_t, intprops.h for INT_ADD_WRAPV.
3291         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3292         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3293         for libsigsegv 2.8 and earlier since the bug should be fixed
3294         after that.
3295         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3296         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3297         Assume sprintf returns byte count; this assumption is safe now.
3298         (page_size): New static volatile variable, since sysconf isn’t
3299         documented to be async-signal-safe on Solaris.  This variable is
3300         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3301         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3302         SIGINFO_WORKS).
3303         (segv_handler): Use it if present.  Never report null pointer
3304         dereference as a stack overflow.  Check for (unlikely) unsigned
3305         and/or pointer overflow.
3306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3307         Rename cache variables to gl_cv_sys_stack_overflow_works
3308         and gl_cv_sys_xsi_stack_overflow_heuristic.
3309         All uses changed.
3310         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3311         c-stack no longer uses STACK_DIRECTION.
3312         Do not check for unistd.h, since we depend on unistd.
3313         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3314         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3315         stdbool, stddef.
3317 2020-09-20  Bruno Haible  <bruno@clisp.org>
3319         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3320         * m4/musl.m4: Revert 2020-09-19 patch.
3321         * m4/setlocale_null.m4: Likewise.
3322         * modules/setlocale-null: Likewise.
3324 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3325             Bruno Haible  <bruno@clisp.org>
3327         relocatable-prog: Fix for multiple relocatable library directories.
3328         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3329         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3330         being attached to a single one.
3332 2020-09-19  Jim Meyering  <meyering@fb.com>
3334         test-verify.c: avoid -Wshadow warnings
3335         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3336         (enum): Capitalize member names. Adjust uses.
3338 2020-09-19  Bruno Haible  <bruno@clisp.org>
3340         havelib: Avoid linking with libc.a on GNU systems.
3341         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3342         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3344         dependency_libs value of a .la file, ignore '-lc' options on GNU
3345         systems.
3347 2020-09-19  Bruno Haible  <bruno@clisp.org>
3349         Fix recognition of musl libc on Alpine Linux 3.10.
3350         Reported by Jeffrey Walton <noloader@gmail.com> in
3351         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3352         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3353         (gl_MUSL_LIBC): Require it.
3354         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3355         * modules/setlocale-null (Files): Add m4/musl.m4.
3357 2020-09-19  Bruno Haible  <bruno@clisp.org>
3359         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3360         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3361         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3362         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3363         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3364         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3365         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3366         or <threads.h>.
3367         (ITEMS, MAX_RESULT_LEN): New macros.
3368         (nl_langinfo_unlocked): New function.
3369         (gl_get_nl_langinfo_lock): New declaration.
3370         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3371         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3372         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3373         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3374         REPLACE_NL_LANGINFO.
3375         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3376         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3377         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3378         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3379         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3381 2020-09-18  Bruno Haible  <bruno@clisp.org>
3383         fsusage, getaddrinfo: Produce more regular configure output.
3384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3385         corresponding AC_MSG_RESULT.
3386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3388 2020-09-18  Bruno Haible  <bruno@clisp.org>
3390         Add back gl_SILENT.
3391         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3393 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3395         c-stack-tests: fix -fsanitize=undefined false alarm
3396         * tests/test-c-stack2.sh: Skip the test-harness self-test
3397         if ‘gcc -fsanitize=undefined’ is in use.
3399 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3401         signalblocking: simplify and remove gl_SILENT
3402         gl_SILENT was problematic because if a trap was sprung, stderr
3403         generated during the trap was lost.  Avoid the problem by
3404         removing the need for gl_SILENT.
3405         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3406         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3407         Simplify, avoiding the need for gl_SILENT while preserving the
3408         ability of the user to override the value of the cache variable,
3409         now ac_cv_func_sigprocmask.
3411 2020-09-17  Bruno Haible  <bruno@clisp.org>
3413         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3414         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3415         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3416         AS_MESSAGE_FD.
3418 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3420         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3421         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3422         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3423         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3424         Define to 0.
3425         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3426         Do not use __builtin_mul_overflow_p.
3428         libc-config: port __THROW to Ubuntu 4
3429         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3430         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3431         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3432         The GCC 3.3.4 documentation says the attribute should work, but
3433         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3434         little point or desire to research this circa-2004 platform further,
3435         so just avoid the attribute there.
3437 2020-09-17  Jim Meyering  <meyering@fb.com>
3439         test-dfa-match.sh: port timeout work-around to newer Busybox
3440         * tests/test-dfa-match.sh: Update timeout -t portability test to
3441         accommodate Busybox 1.30.0 and newer.
3443 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3445         fnmatch: adjust to match glibc fix
3446         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3447         This does not affect Gnulib; it merely keeps Gnulib and glibc
3448         closer together, to help with any eventual merge, by incorporating
3449         a recent glibc patch.  The patch and the following commentary is
3450         by Andreas Schwab.
3451         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3452         contains the index into the extra array, whereas wextra points
3453         into the extra array at this index, containing the length of the
3454         following collating sequence in the wide character representation.
3456 2020-09-16  Bruno Haible  <bruno@clisp.org>
3458         stat, fstat: Fix compilation error with old mingw headers.
3459         Reported by Eli Zaretskii <eliz@gnu.org> in
3460         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3461         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3462         define it.
3464 2020-09-16  Bruno Haible  <bruno@clisp.org>
3466         stat, fstat: Fix when compiling for versions older than Windows Vista.
3467         Reported by Eli Zaretskii <eliz@gnu.org> in
3468         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3469         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3470         that was originally set before we redefined it.
3471         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3472         (gl_PREREQ_STAT): Require it.
3473         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3475 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3477         dfa: remove dfa-heap-overrun workaround
3478         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3479         both sets map[*] and does other things.  This reverts
3480         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3481         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3482         fixed the underlying problem.
3484 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3486         dfa: avoid use of uninitialized constraint
3487         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3488         to zero here.
3489         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3490         use of an uninitialized constraint by later code when ! (flags[i]
3491         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3492         the constraint.  Problem found by running 'valgrind src/grep -E
3493         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3495         dfa: assume C99 in reorder_tokens
3496         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3498         dfa: fix dfa-heap-overrun failure
3499         * lib/dfa.c (reorder_tokens): When setting
3500         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3501         that (i < d->follows[i].elems[j].index), use two loops, one to set
3502         the map array and the other to use it.  The incorrect assumption
3503         caused some elements to be missed, and this in turn caused grep's
3504         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3505         with GCC.  I found this bug while investigating
3506         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3507         and I think the bug also occurs on GNU/Linux but with more-subtle
3508         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3509         recent changes make the bug more likely.
3511 2020-09-13  Bruno Haible  <bruno@clisp.org>
3513         parse-datetime: Make the build rule work with parallel 'make'.
3514         Reported by Daiki Ueno <ueno@gnu.org> in
3515         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
3516         * modules/parse-datetime (Makefile.am): Use a phony target and the
3517         general idiom for rules that produce multiple files.
3519 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
3521         getpass: Check for nonnull prompt argument while avoiding warnings.
3522         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
3523         (getpass) [!_WIN32]: Print prompt only if nonnull.
3525 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3527         dfa: epsilon-closure tweaks (Bug#40634)
3528         Rename BACKWORD to BACKWARD consistently.
3529         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
3530         (addtok_mb): Redo slightly to make it act more like a state machine.
3531         Check depth only when it increases.
3532         (epsclosure): Let the switch test the tokens.
3533         (dfaanalyze): Cache tindex.  Simplify position loops.
3534         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
3535         only if it is not null, since we're testing that anyway.
3536         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
3538 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3540         dfa: use backward set in removal of epsilon closure
3541         When removing in epsilon closure, the code searched all nodes
3542         sequentially, and this was slow for some cases.  Build a backward
3543         set before search, and only check previous position with the set.
3544         Problem reported in <https://bugs.gnu.org/40634>.
3545         * lib/dfa.c (struct dfa): New member 'epsilon'.
3546         (addtok_mb): Check whether a pattern has epsilon node or not.
3547         (epsclosure): New arg BACKWORD; caller changed.  When removing
3548         epsilon node and reconnecting, check only previous positions.
3549         Treat BEG as if it were character.
3550         (dfaanalyze): Build backward set.
3552 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3554         canonicalize: fix pointer indexing bugs
3555         Problem reported by Florian Weimer in:
3556         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
3557         * lib/canonicalize-lgpl.c (__realpath):
3558         * lib/canonicalize.c (canonicalize_filename_mode):
3559         Do not generate a pointer past the end of the array.
3560         * lib/canonicalize.c (canonicalize_filename_mode):
3561         Do not use a pointer after passing it to realloc.
3563 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3565         tempname: help merge with glibc
3566         Inspired by draft patches by Adhemerval Zanella in:
3567         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
3568         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
3569         * lib/tempname.c: Include stdalign.h, time.h.
3570         If _LIBC, do not include random-bits.h.
3571         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
3572         (RANDOM_BITS): Remove, replacing with ...
3573         (random_bits): ... this new static function.  All uses changed.
3574         Add entropy each time if getrandom is not supported.
3575         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
3576         Assume 64-bit support a la C99.
3577         (try_tempname_len): Take advantage of ASLR when initializing
3578         random value.
3579         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
3581         getcwd: merge recent glibc changes
3582         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
3583         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
3585 2020-09-06  Bruno Haible  <bruno@clisp.org>
3587         attribute: Clarify which file to include.
3588         * modules/attribute (Include): Add "attribute.h".
3590 2020-09-06  Bruno Haible  <bruno@clisp.org>
3592         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3593         * lib/pipe-filter-ii.c: Include <process.h>.
3594         * lib/pipe-filter-gi.c: Likewise.
3596 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3598         verify: avoid __builtin_assume
3599         Our latest attempt to use Clang’s __builtin_assume caused a crash
3600         in GNU Emacs that we spent quite some time tracking down as being
3601         caused by the switch to __builtin_assume.  It’s not known whether
3602         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3603         For now, play it safe and avoid __builtin_assume.
3604         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3605         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3607 2020-09-05  Bruno Haible  <bruno@clisp.org>
3609         Fix several "warning: no previous prototype for function".
3610         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
3611         in front of the declaration of the lookup function in
3612         unicase/locale-languages.h.
3613         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3614         unictype/bidi_byname.h.
3615         * modules/unictype/category-byname (Makefile.am): Likewise in
3616         unictype/categ_byname.h.
3617         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3618         unictype/combiningclass_byname.h.
3619         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3620         unictype/joininggroup_byname.h.
3621         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3622         unictype/joiningtype_byname.h.
3623         * modules/unictype/property-byname (Makefile.am): Likewise in
3624         unictype/pr_byname.h.
3625         * modules/unictype/scripts (Makefile.am): Likewise in
3626         unictype/scripts_byname.h.
3627         * modules/uninorm/composition (Makefile.am): Likewise in
3628         uninorm/composition-table.h.
3630 2020-09-05  Bruno Haible  <bruno@clisp.org>
3632         select: Fix "warning: no previous prototype for function".
3633         * lib/select.c: Include <sys/select.h>.
3635 2020-09-05  Bruno Haible  <bruno@clisp.org>
3637         Use module 'c99' when needed for variadic macros with '...' syntax.
3638         * modules/crypto/sm3 (Depends-on): Add c99.
3640 2020-09-05  Bruno Haible  <bruno@clisp.org>
3642         Use module 'c99' when needed for subobject initializer syntax.
3643         * modules/tempname (Depends-on): Add c99.
3644         * modules/nstrftime-tests (Depends-on): Likewise.
3646 2020-09-05  Bruno Haible  <bruno@clisp.org>
3648         Use module 'c99' when needed for declaration-after-statement syntax.
3649         * modules/backup-rename (Depends-on): Add c99.
3650         * modules/backupfile (Depends-on): Likewise.
3651         * modules/bitset-tests (Depends-on): Likewise.
3652         * modules/bitsetv (Depends-on): Likewise.
3653         * modules/c-strtod (Depends-on): Likewise.
3654         * modules/c-strtold (Depends-on): Likewise.
3655         * modules/clean-temp (Depends-on): Likewise.
3656         * modules/copy-file (Depends-on): Likewise.
3657         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3658         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3659         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3660         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3661         * modules/crypto/md5-buffer (Depends-on): Likewise.
3662         * modules/crypto/md5-tests (Depends-on): Likewise.
3663         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3664         * modules/crypto/sha1-tests (Depends-on): Likewise.
3665         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3666         * modules/crypto/sha256-tests (Depends-on): Likewise.
3667         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3668         * modules/crypto/sha512-tests (Depends-on): Likewise.
3669         * modules/diffseq (Depends-on): Likewise.
3670         * modules/fatal-signal (Depends-on): Likewise.
3671         * modules/fchmodat (Depends-on): Likewise.
3672         * modules/fstrcmp (Depends-on): Likewise.
3673         * modules/fsusage (Depends-on): Likewise.
3674         * modules/fts (Depends-on): Likewise.
3675         * modules/fts-tests (Depends-on): Likewise.
3676         * modules/getumask (Depends-on): Likewise.
3677         * modules/git-merge-changelog (Depends-on): Likewise.
3678         * modules/hash-map (Depends-on): Likewise.
3679         * modules/hash-set (Depends-on): Likewise.
3680         * modules/lchmod (Depends-on): Likewise.
3681         * modules/libgmp-tests (Depends-on): Likewise.
3682         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3683         * modules/linkedhash-map (Depends-on): Likewise.
3684         * modules/linkedhash-set (Depends-on): Likewise.
3685         * modules/long-options (Depends-on): Likewise.
3686         * modules/mbrtoc32 (Depends-on): Likewise.
3687         * modules/memchr2-tests (Depends-on): Likewise.
3688         * modules/memmem-tests (Depends-on): Likewise.
3689         * modules/memrchr-tests (Depends-on): Likewise.
3690         * modules/mktime-internal (Depends-on): Likewise.
3691         * modules/nstrftime (Depends-on): Likewise.
3692         * modules/opendirat (Depends-on): Likewise.
3693         * modules/parse-datetime (Depends-on): Likewise.
3694         * modules/quotearg-simple-tests (Depends-on): Likewise.
3695         * modules/same (Depends-on): Likewise.
3696         * modules/supersede (Depends-on): Likewise.
3697         * modules/supersede-tests (Depends-on): Likewise.
3698         * modules/time_rz (Depends-on): Likewise.
3699         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3700         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3701         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3702         * modules/xalloc (Depends-on): Likewise.
3703         * modules/xnanosleep (Depends-on): Likewise.
3705 2020-09-05  Bruno Haible  <bruno@clisp.org>
3707         Fix "warning: array initialized from parenthesized string constant".
3708         * tests/test-memmem.c (main): Remove parentheses around string constant.
3709         * tests/test-c-strcasestr.c (main): Likewise.
3710         * tests/test-strcasestr.c (main): Likewise.
3712 2020-09-05  Bruno Haible  <bruno@clisp.org>
3714         argmatch tests: Fix ISO C compliance warning.
3715         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3716         invocation.
3718 2020-09-05  Bruno Haible  <bruno@clisp.org>
3720         uniname/uniname: Fix -Wshadow warning.
3721         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3722         * modules/uniname/uniname (Depends-on): Add c99.
3724 2020-09-05  Bruno Haible  <bruno@clisp.org>
3726         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3727         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3728         argument to size_t.
3729         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3730         n to size_t.
3732 2020-09-05  Bruno Haible  <bruno@clisp.org>
3734         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3735         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3736         u32_uctomb): Change type of last argument to ptrdiff_t.
3737         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3738         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3739         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3740         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3741         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3743 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3745         manywarnings: remove -Wchkp and -Wabi from C++ too
3746         Suggested by Reuben Thomas in:
3747         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3748         At some point somebody should merge the many other manywarnings-c.m4
3749         changes into manywarnings-c++.m4 too, e.g.,
3750         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3751         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3752         Remove -Wchkp, -Wabi.
3754 2020-08-30  Bruno Haible  <bruno@clisp.org>
3756         strerrorname_np: Add tests.
3757         * tests/test-strerrorname_np.c: New file.
3758         * modules/strerrorname_np-tests: New file.
3760         strerrorname_np: New module.
3761         * lib/string.in.h (strerrorname_np): New declaration.
3762         * lib/strerrorname_np.c: New file.
3763         * m4/strerrorname_np.m4: New file.
3764         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3765         is declared.
3766         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3767         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3768         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3769         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3770         * modules/strerrorname_np: New file.
3771         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3772         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3773         the glibc 2.32 bug.
3775 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3777         perror, strerror_r: remove unportable tests
3778         Problem reported by Florian Weimer in:
3779         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3780         * tests/test-perror2.c (main):
3781         * tests/test-strerror_r.c (main): Omit unportable tests.
3783 2020-08-26  Bruno Haible  <bruno@clisp.org>
3785         stdint, wchar, wctype-h: Change configure message.
3786         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3787         enough..." instead of "checking whether wint_t is too small...".
3789 2020-08-26  Bruno Haible  <bruno@clisp.org>
3791         time_rz: Change configure message.
3792         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3793         near extrema..." instead of "checking whether localtime loops forever
3794         near extrema...".
3796 2020-08-26  Bruno Haible  <bruno@clisp.org>
3798         stdint: Change configure message.
3799         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3800         without ISO C predefines..." instead of "checking whether stdint.h
3801         predates C++11...".
3803 2020-08-26  Bruno Haible  <bruno@clisp.org>
3805         socketlib: Change configure message.
3806         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3807         instead of "checking if we need to call WSAStartup in winsock2.h and
3808         -lws2_32...".
3810 2020-08-26  Bruno Haible  <bruno@clisp.org>
3812         include_next: Change configure message.
3813         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3814         code line length is unlimited..." instead of "checking whether system
3815         header files limit the line length...".
3817 2020-08-26  Bruno Haible  <bruno@clisp.org>
3819         getcwd: Change configure message.
3820         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3821         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3822         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3824 2020-08-26  Bruno Haible  <bruno@clisp.org>
3826         chdir-long: Change configure message.
3827         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3828         system supports file names of any length..." instead of "checking
3829         whether this system has an arbitrary file name length limit...".
3830         Set gl_cv_have_unlimited_file_name_length instead of
3831         gl_cv_have_arbitrary_file_name_length_limit.
3832         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3834 2020-08-26  Bruno Haible  <bruno@clisp.org>
3836         ceill: Change configure message.
3837         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3838         instead of "checking whether ceill() breaks with small values...".
3840 2020-08-26  Bruno Haible  <bruno@clisp.org>
3842         iconv: Change configure message.
3843         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3844         with its POSIX signature..." instead of "checking for iconv
3845         declaration...". Remove K&R C support.
3847 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3849         getcwd: help the merge back into glibc
3850         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3851         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3852         The idea is to make it easier for Gnulib lib/getcwd.c to match
3853         glibc io/getcwd-generic.c.
3854         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3855         Include not-cancel.h.
3856         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3857         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3858         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3859         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3860         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3861         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3862         (__getcwd_generic): Rename from __getcwd.
3863         Use the abovementioned macros for consistency with glibc.
3864         (weak_alias): Remove.
3866 2020-08-25  Bruno Haible  <bruno@clisp.org>
3868         verify: Avoid warnings when assume(0) is used.
3869         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3870         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3871         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3872         the constant 0.
3873         * tests/test-verify.c (f): New function.
3874         (state): New type.
3875         (test_assume_expressions, test_assume_optimization,
3876         test_assume_noreturn): New functions.
3878 2020-08-25  Bruno Haible  <bruno@clisp.org>
3880         fstrcmp: Clarification regarding NOTE_ORDERED.
3881         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3883 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3885         diffseq: new option NOTE_ORDERED
3886         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3887         * NEWS: Mention this.
3888         * lib/diffseq.h (NOTE_ORDERED): New macro.
3889         (IF_LINT2): Remove; no longer needed.
3890         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3891         subproblem and iterate to do the larger.
3893 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3895         sys_types: let Autoconf 2.70 do pid_t
3896         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3897         only for Autoconf versions 2.69 and earlier, since 2.70
3898         will be fixed.
3900 2020-08-23  Bruno Haible  <bruno@clisp.org>
3902         tests: Don't assume that pid_t fits in an 'int'.
3903         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3904         of 'int'.
3905         * tests/test-nonblocking-socket-main.c (main): Likewise.
3907         sys_types: Fix definition of pid_t on 64-bit MSVC.
3908         * m4/pid_t.m4: New file.
3909         * modules/sys_types (Files): Add it.
3910         * modules/dirent (Files): Likewise.
3911         * modules/fcntl-h (Files): Likewise.
3912         * modules/sched (Files): Likewise.
3913         * modules/signal-h (Files): Likewise.
3914         * modules/spawn (Files): Likewise.
3915         * modules/sys_stat (Files): Likewise.
3916         * modules/sys_wait (Files): Likewise.
3917         * modules/termios (Files): Likewise.
3918         * modules/unistd (Files): Likewise.
3920 2020-08-23  Bruno Haible  <bruno@clisp.org>
3922         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3923         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3924         program.
3926 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3928         intprops: be consistent about +X vs X+0
3929         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3931         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3932         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3933         is a bit-field, on older GCC or non-GCC compilers where we do
3934         things ourselves instead of using __builtin_mul_overflow.
3935         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
3936         to applying sizeof to a bit-field.
3937         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
3938         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
3940 2020-08-23  Bruno Haible  <bruno@clisp.org>
3942         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
3943         Reported by Jörg Sonnenberger <joerg@netbsd.org>
3944         via Thomas Klausner <tk@giga.or.at> in
3945         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
3946         * lib/supersede.c (open_supersede): When opening an existing non-regular
3947         file on Solaris, use O_CREAT although it should not be necessary.
3949 2020-08-23  Bruno Haible  <bruno@clisp.org>
3951         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3952         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3953         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3954         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3955         variable.
3957 2020-08-23  Bruno Haible  <bruno@clisp.org>
3959         libc-config: Improve comments.
3960         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3961         cannot use clang's __diagnose_if__ here.
3963 2020-08-22  Bruno Haible  <bruno@clisp.org>
3965         verify: Do use __builtin_assume on clang.
3966         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3967         variable in a statement expression.
3969 2020-08-22  Bruno Haible  <bruno@clisp.org>
3971         sig2str: Add more signals.
3972         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3974 2020-08-22  Bruno Haible  <bruno@clisp.org>
3976         doc: Update for OpenBSD 6.0, 6.7.
3977         * doc/*/*.texi: Update.
3978         * m4/printf.m4: Update comments and cross-compilation guesses.
3979         * m4/ceill.m4: Update comments.
3980         * m4/getcwd-abort-bug.m4: Likewise.
3981         * m4/ilogb.m4: Likewise.
3982         * m4/ilogbf.m4: Likewise.
3983         * m4/langinfo_h.m4: Likewise.
3984         * m4/modf.m4: Likewise.
3985         * m4/modff.m4: Likewise.
3987 2020-08-22  Bruno Haible  <bruno@clisp.org>
3989         doc: Mention sig2str module.
3990         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3992 2020-08-21  Bruno Haible  <bruno@clisp.org>
3994         sigdescr_np: Add tests.
3995         * tests/test-sigdescr_np.c: New file.
3996         * modules/sigdescr_np-tests: New file.
3998         sigdescr_np: New module.
3999         * lib/string.in.h (sigdescr_np): New declaration.
4000         * lib/sigdescr_np.c: New file.
4001         * m4/sigdescr_np.m4: New file.
4002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4003         declared.
4004         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4005         HAVE_SIGDESCR_NP.
4006         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4007         HAVE_SIGDESCR_NP.
4008         * modules/sigdescr_np: New file.
4009         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4010         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4012 2020-08-20  Bruno Haible  <bruno@clisp.org>
4014         sigabbrev_np: Add tests.
4015         * tests/test-sigabbrev_np.c: New file.
4016         * modules/sigabbrev_np-tests: New file.
4018         sigabbrev_np: New module.
4019         * lib/string.in.h (sigabbrev_np): New declaration.
4020         * lib/sigabbrev_np.c: New file.
4021         * m4/sigabbrev_np.m4: New file.
4022         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4023         declared.
4024         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4025         HAVE_SIGABBREV_NP.
4026         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4027         HAVE_SIGABBREV_NP.
4028         * modules/sigabbrev_np: New file.
4029         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4030         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4032 2020-08-20  Bruno Haible  <bruno@clisp.org>
4034         stdalign tests: Skip test with AIX xlclang.
4035         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4037 2020-08-20  Bruno Haible  <bruno@clisp.org>
4039         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4040         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4041         workaround as for GCC versions < 4.9.
4043 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4045         Sync up ProjectQuirks comments and documentation
4046         Transform the ProjectQuirks comments into a docstring so that it can
4047         be accessed from python as ProjectQuirks.__doc__ and harmonize
4048         descriptions with the documentation.
4049         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4050         Transform comments into a docstring.
4051         * doc/vcs-to-changelog.texi: Sync up description with comments.
4053         Split ProjectQuirks out into its own file
4054         ProjectQuirks is used by external quirks files and importing it from
4055         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4056         is cleaner to put it in its own file anyway.
4057         * build-aux/vcstocl/projectquirks.py: A new file...
4058         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4059         we move ProjectQuirks and import the file.
4061 2020-08-19  Bruno Haible  <bruno@clisp.org>
4063         uchar: Fix compilation errors in C++ mode on macOS.
4064         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4065         system header file before attempting to use 'char16_t' and 'char32_t'.
4067 2020-08-19  Bruno Haible  <bruno@clisp.org>
4069         ansi-c++-opt: Work around an autoconf macro reordering problem.
4070         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4071         section.
4073 2020-08-19  Bruno Haible  <bruno@clisp.org>
4075         math C++ tests: Fix compilation error in with GCC 10.
4076         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4077         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4078         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4080 2020-08-19  Bruno Haible  <bruno@clisp.org>
4082         uchar: Fix compilation errors in C++ mode on OpenBSD.
4083         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4084         CXX_HAS_UCHAR_TYPES is 1.
4085         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4086         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4087         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4089 2020-08-19  Bruno Haible  <bruno@clisp.org>
4091         Fix compilation errors in C++ mode on OpenBSD.
4092         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4093         OpenBSD with clang, use the approach without C preprocessor macro.
4095 2020-08-18  Bruno Haible  <bruno@clisp.org>
4097         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4098         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4099         AC_LANG_POP.
4101 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4103         verify: avoid __built_assume on Clang
4104         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4105         Clang 9 incorrectly diagnoses arguments as having side effects
4106         even when they do not.  I guess Clang 9 considers any function
4107         call as if it had a side effect here.
4109         libc-config: avoid Clang’s __diagnose_if__
4110         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4111         For now, do not use __diagnose_if__ here, as this fails
4112         on Fedora 31 with Clang 9.0.1, with diagnostic
4113         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4114         size than length of destination buffer
4115         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4116         for functions that are not called?
4118         careadlinkat: speedup for GCC 10 with GCC_LINT
4119         Inspired by a suggestion by Bruno Haible in:
4120         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4121         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4122         (readlink_stk): New function, with most of the old careadlinkat
4123         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4124         if GCC_LINT.
4125         (careadlinkat): Use the new function for everything but the
4126         stack buffer.
4128         * build-aux/gcc-warning.spec: Update comments.
4130 2020-08-17  Bruno Haible  <bruno@clisp.org>
4132         Assume autoconf >= 2.64.
4133         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4135 2020-08-17  Bruno Haible  <bruno@clisp.org>
4137         Revert autoupdate's revert.
4138         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4140 2020-08-17  Bruno Haible  <bruno@clisp.org>
4142         uchar C++ tests: Fix build error on FreeBSD 12.
4143         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4144         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4145         <cuchar> does not exist.
4147 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4149         time_rz: remove unused functions
4150         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4152         time_rz: fix issues with mktime_z failures
4153         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4154         Use a cheaper tm_yday test for failed mktime.
4156 2020-08-16  Bruno Haible  <bruno@clisp.org>
4158         intprops test: Strengthen on clang.
4159         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4161 2020-08-16  Bruno Haible  <bruno@clisp.org>
4163         nstrftime: Guide inlining also on clang.
4164         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4166 2020-08-16  Bruno Haible  <bruno@clisp.org>
4168         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4169         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4171 2020-08-16  Bruno Haible  <bruno@clisp.org>
4173         log2l: Disable MSVC workaround on clang.
4174         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4176 2020-08-16  Bruno Haible  <bruno@clisp.org>
4178         argp: Emit a warning also with clang.
4179         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4180         clang.
4182 2020-08-16  Bruno Haible  <bruno@clisp.org>
4184         libc-config: Enable __REDIRECT macro also on clang.
4185         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4186         __ASMNAME2): Define on clang like on GCC.
4188 2020-08-16  Bruno Haible  <bruno@clisp.org>
4190         regex: Use initializer shorthand syntax also with clang.
4191         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4192         with clang.
4194 2020-08-16  Bruno Haible  <bruno@clisp.org>
4196         regex: Use space optimization also with clang.
4197         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4198         with clang.
4200 2020-08-16  Bruno Haible  <bruno@clisp.org>
4202         Use _Static_assert and static_assert primitives when present on clang.
4203         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4204         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4205         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4207 2020-08-16  Bruno Haible  <bruno@clisp.org>
4209         Use 'throw ()' for optimization in C++ mode also on clang.
4210         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4211         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4212         * lib/md5.h (__THROW): Likewise.
4214 2020-08-16  Bruno Haible  <bruno@clisp.org>
4216         absolute-header: Add support for clang.
4217         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4218         HAVE_INCLUDE_NEXT expression.
4220 2020-08-16  Bruno Haible  <bruno@clisp.org>
4222         Fix "warning: implicitly declaring library function 'strcasecmp'".
4223         * lib/argp-help.c: Include <strings.h>.
4225 2020-08-16  Bruno Haible  <bruno@clisp.org>
4227         stdio: Don't break attribute 'scanf' on clang.
4228         * lib/stdio.in.h (scanf): Treat clang like GCC.
4230 2020-08-16  Bruno Haible  <bruno@clisp.org>
4232         Use __restrict also on clang.
4233         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4234         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4235         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4237 2020-08-16  Bruno Haible  <bruno@clisp.org>
4239         pthread-spin: Use GCC built-ins also on clang.
4240         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4241         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4242         also on clang.
4244 2020-08-16  Bruno Haible  <bruno@clisp.org>
4246         asyncsafe-spin tests: Update.
4247         * tests/test-asyncsafe-spin2.c: Update to match the change in
4248         lib/asyncsafe-spin.c from 2020-08-11.
4250 2020-08-16  Bruno Haible  <bruno@clisp.org>
4252         setenv: Use tree code also with clang.
4253         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4255 2020-08-16  Bruno Haible  <bruno@clisp.org>
4257         math: Optimize signbit also on clang.
4258         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4259         on clang.
4261 2020-08-16  Bruno Haible  <bruno@clisp.org>
4263         avltreehash-list, rbtreehash-list: Optimize also on clang.
4264         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4265         __builtin_expect also on clang.
4267 2020-08-16  Bruno Haible  <bruno@clisp.org>
4269         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4270         * lib/socket.c: Use WSASocketW, not WSASocketA.
4272         Fix "warning: format specifies type 'unsigned long'".
4273         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4274         argument to match the format directive.
4276         Fix "warning: no case matching constant switch condition '0'".
4277         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4279         Fix "warning: integer overflow in expression".
4280         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4281         remove a 'long' overflow.
4283         Fix "warning: "getpagesize" redefined".
4284         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4285         macro.
4287         Fix "warning: implicitly declaring library function 'strncasecmp'".
4288         * lib/strptime.c: Include <strings.h>.
4290         Fix "warning: 'snprintf' macro redefined".
4291         * lib/strerror_r.c (snprintf): Undefine before redefining.
4293         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4294         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4296         Fix "warning: '__stat64' macro redefined".
4297         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4299         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4300         * lib/stdio.in.h (printf): Treat clang like GCC.
4302         Fix "warning: attribute declaration must precede definition" with clang.
4303         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4304         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4305         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4306         on non-glibc systems.
4307         * lib/netdb.in.h (gai_strerror): Likewise.
4308         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4309         * lib/sys_stat.in.h (fstat): Likewise.
4310         * lib/utime.in.h (utime): Likewise.
4312         Fix undesired warnings.
4313         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4314         clang.
4316 2020-08-16  Bruno Haible  <bruno@clisp.org>
4318         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4319         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4320         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4321         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4322         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4324 2020-08-16  Bruno Haible  <bruno@clisp.org>
4326         Don't use Autoconf quadrigraphs.
4327         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4328         Autoconf quadrigraph.
4329         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4330         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4331         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4332         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4333         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4334         * m4/math_h.m4 (gl_MATH_H): Likewise.
4335         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4337 2020-08-16  Bruno Haible  <bruno@clisp.org>
4339         Fix quoting of AC_LANG_PROGRAM arguments.
4340         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4341         arguments through [[...]].
4342         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4343         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4344         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4345         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4346         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4347         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4348         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4349         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4350         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4351         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4352         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4353         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4354         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4356 2020-08-16  Bruno Haible  <bruno@clisp.org>
4358         Assume autoconf >= 2.64.
4359         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4360         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4361         * NEWS: Mention the changed requirement.
4362         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4363         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4364         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4365         variables.
4366         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4367         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4368         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4369         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4370         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4371         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4372         Likewise.
4373         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4374         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4375         * m4/configmake.m4: Update comment.
4377 2020-08-16  Bruno Haible  <bruno@clisp.org>
4379         sys_ioctl: Simplify.
4380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4381         AC_INCLUDES_DEFAULT.
4383 2020-08-16  Bruno Haible  <bruno@clisp.org>
4385         Fix quoting of AC_LANG_SOURCE arguments.
4386         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4387         GL_NOCRASH expansion.
4388         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4389         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4390         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4391         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4392         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4394 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4396         nstrftime: be more predictable about errno
4397         This aligns nstrftime better with draft POSIX 202x strftime.
4398         * lib/nstrftime.c: Include errno.h.
4399         (width_add, __strftime_internal): Set errno on failure,
4400         and preserve it on success.  Check for mktime_z failure.
4401         * modules/nstrftime (Depends-on): Add errno.
4402         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4403         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4404         (errno_test): New test function.
4405         (main): Call it.
4407 2020-08-15  Bruno Haible  <bruno@clisp.org>
4409         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4410         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4411         from dependency analysis first.
4413 2020-08-15  Bruno Haible  <bruno@clisp.org>
4415         Determine asm output option and filename suffix for MSVC/clang.
4416         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4417         clang-cl.
4419 2020-08-15  Bruno Haible  <bruno@clisp.org>
4421         doc: Update for MSVC/clang.
4422         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4423         that MSVC 14 does not have.
4425 2020-08-15  Bruno Haible  <bruno@clisp.org>
4427         Revert autoupdate's revert.
4428         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4430 2020-08-15  Bruno Haible  <bruno@clisp.org>
4432         frexpl: Fix configuration test result on MSVC.
4433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4434         zero.
4436 2020-08-15  Bruno Haible  <bruno@clisp.org>
4438         Support compiling without -loldnames on native Windows.
4439         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4440         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4441         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4442         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4443         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4445         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4446         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4447         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4448         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4449         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4450         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4451         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4452         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4453         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4454         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4455         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4456         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4457         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4458         Likewise.
4459         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4460         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4461         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4462         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4463         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4464         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4465         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4466         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4467         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4468         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4469         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4470         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4471         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4472         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4473         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4474         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4475         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4476         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4477         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4478         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4479         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4480         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4481         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4482         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4483         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4484         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4485         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4486         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4487         test for getcwd.
4488         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4489         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4490         with GL_MDA_DEFINES.
4491         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4492         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4493         prefixed symbol.
4494         * lib/search.in.h (lfind, lsearch): Likewise.
4495         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4496         Likewise.
4497         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4498         * lib/string.in.h (memccpy, strdup): Likewise.
4499         * lib/sys_stat.in.h (chmod, umask): Likewise.
4500         * lib/time.in.h (tzset): Likewise.
4501         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4502         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4503         read, rmdir, swab, unlink, write): Likewise.
4504         * lib/utime.in.h (utime): Likewise.
4505         * lib/wchar.in.h (wcsdup): Likewise.
4506         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4507         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4508         rpl_-prefixed macro.
4509         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4510         * lib/close.c (close_nothrow): On native Windows, use _close.
4511         * lib/creat.c (orig_creat): On native Windows, use _creat.
4512         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4513         * lib/dup2.c (dup2_nothrow): Use _dup2.
4514         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
4515         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
4516         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
4517         * lib/open.c (orig_open): On native Windows, use _open.
4518         * lib/read.c (read_nothrow): Use _read.
4519         * lib/rmdir.c: On native Windows, use _rmdir.
4520         * lib/unlink.c: On native Windows, use _unlink.
4521         * lib/write.c (write_nothrow): Use _write.
4522         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
4523         undefined symbol.
4524         * lib/sys_socket.in.h (close): Likewise.
4525         * lib/sys_time.in.h (close): Likewise.
4526         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
4528 2020-08-15  Bruno Haible  <bruno@clisp.org>
4530         Fix "unknown pragma ignored" warnings with clang on native Windows.
4531         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
4532         * lib/cbrtf.c: Likewise.
4533         * lib/ceil.c: Likewise.
4534         * lib/floor.c: Likewise.
4535         * lib/fma.c: Likewise.
4536         * lib/fmod.c: Likewise.
4537         * lib/rint.c: Likewise.
4538         * lib/round.c: Likewise.
4539         * lib/trunc.c: Likewise.
4540         * tests/test-ceil2.c: Likewise.
4541         * tests/test-ceilf2.c: Likewise.
4542         * tests/test-floor2.c: Likewise.
4543         * tests/test-floorf2.c: Likewise.
4544         * tests/test-trunc2.c: Likewise.
4545         * tests/test-truncf2.c: Likewise.
4546         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4549 2020-08-15  Bruno Haible  <bruno@clisp.org>
4551         Fix compilation errors in C++ mode with clang on native Windows.
4552         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
4553         non-glibc systems.
4554         * lib/sched.in.h (sched_yield): Likewise.
4556 2020-08-14  Bruno Haible  <bruno@clisp.org>
4558         stdnoreturn: Work around problem with MSVC/clang.
4559         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
4560         system header after <stdnoreturn.h>.
4561         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
4563 2020-08-14  Bruno Haible  <bruno@clisp.org>
4565         utime-h: Generate an utime.h file always.
4566         * modules/utime-h (Makefile.am): Generate utime.h always.
4567         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
4568         GL_GENERATE_UTIME_H.
4570 2020-08-14  Bruno Haible  <bruno@clisp.org>
4572         mktime, mktime-internal: Remove obsolete code.
4573         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
4575 2020-08-14  Bruno Haible  <bruno@clisp.org>
4577         getcwd: Remove obsolete code.
4578         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
4579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4581 2020-08-14  Bruno Haible  <bruno@clisp.org>
4583         tzset: Assume the function exists.
4584         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
4585         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
4586         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
4587         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
4588         HAVE_TZSET.
4589         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
4590         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4592         nstrftime: Assume tzset exists.
4593         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4594         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4595         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4597         mktime, mktime-internal: Assume tzset exists.
4598         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4599         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4601 2020-08-14  Bruno Haible  <bruno@clisp.org>
4603         strdup: Assume the function exists.
4604         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4605         whether strdup exists.
4606         * modules/strdup (Files): Remove lib/strdup.c.
4607         (configure.ac): Don't compile strdup.c.
4608         * modules/strdup-posix (Depends-on, configure.ac): Don't test
4609         ac_cv_func_strdup.
4610         * doc/posix-functions/strdup.texi: Update.
4611         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4612         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4613         (Depends-on): Remove unistr/u8-strlen.
4615 2020-08-13  Bruno Haible  <bruno@clisp.org>
4617         sys_random: Work around an uClibc bug.
4618         Reported by akater <nuclearspace@gmail.com>
4619         via Stefan Kangas <stefan@marxist.se>
4620         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4621         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4622         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4623         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4624         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4626 2020-08-12  Bruno Haible  <bruno@clisp.org>
4628         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4629         Reported by Florian Weimer in
4630         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4631         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4632         the level3 array to 'unsigned int'.
4633         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4634         * lib/unictype/categ_*.h: Regenerated.
4635         * lib/unictype/ctype_*.h: Regenerated.
4636         * lib/unictype/pr_*.h: Regenerated.
4637         * lib/unictype/sy_*.h: Regenerated.
4638         * lib/unicase/cased.h: Regenerated.
4639         * lib/unicase/ignorable.h: Regenerated.
4641 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4643         stdint: port intptr_t to more-recent MinGW
4644         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4645         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4646         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4647         Apparently those two macros were removed in mingwrt-3.22
4648         dated 2016-07-14.
4650 2020-08-12  Bruno Haible  <bruno@clisp.org>
4652         thread-optim: Export function-like macros only.
4653         Suggested by Paul Eggert.
4654         * lib/thread-optim.h (gl_multithreaded): New macro.
4655         (IF_MT_DECL, IF_MT): Remove macros.
4656         * doc/multithread.texi (Multithreading Optimizations): Add a small
4657         example.
4658         * lib/fatal-signal.c: Update all uses.
4659         * lib/clean-temp.c: Likewise.
4660         * lib/localename.c: Likewise.
4661         * modules/localename (Depends-on): Add stdbool.
4663 2020-08-12  Bruno Haible  <bruno@clisp.org>
4665         Revert autoupdate's revert.
4666         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4668 2020-08-11  Bruno Haible  <bruno@clisp.org>
4670         thread-optim: Fix a compiler warning.
4671         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4673 2020-08-11  Bruno Haible  <bruno@clisp.org>
4675         Use __restrict also on clang.
4676         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4677         (__restrict_arr): On clang, define like on GCC.
4678         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4679         (_Restrict_arr_): Use _Restrict_ also on clang.
4680         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4681         (_Restrict_arr_): Use _Restrict_ also on clang.
4683 2020-08-11  Bruno Haible  <bruno@clisp.org>
4685         Use flexible array syntax also on clang.
4686         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4687         define like for GCC 3.
4689 2020-08-11  Bruno Haible  <bruno@clisp.org>
4691         fcntl: On native Windows, use _setmode, not setmode.
4692         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4693         * lib/binary-io.h: Update comment.
4694         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4695         * tests/test-dup2.c: Likewise.
4696         * tests/test-dup-safer.c: Likewise.
4697         * tests/test-fcntl.c: Likewise.
4699 2020-08-11  Bruno Haible  <bruno@clisp.org>
4701         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4702         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4703         * lib/spawn-pipe.c (create_pipe): Likewise.
4704         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4705         * tests/test-nonblocking-socket-main.c (main): Likewise.
4706         * lib/wait-process.c: Update comment.
4707         * doc/posix-functions/fork.texi: Update.
4709 2020-08-11  Bruno Haible  <bruno@clisp.org>
4711         asyncsafe-spin: Use GCC built-ins also on clang.
4712         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4713         the newer GCC built-ins also on clang.
4715 2020-08-11  Bruno Haible  <bruno@clisp.org>
4717         Use expression statements also on clang.
4718         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4719         * lib/obstack.h (__extension__): Likewise.
4720         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4721         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4722         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4723         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4724         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4725         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4727 2020-08-10  Bruno Haible  <bruno@clisp.org>
4729         Use many __attribute__s with clang.
4730         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4731         on clang.
4732         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4733         New macros.
4734         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4735         on clang.
4736         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4737         also on older clang versions.
4738         (__attribute__): Don't define to empty on clang.
4739         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4740         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4741         (__attribute_const__): Use __attribute__ __const__ also on clang.
4742         (__attribute_used__): Use __attribute__ __used__ also on clang.
4743         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4744         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4745         clang.
4746         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4747         clang.
4748         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4749         also on clang.
4750         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4751         (__attribute_warn_unused_result__): Use __attribute__
4752         __warn_unused_result__ also on clang.
4753         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4754         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4755         clang >= 7.
4756         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4757         clang versions.
4758         (_Noreturn): Don't redefine on clang >= 3.5.
4759         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4760         also on clang.
4761         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4762         on clang.
4763         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4764         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4765         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4766         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4767         also on clang.
4768         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4769         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4770         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4771         also on clang.
4772         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4773         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4774         __attribute__ __noreturn__ also on clang.
4775         * lib/obstack.h (__attribute_noreturn__): Likewise.
4776         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4777         clang.
4778         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4779         always_inline also on clang.
4780         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4781         clang.
4783 2020-08-10  Bruno Haible  <bruno@clisp.org>
4785         c-ldtoastr tests: Fix test failure.
4786         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4787         is longer than 'double'.
4789 2020-08-10  Bruno Haible  <bruno@clisp.org>
4791         Revert autoupdate's revert.
4792         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4794 2020-08-09  Bruno Haible  <bruno@clisp.org>
4796         string: Fix build error in C++ mode with clang (regression from today).
4797         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4798         parameters, one for GCC, one for clang.
4799         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4800         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4801         as return type.
4803 2020-08-09  Bruno Haible  <bruno@clisp.org>
4805         ftruncate: Use _chsize, not chsize.
4806         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4807         * lib/ftruncate.c: Test HAVE__CHSIZE.
4808         (chsize_nothrow): Use _chsize, not chsize.
4810 2020-08-09  Bruno Haible  <bruno@clisp.org>
4812         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4813         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4814         clang >= 10.
4815         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4816         * lib/fts.c (FALLTHROUGH): Likewise.
4817         * tests/macros.h (FALLTHROUGH): Likewise.
4818         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4819         * config/srclist.txt: Mark it as needing sync with glibc.
4821 2020-08-09  Bruno Haible  <bruno@clisp.org>
4823         stdbool tests: Enable the stricter tests also on clang.
4824         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4825         (e): Enable the address-to-bool conversion test also on clang.
4827 2020-08-09  Bruno Haible  <bruno@clisp.org>
4829         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4830         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4832 2020-08-09  Bruno Haible  <bruno@clisp.org>
4834         Use attribute __aligned__ with clang.
4835         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4836         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4838 2020-08-09  Bruno Haible  <bruno@clisp.org>
4840         Use __alignof__ with clang.
4841         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4842         on clang.
4843         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4844         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4845         clang.
4846         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4847         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4848         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4849         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4851 2020-08-09  Bruno Haible  <bruno@clisp.org>
4853         ignore-value: Simplify on clang.
4854         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4855         workaround.
4857 2020-08-09  Bruno Haible  <bruno@clisp.org>
4859         Use __typeof__ with clang.
4860         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4861         "clang -std=gnu99".
4862         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4863         * tests/test-stdint.c (verify_same_types): Enable the check also on
4864         clang.
4866 2020-08-09  Bruno Haible  <bruno@clisp.org>
4868         Add ability to emit user-defined warnings and errors with clang.
4869         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4870         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4871         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4872         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4873         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4874         attribute for clang.
4876 2020-08-09  Bruno Haible  <bruno@clisp.org>
4878         intprops: Fix typo in comment.
4879         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4881 2020-08-09  Bruno Haible  <bruno@clisp.org>
4883         Use __builtin_signbit* with clang.
4884         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4885         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4886         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4888         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4889         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4890         not REPLACE_SIGNBIT_USING_GCC.
4892 2020-08-09  Bruno Haible  <bruno@clisp.org>
4894         Use __builtin_isnan with clang.
4895         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4896         not __builtin_isnanf. Also on clang.
4897         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4898         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4899         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4900         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4901         built-in.
4902         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4903         not __builtin_isnanl. Also on clang.
4904         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4905         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4906         * lib/math.in.h (__has_builtin): Remove macro.
4907         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4908         __builtin_isnanf. Also on clang.
4909         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4910         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4911         __builtin_isnanl. Also on clang.
4912         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4913         on clang.
4915 2020-08-09  Bruno Haible  <bruno@clisp.org>
4917         thread-optim: Fix logic error.
4918         Reported by Paul Eggert.
4919         * lib/thread-optim.h (IF_MT): Fix logic error.
4921 2020-08-08  Bruno Haible  <bruno@clisp.org>
4923         localename: Use module 'thread-optim'.
4924         * lib/localename.c: Include thread-optim.h.
4925         (struniq): Use IF_MT macro.
4926         * modules/localename (Depends-on): Add thread-optim.
4928         clean-temp: Use module 'thread-optim'.
4929         * lib/clean-temp.c: Include thread-optim.h.
4930         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4931         register_temp_file, unregister_temp_file, register_temp_subdir,
4932         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4933         close_temp, fclose_variant_temp): Use IF_MT macro.
4934         * modules/clean-temp (Depends-on): Add thread-optim.
4936         fatal-signal: Use module 'thread-optim'.
4937         * lib/fatal-signal.c: Include thread-optim.h.
4938         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
4939         macro.
4940         * modules/fatal-signal (Depends-on): Add thread-optim.
4942 2020-08-08  Bruno Haible  <bruno@clisp.org>
4944         New module 'thread-optim'.
4945         * lib/thread-optim.h: New file.
4946         * modules/thread-optim: New file.
4947         * doc/multithread.texi (Multithreading Optimizations): New section.
4949 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4951         doc: more updates for glibc 2.32
4952         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4953         * doc/posix-functions/fchmodat.texi: Update.
4955 2020-08-07  Bruno Haible  <bruno@clisp.org>
4957         doc: Update for glibc 2.32.
4958         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4959         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4960         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4961         * doc/glibc-functions/sigabbrev_np.texi: New file.
4962         * doc/glibc-functions/sigdescr_np.texi: New file.
4963         * doc/glibc-functions/strerrordesc_np.texi: New file.
4964         * doc/glibc-functions/strerrorname_np.texi: New file.
4965         * doc/gnulib.texi: Include them.
4966         (Glibc sys/single_threaded.h): New section.
4967         * doc/pastposix-functions/h_errno.texi: Update.
4968         * doc/posix-functions/*.texi: Likewise.
4969         * doc/glibc-functions/*.texi: Likewise.
4971 2020-08-07  Bruno Haible  <bruno@clisp.org>
4973         alloca: No need to compile alloca.c with clang.
4974         * lib/alloca.c: Skip all code with clang.
4976         Use __builtin_alloca with clang.
4977         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4979 2020-08-06  Bruno Haible  <bruno@clisp.org>
4981         Use __builtin_assume with clang.
4982         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4983         (assume): Use __builtin_assume when available.
4985 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4987         libgmp: add <gmp/gmp.h> support
4988         * m4/libgmp.m4 (gl_LIBGMP):
4989         * modules/libgmp (configure.ac, Makefile.am):
4990         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4991         ‘#include <gmp.h>’.
4993 2020-08-06  Bruno Haible  <bruno@clisp.org>
4995         Consider that clang defines __OPTIMIZE__ like GCC does.
4996         * lib/streq.h: Define the inline functions also on clang.
4997         * lib/c-strcaseeq.h: Likewise.
4998         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4999         the GCC workaround to clang.
5001 2020-08-06  Bruno Haible  <bruno@clisp.org>
5003         safe-alloc: Remove unused code.
5004         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5006 2020-08-06  Bruno Haible  <bruno@clisp.org>
5008         Use __builtin_expect with clang everywhere.
5009         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5010         also on clang.
5012 2020-08-05  Bruno Haible  <bruno@clisp.org>
5014         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5015         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5016         built-in also on clang.
5017         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5018         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5020 2020-08-05  Bruno Haible  <bruno@clisp.org>
5022         Use __builtin_clz{,l,ll} with clang, also on Windows.
5023         * lib/integer_length.c: With clang, use the GCC built-in, not
5024         <intrin.h>.
5025         * lib/integer_length_l.c: Likewise.
5026         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5027         also on clang.
5028         * lib/vasnprintf.c (divide): Likewise.
5030 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5032         Update srclist.txt as per recent glibc changes
5033         * config/srclist.txt: Uncomment lines to reflect recent merges
5034         from Gnulib to glibc.
5036 2020-08-03  Bruno Haible  <bruno@clisp.org>
5038         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5039         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5041 2020-08-03  Bruno Haible  <bruno@clisp.org>
5043         integer_length_ll: Optimize for MSVC in 64-bit mode.
5044         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5045         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5047 2020-08-03  Bruno Haible  <bruno@clisp.org>
5049         integer_length_ll: Optimize for MSVC in 32-bit mode.
5050         * lib/integer_length_l.c: Include <intrin.h>.
5051         (integer_length): Define as inline function, like in
5052         lib/integer_length.c.
5054 2020-08-03  Bruno Haible  <bruno@clisp.org>
5056         integer_length: Optimize for MSVC.
5057         * lib/integer_length.c: Include <intrin.h>.
5058         (integer_length): With MSVC, use the _BitScanReverse built-in.
5060 2020-08-03  Bruno Haible  <bruno@clisp.org>
5062         ffsll: Optimize for MSVC in 64-bit mode.
5063         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5064         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5065         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5067 2020-08-03  Bruno Haible  <bruno@clisp.org>
5069         ffsll: Optimize for MSVC in 32-bit mode.
5070         * lib/ffsl.h: Include <intrin.h>.
5071         (ffs): Define as inline function, like in lib/ffs.c.
5073 2020-08-03  Bruno Haible  <bruno@clisp.org>
5075         ffs: Optimize for MSVC.
5076         * lib/ffs.c: Include <intrin.h>.
5077         (ffs): With MSVC, use the _BitScanForward built-in.
5079 2020-08-03  Bruno Haible  <bruno@clisp.org>
5081         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5082         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5083         variable.
5085 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5087         fopen: Avoid undesired interactions with glibc headers.
5088         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5089         __need_FILE, as the latter does not work with glibc.
5091 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5093         fcntl: document some F_SETLK errno variations
5094         * doc/posix-functions/fcntl.texi (fcntl): Document
5095         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5097 2020-08-02  Bruno Haible  <bruno@clisp.org>
5099         oset: Add an 'iterator_atleast' operation.
5100         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5101         extracted from gl_array_search_atleast.
5102         (gl_array_search_atleast): Use it.
5103         (gl_array_iterator_atleast): New function.
5104         (gl_array_oset_implementation): Use it.
5105         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5106         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5107         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5108         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5109         member.
5110         (gl_oset_iterator_atleast): New function.
5111         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5112         (gl_OSet::iterator): Add another auxiliary constructor.
5113         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5114         New functions.
5115         (main): Test also gl_oset_iterator_atleast.
5116         * tests/test-avltree_oset.c (is_at_least): New function.
5117         (main): Test also gl_oset_iterator_atleast.
5118         * tests/test-rbtree_oset.c (is_at_least): New function.
5119         (main): Test also gl_oset_iterator_atleast.
5120         * tests/test-oset-c++.cc (is_at_most): New function.
5121         (main): Test also gl_OSet::begin_atleast.
5123 2020-08-02  Bruno Haible  <bruno@clisp.org>
5125         oset-c++, omap-c++: Remove restriction for search_atleast method.
5126         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5127         a different type than the element.
5128         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5129         a different type than the key.
5131 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5133         gnumakefile: say ‘$(MAKE)’ not ‘make’
5134         * top/GNUmakefile (abort-due-to-no-makefile):
5135         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5136         This change is backported from Autoconf.
5138 2020-08-01  Bruno Haible  <bruno@clisp.org>
5140         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5141         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5142         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5143         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5144         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5145         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5147 2020-08-01  Bruno Haible  <bruno@clisp.org>
5149         libtextstyle-optional: Update tests.
5150         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5151         gl_LIBTEXTSTYLE_OPTIONAL.
5153 2020-08-01  Bruno Haible  <bruno@clisp.org>
5155         parse-datetime: Fix wrong #line statements.
5156         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5157         parse-datetime-gen.h.
5159 2020-08-01  Bruno Haible  <bruno@clisp.org>
5161         libtextstyle[-optional]: Allow requesting a minimum version.
5162         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5163         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5164         gl_LIBTEXTSTYLE_SEARCH): New macros.
5165         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5166         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5167         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5168         * modules/libtextstyle-optional (configure.ac): Don't invoke
5169         gl_LIBTEXTSTYLE_OPTIONAL.
5170         * NEWS: Mention the changes.
5172 2020-07-31  Bruno Haible  <bruno@clisp.org>
5174         _GL_CMP: Improve documentation.
5175         Reported by Paul Eggert in
5176         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5177         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5178         passed.
5180 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5182         largefile: sync with Autoconf master
5183         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5184         Avoid undefined behavior on platforms where off_t is 32 bits.
5185         See: https://bugs.debian.org/742780
5187         alloca: sync with Autoconf master
5188         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5189         Do not define if Autoconf 2.70 or later, since Autoconf master
5190         now matches us.
5192 2020-07-30  Bruno Haible  <bruno@clisp.org>
5194         unicodeio: Add comment.
5195         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5196         different iconv behaviours.
5198 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5200         Work around some Oracle Studio attribute bugs
5201         These were discovered when building bleeding-edge Emacs with
5202         Oracle Studio.
5203         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5204         Port to Oracle Studio 12.6, which mishandles __attribute__
5205         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5206         __has_attribute says they work.
5208 2020-07-29  Bruno Haible  <bruno@clisp.org>
5210         unicodeio: Fix wrong result on musl libc.
5211         Reported by A. Wilcox <awilfox@adelielinux.org> in
5212         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5213         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5214         on musl libc.
5215         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5216         * modules/unicodeio (Files): Add m4/musl.m4.
5218 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5220         fsusage, regex, stat-size: remove Cray support
5221         As near as I can make out this is actually support for UNICOS/mp,
5222         last released 2005, and Cray hasn’t supported that for years.
5223         * config/srclist.txt: Comment out regex.h for now.
5224         * lib/fsusage.c (get_fs_usage):
5225         * lib/regex.h (re_comp, re_exec):
5226         * lib/stat-size.h (ST_NBLOCKSIZE):
5227         Don’t worry about _CRAY.
5229 2020-07-29  Bruno Haible  <bruno@clisp.org>
5231         parse-datetime: Fix compilation error with bison 3.7.
5232         * modules/parse-datetime (Makefile.am): Create a generated header file
5233         parse-datetime-gen.h in the source directory. Correct #include and
5234         #line statements during preprocessing.
5236 2020-07-28  Bruno Haible  <bruno@clisp.org>
5238         fopen-gnu: Create files correctly (regression from 2020-05-24).
5239         * lib/fopen.c (rpl_open): Pass a third argument to open().
5241 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5243         xalloc-die: don’t depend on xalloc
5244         This removes a circular dependency, as xalloc depends on xalloc-die.
5245         * modules/xalloc-die (Files): Add lib/xalloc.h.
5246         (Depends-on): Remove xalloc.
5247         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5249         dfa-tests: port to MSVC
5250         Problem reported by Gisle Vanem in:
5251         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5252         Also, remove an unnecessary dependency on getprogname.
5253         * modules/dfa-tests (Depends-on): Remove getprogname.
5254         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5255         (exit_status): New static var.
5256         (dfawarn): Set it instead of exiting.
5257         Do not declare as _Noreturn, to pacify MSVC.
5258         (main): Return exit_status.
5260 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5262         argz: pacify MSVC
5263         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5264         Problem reported by Gisle Vanem.
5266         libgmp: remove dependency on havelib
5267         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5268         use the more-traditional AC_SEARCH_LIBS approach.
5269         This should work better with GNU Emacs configuration,
5270         which uses pkg-config instead of a havelib-style approach.
5271         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5272         * modules/libgmp (Depends-on): Remove havelib.
5274         libgmp: remove HAVE_GMP, LIB_GMP
5275         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5276         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5278 2020-07-26  Bruno Haible  <bruno@clisp.org>
5280         inttypes: Remove support for AIX 4.
5281         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5282         * m4/inttypes-pri.m4: Remove file.
5283         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5284         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5285         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5286         PRI_MACROS_BROKEN.
5287         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5289 2020-07-26  Bruno Haible  <bruno@clisp.org>
5291         gettimeofday: Remove workaround for Mac OS X 10.0.
5292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5293         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5294         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5295         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5296         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5297         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5298         * modules/localtime-buffer: Remove file.
5299         * lib/localtime-buffer.h: Remove file.
5300         * lib/localtime-buffer.c: Remove file.
5301         * m4/localtime-buffer.m4: Remove file.
5302         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5304 2020-07-26  Bruno Haible  <bruno@clisp.org>
5306         tzset: Remove workaround for Solaris 2.6.
5307         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5308         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5309         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5310         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5311         * lib/localtime-buffer.c: Likewise.
5312         * lib/localtime.c: Likewise.
5313         * lib/tzset.c: Don't include localtime-buffer.h.
5314         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5315         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5316         is 1.
5317         * modules/tzset (Depends-on): Remove localtime-buffer.
5319 2020-07-26  Bruno Haible  <bruno@clisp.org>
5321         expl: Simplify autoconf test.
5322         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5323         with small values..." test into the "checking whether expl works..."
5324         test.
5326 2020-07-26  Bruno Haible  <bruno@clisp.org>
5328         alloca: Remove Cray-2 and Cray Y-MP support.
5329         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5330         Enable also on Autoconf >= 2.69.
5331         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5332         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5333         i00afunc): Remove.
5335 2020-07-25  Bruno Haible  <bruno@clisp.org>
5337         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5338         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5340 2020-07-25  Bruno Haible  <bruno@clisp.org>
5342         sigprocmask: Small autoconf macro improvement.
5343         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5344         user to override the value of gl_cv_func_sigprocmask.
5345         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5347 2020-07-25  Bruno Haible  <bruno@clisp.org>
5349         Small autoconf macro improvements.
5350         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5351         override the value of gl_cv_func_working_mktime.
5352         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5353         compiler produces multi-arch binaries..." in the configure output.
5354         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5355         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5357 2020-07-25  Bruno Haible  <bruno@clisp.org>
5359         doc: Update for NetBSD 7.1, 8.0, 9.0.
5360         * doc/*/*.texi: Update.
5361         * m4/exp2l.m4: Update comments.
5362         * m4/expl.m4: Likewise.
5363         * m4/ilogb.m4: Likewise.
5364         * m4/ilogbf.m4: Likewise.
5365         * m4/log10l.m4: Likewise.
5366         * m4/logl.m4: Likewise.
5367         * m4/printf.m4: Likewise.
5368         * m4/rintl.m4: Likewise.
5369         * m4/wcwidth.m4: Likewise.
5371 2020-07-24  Bruno Haible  <bruno@clisp.org>
5373         doc: Update for Mac OS X 10.13.
5374         * doc/*/*.texi: Update.
5375         * m4/expm1l.m4: Update comments.
5376         * m4/getgroups.m4: Likewise.
5377         * m4/getlogin_r.m4: Likewise.
5378         * m4/linkat.m4: Likewise.
5379         * m4/printf.m4: Likewise.
5381 2020-07-24  Bruno Haible  <bruno@clisp.org>
5383         doc: Update for Cygwin 2.9.0.
5384         * doc/*/*.texi: Update.
5386 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5388         parse-datetime: modernize doc
5389         * doc/parse-datetime.texi: Use more-current examples.
5390         Don’t lead with 32-bit time_t, as it’s on its way out.
5391         Capitalize “Epoch” to be consistent with POSIX.
5393         timespec: remove dependence on ‘verify’
5394         * lib/timespec.h: Do not include verify.h; no longer needed.
5395         * modules/timespec (Depends-on): Remove ‘verify’.
5397         Optimize a few more three-valued comparisons
5398         * lib/timespec.h (timespec_cmp, timespec_sign):
5399         * lib/utimecmp.c (utimecmpat):
5400         Avoid conditional branches by using _GL_CMP.
5402         Fix _GL_CMP parenthesization typo
5403         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5405 2020-07-24  Bruno Haible  <bruno@clisp.org>
5407         dfa: Revert breaking gawk.
5408         Reported by Arnold Robbins <arnold@skeeve.com>.
5409         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5411 2020-07-23  Bruno Haible  <bruno@clisp.org>
5413         Optimize three-valued comparison between integers.
5414         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5415         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5416         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5417         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5418         * lib/dfa.c (compare): Likewise.
5419         * lib/fts.c (fts_compare_ino): Likewise.
5420         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5421         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5422         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5423         * lib/memcasecmp.c (memcasecmp): Likewise.
5424         * lib/memcmp2.c (memcmp2): Likewise.
5425         * lib/savedir.c (direntry_cmp_inode): Likewise.
5426         * lib/strcasecmp.c (strcasecmp): Likewise.
5427         * lib/strncasecmp.c (strncasecmp): Likewise.
5428         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5430 2020-07-23  Bruno Haible  <bruno@clisp.org>
5432         lchmod: Use /proc on Cygwin.
5433         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5435 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5437         fchmodat: Use /proc on Cygwin
5438         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5440 2020-07-21  Bruno Haible  <bruno@clisp.org>
5442         aligned-malloc: Optionally use aligned_alloc.
5443         * lib/aligned-malloc.h: Verify the alignment.
5444         (aligned_malloc): Use aligned_alloc as an alternative.
5445         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5446         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5447         'aligned-malloc' and 'pagealign_alloc'.
5449 2020-07-21  Bruno Haible  <bruno@clisp.org>
5451         aligned-malloc: Add tests.
5452         * tests/test-aligned-malloc.c: New file.
5453         * modules/aligned-malloc-tests: New file.
5455         aligned-malloc: New module.
5456         * lib/aligned-malloc.h: New file.
5457         * m4/malloc-align.m4: New file.
5458         * modules/aligned-malloc: New file.
5459         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5460         * doc/glibc-functions/memalign.texi: Likewise.
5462 2020-07-21  Bruno Haible  <bruno@clisp.org>
5464         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5465         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5466         sure PRIPTR_PREFIX is defined to "ll", not "l".
5468 2020-07-21  Bruno Haible  <bruno@clisp.org>
5470         printf-posix: Make an autoconf test more future-proof.
5471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5472         using uintptr_t.
5474 2020-07-20  Bruno Haible  <bruno@clisp.org>
5476         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5477         * modules/list (License): Change to LGPLv2+.
5478         * modules/array-list (License): Likewise.
5479         * modules/carray-list (License): Likewise.
5480         * modules/linked-list (License): Likewise.
5481         * modules/avltree-list (License): Likewise.
5482         * modules/rbtree-list (License): Likewise.
5483         * modules/oset (License): Likewise.
5484         * modules/array-oset (License): Likewise.
5485         * modules/avltree-oset (License): Likewise.
5486         * modules/rbtree-oset (License): Likewise.
5487         * modules/omap (License): Likewise.
5488         * modules/array-omap (License): Likewise.
5489         * modules/avltree-omap (License): Likewise.
5490         * modules/rbtree-omap (License): Likewise.
5492 2020-07-20  Bruno Haible  <bruno@clisp.org>
5494         oset: Add an 'update' operation.
5495         * lib/gl_array_oset.c (gl_array_update): New function.
5496         (gl_array_oset_implementation): Use it.
5497         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5498         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5499         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5500         extracted from gl_tree_nx_add_before.
5501         (gl_tree_nx_add_before): Invoke it.
5502         (gl_tree_add_node_after): New function, extracted from
5503         gl_tree_nx_add_after.
5504         (gl_tree_nx_add_after): Invoke it.
5505         (gl_tree_remove_node_no_free): New function, extracted from
5506         gl_tree_remove_node.
5507         (gl_tree_remove_node): Invoke it.
5508         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5509         extracted from gl_tree_nx_add_before.
5510         (gl_tree_nx_add_before): Invoke it.
5511         (gl_tree_add_node_after): New function, extracted from
5512         gl_tree_nx_add_after.
5513         (gl_tree_nx_add_after): Invoke it.
5514         (gl_tree_remove_node_no_free): New function, extracted from
5515         gl_tree_remove_node.
5516         (gl_tree_remove_node): Invoke it.
5517         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
5518         from gl_tree_iterator_next.
5519         (gl_tree_iterator_next): Invoke it.
5520         (gl_tree_prev_node, gl_tree_update): New functions.
5521         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5522         (gl_avltree_oset_implementation): Use gl_tree_update.
5523         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5524         (gl_rbtree_oset_implementation): Use gl_tree_update.
5525         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
5526         (gl_oset_update): New function.
5527         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
5528         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
5529         * modules/rbtree-oset (configure.ac): Likewise.
5530         * tests/test-oset-update.h: New file.
5531         * tests/test-array_oset.c: Include test-oset-update.h.
5532         (main): Invoke test_update.
5533         * tests/test-avltree_oset.c: Likewise.
5534         * tests/test-rbtree_oset.c: Likewise.
5535         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
5536         * modules/avltree-oset-tests (Files): Likewise.
5537         * modules/rbtree-oset-tests (Files): Likewise.
5538         * tests/test-oset-c++.cc (action): New function.
5539         (main): Test the 'update' member function.
5541 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5543         md5, sha1, sha256, sha512: pacify Autoconf 2.70
5544         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
5545         shell if, so that the argument to AC_CHECK_HEADERS is
5546         a simple string that does not require shell evaluation.
5547         This fixes a warning generated by Autoconf 2.69b.
5549 2020-07-12  Bruno Haible  <bruno@clisp.org>
5551         libgmp: Avoid warning when --without-libgmp is used.
5552         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
5553         GCC >= 8, not for GCC >= 4.6.
5555 2020-07-12  Bruno Haible  <bruno@clisp.org>
5557         libgmp: Link to the correct shared library.
5558         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
5559         * modules/libgmp (Depends-on): Add havelib.
5560         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
5561         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
5563 2020-07-12  Bruno Haible  <bruno@clisp.org>
5565         libgmp tests: Add some safety checks.
5566         * modules/libgmp-tests (Depends-on): Add verify.
5567         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
5568         (main): Verify that gmp.h and libgmp versions match.
5570 2020-07-10  Bruno Haible  <bruno@clisp.org>
5572         unicodeio: Fix wrong result on NetBSD.
5573         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5574         characters also on NetBSD.
5576 2020-07-09  Bruno Haible  <bruno@clisp.org>
5578         unicodeio: Fix wrong result on Solaris 11.
5579         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
5580         via Akim Demaille <akim.demaille@gmail.com> in
5581         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
5582         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5583         characters on Solaris.
5584         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
5585         UTF-8 output or the specified fallback.
5587 2020-07-08  Bruno Haible  <bruno@clisp.org>
5589         unicodeio: Add tests.
5590         * tests/test-unicodeio.c: New file.
5591         * tests/test-unicodeio1.sh: New file.
5592         * tests/test-unicodeio2.sh: New file.
5593         * tests/test-unicodeio3.sh: New file.
5594         * modules/unicodeio-tests: New file.
5596 2020-07-08  Bruno Haible  <bruno@clisp.org>
5598         unicodeio: Document link requirements.
5599         * modules/unicodeio (Link): New section.
5601 2020-07-07  Bruno Haible  <bruno@clisp.org>
5603         doc: Remove support for some very old platforms.
5604         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5605         * doc/posix-functions/memcpy.texi: Likewise.
5606         * doc/posix-functions/memmove.texi: Likewise.
5607         * doc/posix-functions/memset.texi: Likewise.
5608         * doc/posix-functions/getcwd.texi: Likewise.
5610         memchr: Remove support for some very old platforms.
5611         * m4/memchr-obsolete.m4: Remove file.
5612         * modules/memchr-obsolete: Remove file.
5613         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5614         absent. Don't define HAVE_MEMCHR.
5615         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5616         * modules/memchr (Depends-on): Remove memchr-obsolete.
5617         (configure.ac): Assume HAVE_MEMCHR is 1.
5618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5619         HAVE_MEMCHR.
5620         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5621         * doc/posix-functions/memchr.texi: Don't mention module
5622         'memchr-obsolete'.
5623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5624         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5625         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5627         dup2: Remove support for some very old platforms.
5628         * m4/dup2-obsolete.m4: Remove file.
5629         * modules/dup2-obsolete: Remove file.
5630         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5631         Don't define HAVE_DUP2.
5632         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5633         * lib/dup2.c: Likewise.
5634         * modules/dup2 (Depends-on, configure.ac): Likewise.
5635         (Depends-on): Remove dup2-obsolete.
5636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5637         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5638         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5640 2020-07-07  Bruno Haible  <bruno@clisp.org>
5642         canonicalize: Trim module dependencies.
5643         * lib/hash-triple.h: Group declarations.
5644         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5645         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5646         (STREQ): Remove macro.
5647         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5648         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5649         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5650         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5651         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5652         hash-triple-simple.
5653         * modules/file-set (Depends-on): Likewise.
5655 2020-07-07  Bruno Haible  <bruno@clisp.org>
5657         Clarify dependencies to double-slash-root.
5658         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5659         (Depends-on): Add double-slash-root.
5660         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5661         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5663 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5665         libgmp: new module
5666         The idea is to let programs simply include <gmp.h>, and
5667         so long as they live within the mini-gmp subset they need
5668         not worry about whether the GMP libraries are installed.
5669         * MODULES.html.sh: Mention it.
5670         * config/srclist.txt: Mention files copied from GMP source.
5671         * config/srclistvars.sh (GMP): New var.
5672         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5673         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5674         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5676 2020-07-05  Bruno Haible  <bruno@clisp.org>
5678         mkancesdirs: Trim module dependencies.
5679         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5680         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5682 2020-07-05  Bruno Haible  <bruno@clisp.org>
5684         getprogname: Trim module dependencies.
5685         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5686         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5687         basename-lgpl.
5689 2020-07-05  Bruno Haible  <bruno@clisp.org>
5691         filenamecat-lgpl: Trim module dependencies.
5692         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5693         dirname.h.
5694         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5695         basename-lgpl, filename.
5697 2020-07-05  Bruno Haible  <bruno@clisp.org>
5699         backupfile, backup-rename: Trim module dependencies.
5700         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5701         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5702         basename-lgpl.
5703         * modules/backup-rename (Depends-on): Likewise.
5705 2020-07-05  Bruno Haible  <bruno@clisp.org>
5707         argp: Trim module dependencies.
5708         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5709         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5711 2020-07-05  Bruno Haible  <bruno@clisp.org>
5713         basename-lgpl: New module.
5714         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5715         lib/basename-lgpl.c.
5716         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5717         <stdbool.h>, filename.h.
5718         (last_component): Rename a local variable.
5719         * lib/dirname.h: Include basename-lgpl.h.
5720         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5721         (last_component, base_len): Remove declarations.
5722         * modules/basename-lgpl: New file.
5723         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5724         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5725         (Makefile.am): Don't compile basename-lgpl.c.
5726         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5727         not 'dirname'.
5729 2020-07-05  Bruno Haible  <bruno@clisp.org>
5731         dirname, dirname-lgpl: Simplify.
5732         * m4/dirname.m4: Remove file.
5733         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5734         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5735         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5737 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5739         tests: avoid shadowing warning
5740         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5742 2020-07-05  Bruno Haible  <bruno@clisp.org>
5744         supersede: Add tests.
5745         * tests/test-supersede.c: New file.
5746         * tests/test-supersede-open.h: New file.
5747         * tests/test-supersede-fopen.h: New file.
5748         * modules/supersede-tests: New file.
5750         supersede: New module.
5751         * lib/supersede.h: New file.
5752         * lib/supersede.c: New file.
5753         * m4/supersede.m4: New file.
5754         * modules/supersede: New file.
5756 2020-07-05  Bruno Haible  <bruno@clisp.org>
5758         Add some copyright headers.
5759         * lib/dev-ino.h: Add copyright header.
5760         * lib/di-set.h: Likewise.
5761         * lib/fchown-stub.c: Likewise.
5762         * lib/file-set.h: Likewise.
5763         * lib/hash-triple.h: Likewise.
5764         * lib/idcache.h: Likewise.
5765         * lib/ino-map.h: Likewise.
5766         * lib/mkancesdirs.h: Likewise.
5767         * lib/scratch_buffer.h: Likewise.
5768         * lib/se-context.in.h: Likewise.
5769         * lib/stdopen.h: Likewise.
5770         * lib/userspec.h: Likewise.
5772 2020-07-04  Bruno Haible  <bruno@clisp.org>
5774         getrandom: Relicense under LGPLv2+.
5775         Paul Eggert's approval is in
5776         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5777         * modules/getrandom (License): Change to LGPLv2+.
5779 2020-07-04  Bruno Haible  <bruno@clisp.org>
5781         getumask: Add tests.
5782         * tests/test-getumask.c: New file.
5783         * modules/getumask-tests: New file.
5785         getumask: New module.
5786         * lib/sys_stat.in.h (getumask): New declaration.
5787         * lib/getumask.c: New file.
5788         * m4/getumask.m4: New file.
5789         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5790         declared.
5791         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5792         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5793         HAVE_GETUMASK.
5794         * modules/getumask: New file.
5795         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5796         * doc/glibc-functions/getumask.texi: New file.
5797         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5799 2020-07-04  Bruno Haible  <bruno@clisp.org>
5801         clean-temp: Add support for temporary files with given mode.
5802         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5803         * lib/clean-temp.c (struct try_create_file_params): New type.
5804         (try_create_file): New function.
5805         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5806         gen_tempname.
5808 2020-07-04  Bruno Haible  <bruno@clisp.org>
5810         clean-temp: Document limitations.
5811         * lib/clean-temp.h: Document limitations.
5813 2020-07-04  Bruno Haible  <bruno@clisp.org>
5815         clean-temp: Add support for temporary files with unpredictable names.
5816         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5817         * lib/clean-temp.c: Include tempname.h.
5818         (gen_register_open_temp): New function.
5819         * modules/tempname (configure.ac): Define a module indicator.
5821 2020-07-04  Bruno Haible  <bruno@clisp.org>
5823         clean-temp: Add support for temporary files anywhere in the file system.
5824         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5825         cleanup_temporary_file): New declarations.
5826         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5827         variables.
5828         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5829         (dir_cleanup_list): Renamed from cleanup_list.
5830         (cleanup_action): Process the file_cleanup_list as well.
5831         (do_init_clean_temp): New function.
5832         (clean_temp_once): New variable.
5833         (init_clean_temp): New function.
5834         (create_temp_dir): Invoke it.
5835         (register_temporary_file, unregister_temporary_file,
5836         cleanup_temporary_file): New functions.
5837         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5838         argument.
5840 2020-07-04  Bruno Haible  <bruno@clisp.org>
5842         clean-temp: Improve comments.
5843         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5844         fwriteerror_temp, close_stream_temp): Clarify intended use.
5845         * lib/clean-temp.c: Likewise.
5847 2020-07-04  Bruno Haible  <bruno@clisp.org>
5849         clean-temp: Make multithread-safe, part 2.
5850         * lib/fatal-signal.h: Include <signal.h>.
5851         (get_fatal_signal_set): New declaration.
5852         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5853         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5854         (struct closeable_fd): New type.
5855         (fatal_signal_set): New variable.
5856         (init_fatal_signal_set): New function.
5857         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5858         (cleanup_action): Invoke asyncsafe_close instead of close.
5859         (create_temp_dir): Invoke init_fatal_signal_set.
5860         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5861         element.
5862         (unregister_fd): Remove function.
5863         (close_temp): Cleanup descriptors list on the fly. Invoke
5864         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5865         (fclose_variant_temp): New function.
5866         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5867         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5869 2020-07-04  Bruno Haible  <bruno@clisp.org>
5871         clean-temp: Make multithread-safe, part 1.
5872         * lib/clean-temp.c: Include glthread/lock.h.
5873         (cleanup_list_lock): New variable.
5874         (register_temp_file, unregister_temp_file, register_temp_subdir,
5875         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5876         (create_temp_dir): Likewise. Don't free the old array.
5877         (descriptors_lock): New variable.
5878         (register_fd, unregister_fd): Use it.
5879         * modules/clean-temp (Depends-on): Add lock.
5881 2020-07-04  Bruno Haible  <bruno@clisp.org>
5883         fatal-signal: Make multithread-safe.
5884         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5885         (do_init_fatal_signal_set): New function, extracted from
5886         init_fatal_signal_set.
5887         (fatal_signal_set_once): New variable.
5888         (init_fatal_signal_set): Use gl_once.
5890 2020-07-03  Bruno Haible  <bruno@clisp.org>
5892         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5893         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5894         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5895         <bcrypt.h>.
5897 2020-07-03  Bruno Haible  <bruno@clisp.org>
5899         dfa tests: Follow common file naming conventions.
5900         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5901         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5902         * tests/test-dfa-invalid-char-class.sh: Renamed from
5903         tests/dfa-invalid-char-class.sh. Update.
5904         * modules/dfa-tests (Files, Makefile.am): Update.
5906 2020-07-03  Bruno Haible  <bruno@clisp.org>
5908         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5909         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5910         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5912 2020-07-03  Bruno Haible  <bruno@clisp.org>
5914         asyncsafe-spin: Reduce code duplication.
5915         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5916         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5917         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5919 2020-07-03  Bruno Haible  <bruno@clisp.org>
5921         lchmod: Simplify after 2020-02-22 change.
5922         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5924 2020-07-03  Bruno Haible  <bruno@clisp.org>
5926         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5927         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5929 2020-07-03  Bruno Haible  <bruno@clisp.org>
5931         dfa: Make sure the compiler does not barf on 'inline'.
5932         * modules/dfa (configure.ac): Require AC_C_INLINE.
5934 2020-07-03  Bruno Haible  <bruno@clisp.org>
5936         bitset: Make sure the compiler does not barf on 'inline'.
5937         * modules/bitset (configure.ac): New section.
5939 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5941         manywarnings: improve port to GCC 10.1
5942         * build-aux/gcc-warning.spec: Also list warnings that are default
5943         or are enabled by already-given flags.  This lets us speed up
5944         checking for attributes, and makes the generated compilation
5945         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
5946         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5947         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5948         to shell variables that may have long values.
5949         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5950         consequences of other flags, to speed up checking and
5951         shorten commands.
5953         tests: pacify gcc -fanalyzer on zerosize_ptr
5954         * tests/test-memcasecmp.c (main):
5955         * tests/test-memchr.c (main):
5956         * tests/test-memchr2.c (main):
5957         * tests/test-memcmp.c (main):
5958         * tests/test-memmem.c (main):
5959         * tests/test-memrchr.c (main):
5960         * tests/unistr/test-chr.h (main):
5961         * tests/unistr/test-cmp.h (test_cmp):
5962         Check whether zerosize_ptr returns NULL before using it.
5963         This pacifies GCC 10.1’s new fanalyzer option, and matches
5964         other uses of zerosize_ptr.
5966 2020-07-01  Bruno Haible  <bruno@clisp.org>
5968         asyncsafe-spin: Add tests.
5969         * tests/test-asyncsafe-spin1.c: New file.
5970         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5971         tests/test-pthread-spin.c.
5972         * modules/asyncsafe-spin-tests: New file.
5974 2020-07-01  Bruno Haible  <bruno@clisp.org>
5976         asyncsafe-spin: New module.
5977         * lib/asyncsafe-spin.h: New file.
5978         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5979         * modules/asyncsafe-spin: New file.
5981 2020-07-01  Bruno Haible  <bruno@clisp.org>
5983         windows-spin: Fix race condition on multiprocessor systems.
5984         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5986 2020-07-01  Bruno Haible  <bruno@clisp.org>
5988         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5989         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5990         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5991         an implementation based on other GCC built-ins.
5993 2020-07-01  Bruno Haible  <bruno@clisp.org>
5995         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5996         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5997         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5998         lock byte.
6000 2020-07-01  Bruno Haible  <bruno@clisp.org>
6002         pthread-spin: Add error checking.
6003         * lib/pthread-spin.c: Include <stdbool.h>.
6004         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6005         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6006         the unlocks.
6007         * modules/pthread-spin (Depends-on): Add stdbool.
6009 2020-07-01  Bruno Haible  <bruno@clisp.org>
6011         pthread-spin: Add tests.
6012         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6013         * modules/pthread-spin-tests: New file.
6015 2020-07-01  Bruno Haible  <bruno@clisp.org>
6017         tests: Reduce code duplication.
6018         * tests/atomic-int-posix.h: New file, extracted from
6019         tests/test-pthread-mutex.c.
6020         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6021         * tests/test-pthread-rwlock.c: Likewise.
6022         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6023         * modules/pthread-rwlock-tests (Files): Likewise.
6025 2020-07-01  Bruno Haible  <bruno@clisp.org>
6027         tests: Refactor.
6028         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6029         * tests/test-mtx.c: Include it. Remove the corresponding code.
6030         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6032 2020-07-01  Bruno Haible  <bruno@clisp.org>
6034         tests: Refactor.
6035         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6036         * tests/test-lock.c: Include it. Remove the corresponding code.
6037         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6039 2020-06-29  Bruno Haible  <bruno@clisp.org>
6041         sys_socket: Don't define socklen_t if it is already defined on mingw.
6042         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6043         <https://savannah.gnu.org/bugs/?57725>,
6044         by Rahul Das <bokul_4u@yahoo.com> in
6045         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6046         and by Eli Zaretskii <eliz@gnu.org> in
6047         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6048         * lib/sys_socket.in.h (socklen_t): Remove definition.
6050 2020-06-29  Bruno Haible  <bruno@clisp.org>
6052         alloca-opt: Fix warning on mingw.
6053         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6054         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6055         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6056         whether alloca is defined.
6058 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6060         getrandom: do not depend on ‘open’ on mingw
6061         Similarly for at-internal, getloadavg.  These modules do not call
6062         the ‘open’ function when they are compiled on mingw.  On mingw,
6063         this avoids having to compile open.c when building Emacs, which
6064         does its own thing with ‘open’.
6065         * modules/at-internal, modules/getloadavg, modules/getrandom:
6066         (Depends-on): Don’t depend on ‘open’ on mingw.
6067         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6068         * modules/getloadavg (Depends-on):
6069         Depend on intprops, open, stdbool, stdlib only if compiling
6070         getloadavg.c.
6072 2020-06-28  Bruno Haible  <bruno@clisp.org>
6074         doc: Add a note about sigprocmask vs. pthread_sigmask.
6075         * doc/posix-functions/sigprocmask.texi: Add note.
6077 2020-06-28  Bruno Haible  <bruno@clisp.org>
6079         getrandom: Fix compilation errors on older versions of mingw.
6080         Reported by Eli Zaretskii <eliz@gnu.org> in
6081         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6082         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6083         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6084         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6085         BCryptGenRandom ourselves.
6087 2020-06-28  Bruno Haible  <bruno@clisp.org>
6089         clean-temp: Fix wrong errno in error message.
6090         * lib/clean-temp.c (create_temp_dir): Save errno around
6091         unblock_fatal_signals call.
6093 2020-06-27  Bruno Haible  <bruno@clisp.org>
6095         fatal-signal: Make multithread-safe.
6096         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6098 2020-06-27  Bruno Haible  <bruno@clisp.org>
6100         clean-temp: Don't force deletion of temporary files on native Windows.
6101         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6102         argument.
6103         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6104         * NEWS: Mention the change.
6105         * lib/javacomp.c (write_temp_file): Update.
6107 2020-06-27  Bruno Haible  <bruno@clisp.org>
6109         fatal-signal: Make multithread-safe.
6110         * lib/fatal-signal.c: Include glthread/lock.h.
6111         (at_fatal_signal_lock): New variable.
6112         (at_fatal_signal): Use it.
6113         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6114         (block_fatal_signals, unblock_fatal_signals): Use them.
6115         * modules/fatal-signal (Depends-on): Add lock.
6117 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6119         getloadavg: don’t depend on fopen-gnu
6120         This is for Emacs, which does not need fopen-gnu for anything else,
6121         and which would need it only on a NetBSD platform where getloadavg
6122         does not work (does that even happen?).
6123         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6124         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6126         * tests/test-getloadavg.c (main): Fix typo.
6128 2020-06-27  Bruno Haible  <bruno@clisp.org>
6130         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6131         * modules/tempname (Link): New section.
6132         * modules/mkdtemp (Link): Likewise.
6133         * modules/clean-temp (Link): Likewise.
6134         * modules/mkstemp (Link): Likewise.
6135         * modules/stdlib-safer (Link): Likewise.
6136         * modules/mkstemps (Link): Likewise.
6137         * modules/mkostemp (Link): Likewise.
6138         * modules/mkostemps (Link): Likewise.
6139         * modules/tmpfile (Link): Likewise.
6140         * modules/tmpfile-safer (Link): Likewise.
6141         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6142         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6143         $(LIB_GETRANDOM).
6144         * NEWS: Mention the changes.
6146 2020-06-27  Bruno Haible  <bruno@clisp.org>
6148         fopen-gnu: Simplify code.
6149         * lib/fopen.c: Include <stdbool.h>.
6150         (rpl_fopen): Use a single variable open_flags instead of
6151         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6152         * modules/fopen (Depends-on): Add stdbool.
6154 2020-06-26  Bruno Haible  <bruno@clisp.org>
6156         canonicalize: Improve documentation.
6157         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6158         return convention.
6160 2020-06-26  Bruno Haible  <bruno@clisp.org>
6162         xgetcwd: Improve documentation.
6163         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6165 2020-06-26  Bruno Haible  <bruno@clisp.org>
6167         getcwd: Improve documentation.
6168         * lib/getcwd.c (__getcwd): Document the failure return convention.
6170 2020-06-26  Bruno Haible  <bruno@clisp.org>
6172         fchdir: Improve documentation.
6173         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6174         convention.
6176 2020-06-26  Bruno Haible  <bruno@clisp.org>
6178         filenamecat-lgpl: Set errno upon failure.
6179         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6180         return convention.
6181         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6183 2020-06-26  Bruno Haible  <bruno@clisp.org>
6185         areadlink-with-size: Set errno upon failure.
6186         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6187         fails.
6188         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6190 2020-06-26  Bruno Haible  <bruno@clisp.org>
6192         copy-file: Shrink dependencies.
6193         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6194         qcopy-acl.
6196 2020-06-26  Bruno Haible  <bruno@clisp.org>
6198         doc: Mention declaration fixes implemented by some modules.
6199         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6200         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6201         declaration appear in <unistd.h>.
6202         * doc/posix-functions/dup.texi: Likewise.
6203         * doc/posix-functions/dup2.texi: Likewise.
6204         * doc/posix-functions/gethostname.texi: Likewise.
6205         * doc/posix-functions/isatty.texi: Likewise.
6206         * doc/posix-functions/lseek.texi: Likewise.
6207         * doc/posix-functions/unlink.texi: Likewise.
6208         * doc/posix-functions/read.texi: Mention the module 'read'.
6209         * doc/posix-functions/write.texi: Mention the effects of the module
6210         'write'.
6212 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6214         c-dtoastr, c-ldtoastr: new modules
6215         These modules provide the same functionality as the modules
6216         dtoastr and ldtoastr except for the formatting taking place in the
6217         C locale.
6218         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6219         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6220         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6221         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6222         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6223         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6224         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6225         modules/c-ldtoastr-tests: New files.
6226         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6227         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6229 2020-06-21  Bruno Haible  <bruno@clisp.org>
6231         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6232         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6234 2020-06-16  Bruno Haible  <bruno@clisp.org>
6236         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6237         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6239 2020-06-16  Bruno Haible  <bruno@clisp.org>
6241         thread, thrd: Avoid a compiler warning.
6242         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6244 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6246         windows-thread: Avoid a compiler warning.
6247         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6248         void.
6249         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6251 2020-06-15  Bruno Haible  <bruno@clisp.org>
6253         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6254         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6255         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6256         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6257         first.
6259 2020-06-06  Bruno Haible  <bruno@clisp.org>
6261         calloc-gnu tests: Avoid a test failure with clang.
6262         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6263         'volatile', to defeat compiler optimizations.
6265 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6267         getloadavg: fix double-increment bug
6268         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6269         Linux without glibc, Android, Cygwin.  This fixes a bug I
6270         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6271         Problem and fix reported by Semen Verchenko in:
6272         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6274         tempname: use getrandom, not getentropy
6275         This removes a dependency, as getentropy depends on getrandom.
6276         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6277         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6278         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6280 2020-06-01  Bruno Haible  <bruno@clisp.org>
6282         doc: New chapter 'Multithreading'.
6283         * doc/multithread.texi: New file.
6284         * doc/gnulib.texi: Include it.
6286 2020-06-01  Bruno Haible  <bruno@clisp.org>
6288         doc: Move 'Running self-tests under valgrind' section.
6289         * doc/gnulib.texi (Build Infrastructure Modules): Include
6290         valgrind-tests.texi here...
6291         (Miscellaneous Notes): ... not here.
6293 2020-06-01  Bruno Haible  <bruno@clisp.org>
6295         doc: Move 'Visual Studio Compatibility' section.
6296         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6297         here...
6298         (Build Infrastructure Modules): ... not here.
6300 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6302         doc: improve randomness discussion
6303         Inspired by comments from Jeffrey Walton in:
6304         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6305         * doc/glibc-functions/getentropy.texi (getentropy):
6306         * doc/glibc-functions/getrandom.texi (getrandom):
6307         Improve discussion of problems with "random" data,
6308         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6310 2020-06-01  Bruno Haible  <bruno@clisp.org>
6312         doc: Fix Texinfo syntax error.
6313         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6315 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6317         doc: Change '.' to '@.' where appropriate.
6318         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6319         * doc/glibc-functions/fstatfs.texi: Likewise.
6320         * doc/glibc-functions/fts_children.texi: Likewise.
6321         * doc/glibc-functions/fts_read.texi: Likewise.
6322         * doc/glibc-functions/getdirentries.texi: Likewise.
6323         * doc/glibc-functions/mkostemp.texi: Likewise.
6324         * doc/glibc-functions/mkostemps.texi: Likewise.
6325         * doc/glibc-functions/mkstemps.texi: Likewise.
6326         * doc/glibc-functions/preadv.texi: Likewise.
6327         * doc/glibc-functions/pwritev.texi: Likewise.
6328         * doc/glibc-functions/sendfile.texi: Likewise.
6329         * doc/glibc-functions/statfs.texi: Likewise.
6330         * doc/gnulib-intro.texi: Likewise.
6331         * doc/gnulib-tool.texi: Likewise.
6332         * doc/intprops.texi: Likewise.
6333         * doc/lib-symbol-visibility.texi: Likewise.
6334         * doc/licenses-texi.texi: Likewise.
6335         * doc/pastposix-functions/bcmp.texi: Likewise.
6336         * doc/pastposix-functions/bcopy.texi: Likewise.
6337         * doc/pastposix-functions/bzero.texi: Likewise.
6338         * doc/pastposix-functions/ecvt.texi: Likewise.
6339         * doc/pastposix-functions/fcvt.texi: Likewise.
6340         * doc/pastposix-functions/ftime.texi: Likewise.
6341         * doc/pastposix-functions/gcvt.texi: Likewise.
6342         * doc/pastposix-functions/getwd.texi: Likewise.
6343         * doc/pastposix-functions/index.texi: Likewise.
6344         * doc/pastposix-functions/mktemp.texi: Likewise.
6345         * doc/pastposix-functions/rindex.texi: Likewise.
6346         * doc/pastposix-functions/wcswcs.texi: Likewise.
6347         * doc/posix-functions/aio_cancel.texi: Likewise.
6348         * doc/posix-functions/aio_error.texi: Likewise.
6349         * doc/posix-functions/aio_fsync.texi: Likewise.
6350         * doc/posix-functions/aio_read.texi: Likewise.
6351         * doc/posix-functions/aio_return.texi: Likewise.
6352         * doc/posix-functions/aio_suspend.texi: Likewise.
6353         * doc/posix-functions/aio_write.texi: Likewise.
6354         * doc/posix-functions/creat.texi: Likewise.
6355         * doc/posix-functions/ctime.texi: Likewise.
6356         * doc/posix-functions/daylight.texi: Likewise.
6357         * doc/posix-functions/fgetpos.texi: Likewise.
6358         * doc/posix-functions/fopen.texi: Likewise.
6359         * doc/posix-functions/freopen.texi: Likewise.
6360         * doc/posix-functions/fseeko.texi: Likewise.
6361         * doc/posix-functions/fsetpos.texi: Likewise.
6362         * doc/posix-functions/fstatat.texi: Likewise.
6363         * doc/posix-functions/fstatvfs.texi: Likewise.
6364         * doc/posix-functions/ftello.texi: Likewise.
6365         * doc/posix-functions/ftruncate.texi: Likewise.
6366         * doc/posix-functions/getrlimit.texi: Likewise.
6367         * doc/posix-functions/lio_listio.texi: Likewise.
6368         * doc/posix-functions/localtime.texi: Likewise.
6369         * doc/posix-functions/lseek.texi: Likewise.
6370         * doc/posix-functions/mkstemp.texi: Likewise.
6371         * doc/posix-functions/mktime.texi: Likewise.
6372         * doc/posix-functions/open.texi: Likewise.
6373         * doc/posix-functions/openat.texi: Likewise.
6374         * doc/posix-functions/opendir.texi: Likewise.
6375         * doc/posix-functions/pread.texi: Likewise.
6376         * doc/posix-functions/pwrite.texi: Likewise.
6377         * doc/posix-functions/readdir.texi: Likewise.
6378         * doc/posix-functions/readdir_r.texi: Likewise.
6379         * doc/posix-functions/scandir.texi: Likewise.
6380         * doc/posix-functions/seekdir.texi: Likewise.
6381         * doc/posix-functions/setrlimit.texi: Likewise.
6382         * doc/posix-functions/statvfs.texi: Likewise.
6383         * doc/posix-functions/strftime.texi: Likewise.
6384         * doc/posix-functions/telldir.texi: Likewise.
6385         * doc/posix-functions/timezone.texi: Likewise.
6386         * doc/posix-functions/tmpfile.texi: Likewise.
6387         * doc/posix-functions/truncate.texi: Likewise.
6388         * doc/posix-functions/tzname.texi: Likewise.
6389         * doc/posix-functions/wcsftime.texi: Likewise.
6390         * doc/windows-sockets.texi: Likewise.
6392 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6394         getrandom-tests: do not assume GRND_RANDOM yields short read
6395         * tests/test-getrandom.c (main): Omit assertion that
6396         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6397         when b’s size is 100000.  This assertion fails with Linux kernel
6398         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6399         The separate blocking pool is going away in the Linux kernel, and
6400         they’ve added a flag GRND_INSECURE instead; see:
6401         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6402         The assertion was iffy anyway; what’s to prevent a kernel from
6403         lazily filling a large buffer with random bytes?
6405         read-file-test: pacify --enable-gcc-warnings
6406         * tests/test-read-file.c (test_read_file): Now static.
6408         tempname: merge from glibc and coreutils
6409         Also, merge in Gnulib’s more-recent methods of making it easier
6410         to share between Gnulib and glibc, and fix a few randomness
6411         glitches.
6412         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6413         (__set_errno): Remove; libc-config.h does that for us.
6414         Do not include <sys/time.h>.
6415         (__secure_getenv) [_LIBC]: New macro.
6416         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6417         (RANDOM_BITS): Rewrite.
6418         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6419         (random_value): New typedef.
6420         (try_file, try_dir, try_nocreate): Move up.
6421         (gen_tempname_len, try_tempname_len): New functions.
6422         (gen_tempname_len): Use a constant array rather than a switch.
6423         (try_tempname_len): Don’t assume string length fits in int.
6424         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6425         has enough entropy (it’s a bit short).
6426         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6427         (__try_tempname): Rewrite in terms of try_tempname_len.
6428         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6429         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6430         Add getentropy, libc-config.
6432 2020-05-31  Bruno Haible  <bruno@clisp.org>
6434         getrandom, getentropy: Mention the crypto/gc-random module.
6435         Suggested by Simon Josefsson in
6436         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6437         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6438         crypto/gc-random module.
6439         * doc/glibc-functions/getentropy.texi: Likewise.
6441 2020-05-31  Bruno Haible  <bruno@clisp.org>
6443         getentropy: Enhance tests.
6444         * tests/test-getentropy.c (main): Add one more test.
6445         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6447 2020-05-31  Bruno Haible  <bruno@clisp.org>
6449         getentropy: Work around a macOS and Solaris problem.
6450         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6451         'getentropy' module.
6452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6453         UNISTD_H_HAVE_SYS_RANDOM_H.
6454         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6455         UNISTD_H_HAVE_SYS_RANDOM_H.
6456         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6457         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6458         problem. List more platforms.
6460 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6462         fnmatch: merge from glibc
6463         Also, merge in Gnulib’s more-recent methods of making it easier
6464         to share between Gnulib and glibc.
6465         * lib/fnmatch.c: Reorder includes to match glibc better.
6466         Include libc-config.h instead of config.h.
6467         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6468         Do not include "../locale/elem-hash.h" if _LIBC.
6469         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6470         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6471         Include intprops.h, since glibc has it now.
6472         (SIZE_MAX): Remove; use (size_t) -1 instead.
6473         Omit the "Comment out all this code" ifdef, since Gnulib
6474         has never really needed it.
6475         (STREQ): Remove; no longer used.
6476         (__libc_use_alloca, alloca, alloca_account): Define as
6477         needed if !_LIBC.
6478         (ISWCTYPE): Remove; all uses replaced by iswctype.
6479         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6480         (internal_function): Remove.  All uses removed.
6481         (STRUCT): New macro.
6482         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6483         (WMEMCMP): New macro.
6484         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6485         and <locale/weightwc.h>.
6486         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6487         __builtin_expect.  Check for integer overflow more
6488         systematically.  Account for alloca storage better when
6489         recursive.  Use strnlen instead of strlen for efficiency.
6490         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6491         (struct STRUCT): New type.
6492         (FCT, EXT): New ENDS and ALLOCA_USED args.
6493         All callers changed.
6494         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6495         Simplify by assuming WIDE_CHAR_SUPPORT.
6496         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6497         Cast cold to UCHAR to avoid signedness warning.
6498         (END): Check for invalid pattern.
6499         (EXT): Improve alloca/malloc checking (taken from glibc),
6500         and improve it some more by using intprops.h and checking
6501         for integer overflow and using bool for booleans.
6502         * lib/libc-config.h (compat_symbol): New macro.
6503         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6504         acceptable to non-GCC when a trailing semicolon is added.
6505         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6506         libc-config, strnlen.  Remove alloca.
6508 2020-05-31  Bruno Haible  <bruno@clisp.org>
6510         getrandom: Doc and test tweaks.
6511         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6512         it sets errno when failing.
6513         * tests/test-getrandom.c (main): Disable the high-quality check on those
6514         platforms on which it fails.
6515         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
6516         Cygwin to the list of platforms that don't have the function. Add a note
6517         about the quality of the result.
6518         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
6519         declaration; this is fixed by module 'getrandom'.
6521 2020-05-31  Bruno Haible  <bruno@clisp.org>
6523         getrandom: Add support for native Windows.
6524         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
6525         <wincrypt.h>.
6526         (CRYPT_VERIFY_CONTEXT): New macro.
6527         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
6528         'A'.
6529         (GetProcAddress): New macro.
6530         (BCryptGenRandomFuncType): New type.
6531         (BCryptGenRandomFunc, initialized): New variables.
6532         (initialize): New function.
6533         (getrandom): On native Windows, use <bcrypt.h> API when available, and
6534         <wincrypt.h> API as fallback.
6535         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
6536         * modules/getrandom (Link): New section.
6537         * modules/getentropy (Link): Likewise.
6538         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
6539         $(LIB_GETRANDOM).
6540         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
6541         $(LIB_GETRANDOM).
6542         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
6543         against $(LIB_GETRANDOM).
6544         * doc/glibc-functions/getrandom.texi: Mention the native Windows
6545         support.
6547 2020-05-31  Bruno Haible  <bruno@clisp.org>
6549         getrandom: Simplify the determination of the random number devices.
6550         Suggested by Paul Eggert in
6551         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
6552         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
6553         macros.
6554         * modules/getrandom (Depends-on): Remove crypto/gc-random.
6556 2020-05-31  Bruno Haible  <bruno@clisp.org>
6558         crypto/gc-random: Fix list of crypto devices for Solaris.
6559         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
6561 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
6563         list: fix GCC warnings
6564         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
6565         (gl_tree_next_node, gl_tree_node_nx_set_value)
6566         (gl_tree_previous_node, gl_tree_next_node):
6567         Mark unused arguments.
6568         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
6569         * lib/gl_anylinked_list2.h (gl_linked_node_value)
6570         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
6572         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
6573         the same variable name in nested scopes.
6575 2020-05-31  Bruno Haible  <bruno@clisp.org>
6577         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
6578         Reported by Akim Demaille in
6579         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
6580         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
6581         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
6582         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
6583         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
6584         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
6586 2020-05-30  Bruno Haible  <bruno@clisp.org>
6588         wmemchr: Relicense under LGPLv2+.
6589         * modules/wmemchr (License): Set to LGPLv2+.
6591 2020-05-30  Bruno Haible  <bruno@clisp.org>
6593         wmempcpy: New module.
6594         Reported by Paul Eggert in
6595         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6596         * lib/wchar.in.h (wmempcpy): New declaration.
6597         * lib/wmempcpy.c: New file.
6598         * m4/wmempcpy.m4: New file.
6599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6601         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6602         HAVE_WMEMPCPY.
6603         * modules/wmempcpy: New file.
6604         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6605         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6606         * modules/mempcpy (Description): Fix typo.
6608 2020-05-30  Bruno Haible  <bruno@clisp.org>
6610         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
6611         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6613 2020-05-30  Bruno Haible  <bruno@clisp.org>
6615         sys_random: Work around macOS bug.
6616         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6617         <stdlib.h> before <sys/random.h>.
6618         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6619         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6620         first.
6621         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6623 2020-05-30  Bruno Haible  <bruno@clisp.org>
6625         getrandom: Override incompatible system function on Solaris 11.
6626         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6627         * lib/getrandom.c (getrandom): When the system has getrandom, just
6628         invoke it.
6629         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6630         system's getrandom function's prototype is not the expected one.
6631         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6632         REPLACE_GETRANDOM.
6633         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6634         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6635         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6636         EAGAIN.
6637         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6638         Solaris problem.
6640 2020-05-30  Bruno Haible  <bruno@clisp.org>
6642         sys_random: Add C++ tests.
6643         * tests/test-sys_random-c++.cc: New file.
6644         * modules/sys_random-c++-tests: New file.
6645         * modules/sys_random-tests (Depends-on): Depend on it.
6647         sys_random: Add tests.
6648         * tests/test-sys_random.c: New file.
6649         * modules/sys_random-tests: New file.
6651         sys_random: New module.
6652         * lib/sys_random.in.h: Use the common idioms for overridable header
6653         files.
6654         * m4/sys_random_h.m4: New file.
6655         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6656         * modules/sys_random: New file.
6657         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6658         (Depends-on): Add sys_random.
6659         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6660         gl_UNISTD_MODULE_INDICATOR.
6661         (Makefile.am): Don't generate sys/random.h here.
6662         * doc/glibc-headers/sys_random.texi: New file.
6663         * doc/gnulib.texi: Include it.
6665 2020-05-30  Bruno Haible  <bruno@clisp.org>
6667         unistd: Remove conflicting declaration of getrandom().
6668         * lib/unistd.in.h (getrandom): Remove declaration.
6669         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6670         declared.
6671         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6672         HAVE_GETRANDOM.
6673         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6674         HAVE_GETRANDOM.
6676 2020-05-30  Bruno Haible  <bruno@clisp.org>
6678         getrandom: Add tests.
6679         * tests/test-getrandom.c: New file.
6680         * modules/getrandom-tests: New file.
6682 2020-05-30  Bruno Haible  <bruno@clisp.org>
6684         crypto/gc-random: Fix link error on MSVC.
6685         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6686         * modules/crypto/gc-random (Link): New section.
6687         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6688         $(LIB_GC_RANDOM).
6690 2020-05-30  Bruno Haible  <bruno@clisp.org>
6692         Don't assume that UNICODE is not defined.
6693         Many Windows API functions are defined differently (redirecting to a
6694         function with suffix 'W') if the application defines the macro UNICODE
6695         than by default (redirecting to a function with suffix 'A').
6696         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6697         variant with suffix 'A'.
6698         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6699         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6700         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6701         * lib/getlogin.c (GetUserName): Likewise.
6702         * lib/getlogin_r.c (GetUserName): Likewise.
6703         * lib/gettimeofday.c (LoadLibrary): Likewise.
6704         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6705         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6706         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6707         * lib/mountlist.c (GetDriveType): Likewise.
6708         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6709         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6710         Likewise.
6711         * lib/physmem.c (GetModuleHandle): Likewise.
6712         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6713         PeekMessage, DispatchMessage): Likewise.
6714         * lib/progreloc.c (GetModuleFileName): Likewise.
6715         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6716         * lib/read.c (GetNamedPipeHandleState): Likewise.
6717         * lib/readdir.c (FindNextFile): Likewise.
6718         * lib/relocatable.c (GetModuleFileName): Likewise.
6719         * lib/rename.c (MoveFileEx): Likewise.
6720         * lib/rewinddir.c (FindFirstFile): Likewise.
6721         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6722         PeekMessage, DispatchMessage): Likewise.
6723         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6724         * lib/socket.c (WSASocket): Likewise.
6725         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6726         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6727         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6728         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6729         * lib/tmpdir.c (GetTempPath): Likewise.
6730         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6731         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6732         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6733         * lib/windows-cond.c (CreateEvent): Likewise.
6734         * lib/windows-rwlock.c (CreateEvent): Likewise.
6735         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6736         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6737         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6738         * lib/write.c (GetNamedPipeHandleState): Likewise.
6740 2020-05-30  Bruno Haible  <bruno@clisp.org>
6742         physmem: Fix compilation errors on MSVC.
6743         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6744         * modules/physmem (Depends-on): Add unistd.
6746 2020-05-29  Bruno Haible  <bruno@clisp.org>
6748         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6749         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6750         LDADD a second time, after the second occurrence of libtests.a.
6751         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6753 2020-05-29  Bruno Haible  <bruno@clisp.org>
6755         fnmatch: Rely on more gnulib modules.
6756         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6757         wmempcpy, mempcpy.
6758         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6759         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6760         HAVE_MEMPCPY are all 1.
6761         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6762         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6764 2020-05-29  Bruno Haible  <bruno@clisp.org>
6766         Avoid dynamic lookup of Windows API functions when possible.
6767         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6768         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6769         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6770         (use_win32_p): Define differently.
6771         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6772         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6773         for Windows XP or higher.
6775 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6777         read-file: disable buffering if RF_SENSITIVE is set
6778         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6779         Suggested by Glenn Strauss.
6780         (fread_file): Suggest calling setvbuf before calling this
6781         function.  Suggested by Bruno Haible.
6783 2020-05-29  Bruno Haible  <bruno@clisp.org>
6785         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6786         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6787         program.
6788         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6789         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6790         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6791         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6793 2020-05-29  Bruno Haible  <bruno@clisp.org>
6795         Fix compilation error on native Windows (regression from 2020-05-28).
6796         Reported by Daiki Ueno.
6797         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6798         macro when not using dynamic loading.
6799         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6800         QueryFullProcessImageNameFunc): Likewise.
6801         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6802         GetFinalPathNameByHandleFunc): Likewise.
6804 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6806         fopen-gnu-tests: fix "\x" escape usage
6807         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6809 2020-05-28  Bruno Haible  <bruno@clisp.org>
6811         Avoid dynamic loading of Windows API functions when possible.
6812         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6813         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6814         * lib/gettimeofday.c (GetProcAddress,
6815         GetSystemTimePreciseAsFileTimeFuncType,
6816         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6817         define in a build for Windows 8 or higher.
6818         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6819         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6820         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6821         in a build for Windows Vista or higher.
6822         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6823         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6824         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6826 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6828         explicit_bzero-tests: improve -Wmissing-declarations pacification
6829         * tests/test-explicit_bzero.c: Now noinline.
6830         Suggested by Bruno Haible in:
6831         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6833 2020-05-28  Bruno Haible  <bruno@clisp.org>
6835         Fix build errors due to read-file changes (regression from 2020-05-27).
6836         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6837         invocation.
6838         * tests/test-sameacls.c (main): Likewise.
6839         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6840         read_binary_file.
6841         * tests/test-pipe-filter-ii1.c (main): Likewise.
6843 2020-05-28  Bruno Haible  <bruno@clisp.org>
6845         fts: Make more robust in multithreaded applications.
6846         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6847         * modules/fts (Depends-on): Add 'open'.
6849 2020-05-28  Bruno Haible  <bruno@clisp.org>
6851         relocatable-prog: Make more robust in multithreaded applications.
6852         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6853         relocatable-prog-wrapper.
6854         (find_executable): Pass an O_CLOEXEC flag to open().
6855         * modules/relocatable-prog (Depends-on): Add 'open'.
6857 2020-05-28  Bruno Haible  <bruno@clisp.org>
6859         getloadavg: Make more robust in multithreaded applications.
6860         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6861         Simplify use of O_CLOEXEC.
6862         * modules/getloadavg (Depends-on): Add 'open'.
6864 2020-05-28  Bruno Haible  <bruno@clisp.org>
6866         vma-iter: Make more robust in multithreaded applications.
6867         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6868         open().
6869         * modules/vma-iter (Depends-on): Add 'open'.
6871 2020-05-28  Bruno Haible  <bruno@clisp.org>
6873         truncate: Make more robust in multithreaded applications.
6874         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6876 2020-05-28  Bruno Haible  <bruno@clisp.org>
6878         pagealign_alloc: Make more robust in multithreaded applications.
6879         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6880         open().
6881         * modules/pagealign_alloc (Depends-on): Add 'open'.
6883 2020-05-28  Bruno Haible  <bruno@clisp.org>
6885         openat: Make more robust in multithreaded applications.
6886         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6888 2020-05-28  Bruno Haible  <bruno@clisp.org>
6890         at-internal: Make more robust in multithreaded applications.
6891         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6892         open().
6894 2020-05-28  Bruno Haible  <bruno@clisp.org>
6896         mountlist: Make more robust in multithreaded applications.
6897         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6898         open().
6899         * modules/mountlist (Depends-on): Add 'open'.
6901 2020-05-28  Bruno Haible  <bruno@clisp.org>
6903         login_tty: Make more robust in multithreaded applications.
6904         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6905         * modules/login_tty (Depends-on): Add 'open'.
6907 2020-05-28  Bruno Haible  <bruno@clisp.org>
6909         javacomp: Make more robust in multithreaded applications.
6910         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6911         open().
6912         * modules/javacomp (Depends-on): Add 'open'.
6914 2020-05-28  Bruno Haible  <bruno@clisp.org>
6916         getprogname: Make more robust in multithreaded applications.
6917         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6918         * modules/getprogname (Depends-on): Add 'open'.
6920 2020-05-28  Bruno Haible  <bruno@clisp.org>
6922         get_progname_of: Make more robust in multithreaded applications.
6923         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6924         open().
6925         * modules/get_progname_of (Depends-on): Add 'open'.
6927 2020-05-28  Bruno Haible  <bruno@clisp.org>
6929         get_ppid_of: Make more robust in multithreaded applications.
6930         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6931         * modules/get_ppid_of (Depends-on): Add 'open'.
6933 2020-05-28  Bruno Haible  <bruno@clisp.org>
6935         get-rusage-as: Make more robust in multithreaded applications.
6936         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
6937         flag to open().
6938         * modules/get-rusage-as (Depends-on): Add 'open'.
6940 2020-05-28  Bruno Haible  <bruno@clisp.org>
6942         crypto/gc: Make more robust in multithreaded applications.
6943         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
6944         * modules/crypto/gc (Depends-on): Add 'open'.
6946 2020-05-28  Bruno Haible  <bruno@clisp.org>
6948         copy-file: Make more robust in multithreaded applications.
6949         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6950         open().
6952 2020-05-28  Bruno Haible  <bruno@clisp.org>
6954         chown: Make more robust in multithreaded applications.
6955         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6957 2020-05-28  Bruno Haible  <bruno@clisp.org>
6959         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6960         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6962 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6964         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6965         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6966         specified on Windows.
6967         * tests/test-fopen-gnu.c (DATA): New define.
6968         (main): Add test for reading binary files with an 'e' flag.
6970 2020-05-27  Bruno Haible  <bruno@clisp.org>
6972         Don't assume that UNICODE is not defined.
6973         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6974         differently if the application defines the macro UNICODE.
6975         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6976         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6977         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6978         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6979         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6981 2020-05-27  Bruno Haible  <bruno@clisp.org>
6983         Improve pattern for defining _WIN32_WINNT.
6984         Newer versions of the Windows API may not only add, but also remove API
6985         functions. Therefore, when the user is e.g. building for Windows 10, we
6986         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6987         use of APIs that were present in Windows 8 but removed in Windows 10.
6988         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6990         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6991         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6992         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6994 2020-05-27  Bruno Haible  <bruno@clisp.org>
6996         javacomp: Make more robust in multithreaded applications.
6997         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6998         * modules/javacomp (Depends-on): Add fopen-gnu.
7000 2020-05-27  Bruno Haible  <bruno@clisp.org>
7002         mountlist: Make more robust in multithreaded applications.
7003         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7004         to fopen.
7005         * modules/mountlist (Depends-on): Add fopen-gnu.
7007 2020-05-27  Bruno Haible  <bruno@clisp.org>
7009         sethostname: Make more robust in multithreaded applications.
7010         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7011         * modules/sethostname (Depends-on): Add fopen-gnu.
7013 2020-05-27  Bruno Haible  <bruno@clisp.org>
7015         readutmp: Make more robust in multithreaded applications.
7016         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7017         * modules/readutmp (Depends-on): Add fopen-gnu.
7019 2020-05-27  Bruno Haible  <bruno@clisp.org>
7021         getpass: Make more robust in multithreaded applications.
7022         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7023         * modules/getpass (Depends-on): Add fopen-gnu.
7025 2020-05-27  Bruno Haible  <bruno@clisp.org>
7027         getloadavg: Make more robust in multithreaded applications.
7028         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7029         * modules/getloadavg (Depends-on): Add fopen-gnu.
7031 2020-05-27  Bruno Haible  <bruno@clisp.org>
7033         exclude: Make more robust in multithreaded applications.
7034         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7035         * modules/exclude (Depends-on): Add fopen-gnu.
7037 2020-05-27  Bruno Haible  <bruno@clisp.org>
7039         bitset: Make more robust in multithreaded applications.
7040         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7041         'e' flag to fopen.
7042         * modules/bitset (Depends-on): Add fopen-gnu.
7044 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7046         read-file: add RF_SENSITIVE flag
7047         * lib/read-file.h (RF_SENSITIVE): New define.
7048         * lib/read-file.c (fread_file, read_file): Take into account of
7049         RF_SENSITIVE flag.
7050         * modules/read-file (Depends-on): Add explicit_bzero.
7051         This adds an alternative behavior of those functions to explicitly
7052         clear the internal memory block when it becomes unused.  This is
7053         useful for reading sensitive information from a file.
7055 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7057         read-file: add flags to modify reading behavior
7058         * lib/read-file.h (RF_BINARY): New define.
7059         (fread_file, read_file): Take FLAGS argument.
7060         (read_binary_file): Remove.
7061         * lib/read-file.c (internal_read_file): Merge into ...
7062         (read_file): ... here.
7063         * modules/read-file-tests (Files): Add "tests/macros.h".
7064         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7065         * NEWS: Mention this change.
7067 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7069         doc/gnulib-intro.texi: add missing "to" in sentence
7070         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7071         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7072         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7074 2020-05-26  Bruno Haible  <bruno@clisp.org>
7076         count-one-bits: Fix MSVC specific code.
7077         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7078         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7079         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7080         using GCC.
7081         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7082         (__popcnt64): In 32-bit mode, define as an inline function.
7083         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7085 2020-05-26  Bruno Haible  <bruno@clisp.org>
7087         argz: Avoid name clashes through argz.h.
7088         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7089         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7090         * lib/argz.h: Don't use __ prefixed identifiers.
7091         (const): Remove definition.
7092         (argz_next): Remove inline definitions.
7094 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7096         read-file: make use of fopen-gnu
7097         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7098         (read_binary_file): Likewise.
7099         * modules/read-file (Depends-on): Add fopen-gnu.
7101 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7103         getentropy, getrandom: new modules
7104         * MODULES.html.sh (func_all_modules):
7105         * lib/unistd.in.h (getentropy, getrandom):
7106         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7107         * modules/unistd (unistd.h):
7108         Add support for getentropy, getrandom.
7109         * doc/glibc-functions/getentropy.texi (getentropy):
7110         * doc/glibc-functions/getrandom.texi (getrandom):
7111         These are now fixed on some platforms.
7112         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7113         * m4/getentropy.m4, m4/getrandom.m4:
7114         * modules/getentropy, modules/getentropy-tests:
7115         * modules/getrandom, modules/getrandom-tests:
7116         * tests/test-getentropy.c, tests/test-getrandom.c:
7117         New files.
7119 2020-05-25  Bruno Haible  <bruno@clisp.org>
7121         Add missing C99 dependencies.
7122         Reported by Paul Smith <psmith@gnu.org> in
7123         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7124         * modules/assert (Depends-on): Add c99.
7125         * modules/filenamecat-lgpl (Depends-on): Likewise.
7126         * modules/libc-config (Depends-on): Likewise.
7127         * modules/mktime (Depends-on): Likewise.
7128         * modules/random_r (Depends-on): Likewise.
7129         * modules/regex (Depends-on): Likewise.
7130         * modules/scratch_buffer (Depends-on): Likewise.
7131         * modules/timespec-add (Depends-on): Likewise.
7132         * modules/timespec-sub (Depends-on): Likewise.
7133         * modules/verify (Depends-on): Likewise.
7135 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7137         explicit_bzero-tests: pacify -Wmissing-declarations
7138         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7139         Now static.
7141 2020-05-24  Bruno Haible  <bruno@clisp.org>
7143         fopen-gnu: Add tests.
7144         * tests/test-fopen-gnu.c: New file.
7145         * modules/fopen-gnu-tests: New file.
7147         fopen-gnu: New module.
7148         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7149         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7150         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7151         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7152         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7153         * modules/fopen-gnu: New file.
7154         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7156 2020-05-24  Bruno Haible  <bruno@clisp.org>
7158         open, openat: Really support O_CLOEXEC.
7159         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7160         O_CLOEXEC flag to orig_open.
7161         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7162         pass a O_CLOEXEC flag to orig_openat.
7163         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7164         * modules/open-tests (Depends-on): Add fcntl.
7165         * modules/openat-tests (Depends-on): Likewise.
7166         * modules/fcntl-safer-tests (Depends-on): Likewise.
7168 2020-05-24  Bruno Haible  <bruno@clisp.org>
7170         fopen: Fix the trailing slash workaround.
7171         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7172         write access. Pass the right flags to open().
7173         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7175 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7177         assure: new macro ‘affirm’
7178         * lib/assure.h: Include verify.h.
7179         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7180         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7181         and commentary by Bruno Haible in:
7182         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7183         * modules/assure (Depends-on:): Add verify.
7185 2020-05-23  Bruno Haible  <bruno@clisp.org>
7187         calloc-gnu: Make test work in non-flat address spaces.
7188         Uses code by Paul Eggert.
7189         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7190         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7192 2020-05-23  Bruno Haible  <bruno@clisp.org>
7194         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7195         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7196         AC_RUN_IFELSE invocations.
7198 2020-05-23  Bruno Haible  <bruno@clisp.org>
7200         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7201         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7202         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7203         don't have it.
7204         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7205         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7206         don't have it.
7207         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7208         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7209         it.
7210         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7211         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7212         it.
7213         * lib/math.in.h (__has_builtin): New macro.
7214         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7215         it.
7216         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7217         it.
7218         (isnan): Don't use the builtins on clang versions that don't have
7219         __builtin_isnanf and __builtin_isnanl.
7221 2020-05-23  Bruno Haible  <bruno@clisp.org>
7223         calloc-gnu: Avoid wrong configure results with clang.
7224         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7225         'volatile', to defeat compiler optimizations.
7227 2020-05-23  Bruno Haible  <bruno@clisp.org>
7229         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7230         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7231         'long double' values by reference, with values taken from a statically
7232         allocated array.
7234 2020-05-23  Bruno Haible  <bruno@clisp.org>
7236         findprog-in: Ignore directories.
7237         Reported by Frederick Eaton via Dmitry Goncharov in
7238         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7239         * lib/findprog-in.c (find_in_given_path): When the file found is a
7240         directory, set errno to EACCES and, during a PATH search, continue
7241         searching.
7242         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7244 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7246         verify: document ‘assume’ better
7247         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7249 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7251         gendocs: Clarify licenses for templates.
7252         * doc/gendocs_template: Add a GNU All-Permissive license notice
7253         and bump Parent-Version.
7254         * doc/gendocs_template_min: Add a GNU All-Permissive license
7255         notice and copy the explanatory comment about the license notice
7256         at the bottom from gendocs_template.
7258 2020-05-21  Bruno Haible  <bruno@clisp.org>
7260         group-member: Relicense under LGPLv2+.
7261         Jim Meyering's approval is in
7262         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7263         Paul Eggert's approval is in
7264         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7265         Eric Blake's approval is in
7266         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7267         * modules/group-member (License): Change to LGPLv2+.
7269 2020-05-21  Bruno Haible  <bruno@clisp.org>
7271         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7272         Reported by Tim Rühsen in
7273         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7274         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7276 2020-05-21  Bruno Haible  <bruno@clisp.org>
7278         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7279         Reported by Tim Rühsen in
7280         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7281         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7282         before returning with status 0.
7284 2020-05-21  Bruno Haible  <bruno@clisp.org>
7286         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7287         Reported by Tim Rühsen in
7288         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7289         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7291 2020-05-21  Bruno Haible  <bruno@clisp.org>
7293         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7294         Reported by Tim Rühsen in
7295         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7296         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7297         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7298         respectively.
7300 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7302         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7305 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7307         ftoastr: fix ifndef typo
7308         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7310 2020-05-19  Bruno Haible  <bruno@clisp.org>
7312         havelib: Tweak documentation.
7313         * doc/havelib.texi (Searching for Libraries): Fix typo.
7315 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7317         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7318         This was needed earlier because modules had to import the main script,
7319         but that is no longer true.  Rename the script so that it is
7320         consistent with all other scripts in gnulib and uses hyphens.
7321         * build-aux/vcs_to_changelog.py: Rename to...
7322         * build-aux/vcs-to-changelog.py: ... this.
7323         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7324         * modules/vcs-to-changelog: Likewise.
7326 2020-05-17  Bruno Haible  <bruno@clisp.org>
7328         Clarify intended usage of the license file modules.
7329         Reported by Asher Gordon <AsDaGo@posteo.net> in
7330         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7331         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7332         GNU AGPL. Explain the intended usage of the modules.
7333         * modules/fdl (Notice): Discourage use as a module.
7334         * modules/fdl-1.3 (Notice): Likewise.
7336 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7338         hash: add hash_xinsert
7339         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7341 2020-05-16  Bruno Haible  <bruno@clisp.org>
7343         findprog-lgpl: Fix link error (existing since 2008-09-02).
7344         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7345         findprog-lgpl.c, not findprog.c.
7346         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7347         XNMALLOC.
7349 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7351         c-stack: pacify -Wunused-result when DEBUG
7352         Problem reported by Marc Nieper-Wißkirchen in:
7353         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7354         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7355         Explicitly ignore write failures.
7357 2020-05-13  Jim Meyering  <meyering@fb.com>
7359         announce-gen: improve a comment
7360         * build-aux/announce-gen: Improve comment.
7362 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7364         xalloc: pacify -Wanalyzer-possible-null-argument
7365         Problem reported for GCC 10.1.0 by Bruno Haible in:
7366         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7367         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7368         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7369         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7371 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7373         careadlinkat: fix GCC 10 workaround
7374         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7375         Massage the code so that it’s closer to what it was before
7376         the GCC 10.1.0 workaround was introduced.  This fixes
7377         a loop when !buffer and the bug workaround is in effect.
7378         Remove unnecessary casts.  Defend in a different way
7379         against (buffer && !buffer_size), by adding at least 1
7380         to buf_size each time through the loop.
7382 2020-05-10  Bruno Haible  <bruno@clisp.org>
7384         doc: Mark HP-UX as unsupported.
7385         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7387 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7389         careadlinkat: limit GCC workaround
7390         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7391         10.1.0 and later, since the workaround is pretty bad and the GCC
7392         bug should get fixed.
7394 2020-05-10  Bruno Haible  <bruno@clisp.org>
7396         havelib: Enhance documentation.
7397         * doc/havelib.texi (Searching for Libraries): Mention the bad
7398         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7400 2020-05-10  Bruno Haible  <bruno@clisp.org>
7402         attribute: Clarify list of attributes.
7403         * lib/attribute.h: Reorder the list of attributes, and group them by
7404         purpose.
7406 2020-05-10  Bruno Haible  <bruno@clisp.org>
7408         string: Fix compilation error in C++ mode.
7409         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7410         _GL_WARN_ON_USE.
7411         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7412         instead of _GL_WARN_ON_USE.
7414 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7416         announce-gen: add support for dist-lzip
7417         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7419 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7421         manywarnings: port to GCC 10.1
7422         * build-aux/gcc-warning.spec:
7423         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7424         Add GCC 10.1.0 warnings.
7426         careadlinkat: pacify -Wreturn-local-addr
7427         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7428         Pacify gcc 10’s -Wreturn-local-addr option.
7429         Simplify some of the later code.
7431 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7433         attribute: remove ATTRIBUTE_DEPRECATED
7434         * lib/attribute.h: Improve recently-added comments, mostly
7435         by shortening them (use active voice, etc.).
7436         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7437         Problem reported by Bruno Haible in:
7438         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7440 2020-05-09  Bruno Haible  <bruno@clisp.org>
7442         attribute: Add comments.
7443         * lib/attribute.h: Document each macro.
7445 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7447         bitset: use the attribute module
7448         * modules/bitset: Depend on 'attribute'.
7449         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7450         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7451         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7452         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7454 2020-05-09  Bruno Haible  <bruno@clisp.org>
7456         c-stack: Fix warning when DEBUG is enabled.
7457         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7458         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7459         * lib/c-stack.c: Include <stdio.h>.
7461 2020-05-09  Bruno Haible  <bruno@clisp.org>
7463         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7464         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7465         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7466         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7467         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7468         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7469         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7470         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7471         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7472         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7473         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7474         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7475         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7477 2020-05-09  Bruno Haible  <bruno@clisp.org>
7479         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7480         Reported by Akim Demaille in
7481         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7482         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7483         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7484         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7486 2020-05-09  Bruno Haible  <bruno@clisp.org>
7488         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7489         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7490         that usually comes from m4/gnulib-common.m4.
7491         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7493 2020-05-09  Bruno Haible  <bruno@clisp.org>
7495         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7496         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7497         that usually comes from m4/gnulib-common.m4.
7498         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7499         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7500         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7502 2020-05-09  Bruno Haible  <bruno@clisp.org>
7504         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7505         * lib/uchar.in.h (char16_t): Define as macro if
7506         GNULIB_OVERRIDES_CHAR16_T.
7507         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7508         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7509         (gl_UCHAR_H): Invoke them.
7510         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7511         GNULIB_OVERRIDES_CHAR32_T.
7512         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7513         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7514         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
7515         GNULIB_OVERRIDES_CHAR32_T.
7517 2020-05-09  Bruno Haible  <bruno@clisp.org>
7519         Macro tweaks.
7520         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
7521         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
7523 2020-05-08  Bruno Haible  <bruno@clisp.org>
7525         c32rtomb: Avoid compilation failure on Haiku.
7526         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
7527         inline definitions.
7528         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
7530 2020-05-08  Bruno Haible  <bruno@clisp.org>
7532         mbrtoc32: Avoid compilation failure on Haiku.
7533         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
7534         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
7535         AC_CHECK_FUNCS_ONCE.
7536         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
7538 2020-05-08  Bruno Haible  <bruno@clisp.org>
7540         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
7541         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
7543 2020-05-08  Bruno Haible  <bruno@clisp.org>
7545         list: Update documentation.
7546         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7547         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
7548         * doc/containers.texi (Container data types): Document the new list
7549         operations and their complexity.
7551 2020-05-08  Bruno Haible  <bruno@clisp.org>
7553         ignore-value tests: Use module 'attribute'.
7554         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
7555         * tests/test-ignore-value.c: Include attribute.h.
7556         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
7557         * modules/ignore-value-tests (Depends-on): Add attribute.
7559 2020-05-08  Bruno Haible  <bruno@clisp.org>
7561         uniname/uniname: Use module 'attribute'.
7562         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
7563         * lib/uniname/uninames.h: Regenerated.
7564         * lib/uniname/uniname.c: Include attribute.h.
7565         * modules/uniname/uniname (Depends-on): Add attribute.
7567 2020-05-08  Bruno Haible  <bruno@clisp.org>
7569         c32rtomb: Use module 'attribute'.
7570         * lib/c32rtomb.c: Include attribute.h.
7571         (FALLTHROUGH): Remove macro.
7572         * modules/c32rtomb (Depends-on): Add attribute.
7574 2020-05-08  Bruno Haible  <bruno@clisp.org>
7576         xsize: Use module 'attribute'.
7577         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
7578         * modules/xsize (Depends-on): Add attribute.
7580 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
7582         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
7584         * lib/attribute.h: Minor style fixes.
7586         Fix version-etc glitch on OpenIndiana
7587         Problem reported by Mats Erik Andersson in:
7588         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
7589         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
7590         that now clashes with gnulib-common.h.  All uses changed.
7592 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7594         attribute: new module
7595         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7596         * MODULES.html.sh: Add attribute.
7597         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7598         * doc/gnulib.texi (Particular Modules): Add Attributes.
7599         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7600         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7601         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7602         * lib/vasnprintf.c:
7603         Include attribute.h, and let it define FALLTHROUGH.
7604         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7605         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7606         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7607         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7608         This is a copy since Gawk doesn’t use Gnulib.
7609         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
7610         is incompatible with gl_COMMON_BODY’s.  All uses changed.
7611         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7612         Keep the existing FALLTHROUGH definition since Glibc might use it,
7613         and it does no harm to Gnulib’s FALLTHROUGH.
7614         * lib/fts_.h, lib/inttostr.h:
7615         (__GNUC_PREREQ): Remove; no longer needed.
7616         (__attribute_warn_unused_result__): Remove.  All uses
7617         replaced by _GL_ATTRIBUTE_NODISCARD.
7618         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7619         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7620         __attribute__ ((__warn_unused_result__)), for forward
7621         compatibility to C2X.
7622         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7623         _GL_ATTRIBUTE_NODISCARD.
7624         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7625         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7626         replaced by gl_COMMON_BODY’s implementation, which has a
7627         slightly different signature.
7628         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7629         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7630         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7631         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7632         No doubt all uses should be replaced, at some point.
7633         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7634         (_Noreturn): Use it.
7635         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7636         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7637         (_GL_ATTRIBUTE_COLD)
7638         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7639         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7640         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7641         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7642         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7643         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7644         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7645         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7646         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7647         (_GL_ATTRIBUTE_SENTINEL): New macros.
7648         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7649         * modules/fnmatch, modules/freopen-safer, modules/fts:
7650         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7651         * modules/quotearg, modules/savewd:
7652         * modules/unistdio/u16-u16-vasnprintf:
7653         * modules/unistdio/u16-vasnprintf:
7654         * modules/unistdio/u32-u32-vasnprintf:
7655         * modules/unistdio/u32-vasnprintf:
7656         * modules/unistdio/u8-u8-vasnprintf:
7657         * modules/unistdio/u8-vasnprintf:
7658         * modules/unistdio/ulc-vasnprintf:
7659         * modules/unistr/u8-uctomb, modules/vasnprintf:
7660         (Depends-on:): Add attribute module.
7662 2020-05-03  Bruno Haible  <bruno@clisp.org>
7664         bison: Fix today's commit.
7665         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7667 2020-05-03  Bruno Haible  <bruno@clisp.org>
7669         list-c++: Add get_first, get_last, set_first, set_last operations.
7670         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7671         set_first, set_last.
7672         * lib/gl_list.h: Tweak comments.
7674 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7676         bison: rely on bison's %require to check a version requirement
7677         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7678         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7679         enough of not.
7680         So far it is the only know Yacc tool that supports '%require'.
7681         Other yaccs will actually even choke on seeing the -o option after the
7682         input file name.
7683         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7685 2020-05-02  Bruno Haible  <bruno@clisp.org>
7687         list: Add get_first, get_last, set_first, set_last operations.
7688         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7689         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7690         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7692 2020-05-02  Bruno Haible  <bruno@clisp.org>
7694         list: Remove redundant code for remove_first and remove_last operations.
7695         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7696         remove_first, remove_last.
7697         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7698         * lib/gl_array_list.c: Revert last change.
7699         * lib/gl_carray_list.c: Likewise.
7700         * lib/gl_anylinked_list2.h: Likewise.
7701         * lib/gl_linked_list.c: Likewise.
7702         * lib/gl_linkedhash_list.c: Likewise.
7703         * lib/gl_anytree_list2.h: Likewise.
7704         * lib/gl_avltree_list.c: Likewise.
7705         * lib/gl_avltreehash_list.c: Likewise.
7706         * lib/gl_rbtree_list.c: Likewise.
7707         * lib/gl_rbtreehash_list.c: Likewise.
7708         * lib/gl_sublist.c: Likewise.
7710 2020-05-02  Bruno Haible  <bruno@clisp.org>
7712         bison-i18n: Add support for cross-compilation.
7713         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7714         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7715         via Akim Demaille <akim@lrde.epita.fr>.
7716         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7717         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7718         Don't use bison's --print-localedir option when cross-compiling.
7719         Also, fix an error message and a comment.
7721 2020-05-01  Bruno Haible  <bruno@clisp.org>
7723         list: Add remove_first and remove_last operations.
7724         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7725         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7726         * lib/gl_list.h (struct gl_list_implementation): Add fields
7727         remove_first, remove_last.
7728         (gl_list_remove_first, gl_list_remove_last): New functions.
7729         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7730         functions, based on gl_array_remove_at.
7731         (gl_array_list_implementation): Implement the new operations.
7732         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7733         New functions, based on gl_carray_remove_at.
7734         (gl_carray_list_implementation): Implement the new operations.
7735         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7736         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7737         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7738         new operations.
7739         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7740         Likewise.
7741         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7742         New functions, based on gl_tree_remove_at.
7743         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7744         new operations.
7745         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7746         Likewise.
7747         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7748         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7749         Likewise.
7750         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7751         New functions, based on gl_sublist_remove_at.
7752         (gl_sublist_list_implementation): Implement the new operations.
7753         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7754         remove_last.
7755         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7756         gl_list_remove_last.
7757         * tests/test-avltree_list.c (main): Likewise.
7758         * tests/test-avltreehash_list.c (main): Likewise.
7759         * tests/test-carray_list.c (main): Likewise.
7760         * tests/test-linked_list.c (main): Likewise.
7761         * tests/test-linkedhash_list.c (main): Likewise.
7762         * tests/test-rbtree_list.c (main): Likewise.
7763         * tests/test-rbtreehash_list.c (main): Likewise.
7765 2020-05-01  Bruno Haible  <bruno@clisp.org>
7767         parse-datetime: Fix a build failure with an older bison version.
7768         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7769         parse-datetime.tab.c if a suitable version of bison was not found.
7771 2020-05-01  Bruno Haible  <bruno@clisp.org>
7773         bison: New module.
7774         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7775         m4/parse-datetime.m4.
7776         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7777         * modules/bison: New file.
7778         * modules/parse-datetime (Files): Remove m4/bison.m4.
7779         (Depends-on): Add bison.
7781 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7783         Update users.txt.
7784         * users.txt: Add poke.
7786 2020-04-28  Bruno Haible  <bruno@clisp.org>
7788         posix_spawn_file_actions_addfchdir tests: Enhance test.
7789         * tests/test-posix_spawn5.c: Include findprog.h.
7790         (test): New function, extracted from main.
7791         (main): Invoke it. Also, invoke it with a program name such as
7792         "bin/pwd".
7793         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7794         findprog.
7796 2020-04-28  Bruno Haible  <bruno@clisp.org>
7798         posix_spawn_file_actions_addchdir tests: Enhance test.
7799         * tests/test-posix_spawn4.c: Include findprog.h.
7800         (test): New function, extracted from main.
7801         (main): Invoke it. Also, invoke it with a program name such as
7802         "bin/pwd".
7803         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7804         findprog.
7806 2020-04-28  Bruno Haible  <bruno@clisp.org>
7808         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7809         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7810         access elements of the wrong union member.
7812 2020-04-27  Bruno Haible  <bruno@clisp.org>
7814         getdate: Remove deprecated module.
7815         * modules/getdate: Remove file.
7816         * doc/getdate.texi: Remove file.
7817         * lib/getdate.h: Remove file.
7818         * NEWS: Mention the removal.
7820 2020-04-27  Bruno Haible  <bruno@clisp.org>
7822         realloc: Remove deprecated module.
7823         * modules/realloc: Remove file.
7824         * NEWS: Mention the removal.
7826 2020-04-27  Bruno Haible  <bruno@clisp.org>
7828         calloc: Remove deprecated module.
7829         * modules/calloc: Remove file.
7830         * NEWS: Mention the removal.
7832 2020-04-27  Bruno Haible  <bruno@clisp.org>
7834         malloc: Remove deprecated module.
7835         * modules/malloc: Remove file.
7836         * NEWS: Mention the removal.
7838 2020-04-27  Bruno Haible  <bruno@clisp.org>
7840         fnmatch-posix: Remove deprecated module.
7841         * modules/fnmatch-posix: Remove file.
7842         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7843         * NEWS: Mention the removal.
7845 2020-04-27  Bruno Haible  <bruno@clisp.org>
7847         pipe: Remove deprecated module.
7848         * modules/pipe: Remove file.
7849         * lib/pipe.h: Remove file.
7850         * NEWS: Mention the removal.
7852 2020-04-27  Bruno Haible  <bruno@clisp.org>
7854         getopt: Remove deprecated module.
7855         * modules/getopt: Remove file.
7856         * NEWS: Mention the removal.
7858 2020-04-27  Bruno Haible  <bruno@clisp.org>
7860         remove-dest-slash: Remove deprecated module.
7861         * modules/rename-dest-slash: Remove file.
7862         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7863         Update.
7864         * NEWS: Mention the removal.
7866 2020-04-27  Bruno Haible  <bruno@clisp.org>
7868         unictype/bidicategory-*: Remove deprecated modules.
7869         * modules/unictype/bidicategory-all: Remove file.
7870         * modules/unictype/bidicategory-byname: Remove file.
7871         * modules/unictype/bidicategory-name: Remove file.
7872         * modules/unictype/bidicategory-of: Remove file.
7873         * modules/unictype/bidicategory-test: Remove file.
7874         * MODULES.html.sh (Unicode string functions): Update.
7875         * NEWS: Mention the removals.
7877 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7879         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7880         From a suggestion by Askar Safin in:
7881         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7882         * lib/fts.c (fts_build): If file types are known, optimize
7883         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7884         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7885         non-directories.
7887 2020-04-19  Bruno Haible  <bruno@clisp.org>
7889         vasnprintf: Add support for printing wide characters using escapes.
7890         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7891         (wctomb_fallback): New function.
7892         (local_wctomb): New function.
7893         (local_wcrtomb): New function or macro.
7894         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7895         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7896         %lc.
7898 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7900         fts: remove NOSTAT_LEAF_OPTIMIZATION
7901         It caused ‘find’ and ‘du’ to dump core, and it was useful
7902         only for obsolescent Linux filesystems anyway.  Problem reported in:
7903         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7904         Quite possibly there is still a serious underlying fts bug with
7905         tight-loop-check and mutating file systems, but if so this patch
7906         should cause the bug to be triggered less often.
7907         * lib/fts.c (enum leaf_optimization): Remove
7908         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7909         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7910         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7911         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7912         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7913         Remove.  All uses removed.
7915 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7917         explicit_bzero: Improve code style.
7918         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7920 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7922         explicit_bzero: On native Windows, use SecureZeroMemory().
7923         * lib/explicit_bzero.c: Include <windows.h>.
7924         (explicit_bzero): On native Windows, use SecureZeroMemory.
7926 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7928         explicit_bzero: Use memset_s() when available.
7929         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7930         (explicit_bzero): Use memset_s when available.
7931         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7933 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7935         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
7936         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
7937         free() that overwrite the memory with canaries.
7939 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
7941         bootstrap: recommend git submodule update --init
7942         Reported by Bruno Haible.
7943         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
7944         * build-aux/bootstrap: recommand "git submodule update --init"
7945         rather than "git submodule init".
7947 2020-04-12  Bruno Haible  <bruno@clisp.org>
7949         explicit_bzero: Add tests.
7950         * tests/test-explicit_bzero.c: New file.
7951         * modules/explicit_bzero-tests: New file.
7953 2020-04-11  Bruno Haible  <bruno@clisp.org>
7955         explicit_bzero: Relicense under LGPLv2+.
7956         Approved by Paul Eggert.
7957         * modules/explicit_bzero (License): Change to LGPLv2+.
7959 2020-04-10  Bruno Haible  <bruno@clisp.org>
7961         findprog, relocatable-prog: Ignore directories during PATH search.
7962         Reported by Frederick Eaton via Dmitry Goncharov in
7963         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7965         * lib/findprog.c (find_in_path): When the file found in a PATH element
7966         is a directory, continue searching.
7967         * modules/findprog (Depends-on): Add sys_stat, stat.
7968         * modules/findprog-lgpl (Depends-on): Likewise.
7970         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7971         element is a directory, continue searching.
7972         * lib/relocwrapper.c: Update comments.
7973         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7974         (configure.ac-early): New section.
7976 2020-04-10  Bruno Haible  <bruno@clisp.org>
7978         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7979         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7980         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7981         * MODULES.html.sh: In a git-less tarball, use the date of the first
7982         ChangeLog entry.
7984 2020-04-04  Bruno Haible  <bruno@clisp.org>
7986         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7987         * m4/gettext.m4: Fix comments regarding the gettext library.
7988         * m4/intl-thread-locale.m4: Likewise.
7989         * m4/intlmacosx.m4: Likewise.
7990         * m4/lcmessage.m4: Likewise.
7991         * m4/nls.m4: Likewise.
7992         * m4/po.m4: Likewise.
7993         * m4/progtest.m4: Likewise.
7995 2020-04-04  Jim Meyering  <meyering@fb.com>
7997         maint: remove a stray inter-word space in a 6x-repeated comment
7998         Induce the changes by running this:
7999           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8000         * build-aux/announce-gen: Change "by  perl" to "by perl".
8001         * build-aux/gitlog-to-changelog: Likewise.
8002         * build-aux/prefix-gnulib-mk: Likewise.
8003         * build-aux/update-copyright: Likewise.
8004         * build-aux/useless-if-before-free: Likewise.
8005         * tests/test-update-copyright.sh: Likewise.
8007 2020-03-28  Bruno Haible  <bruno@clisp.org>
8009         Use module 'filename' instead of module 'dosname'.
8011         * lib/at-func.c: Include filename.h instead of dosname.h.
8012         * lib/unlinkat.c: Likewise.
8013         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8014         * modules/areadlinkat-with-size (Depends-on): Likewise.
8015         * modules/faccessat (Depends-on): Likewise.
8016         * modules/fchmodat (Depends-on): Likewise.
8017         * modules/fchownat (Depends-on): Likewise.
8018         * modules/fstatat (Depends-on): Likewise.
8019         * modules/mkdirat (Depends-on): Likewise.
8020         * modules/mkfifoat (Depends-on): Likewise.
8021         * modules/readlinkat (Depends-on): Likewise.
8022         * modules/selinux-at (Depends-on): Likewise.
8023         * modules/symlinkat (Depends-on): Likewise.
8024         * modules/unlinkat (Depends-on): Likewise.
8025         * modules/utimensat (Depends-on): Likewise.
8027         * lib/at-func2.c: Include filename.h instead of dosname.h.
8028         * modules/linkat (Depends-on): Add filename. Remove dosname.
8029         * modules/renameatu (Depends-on): Likewise.
8031         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8032         * lib/canonicalize-lgpl.c: Likewise.
8033         * modules/canonicalize (Depends-on): Add filename.
8034         * modules/canonicalize-lgpl (Depends-on): Likewise.
8036         * lib/dirname.h: Include filename.h instead of dosname.h.
8037         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8039         * lib/fchdir.c: Include filename.h instead of dosname.h.
8040         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8042         * lib/openat.c: Include filename.h instead of dosname.h.
8043         * modules/openat (Depends-on): Add filename. Remove dosname.
8045         * lib/rmdir.c: Include filename.h instead of dosname.h.
8046         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8048         * lib/savewd.c: Include filename.h instead of dosname.h.
8049         * modules/savewd (Depends-on): Add filename. Remove dosname.
8051         * lib/unlink.c: Include filename.h instead of dosname.h.
8052         * modules/unlink (Depends-on): Add filename. Remove dosname.
8054         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8055         * lib/relocwrapper.c: Update comments.
8057         * modules/lstat (Depends-on): Remove dosname.
8059 2020-03-28  Bruno Haible  <bruno@clisp.org>
8061         dosname: Redirect to 'filename'.
8062         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8063         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8064         * lib/dosname.h: Remove all definitions. Just include filename.h.
8065         * modules/dosname (Status, Notice): Mark as deprecated.
8066         (Depends-on): Add 'filename'.
8068 2020-03-28  Bruno Haible  <bruno@clisp.org>
8070         dosname: Change IS_RELATIVE_FILE_NAME.
8071         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8072         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8073         * NEWS: Mention the change.
8075 2020-03-28  Bruno Haible  <bruno@clisp.org>
8077         filename: Copy some definitions from module 'dosname'.
8078         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8079         (HAS_DEVICE): Document macro.
8080         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8081         (IS_ABSOLUTE_FILE_NAME): Consider
8082         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8083         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8084         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8085         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8086         IS_PATH_WITH_DIR.
8087         (DllMain): Update.
8088         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8089         IS_PATH_WITH_DIR.
8090         (find_executable): Update.
8091         * NEWS: Document the deprecations.
8093 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8095         getopt-posix: port __GETOPT_PREFIX to macOS
8096         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8097         Define to work around a problem with asm on macOS (Bug#40205).
8099 2020-03-22  Bruno Haible  <bruno@clisp.org>
8101         MODULES.html.sh: Add support for reproducible builds.
8102         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8103         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8104         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8105         current date.
8107 2020-03-22  Bruno Haible  <bruno@clisp.org>
8109         Several modules: Depend on stat.
8110         * modules/acl-permissions (Depends-on): Add stat.
8111         * modules/canonicalize (Depends-on): Likewise.
8112         * modules/file-has-acl (Depends-on): Likewise.
8113         * modules/fstat (Depends-on): Likewise.
8114         * modules/fstatat (Depends-on): Likewise.
8115         * modules/glob (Depends-on): Likewise.
8116         * modules/javacomp (Depends-on): Likewise.
8117         * modules/linkat (Depends-on): Likewise.
8118         * modules/mkdir (Depends-on): Likewise.
8119         * modules/pt_chown (Depends-on): Likewise.
8120         * modules/ptsname_r (Depends-on): Likewise.
8121         * modules/readlinkat (Depends-on): Likewise.
8122         * modules/rename (Depends-on): Likewise.
8123         * modules/renameatu (Depends-on): Likewise.
8124         * modules/tmpdir (Depends-on): Likewise.
8125         * modules/utimens (Depends-on): Likewise.
8126         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8127         * modules/same (Depends-on): Remove stat.
8129 2020-03-22  Bruno Haible  <bruno@clisp.org>
8131         acl-permissions: Improve autoconf macro.
8132         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8133         more reliably.
8135 2020-03-22  Bruno Haible  <bruno@clisp.org>
8137         file-has-acl: Fix module description.
8138         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8139         (Depends-on): Depend on acl-permissions unconditionally.
8141 2020-03-21  Bruno Haible  <bruno@clisp.org>
8143         unlink: Ensure errno also on native Windows.
8144         * modules/unlink (Depends-on): Add malloc-posix.
8146 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8148         unlink: fix malloc errno typo
8149         Problem reported by Tim Rühsen in:
8150         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8151         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8153 2020-03-16  Bruno Haible  <bruno@clisp.org>
8155         *printf-posix: Fix m4 error (regression from 2020-03-08).
8156         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8157         brackets in AC_COMPILE_IFELSE invocation.
8159 2020-03-08  Bruno Haible  <bruno@clisp.org>
8161         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8162         * modules/crypto/af_alg (Depends-on): Add fstat.
8163         * modules/renameatu (Depends-on): Likewise.
8164         * modules/same (Depends-on): Likewise.
8165         * modules/term-style-control (Depends-on): Likewise.
8167 2020-03-08  Bruno Haible  <bruno@clisp.org>
8169         *printf-posix: Document why it's overridden on some glibc systems.
8170         Reported by Adrian Bunk <bunk@stusta.de> in
8171         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8172         * doc/posix-functions/*printf.texi: Document the problem with the %n
8173         directive on some glibc systems.
8174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8175         the cross-compilation guesses accordingly.
8177 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8179         open, openat: port to (O_RDWR | O_RDONLY) != 0
8180         Potential portability problem reported by Dan Gohman in:
8181         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8182         * lib/open.c (open):
8183         * lib/openat.c (rpl_openat):
8184         Don’t assume O_RDONLY is disjoint from O_RDWR.
8186 2020-03-07  Bruno Haible  <bruno@clisp.org>
8188         openat: Fix theoretically possible issue on GNU/Hurd.
8189         Reported by Dan Gohman <sunfish@mozilla.com> in
8190         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8191         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8192         ignore the bits that are also set in O_RDONLY.
8194 2020-02-24  Bruno Haible  <bruno@clisp.org>
8196         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8197         Reported by Jens Rehsack <sno@netbsd.org> in
8198         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8199         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8200         cross-compiling.
8202 2020-02-24  Bruno Haible  <bruno@clisp.org>
8204         fcntl: Add witness of gnulib override.
8205         Reported by Jens Rehsack <sno@netbsd.org> in
8206         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8207         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8208         macros.
8210 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8212         Update users.txt.
8213         * users.txt: Add datamash, time.
8215 2020-02-23  Bruno Haible  <bruno@clisp.org>
8217         uni*/base: Use 'restrict'.
8218         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8219         from lib/regex.h.
8220         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8221         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8222         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8223         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8224         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8225         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8226         '_UC_RESTRICT'.
8227         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8228         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8229         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8230         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8231         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8232         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8233         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8234         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8235         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8236         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8237         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8238         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8239         '_UC_RESTRICT'.
8240         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8241         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8242         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8243         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8244         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8245         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8246         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8247         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8249 2020-02-23  Bruno Haible  <bruno@clisp.org>
8251         glob, spawn: Use improved '_Restrict_' definition.
8252         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8253         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8255 2020-02-23  Bruno Haible  <bruno@clisp.org>
8257         crypto/gc: Use 'restrict'.
8258         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8259         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8261         crypto/hmac-*: Use 'restrict'.
8262         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8263         'restrict'.
8264         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8265         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8266         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8267         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8269         crypto/sm3: Use 'restrict'.
8270         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8271         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8273         crypto/*-buffer: Use 'restrict'.
8274         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8275         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8277         crypto/sha512-buffer: Use 'restrict'.
8278         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8279         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8280         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8282         crypto/sha256-buffer: Use 'restrict'.
8283         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8284         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8285         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8287         crypto/sha1-buffer: Use 'restrict'.
8288         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8289         'restrict'.
8290         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8292         crypto/md5-buffer: Use 'restrict'.
8293         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8294         'restrict'.
8295         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8297         crypto/md4: Use 'restrict'.
8298         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8299         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8301         crypto/md2: Use 'restrict'.
8302         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8303         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8305         crypto/rijndael: Use 'restrict'.
8306         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8307         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8308         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8310         crypto/arctwo: Use 'restrict'.
8311         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8312         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8314         crypto/arcfour: Use 'restrict'.
8315         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8316         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8318         careadlinkat: Use 'restrict'.
8319         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8320         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8321         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8323         regex-quote: Use 'restrict'.
8324         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8325         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8327         system-quote: Use 'restrict'.
8328         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8329         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8331         sh-quote: Use 'restrict'.
8332         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8333         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8335         quotearg: Use 'restrict'.
8336         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8337         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8339         parse-datetime: Use 'restrict'.
8340         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8341         'restrict'.
8342         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8344         nstrftime: Use 'restrict'.
8345         * lib/strftime.h (nstrftime): Use 'restrict'.
8346         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8348         mbstok_r: Use 'restrict'.
8349         * lib/string.in.h (mbstok_r): Use 'restrict'.
8351         xmemcoll: Use 'restrict'.
8352         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8353         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8355         memcoll: Use 'restrict'.
8356         * lib/memcoll.h (memcoll): Use 'restrict'.
8357         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8359         vasnprintf: Use 'restrict'.
8360         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8361         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8363         c-vasnprintf: Use 'restrict'.
8364         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8365         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8367         c-vsnprintf: Use 'restrict'.
8368         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8369         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8371         c-snprintf: Use 'restrict'.
8372         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8373         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8375         astrxfrm: Use 'restrict'.
8376         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8377         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8379         amemxfrm: Use 'restrict'.
8380         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8381         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8383 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8385         fchmodat, lchmod: simplify
8386         It appears that we may have overengineered lchmod and fchmodat,
8387         in that the code was prepared for some hypothetical platforms but
8388         was so complicated that it was hard to understand.  I attempted to
8389         improve the situation by simplifying the code when this
8390         simplification should not hurt on real platforms; we can re-add
8391         complexity later to port to platforms I didn’t know about.
8392         * lib/fchmodat.c (fchmodat):
8393         * lib/lchmod.c (lchmod):
8394         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8395         around the /proc code that needs it.
8396         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8397         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8398         Do not include <config.h> twice.
8399         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8400         lchmod on any known hosts.
8401         (lchmod): Do not defer to fchmodat, so that the lchmod module
8402         need not depend on the fchmodat module (which is a circular
8403         dependency).  Do not use openat, since ‘open’ suffices.
8404         Coalesce calls to lchmod/chmod.
8405         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8406         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8407         * modules/lchmod (Depends-on, configure.ac):
8408         * modules/sys_stat (Depends-on):
8409         Do not worry about replacing lchmod, since that shouldn’t happen.
8410         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8411         Do not worry about whether lchmod works on non-symlinks,
8412         since every known lchmod works on non-symlinks.
8413         * modules/lchmod (Depends-on):
8414         Remove circular dependency on fchmodat.
8416 2020-02-22  Bruno Haible  <bruno@clisp.org>
8418         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8419         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8420         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8422 2020-02-22  Bruno Haible  <bruno@clisp.org>
8424         Use 'restrict' in all POSIX function declarations.
8425         * lib/iconv.in.h (iconv): Use 'restrict'.
8426         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8427         * lib/monetary.in.h (strfmon_l): Likewise.
8428         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8429         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8430         pthread_mutex_timedlock, pthread_rwlock_init,
8431         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8432         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8433         * lib/search.in.h (tdelete): Likewise.
8434         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8435         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8436         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8437         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8438         Likewise.
8439         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8440         strtoull): Likewise.
8441         * lib/string.in.h (strncat): Likewise.
8442         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8443         recvfrom): Likewise.
8444         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8445         * lib/time.in.h (strftime): Likewise.
8446         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8447         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8448         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8449         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8450         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8451         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8452         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8454         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8455         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8456         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8459         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8460         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8461         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8462         other *_h.m4 files.
8463         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8465 2020-02-22  Bruno Haible  <bruno@clisp.org>
8467         Update NEWS.
8468         * NEWS: Mention the last change.
8470 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8472         chmodat, chownat: new modules
8473         These are split from fchmodat, fchownat.  GNU Emacs needs the
8474         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8475         lchmodat.  Split the latter two into a new module chmodat.
8476         Similarly for fchownat.  This the same basic idea for why statat
8477         was split from fstatat on 2013-01-23.
8478         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8479         Rename from FCHMODAT_INLINE.  All uses changed.
8480         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8481         Rename from FCHOWNAT_INLINE.  All uses changed.
8482         * lib/openat.h:
8483         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8484         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8485         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8486         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8487         (configure.ac): Remove fchmodat module indicator.
8488         (Makefile.am): Omit chmodat.c.
8489         (Maintainer): Add self.
8490         * modules/fchownat: Similarly, but for chown.
8491         * tests/test-fchownat.c (BASE): Don't define if already defined.
8492         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8494 2020-02-22  Bruno Haible  <bruno@clisp.org>
8496         users.txt: Add groff.
8497         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8498         * users.txt: Add groff.
8500 2020-02-22  Bruno Haible  <bruno@clisp.org>
8502         gnulib-tool: Ensure copied files are writable.
8503         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8504         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8505         * gnulib-tool (func_ensure_writable): New function.
8506         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8507         func_create_testdir, copy-file): Invoke it after copying a file.
8509 2020-02-22  Bruno Haible  <bruno@clisp.org>
8511         users.txt: Update.
8512         * users.txt: Update URLs to projects that have moved or switched to git.
8513         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8514         over the summary view. Add gawk.
8516 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8518         largefile: remove _DARWIN_USE_64_BIT_INODE
8519         It’s not needed in currently-supported macOS versions, and was
8520         problematic anyway in MacOS X 10.5 which was the only version that
8521         could use it.  Problem reported by Peter Eisentraut in:
8522         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
8523         * m4/largefile.m4 (AC_SYS_LARGEFILE):
8524         Don’t define _DARWIN_USE_64_BIT_INODE.
8525         This syncs with Autoconf master.
8527         Add ‘extern "C"’ to count-one-bits.h etc.
8528         This ports these .h files to C++.
8529         Problem reported by Simon Marchi in:
8530         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
8531         * lib/count-leading-zeros.h, lib/count-one-bits.h:
8532         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
8534 2020-02-19  Bruno Haible  <bruno@clisp.org>
8536         uninorm/decompose-internal: Avoid "no previous prototype" warning.
8537         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8538         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
8539         * lib/array-mergesort.h: Accept an optional macro definition
8540         STATIC_FROMTO.
8541         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
8543 2020-02-16  Bruno Haible  <bruno@clisp.org>
8545         fchmodat: Make more future-proof.
8546         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
8547         NEED_FCHMODAT_NONSYMLINK_FIX.
8548         (gl_PREREQ_FCHMODAT): New macro.
8549         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
8550         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
8551         without lchmod function.
8552         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
8554 2020-02-16  Bruno Haible  <bruno@clisp.org>
8556         lchmod: Make more future-proof.
8557         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
8558         (gl_PREREQ_LCHMOD): New macro.
8559         * lib/lchmod.c (orig_lchmod): New function.
8560         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
8561         Return EOPNOTSUPP only on Linux and on platforms without lchmod
8562         function.
8563         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
8565         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
8566         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
8568 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8570         xnanosleep: prefer pause, and get remaining time
8571         Problem reported by Vladimir Panteleev in:
8572         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
8573         * lib/xnanosleep.c: Include intprops.h, unistd.h.
8574         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
8575         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
8576         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
8577         * modules/xnanosleep (Depends-on): Add intprops, unistd.
8579 2020-02-16  Bruno Haible  <bruno@clisp.org>
8581         lchmod: Improve cross-compilation guess.
8582         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
8583         cross-compiling, guess depending on the platform.
8585 2020-02-16  Bruno Haible  <bruno@clisp.org>
8587         fstrcmp: Add API to clean up resources.
8588         Reported by Akim Demaille <akim@lrde.epita.fr> in
8589         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
8590         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
8591         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8593 2020-02-14  Bruno Haible  <bruno@clisp.org>
8595         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8596         Reported by Christian Biesinger in
8597         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8598         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8599         corresponding module is not enabled.
8600         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8601         prototype if the corresponding module is not enabled.
8603 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8605         fchmodat, lchmod: port to buggy Linux filesystems
8606         Problem reported by Florian Weimer in:
8607         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8608         * lib/fchmodat.c (fchmodat):
8609         * lib/lchmod.c (lchmod):
8610         Don’t assume that chmod on the O_PATH-opened fd will do
8611         the right thing on a symbolic link.
8612         * lib/fchmodat.c (fchmodat):
8613         Don’t attempt to special-case
8614         any flag value other than AT_SYMLINK_NOFOLLOW.
8616 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8618         lchmod: pacify Coverity CID 1491216
8619         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8620         not complain about unreachable code at the ‘struct stat st;’
8621         declaration.
8623 2020-02-10  Bruno Haible  <bruno@clisp.org>
8625         copysignf: Fix link error on HP-UX with cc.
8626         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8627         HP-UX, set COPYSIGNF_LIBM to -lm.
8629 2020-02-10  Bruno Haible  <bruno@clisp.org>
8631         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8632         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8633         with $(LIB_SEMAPHORE).
8634         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8635         with $(LIB_SEMAPHORE).
8637 2020-02-10  Bruno Haible  <bruno@clisp.org>
8639         ptsname_r-tests: Avoid unused function warning.
8640         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8642 2020-02-08  Bruno Haible  <bruno@clisp.org>
8644         lchmod: Add tests.
8645         * tests/test-lchmod.c: New file.
8646         * modules/lchmod-tests: New file.
8648 2020-02-08  Bruno Haible  <bruno@clisp.org>
8650         lchmod: Ensure declaration on HP-UX.
8651         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8652         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8654 2020-02-08  Bruno Haible  <bruno@clisp.org>
8656         fchmodat: Strengthen tests.
8657         * tests/test-fchmodat.c (BASE): New macro.
8658         (main): Use it, to avoid conflicts with other unit tests. Verify that
8659         fchmodat changed the file permission bits.
8661 2020-02-08  Bruno Haible  <bruno@clisp.org>
8663         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8664         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8665         '#undef __need_system_sys_stat_h'.
8667 2020-02-08  Bruno Haible  <bruno@clisp.org>
8669         fchmodat: Improve cross-compilation guesses.
8670         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8671         cross-compiling, guess depending on the platform.
8672         * doc/posix-functions/fchmodat.texi: Clarify.
8674 2020-02-08  Bruno Haible  <bruno@clisp.org>
8676         Fix compilation errors in a testdir created with --with-c++-tests.
8677         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8678         since it does not work any more with g++ >= 4.4.
8680 2020-02-08  Bruno Haible  <bruno@clisp.org>
8682         doc: Update for glibc 2.31.
8683         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8684         * doc/gnulib.texi: Include it.
8685         * doc/pastposix-functions/h_errno.texi: Update.
8686         * doc/posix-functions/*.texi: Likewise.
8688 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8690         mountlist: consider smb3 file systems as remote
8691         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8692         "smb3" as remote.
8694 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8696         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8697         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8698         they act like chmod on non-symlinks.
8699         * NEWS:
8700         * doc/glibc-functions/lchmod.texi (lchmod):
8701         * doc/posix-functions/fchmodat.texi (fchmodat):
8702         Mention this.
8703         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8704         config.h, and undef it after including sys/stat.h the first time.
8705         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8706         sys/stat.h a second time after defining orig_fchmodat.
8707         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8708         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8709         * lib/lchmod.c: New file.
8710         * lib/sys_stat.in.h (fchmodat, lchmod):
8711         Support replacing these functions.
8712         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8713         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8714         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8715         Test that lchmod works on non-symlinks.
8716         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8717         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8718         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8719         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8720         * modules/lchmod (Files): Add lib/lchmod.c.
8721         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8722         (configure.ac): Compile lchmod.c if needed.
8723         (lib_SOURCES): Add lchmod.c.
8724         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8725         and REPLACE_LCHMOD.
8726         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8727         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8729 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8731         mountlist: Consider AFS filesystems as remote
8732         df --local relies on the ME_REMOTE macro to determine if a given
8733         mount entry should be considered "local".  There is special logic
8734         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8735         kernel's kafs module or AuriStorFS is treated as a local mount.
8736         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8737         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8739 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8741         Port _Noreturn to older Clang
8742         Problem reported by Jeffery Walton in:
8743         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8744         * lib/_Noreturn.h (_Noreturn):
8745         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8746         Assume _Noreturn works in Clang 3.5 and later.
8747         It is documented to work in Clang 3.5:
8748         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8749         and is not documented in Clang 3.4:
8750         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8751         Apple sets __clang_version__ to a different value, so use
8752         __apple_build_version__ there.  See:
8753         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8755 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8757         test-canonicalize: avoid unused function warning
8758         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8759         with the same guard as that used to protect usage of the null_ptr
8760         function, so that one doesn't get a -Wunused warning.
8761         * tests/test-canonicalize-lgpl.c: Likewise.
8763 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8765         libc-config: port to Apple’s Clang variant
8766         * lib/libc-config.h (__glibc_clang_prereq):
8767         Port to Apple’s Clang variant, which uses a different
8768         numbering scheme for __clang_major__.
8770 2020-02-02  Bruno Haible  <bruno@clisp.org>
8772         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8773         * doc/containers.texi: Document these new modules.
8775 2020-02-02  Bruno Haible  <bruno@clisp.org>
8777         omap-c++: Add tests.
8778         * tests/test-omap-c++.cc: New file.
8779         * modules/omap-c++-tests: New file.
8781         omap-c++: New module.
8782         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8783         * modules/omap-c++: New file.
8785 2020-02-02  Bruno Haible  <bruno@clisp.org>
8787         map-c++: Add tests.
8788         * tests/test-map-c++.cc: New file.
8789         * modules/map-c++-tests: New file.
8791         map-c++: New module.
8792         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8793         * modules/map-c++: New file.
8795 2020-02-02  Bruno Haible  <bruno@clisp.org>
8797         oset-c++: Add tests.
8798         * tests/test-oset-c++.cc: New file.
8799         * modules/oset-c++-tests: New file.
8801         oset-c++: New module.
8802         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8803         * modules/oset-c++: New file.
8805 2020-02-02  Bruno Haible  <bruno@clisp.org>
8807         set-c++: Add tests.
8808         * tests/test-set-c++.cc: New file.
8809         * modules/set-c++-tests: New file.
8811         set-c++: New module.
8812         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8813         * modules/set-c++: New file.
8815 2020-02-02  Bruno Haible  <bruno@clisp.org>
8817         list-c++: Add tests.
8818         * tests/test-list-c++.cc: New file.
8819         * modules/list-c++-tests: New file.
8821         list-c++: New module.
8822         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8823         * modules/list-c++: New file.
8825 2020-02-02  Bruno Haible  <bruno@clisp.org>
8827         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8828         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8829         '_Noreturn'.
8830         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8832 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8834         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8835         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8836           error: argument 2 value '18446744073709551615'
8837           exceeds maximum object size 9223372036854775807
8838           [-Werror=alloc-size-larger-than=]
8839         The details of this restriction are discussed at:
8840         https://stackoverflow.com/q/42574890/4421
8841         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8843 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8845         sysctl.h: avoid including on glibc
8846         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8847         * lib/physmem.c: Likewise.
8849 2020-02-02  Bruno Haible  <bruno@clisp.org>
8851         list, set, oset, map, omap: Avoid imperative voice in documentation.
8852         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8853         in the specification of functions.
8854         * lib/gl_set.h: Likewise.
8855         * lib/gl_oset.h: Likewise.
8856         * lib/gl_map.h: Likewise.
8857         * lib/gl_omap.h: Likewise.
8858         * lib/gl_*.h: Likewise.
8860 2020-02-01  Bruno Haible  <bruno@clisp.org>
8862         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8863         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8864         does.
8866 2020-01-29  Bruno Haible  <bruno@clisp.org>
8868         array-map, hash-map, linkedhash-map: Fix module description.
8869         * modules/array-map (Description): Fix description.
8870         * modules/hash-map (Description): Likewise.
8871         * modules/linkedhash-map (Description): Likewise.
8873 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8875         dfa: do not depend on isblank
8876         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8877         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8878         * modules/dfa (Depends-on): Remove isblank.
8879         * modules/isblank: Add a module indicator, for lib/dfa.c.
8881         dfa: do not assume 64-bit int
8882         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8883         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8884         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8885         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8886         Fall back to 32-bit words.
8887         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8888         of 4 64-bit args.  All uses changed.
8890 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8892         regex: remove limits-h dependency
8893         * modules/regex (Depends-on): Remove limits-h, since the
8894         code no longer depends on ULONG_WIDTH already being defined.
8896         regex: port to non-GCC pre-IEC-60559
8897         Problem reported by Arnold Robbins in:
8898         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8899         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8901 2020-01-25  Bruno Haible  <bruno@clisp.org>
8903         c32isxdigit: Add tests.
8904         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8905         * tests/test-c32isxdigit.sh: New file.
8906         * modules/c32isxdigit-tests: New file.
8908         c32isxdigit: New module.
8909         * lib/c32isxdigit.c: New file.
8910         * modules/c32isxdigit: New file.
8911         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8913 2020-01-25  Bruno Haible  <bruno@clisp.org>
8915         c32isupper: Add tests.
8916         * tests/test-c32isupper.c: New file.
8917         * tests/test-c32isupper.sh: New file.
8918         * modules/c32isupper-tests: New file.
8920         c32isupper: New module.
8921         * lib/c32isupper.c: New file.
8922         * modules/c32isupper: New file.
8923         * doc/posix-functions/iswupper.texi: Mention the new module.
8925 2020-01-25  Bruno Haible  <bruno@clisp.org>
8927         c32isspace: Add tests.
8928         * tests/test-c32isspace.c: New file.
8929         * tests/test-c32isspace.sh: New file.
8930         * modules/c32isspace-tests: New file.
8932         c32isspace: New module.
8933         * lib/c32isspace.c: New file.
8934         * modules/c32isspace: New file.
8935         * doc/posix-functions/iswspace.texi: Mention the new module.
8937 2020-01-25  Bruno Haible  <bruno@clisp.org>
8939         c32ispunct: Add tests.
8940         * tests/test-c32ispunct.c: New file.
8941         * tests/test-c32ispunct.sh: New file.
8942         * modules/c32ispunct-tests: New file.
8944         c32ispunct: New module.
8945         * lib/c32ispunct.c: New file.
8946         * modules/c32ispunct: New file.
8947         * doc/posix-functions/iswpunct.texi: Mention the new module.
8949 2020-01-25  Bruno Haible  <bruno@clisp.org>
8951         c32isprint: Add tests.
8952         * tests/test-c32isprint.c: New file.
8953         * tests/test-c32isprint.sh: New file.
8954         * modules/c32isprint-tests: New file.
8956         c32isprint: New module.
8957         * lib/c32isprint.c: New file.
8958         * modules/c32isprint: New file.
8959         * doc/posix-functions/iswprint.texi: Mention the new module.
8961 2020-01-25  Bruno Haible  <bruno@clisp.org>
8963         c32islower: Add tests.
8964         * tests/test-c32islower.c: New file.
8965         * tests/test-c32islower.sh: New file.
8966         * modules/c32islower-tests: New file.
8968         c32islower: New module.
8969         * lib/c32islower.c: New file.
8970         * modules/c32islower: New file.
8971         * doc/posix-functions/iswlower.texi: Mention the new module.
8973 2020-01-25  Bruno Haible  <bruno@clisp.org>
8975         c32isgraph: Add tests.
8976         * tests/test-c32isgraph.c: New file.
8977         * tests/test-c32isgraph.sh: New file.
8978         * modules/c32isgraph-tests: New file.
8980         c32isgraph: New module.
8981         * lib/c32isgraph.c: New file.
8982         * modules/c32isgraph: New file.
8983         * doc/posix-functions/iswgraph.texi: Mention the new module.
8985 2020-01-25  Bruno Haible  <bruno@clisp.org>
8987         c32isdigit: Add tests.
8988         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8989         * tests/test-c32isdigit.sh: New file.
8990         * modules/c32isdigit-tests: New file.
8992         c32isdigit: New module.
8993         * lib/c32isdigit.c: New file.
8994         * modules/c32isdigit: New file.
8995         * doc/posix-functions/iswdigit.texi: Mention the new module.
8997 2020-01-25  Bruno Haible  <bruno@clisp.org>
8999         c32iscntrl: Add tests.
9000         * tests/test-c32iscntrl.c: New file.
9001         * tests/test-c32iscntrl.sh: New file.
9002         * modules/c32iscntrl-tests: New file.
9004         c32iscntrl: New module.
9005         * lib/c32iscntrl.c: New file.
9006         * modules/c32iscntrl: New file.
9007         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9009 2020-01-25  Bruno Haible  <bruno@clisp.org>
9011         c32isblank: Add tests.
9012         * tests/test-c32isblank.c: New file.
9013         * tests/test-c32isblank.sh: New file.
9014         * modules/c32isblank-tests: New file.
9016         c32isblank: New module.
9017         * lib/c32isblank.c: New file.
9018         * modules/c32isblank: New file.
9019         * doc/posix-functions/iswblank.texi: Mention the new module.
9021 2020-01-25  Bruno Haible  <bruno@clisp.org>
9023         c32isalpha: Add tests.
9024         * tests/test-c32isalpha.c: New file.
9025         * tests/test-c32isalpha.sh: New file.
9026         * modules/c32isalpha-tests: New file.
9028         c32isalpha: New module.
9029         * lib/c32isalpha.c: New file.
9030         * modules/c32isalpha: New file.
9031         * doc/posix-functions/iswalpha.texi: Mention the new module.
9033 2020-01-25  Bruno Haible  <bruno@clisp.org>
9035         c32isalnum: Add tests.
9036         * tests/test-c32isalnum.c: New file.
9037         * tests/test-c32isalnum.sh: New file.
9038         * modules/c32isalnum-tests: New file.
9040         c32isalnum: New module.
9041         * lib/c32isalnum.c: New file.
9042         * lib/c32is-impl.h: New file.
9043         * modules/c32isalnum: New file.
9044         * doc/posix-functions/iswalnum.texi: Mention the new module.
9046 2020-01-25  Bruno Haible  <bruno@clisp.org>
9048         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9049         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9050         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9051         c32isupper, c32isxdigit): New declarations.
9052         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9053         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9054         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9055         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9056         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9057         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9058         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9059         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9060         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9061         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9062         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9063         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9064         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9066 2020-01-25  Bruno Haible  <bruno@clisp.org>
9068         mbchar, wctype: Use the corrected iswxdigit function.
9069         * modules/mbchar (Depends-on): Add iswxdigit.
9070         * modules/wctype (Depends-on): Likewise.
9072         iswxdigit: Add tests.
9073         * tests/test-iswxdigit.c: New file.
9074         * tests/test-iswxdigit.sh: New file.
9075         * modules/iswxdigit-tests: New file.
9077         iswxdigit: New module.
9078         * m4/iswxdigit.m4: New file.
9079         * lib/wctype.in.h (iswxdigit): Potentially override.
9080         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9081         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9082         * lib/iswxdigit.c: New file.
9083         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9084         REPLACE_ISWXDIGIT.
9085         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9086         REPLACE_ISWXDIGIT.
9087         * modules/iswxdigit: New file.
9088         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9090 2020-01-25  Bruno Haible  <bruno@clisp.org>
9092         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9093         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9094         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9095         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9096         off_t on mingw, invoke _lseeki64 instead of lseek.
9098 2020-01-25  Bruno Haible  <bruno@clisp.org>
9100         iswdigit tests: Avoid test failure on Cygwin.
9101         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9102         byte sequence, return 0.
9104         iswdigit: Fix test failure on native Windows.
9105         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9107         mbchar, wctype: Use the corrected iswdigit function.
9108         * modules/mbchar (Depends-on): Add iswdigit.
9109         * modules/wctype (Depends-on): Likewise.
9111         iswdigit: Add tests.
9112         * tests/test-iswdigit.c: New file.
9113         * tests/test-iswdigit.sh: New file.
9114         * modules/iswdigit-tests: New file.
9116         iswdigit: New module.
9117         * m4/iswdigit.m4: New file.
9118         * lib/wctype.in.h (iswdigit): Potentially override.
9119         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9120         * lib/iswdigit.c: New file.
9121         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9122         REPLACE_ISWDIGIT.
9123         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9124         REPLACE_ISWDIGIT.
9125         * modules/iswdigit: New file.
9126         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9128 2020-01-25  Bruno Haible  <bruno@clisp.org>
9130         hard-locale tests: Make it easy to reuse the musl test.
9131         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9132         * modules/hard-locale-tests (Files): Add it.
9133         (configure.ac): Invoke gl_MUSL_LIBC.
9135 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9137         regex: port to Gawk on nonstandard platforms
9138         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9139         This is useful for Gawk, which does not use the Gnulib stdlib-h
9140         module.  Problem reported by Arnold Robbins in:
9141         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9143 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9145         regex: fix bug with >=16 subexpressions
9146         * lib/regex_internal.h (struct re_backref_cache_entry):
9147         Use bitset_word_t as the type of eps_reachable_subexps_map,
9148         instead of unsigned short int.  This fixes a bug I introduced
9149         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9150         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9151         Remove unused member 'unused'.
9153         regex: simplify definition of BITSET_WORD_BITS
9154         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9155         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9156         * lib/regex_internal.h (BITSET_WORD_BITS):
9157         * modules/regex (Depends-on): Add limits-h.
9158         Simplify now that we can use ULONG_WIDTH.
9160 2020-01-20  Bruno Haible  <bruno@clisp.org>
9162         mbrtoc32: Add note about FreeBSD 12.
9163         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9164         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9165         affected.
9167 2020-01-20  Bruno Haible  <bruno@clisp.org>
9169         unistr/u8-uctomb: Fix warning.
9170         Reported by Andreas Schwab <schwab@suse.de> in
9171         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9172         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9173         (u8_uctomb): Add FALLTHROUGH markers.
9175 2020-01-20  Bruno Haible  <bruno@clisp.org>
9177         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9178         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9179         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9180         (glthread_once): Use it.
9182 2020-01-19  Bruno Haible  <bruno@clisp.org>
9184         threadlib: Disable use of weak symbols on FreeBSD 11.
9185         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9186         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9187         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9188         against a bug in FreeBSD 11.
9190 2020-01-19  Bruno Haible  <bruno@clisp.org>
9192         iconv_open: Improve z/OS support.
9193         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9194         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9195         Remove mapping for EUC-TW.
9197 2020-01-18  Bruno Haible  <bruno@clisp.org>
9199         Rename ~~gnulib.m4 to zzgnulib.m4.
9200         Suggested by Paul Eggert.
9201         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9202         * gnulib-tool (func_get_filelist): Update.
9203         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9205 2020-01-18  Bruno Haible  <bruno@clisp.org>
9207         doc: Update license notices.
9208         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9209         reference to a section or to a "file as part of this distribution".
9211 2020-01-18  Bruno Haible  <bruno@clisp.org>
9213         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9214         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9215         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9216         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9217         AC_EGREP_CPP.
9219 2020-01-18  Bruno Haible  <bruno@clisp.org>
9221         Ensure Automake does not drop ~~gnulib.m4.
9222         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9223         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9225 2020-01-18  Bruno Haible  <bruno@clisp.org>
9227         Fix major regression from 2020-01-10.
9228         Reported by Paul Eggert in
9229         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9230         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9231         Don't AC_REQUIRE anything.
9232         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9233         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9234         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9235         use ac_compile instead.
9236         (AC_CHECK_DECL): Remove override.
9237         * m4/~~gnulib.m4: New file.
9238         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9239         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9241 2020-01-17  Bruno Haible  <bruno@clisp.org>
9242             Paul Eggert  <eggert@cs.ucla.edu>
9244         glob: Fix use-after-free bug.
9245         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9246         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9247         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9248         end_name.
9250 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9252         vcs-to-changelog: Fix parsing of fndecl without args.
9253         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9254         for empty arguments.
9256 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9258         vcs-to-changelog: Add documentation.
9259         * doc/vcs-to-changelog.texi: New file.
9260         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9261         section.
9263 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9265         vcs-to-changelog: Allow loading of custom quirks file.
9266         * build-aux/vcs_to_changelog.py: New commandline option -q.
9268 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9270         vcs-to-changelog: Fix formatting of ChangeLog output.
9271         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9272         output.
9274 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9276         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9277         Reported in
9278         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9279         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9281 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9283         crypto/gc-pbkdf2: New module.
9284         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9285         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9286         * lib/gc-pbkdf2.c: New file.
9287         * lib/gc-pbkdf2-sha1.c: Use new interface.
9288         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9289         * modules/crypto/gc-pbkdf2: New file.
9290         * modules/crypto/gc-pbkdf2-tests: New file.
9291         * tests/test-gc-pbkdf2.c: New file.
9293 2020-01-12  Bruno Haible  <bruno@clisp.org>
9295         c32stombs: Add tests.
9296         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9297         * tests/test-c32stombs-1.sh: New file, based on
9298         tests/test-c32srtombs-1.sh.
9299         * tests/test-c32stombs-2.sh: New file, based on
9300         tests/test-c32srtombs-2.sh.
9301         * tests/test-c32stombs-3.sh: New file, based on
9302         tests/test-c32srtombs-3.sh.
9303         * tests/test-c32stombs-4.sh: New file, based on
9304         tests/test-c32srtombs-4.sh.
9305         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9307         c32stombs: New module.
9308         * lib/uchar.in.h (c32stombs): New declaration.
9309         * lib/c32stombs.c: New file.
9310         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9311         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9312         * modules/c32stombs: New file.
9313         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9314         * doc/posix-functions/wcstombs.texi: Mention the new module.
9316 2020-01-11  Jim Meyering  <meyering@fb.com>
9318         perl: require the "warnings" module
9319         * m4/perl.m4: Also "use warnings", so we reject the perl found
9320         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9321         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9323 2020-01-10  Bruno Haible  <bruno@clisp.org>
9325         Fix major regression from 2020-01-04.
9326         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9327         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9328         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9329         AC_DEFUN_ONCE.
9330         (AC_CHECK_DECL): Invoke, not require, it.
9332 2020-01-10  Bruno Haible  <bruno@clisp.org>
9334         c32snrtombs: Add tests.
9335         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9336         * tests/test-c32snrtombs-1.sh: New file, based on
9337         tests/test-wcsnrtombs1.sh.
9338         * tests/test-c32snrtombs-2.sh: New file, based on
9339         tests/test-wcsnrtombs2.sh.
9340         * tests/test-c32snrtombs-3.sh: New file, based on
9341         tests/test-wcsnrtombs3.sh.
9342         * tests/test-c32snrtombs-4.sh: New file, based on
9343         tests/test-wcsnrtombs4.sh.
9344         * modules/c32snrtombs-tests: New file, based on
9345         modules/wcsnrtombs-tests.
9347         c32snrtombs: New module.
9348         * lib/uchar.in.h (c32snrtombs): New declaration.
9349         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9350         INTERNAL_STATE, WCRTOMB.
9351         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9352         * lib/c32snrtombs.c: New file.
9353         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9354         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9355         * modules/c32snrtombs: New file.
9356         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9357         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9359 2020-01-09  Bruno Haible  <bruno@clisp.org>
9361         c32srtombs: Add tests.
9362         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9363         * tests/test-c32srtombs-1.sh: New file, based on
9364         tests/test-wcsrtombs1.sh.
9365         * tests/test-c32srtombs-2.sh: New file, based on
9366         tests/test-wcsrtombs2.sh.
9367         * tests/test-c32srtombs-3.sh: New file, based on
9368         tests/test-wcsrtombs3.sh.
9369         * tests/test-c32srtombs-4.sh: New file, based on
9370         tests/test-wcsrtombs4.sh.
9371         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9373         c32srtombs: New module.
9374         * lib/uchar.in.h (c32srtombs): New declaration.
9375         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9376         INTERNAL_STATE, WCRTOMB.
9377         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9378         * lib/c32srtombs.c: New file.
9379         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9380         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9381         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9382         * modules/c32srtombs: New file.
9383         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9384         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9386 2020-01-08  Bruno Haible  <bruno@clisp.org>
9388         c32tob: Make consistent with mbrtoc32.
9389         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9390         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9391         use c32rtomb, not wctob.
9392         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9393         (Depends-on): Add c32rtomb.
9394         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9396 2020-01-08  Bruno Haible  <bruno@clisp.org>
9398         c32rtomb: Add tests.
9399         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9400         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9401         * tests/test-c32rtomb-w32.c: New file, based on
9402         tests/test-wcrtomb-w32.c.
9403         * tests/test-c32rtomb-w32-1.sh: New file, based on
9404         tests/test-wcrtomb-w32-1.sh.
9405         * tests/test-c32rtomb-w32-2.sh: New file, based on
9406         tests/test-wcrtomb-w32-2.sh.
9407         * tests/test-c32rtomb-w32-3.sh: New file, based on
9408         tests/test-wcrtomb-w32-3.sh.
9409         * tests/test-c32rtomb-w32-4.sh: New file, based on
9410         tests/test-wcrtomb-w32-4.sh.
9411         * tests/test-c32rtomb-w32-5.sh: New file, based on
9412         tests/test-wcrtomb-w32-5.sh.
9413         * tests/test-c32rtomb-w32-6.sh: New file, based on
9414         tests/test-wcrtomb-w32-6.sh.
9415         * tests/test-c32rtomb-w32-7.sh: New file, based on
9416         tests/test-wcrtomb-w32-7.sh.
9417         * modules/c32rtomb-tests: New file.
9419         c32rtomb: New module.
9420         * lib/uchar.in.h (c32rtomb): New declaration.
9421         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9422         * m4/c32rtomb.m4: New file.
9423         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9424         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9425         REPLACE_C32RTOMB.
9426         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9427         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9428         * modules/c32rtomb: New file.
9429         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9430         * doc/posix-functions/c32rtomb.texi: Document the new module.
9431         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9433 2020-01-08  Bruno Haible  <bruno@clisp.org>
9435         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9436         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9437         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9438         but is not working.
9439         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9440         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9441         differ, use the system's mbrtoc32, adding workarounds.
9442         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9443         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9444         Windows problem.
9445         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9446         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9447         use mbrtoc32, not btowc.
9448         * modules/btoc32 (Depends-on): Add mbrtoc32.
9449         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9450         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9451         * modules/mbsrtoc32s (Depends-on): Update conditions.
9452         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9453         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9454         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9455         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9456         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9458 2020-01-07  Bruno Haible  <bruno@clisp.org>
9460         wcrtomb: Make multithread-safe, except possibly on IRIX.
9461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9462         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9463         WCRTOMB_RETVAL_BUG.
9464         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9465         wctomb only on IRIX.
9467 2020-01-05  Jim Meyering  <meyering@fb.com>
9469         tests: skip thread-using tests when threading is disabled
9470         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9471         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9472         of those, so they are skipped in this case.
9473         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9474         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9475         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9477 2020-01-05  Bruno Haible  <bruno@clisp.org>
9479         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9480         Reported by Jim Meyering in
9481         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9482         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9483         (GNULIB_defined_ptsname_r): New macro.
9484         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9485         (main): Disable the NULL argument test if canonicalize_file_name does
9486         not come from gnulib.
9487         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9488         (main): Disable the NULL argument test if canonicalize_file_name does
9489         not come from gnulib.
9490         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9491         (test_errors): Disable the NULL argument test if ptsname_r does not come
9492         from gnulib.
9494 2020-01-04  Jim Meyering  <meyering@fb.com>
9496         update-copyright: reenable its always-skipped test
9497         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9498         on 2019-06-15. Without those, an internal preliminary test would
9499         fail, causing this test always to be skipped.
9500         Verify that the test is now run and passes via this:
9501           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9503 2020-01-05  Bruno Haible  <bruno@clisp.org>
9505         mbstoc32s: Add tests.
9506         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9507         * tests/test-mbstoc32s-1.sh: New file, based on
9508         tests/test-mbsrtoc32s-1.sh.
9509         * tests/test-mbstoc32s-2.sh: New file, based on
9510         tests/test-mbsrtoc32s-2.sh.
9511         * tests/test-mbstoc32s-3.sh: New file, based on
9512         tests/test-mbsrtoc32s-3.sh.
9513         * tests/test-mbstoc32s-4.sh: New file, based on
9514         tests/test-mbsrtoc32s-4.sh.
9515         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
9517         mbstoc32s: New module.
9518         * lib/uchar.in.h (mbstoc32s): New declaration.
9519         * lib/mbstoc32s.c: New file.
9520         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
9521         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
9522         * modules/mbstoc32s: New file.
9523         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
9524         * doc/posix-functions/mbstowcs.texi: Mention the new module.
9526 2020-01-05  Bruno Haible  <bruno@clisp.org>
9528         Tweak recently added tests.
9529         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
9530         * tests/test-mbsrtoc32s.c: Likewise.
9531         * tests/test-mbsnrtoc32s.c: Likewise.
9533 2020-01-04  Bruno Haible  <bruno@clisp.org>
9535         mbsnrtoc32s: Add tests.
9536         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
9537         * tests/test-mbsnrtoc32s-1.sh: New file, based on
9538         tests/test-mbsnrtowcs1.sh.
9539         * tests/test-mbsnrtoc32s-2.sh: New file, based on
9540         tests/test-mbsnrtowcs2.sh.
9541         * tests/test-mbsnrtoc32s-3.sh: New file, based on
9542         tests/test-mbsnrtowcs3.sh.
9543         * tests/test-mbsnrtoc32s-4.sh: New file, based on
9544         tests/test-mbsnrtowcs4.sh.
9545         * modules/mbsnrtoc32s-tests: New file, based on
9546         modules/mbsnrtowcs-tests.
9548         mbsnrtoc32s: New module.
9549         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
9550         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9551         INTERNAL_STATE, MBRTOWC.
9552         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9553         * lib/mbsnrtoc32s.c: New file.
9554         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
9555         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
9556         * modules/mbsnrtoc32s: New file.
9557         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
9558         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
9560 2020-01-04  Bruno Haible  <bruno@clisp.org>
9562         mbsrtoc32s tests: Enhance test.
9563         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
9564         test strings for UTF-8 and GB18030.
9566 2020-01-04  Bruno Haible  <bruno@clisp.org>
9568         mbsrtoc32s: Fix bug.
9569         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
9570         that SMALL_WCHAR_T is defined.
9572 2020-01-04  Bruno Haible  <bruno@clisp.org>
9574         mbsrtoc32s: Add tests.
9575         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
9576         * tests/test-mbsrtoc32s-1.sh: New file, based on
9577         tests/test-mbsrtowcs1.sh.
9578         * tests/test-mbsrtoc32s-2.sh: New file, based on
9579         tests/test-mbsrtowcs2.sh.
9580         * tests/test-mbsrtoc32s-3.sh: New file, based on
9581         tests/test-mbsrtowcs3.sh.
9582         * tests/test-mbsrtoc32s-4.sh: New file, based on
9583         tests/test-mbsrtowcs4.sh.
9584         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
9586         mbsrtoc32s: New module.
9587         * lib/uchar.in.h (mbsrtoc32s): New declaration.
9588         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9589         INTERNAL_STATE, MBRTOWC.
9590         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9591         * lib/mbsrtoc32s.c: New file.
9592         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9593         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9594         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9595         * modules/mbsrtoc32s: New file.
9596         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9597         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9599 2020-01-04  Bruno Haible  <bruno@clisp.org>
9601         mbrtowc, mbrtoc32: Tighten dependendies.
9602         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9603         REPLACE_MBSTATE_T is 1.
9604         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9605         REPLACE_MBSTATE_T is 0.
9606         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9607         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9608         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9609         REPLACE_MBSTATE_T is 0.
9611 2020-01-04  Bruno Haible  <bruno@clisp.org>
9613         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9614         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9615         * modules/uchar (Files): Add stdint.m4.
9616         (Makefile.am): Substitute SMALL_WCHAR_T.
9617         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9619 2020-01-04  Bruno Haible  <bruno@clisp.org>
9621         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9622         Reported by Martin Storsjö <martin@martin.st> in
9623         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9624         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9625         New macros.
9626         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9628 2020-01-04  Bruno Haible  <bruno@clisp.org>
9630         btoc32: Add tests.
9631         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9632         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9633         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9634         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9636         btoc32: New module.
9637         * lib/uchar.in.h (btoc32): New declaration.
9638         * lib/btoc32.c: New file.
9639         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9640         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9641         * modules/btoc32: New file.
9642         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9643         * doc/posix-functions/btowc.texi: Mention the new module.
9645 2020-01-03  Bruno Haible  <bruno@clisp.org>
9647         uchar tests: Avoid compilation error with HP cc.
9648         * tests/test-uchar.c: Disable a test when HP cc is in use.
9650 2020-01-03  Bruno Haible  <bruno@clisp.org>
9652         mbrtoc32: Add tests.
9653         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9654         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9655         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9656         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9657         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9658         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9659         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9660         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9661         tests/test-mbrtowc-w32-1.sh.
9662         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9663         tests/test-mbrtowc-w32-2.sh.
9664         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9665         tests/test-mbrtowc-w32-3.sh.
9666         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9667         tests/test-mbrtowc-w32-4.sh.
9668         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9669         tests/test-mbrtowc-w32-5.sh.
9670         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9671         tests/test-mbrtowc-w32-6.sh.
9672         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9673         tests/test-mbrtowc-w32-7.sh.
9674         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9676         mbrtoc32: New module.
9677         * lib/uchar.in.h (mbrtoc32): New declaration.
9678         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9679         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9680         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9681         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9682         REPLACE_MBRTOC32.
9683         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9684         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9685         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9686         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9687         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9688         $(LIB_MBRTOWC).
9689         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9690         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9692 2020-01-03  Bruno Haible  <bruno@clisp.org>
9694         mbrtowc: Refactor to share code with mbrtoc32.
9695         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9696         * lib/mbrtowc-impl-utf8.h: Likewise.
9697         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9698         mbrtowc-impl.h.
9699         * modules/mbrtowc (Files): Add the new files.
9701 2020-01-03  Jim Meyering  <meyering@fb.com>
9703         doc: fix time.texi wording
9704         * doc/posix-headers/time.texi (time.h): Typo.
9706 2020-01-03  Bruno Haible  <bruno@clisp.org>
9708         mbrtowc: Refactor locale charset dispatching.
9709         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9710         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9711         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9712         localcharset.h, streq.h.
9713         (enc_t): Remove type.
9714         (locale_enc): Remove function.
9715         (cached_locale_enc): Remove variable.
9716         (locale_enc_cached): Remove function.
9717         (mbrtowc): Invoke locale_encoding_classification.
9718         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9719         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9720         lc-charset-dispatch.c.
9721         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9723 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9725         doc: mention 32-bit time_t issue
9726         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9727         * doc/posix-headers/time.texi (time.h): Mention 2038.
9729 2020-01-03  Bruno Haible  <bruno@clisp.org>
9731         mbrtowc: Ensure the mbtowc_lock is unique.
9732         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9733         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9734         lib/setlocale_null.c.
9735         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9736         glthread/lock.h. Include mbtowc-lock.h.
9737         (mbtowc_lock): Remove declaration.
9738         (mbrtowc): Use mbtowc_with_lock.
9739         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9740         threads.h. Set LIB_MBRTOWC.
9741         (gl_PREREQ_MBTOWC_LOCK): New macro.
9742         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9743         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9744         (Depends-on): Remove lock.
9745         (configure.ac): Arrange to compile mbtowc-lock.c.
9746         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9747         * modules/acl (Link): Likewise.
9748         * modules/argmatch (Link): Likewise.
9749         * modules/backup-rename (Link): Likewise.
9750         * modules/backupfile (Link): Likewise.
9751         * modules/closein (Link): Likewise.
9752         * modules/closeout (Link): Likewise.
9753         * modules/copy-file (Link): Likewise.
9754         * modules/csharpcomp (Link): Likewise.
9755         * modules/csharpexec (Link): Likewise.
9756         * modules/dfa (Link): Likewise.
9757         * modules/exclude (Link): Likewise.
9758         * modules/fnmatch (Link): Likewise.
9759         * modules/fnmatch-gnu (Link): Likewise.
9760         * modules/fnmatch-posix (Link): Likewise.
9761         * modules/glob (Link): Likewise.
9762         * modules/human (Link): Likewise.
9763         * modules/javacomp (Link): Likewise.
9764         * modules/javaexec (Link): Likewise.
9765         * modules/javaversion (Link): Likewise.
9766         * modules/mbfile (Link): Likewise.
9767         * modules/mbiter (Link): Likewise.
9768         * modules/mbmemcasecmp (Link): Likewise.
9769         * modules/mbmemcasecoll (Link): Likewise.
9770         * modules/mbrlen (Link): Likewise.
9771         * modules/mbscasecmp (Link): Likewise.
9772         * modules/mbscasestr (Link): Likewise.
9773         * modules/mbschr (Link): Likewise.
9774         * modules/mbscspn (Link): Likewise.
9775         * modules/mbsinit (Link): Likewise.
9776         * modules/mbslen (Link): Likewise.
9777         * modules/mbsncasecmp (Link): Likewise.
9778         * modules/mbsnlen (Link): Likewise.
9779         * modules/mbsnrtowcs (Link): Likewise.
9780         * modules/mbspbrk (Link): Likewise.
9781         * modules/mbspcasecmp (Link): Likewise.
9782         * modules/mbsrchr (Link): Likewise.
9783         * modules/mbsrtowcs (Link): Likewise.
9784         * modules/mbssep (Link): Likewise.
9785         * modules/mbsspn (Link): Likewise.
9786         * modules/mbsstr (Link): Likewise.
9787         * modules/mbstok_r (Link): Likewise.
9788         * modules/mbswidth (Link): Likewise.
9789         * modules/mbuiter (Link): Likewise.
9790         * modules/mkdir-p (Link): Likewise.
9791         * modules/propername (Link): Likewise.
9792         * modules/quote (Link): Likewise.
9793         * modules/quotearg (Link): Likewise.
9794         * modules/quotearg-simple (Link): Likewise.
9795         * modules/regex-quote (Link): Likewise.
9796         * modules/rpmatch (Link): Likewise.
9797         * modules/sh-quote (Link): Likewise.
9798         * modules/system-quote (Link): Likewise.
9799         * modules/trim (Link): Likewise.
9800         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9801         * modules/unistdio/ulc-fprintf (Link): Likewise.
9802         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9803         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9804         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9805         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9806         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9807         * modules/xfreopen (Link): Likewise.
9808         * modules/xmemcoll (Link): Likewise.
9809         * modules/yesno (Link): Likewise.
9810         * modules/regex (Link): Add $(LIB_MBRTOWC).
9811         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9812         instead of $(LIBTHREAD).
9813         * modules/argmatch-tests (Makefile.am): Likewise.
9814         * modules/closein-tests (Makefile.am): Likewise.
9815         * modules/copy-file-tests (Makefile.am): Likewise.
9816         * modules/dfa-tests (Makefile.am): Likewise.
9817         * modules/fnmatch-tests (Makefile.am): Likewise.
9818         * modules/glob-tests (Makefile.am): Likewise.
9819         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9820         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9821         * modules/mbrtowc-tests (Makefile.am): Likewise.
9822         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9823         * modules/mbscasestr-tests (Makefile.am): Likewise.
9824         * modules/mbschr-tests (Makefile.am): Likewise.
9825         * modules/mbscspn-tests (Makefile.am): Likewise.
9826         * modules/mbsinit-tests (Makefile.am): Likewise.
9827         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9828         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9829         * modules/mbspbrk-tests (Makefile.am): Likewise.
9830         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9831         * modules/mbsrchr-tests (Makefile.am): Likewise.
9832         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9833         * modules/mbsspn-tests (Makefile.am): Likewise.
9834         * modules/mbsstr-tests (Makefile.am): Likewise.
9835         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9836         * modules/quotearg-tests (Makefile.am): Likewise.
9837         * modules/readtokens-tests (Makefile.am): Likewise.
9838         * modules/sh-quote-tests (Makefile.am): Likewise.
9839         * modules/system-quote-tests (Makefile.am): Likewise.
9840         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9841         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9842         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9843         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9844         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9845         * modules/yesno-tests (Makefile.am): Likewise.
9846         * modules/exclude-tests (Makefile.am): Link the programs with
9847         $(LIB_MBRTOWC).
9848         * modules/regex-tests (Makefile.am): Likewise.
9849         * modules/regex-quote-tests (Makefile.am): Likewise.
9851 2020-01-03  Bruno Haible  <bruno@clisp.org>
9853         getopt-posix: Fix compilation failure in testdirs.
9854         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9855         when the gnulib module 'getopt-posix' is enabled.
9856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9857         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9858         module indicator.
9859         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9861 2020-01-03  Bruno Haible  <bruno@clisp.org>
9863         doc: Mention the 64-bit inode number problem.
9864         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9865         64-bit inode number problem.
9866         * doc/posix-functions/stat.texi: Mention that this module fixes the
9867         64-bit inode number problem.
9868         * doc/posix-functions/lstat.texi: Likewise.
9869         * doc/posix-functions/fstat.texi: Likewise.
9870         * doc/posix-functions/readdir.texi: Add more details.
9871         * doc/posix-functions/readdir_r.texi: Likewise.
9873 2020-01-02  Bruno Haible  <bruno@clisp.org>
9875         wcrtomb: Add more tests.
9876         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9877         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9878         locale_charset() returns the expected value; otherwise, skip the test.
9879         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9880         * tests/test-wcrtomb-w32-7.sh: Likewise.
9881         * modules/wcrtomb-tests (Files): Add these files.
9882         (Depends-on): Add localcharset.
9883         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9885 2020-01-02  Bruno Haible  <bruno@clisp.org>
9887         mbrtowc: Add more tests.
9888         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9889         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9890         locale_charset() returns the expected value; otherwise, skip the test.
9891         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9892         * tests/test-mbrtowc-w32-7.sh: Likewise.
9893         * modules/mbrtowc-tests (Files): Add these files.
9894         (Depends-on): Add localcharset.
9895         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9897 2020-01-02  Bruno Haible  <bruno@clisp.org>
9899         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9900         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9901         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9902         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9903         MBRTOWC_STORES_INCOMPLETE_BUG.
9904         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9906 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9908         doc: mention glibc bug 24269
9909         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9910         Reformat slightly so that it looks nicer in the Grep manual.
9912 2020-01-02  Bruno Haible  <bruno@clisp.org>
9914         mbrtowc: Don't replace mbstate_t on MSVC.
9915         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9916         a missing mbsinit function on native Windows.
9917         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9918         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9919         MSVC bug.
9920         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9922 2020-01-02  Bruno Haible  <bruno@clisp.org>
9924         setlocale-null: Avoid crashing the MSVC linker.
9925         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9926         MSVC.
9928 2020-01-02  Bruno Haible  <bruno@clisp.org>
9930         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9931         * modules/wchar (Depends-on): Add inttypes-incomplete.
9932         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9933         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9934         of strtoimax.
9936 2020-01-02  Bruno Haible  <bruno@clisp.org>
9938         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
9939         * lib/mbrtowc.c: Include <stdint.h>.
9940         * modules/mbrtowc (Depends-on): Add stdint.
9942 2020-01-01  Pádraig Brady  <P@draigBrady.com>
9944         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
9945         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
9946         which will auto enable use of openssl, only for >= version 3,
9947         which is newly licensed under the Apache Software License.
9949 2020-01-01  Bruno Haible  <bruno@clisp.org>
9951         mbrtowc: Include function name in macro names.
9952         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9953         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9954         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9955         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9956         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9957         C_LOCALE_MAYBE_EILSEQ.
9959 2020-01-01  Bruno Haible  <bruno@clisp.org>
9961         c32tob: New module.
9962         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9963         (c32tob): New declaration.
9964         * lib/c32tob.c: New file.
9965         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9966         macros.
9967         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9968         * modules/uchar (Depends-on): Add snippet/c++defs.
9969         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9970         uchar.h.
9971         * modules/c32tob: New file.
9972         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9973         defined.
9974         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9975         c32tob.
9976         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9977         * doc/posix-functions/wctob.texi: Mention the new module.
9979 2020-01-01  Bruno Haible  <bruno@clisp.org>
9981         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9982         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9983         $(LIB_SETLOCALE).
9985 2020-01-01  Bruno Haible  <bruno@clisp.org>
9987         hard-locale tests: Fix a conflict with the C++ tests.
9988         * modules/hard-locale-tests (Makefile.am): Build a program named
9989         'current-locale', not 'locale'.
9991 2020-01-01  Bruno Haible  <bruno@clisp.org>
9993         doc: Update documentation about wchar_t.
9994         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9995         wchar_t type.
9997 2020-01-01  Bruno Haible  <bruno@clisp.org>
9999         mbrtowc tests: Fix typos.
10000         * tests/test-mbrtowc.c (main): Fix typo.
10001         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10003 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10005         maint: update copyright notices
10006         Before doing the following changes done by hand, I also ran ‘make
10007         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10008         to do most of the copyright years automatically.  A few upstream
10009         sources are still in 2019 but these should eventually be changed
10010         automatically too.
10011         * build-aux/declared.sh (func_version):
10012         * build-aux/libtool-next-version (func_version):
10013         * build-aux/run-test (func_version):
10014         Update these notices by hand.  Put just the last year
10015         in output of programs, as per GNU coding standards.
10017 2019-12-31  Bruno Haible  <bruno@clisp.org>
10019         uchar: Add C++ tests.
10020         * tests/test-uchar-c++.cc: New file.
10021         * tests/test-uchar-c++2.cc: New file.
10022         * modules/uchar-c++-tests: New file.
10024         uchar: Add tests.
10025         * tests/test-uchar.c: New file.
10026         * modules/uchar-tests: New file.
10028         uchar: New module.
10029         * lib/uchar.in.h: New file.
10030         * m4/uchar.m4: New file.
10031         * modules/uchar: New file.
10032         * doc/posix-headers/uchar.texi: Mention the new module.
10034 2019-12-30  Jim Meyering  <meyering@fb.com>
10036         localeinfo: ->simple would be wrong for LC_ALL=C
10037         That would lead to using unnecessary and expensive code paths in dfa.c.
10038         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10039         error that would have made grep many times slower in the C locale.
10040         With this change, and a file created like this:
10041           yes 00 | head -10000000 > in
10042         Running grep as follows becomes more than 40 times faster:
10043           LC_ALL=C grep -Fw 0 in
10045 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10047         doc: document trouble with back-references
10048         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10050 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10052         doc: use “back-reference” for \1 etc.
10053         * doc/regex.texi: Consistently spell “back-reference” with
10054         a hyphen, since that’s how POSIX does it.
10056 2019-12-26  Jim Meyering  <meyering@fb.com>
10058         test-framework-sh: tighten an internal grep regexp
10059         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10060         that helps test for a working printf.
10062 2019-12-26  Bruno Haible  <bruno@clisp.org>
10064         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10065         Reported by Paul Eggert in
10066         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10067         Simplification by Jim Meyering.
10068         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10069         octal escape sequence in a UTF-8 locale.
10071 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10073         mbrtowc: port better to narrow-wchar_t platforms
10074         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10075         wchar_t is too narrow to represent all the Unicode characters,
10076         consider a byte sequence for an out-of-wchar_t-range character to
10077         be an encoding error.  This fixes grep’s surrogate-pair test
10078         failure on AIX 7.2.
10080 2019-12-24  Bruno Haible  <bruno@clisp.org>
10082         localcharset: Avoid referencing rpl_setlocale on native Windows.
10083         * lib/localcharset.c (setlocale): Undefine.
10085 2019-12-24  Bruno Haible  <bruno@clisp.org>
10087         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10088         * m4/semaphore.m4: New file.
10089         * modules/lock-tests (Files): Add it.
10090         (configure.ac): Require gl_SEMAPHORE.
10091         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10093 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10095         strptime: fix typo in previous patch
10096         Problem and fix reported by Bruno Haible in:
10097         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10098         * lib/strptime.c (day_of_the_week): Fix paren bug.
10100 2019-12-24  Bruno Haible  <bruno@clisp.org>
10102         setlocale-null: Make it easy to rely on the lock in another library.
10103         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10104         defined.
10106 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10108         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10109         Performanced analyzed by Bruno Haible in:
10110         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10111         * config/srclist.txt: Do not sync mktime.c for now.
10112         * lib/mktime.c (shr, ydhms_diff):
10113         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10114         * lib/strptime.c (day_of_the_week):
10115         * lib/xtime.h (xtime_sec):
10116         Redo with neither ‘%’ nor conditional branches.
10118 2019-12-23  Bruno Haible  <bruno@clisp.org>
10120         setlocale-null: Export the lock function also on non-Windows platforms.
10121         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10122         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10123         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10124         * modules/setlocale-null (configure.ac): Invoke it.
10125         (Files): Add m4/visibility.m4.
10127 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10129         gethrxtime: fix rounding bug with negative args
10130         Problem reported by Bruno Haible in:
10131         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10132         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10133         with negative rounding.  Common platforms can compute / and % with
10134         a single instruction, so the simplified code should be shorter and
10135         faster on these platforms anyway.
10137 2019-12-22  Bruno Haible  <bruno@clisp.org>
10139         gethrxtime: remove incorrect overflow detection
10140         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10141         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10142         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10143         cannot now see the need for anyway (even in cases where it works),
10144         as the patch is helpful only when the signs of S and NS disagree,
10145         and all callers pass nonnegative values for S and NS.
10147 2019-12-22  Bruno Haible  <bruno@clisp.org>
10149         setlocale-null: Add standalone include file.
10150         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10151         * lib/locale.in.h: Include setlocale_null.h.
10152         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10153         setlocale_null): Remove declarations.
10154         * lib/setlocale_null.c: Include setlocale_null.h.
10155         * lib/localename.c: Likewise.
10156         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10157         (Depends-on): Add snippet/arg-nonnull.
10158         (Include): Allow either "setlocale_null.h" or <locale.h>.
10160 2019-12-22  Bruno Haible  <bruno@clisp.org>
10162         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10163         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10164         AC_RUN_IFELSE test.
10165         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10166         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10167         problem.
10169 2019-12-22  Bruno Haible  <bruno@clisp.org>
10171         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10172         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10173         unconditional AC_LIBOBJ.
10174         * modules/selinux-at: Likewise.
10175         * modules/xmemdup0: Likewise.
10176         * modules/xstrtoll: Likewise.
10178 2019-12-22  Bruno Haible  <bruno@clisp.org>
10180         longlong: Mark module obsolete.
10181         * modules/longlong (Status, Notice): New sections.
10183         stdint: Assume that the compiler supports 'long long'.
10184         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10185         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10186         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10187         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10188         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10189         * modules/stdint (Files): Remove longlong.m4.
10190         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10191         HAVE_UNSIGNED_LONG_LONG_INT.
10193         inttypes-incomplete: Assume that the compiler supports 'long long'.
10194         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10195         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10196         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10197         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10198         HAVE_LONG_LONG_INT to be 1.
10199         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10200         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10202         malloca: Assume that the compiler supports 'long long'.
10203         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10204         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10205         * modules/malloca (Files): Remove longlong.m4.
10206         * modules/relocatable-prog-wrapper (Files): Likewise.
10208         atoll: Assume that the compiler supports 'long long'.
10209         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10210         * modules/atoll (Files): Remove longlong.m4.
10212         strtoll: Assume that the compiler supports 'long long'.
10213         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10214         * modules/strtoll (Files): Remove longlong.m4.
10216         strtoull: Assume that the compiler supports 'long long'.
10217         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10218         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10219         * modules/strtoull (Files): Remove longlong.m4.
10221         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10222         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10223         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10224         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10225         AC_TYPE_LONG_LONG_INT.
10226         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10227         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10228         * modules/strtoimax (Files): Remove longlong.m4.
10229         * modules/strtoumax (Files): Likewise.
10231         xstrtoll: Assume that the compiler supports 'long long'.
10232         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10233         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10235         vasnprintf: Assume that the compiler supports 'long long'.
10236         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10237         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10238         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10239         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10240         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10241         require AC_TYPE_LONG_LONG_INT.
10242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10243         gl_PREREQ_VASNPRINTF): Likewise.
10244         * modules/vasnprintf (Files): Remove longlong.m4.
10245         * modules/c-vasnprintf (Files): Likewise.
10246         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10247         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10248         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10249         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10250         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10251         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10252         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10254         gethrxtime: Assume that the compiler supports 'long long'.
10255         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10256         (XTIME_PRECISION): Define to 1000000000 always.
10257         (xtime_make, xtime_sec): Optimize accordingly.
10258         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10259         * modules/gethrxtime (Files): Remove longlong.m4.
10261         integer_length*: Assume that the compiler supports 'long long'.
10262         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10263         * modules/integer_length (Files): Remove longlong.m4.
10264         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10265         * modules/integer_length_l (Files): Remove longlong.m4.
10266         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10267         * modules/integer_length_ll (Files): Remove longlong.m4.
10268         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10270         count-one-bits: Assume that the compiler supports 'long long'.
10271         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10272         * m4/count-one-bits.m4: Remove file.
10273         * modules/count-one-bits (Files): Remove it.
10274         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10275         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10276         unconditionally.
10278         count-trailing-zeros: Assume that the compiler supports 'long long'.
10279         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10280         unconditionally.
10281         * m4/count-trailing-zeros.m4: Remove file.
10282         * modules/count-trailing-zeros (Files): Remove it.
10283         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10284         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10285         unconditionally.
10287         count-leading-zeros: Assume that the compiler supports 'long long'.
10288         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10289         unconditionally.
10290         * m4/count-leading-zeros.m4: Remove file.
10291         * modules/count-leading-zeros (Files): Remove it.
10292         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10293         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10294         unconditionally.
10296 2019-12-22  Bruno Haible  <bruno@clisp.org>
10298         localcharset: Update support for OpenBSD.
10299         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10301 2019-12-21  Bruno Haible  <bruno@clisp.org>
10303         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10304         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10305         NetBSD.
10306         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10308 2019-12-21  Bruno Haible  <bruno@clisp.org>
10310         threadlib: Improve code structure.
10311         * m4/threadlib.m4: Reorder macros. Add comments.
10313 2019-12-21  Bruno Haible  <bruno@clisp.org>
10315         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10316         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10317         here from m4/threads.m4).
10318         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10319         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10320         (gl_STDTHREADLIB): New macro.
10321         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10322         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10324 2019-12-21  Bruno Haible  <bruno@clisp.org>
10326         sched_yield: Don't depend on threadlib and yield.
10327         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10328         LIB_SCHED_YIELD.
10329         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10330         m4/yield.m4).
10331         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10332         gl_THREADLIB and gl_YIELD.
10333         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10334         based on $(LIB_SCHED_YIELD).
10335         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10336         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10337         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10338         (Depends-on): Remove threadlib.
10339         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10340         * modules/threads-h (Files): Remove m4/yield.m4.
10341         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10342         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10343         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10344         * modules/pthread-once-tests (Makefile.am): Likewise.
10345         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10346         * modules/pthread-tss-tests (Makefile.am): Likewise.
10348 2019-12-21  Bruno Haible  <bruno@clisp.org>
10350         threads-h: Don't depend on threadlib.
10351         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10352         not gl_THREADLIB_EARLY.
10354 2019-12-21  Bruno Haible  <bruno@clisp.org>
10356         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10357         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10358         with $(LIB_SETLOCALE).
10360 2019-12-21  Bruno Haible  <bruno@clisp.org>
10362         threadlib: Remove unused dependency (left over from 2019-07-06).
10363         * modules/threadlib (Depends-on): Remove havelib.
10365 2019-12-21  Bruno Haible  <bruno@clisp.org>
10367         New convention for multithread-safety tests.
10368         * tests/test-setlocale_null-mt-one.c: Renamed from
10369         tests/test-setlocale_null-one.c.
10370         * tests/test-setlocale_null-mt-all.c: Renamed from
10371         tests/test-setlocale_null-all.c.
10372         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10374 2019-12-21  Bruno Haible  <bruno@clisp.org>
10376         quotearg tests: Fix conflict with hard-locale tests.
10377         * tests/testlocale: Renamed from tests/locale.
10378         * modules/quotearg-tests (Files): Update.
10379         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10381 2019-12-21  Bruno Haible  <bruno@clisp.org>
10383         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10384         Reported by Daniel Richard G. in
10385         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10386         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10387         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10388         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10389         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10390         alternative to PTHREAD_RWLOCK_INITIALIZER.
10391         * lib/glthread/lock.c: Likewise.
10393 2019-12-21  Bruno Haible  <bruno@clisp.org>
10395         memcmp tests: Work around the clang bug.
10396         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10397         the clang optimization.
10399 2019-12-20  Bruno Haible  <bruno@clisp.org>
10401         localcharset: Add support for z/OS encoding names.
10402         * lib/localcharset.h: Mention which encodings are used as locale
10403         encodings on z/OS.
10405 2019-12-20  Bruno Haible  <bruno@clisp.org>
10407         iconv_open: Add support for z/OS encoding names.
10408         Reported by Daniel Richard G. in
10409         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10410         * lib/iconv_open-zos.gperf: New file.
10411         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10412         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10413         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10415         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10417 2019-12-20  Bruno Haible  <bruno@clisp.org>
10419         doc: Document the problem of the per-thread locale functions on z/OS.
10420         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10421         * doc/posix-functions/newlocale.texi: Likewise.
10422         * doc/posix-functions/duplocale.texi: Likewise.
10423         * doc/posix-functions/freelocale.texi: Likewise.
10425 2019-12-20  Bruno Haible  <bruno@clisp.org>
10427         localename, gettext: Fix host_os value for z/OS.
10428         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10429         cross-configuration code.
10431 2019-12-19  Jim Meyering  <meyering@fb.com>
10433         nstrftime: avoid a shadowing warning
10434         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10435         to avoid shadowing an "i" declared hundreds of lines above.
10437 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10439         dfa: struct dfamust now uses flexible array
10440         * lib/dfa.c: Include flexmember.h.
10441         (dfamust, dfamustfree): Adjust to struct dfamust change.
10442         This saves a call to malloc+free.
10443         * lib/dfa.h (struct dfamust): Make the final member a
10444         flexible array member.
10445         * modules/dfa (Depends-on): Add flexmember.
10447         dfa: fast->small for array elements
10448         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10449         since this type is used in arrays.  This change is more for
10450         documentation than for any practical effect, since the two types
10451         are the same on all known platforms.
10453 2019-12-19  Bruno Haible  <bruno@clisp.org>
10455         iconv tests: Test canonicalized, not system-dependent, encoding names.
10456         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10457         * modules/iconv-tests (Depends-on): Add iconv_open.
10459 2019-12-18  Bruno Haible  <bruno@clisp.org>
10461         localename: Fix test failure on AIX 7.2.
10462         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10463         locales on AIX.
10464         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10465         locales on AIX.
10467 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10469         Improve port of AC_C_RESTRICT to Oracle C++
10470         Problem reported by Christian Biesinger in:
10471         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10472         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10473         Oracle Developer Studio C++ 12.5 or later.
10475 2019-12-18  Bruno Haible  <bruno@clisp.org>
10477         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10478         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10480 2019-12-18  Bruno Haible  <bruno@clisp.org>
10482         localename: Ensure multithread-safety in future changes.
10483         * lib/localename.c (setlocale): Reference the system's setlocale().
10484         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10485         (gl_locale_name_posix): Likewise.
10486         * modules/localename (Depends-on): Add setlocale-null.
10488 2019-12-18  Bruno Haible  <bruno@clisp.org>
10490         setlocale-null: Make API more useful.
10491         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10492         callers changed.
10493         (setlocale_null): New declaration.
10494         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10495         extracted from setlocale_null_unlocked.
10496         (setlocale_null_unlocked): Invoke it.
10497         (setlocale_null_r): Renamed from setlocale_null.
10498         (setlocale_null): New function, extracted from setlocale_mtsafe in
10499         setlocale.c.
10500         * lib/setlocale.c: Don't include <errno.h>.
10501         (setlocale_mtsafe): Invoke setlocale_null.
10502         * lib/setlocale-lock.c: Update comments.
10503         * doc/posix-functions/setlocale.texi: Mention both functions.
10505 2019-12-18  Bruno Haible  <bruno@clisp.org>
10507         localename: Optimize code for native Windows.
10508         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10509         category (not allowed here).
10511 2019-12-18  Bruno Haible  <bruno@clisp.org>
10513         setlocale: Make calls with NULL argument multithread-safe.
10514         * lib/setlocale.c: Include <errno.h>.
10515         (setlocale_mtsafe): New function.
10516         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
10517         (setlocale_improved): Renamed from rpl_setlocale.
10518         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10519         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
10520         LIB_SETLOCALE.
10521         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
10522         (Link): New section.
10523         * tests/locale.c: Undefine setlocale.
10524         * tests/test-setlocale_null-one.c: Likewise.
10525         * tests/test-setlocale_null-all.c: Likewise.
10526         * modules/setlocale-tests (Makefile.am): Link the test programs with
10527         $(LIB_SETLOCALE).
10528         * modules/astrxfrm-tests (Makefile.am): Likewise.
10529         * modules/btowc-tests (Makefile.am): Likewise.
10530         * modules/c-ctype-tests (Makefile.am): Likewise.
10531         * modules/c-snprintf-tests (Makefile.am): Likewise.
10532         * modules/c-strcase-tests (Makefile.am): Likewise.
10533         * modules/c-vasprintf-tests (Makefile.am): Likewise.
10534         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
10535         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
10536         * modules/dfa-tests (Makefile.am): Likewise.
10537         * modules/duplocale-tests (Makefile.am): Likewise.
10538         * modules/hard-locale-tests (Makefile.am): Likewise.
10539         * modules/localcharset-tests (Makefile.am): Likewise.
10540         * modules/localename-tests (Makefile.am): Likewise.
10541         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10542         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10543         * modules/mbrtowc-tests (Makefile.am): Likewise.
10544         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10545         * modules/mbscasestr-tests (Makefile.am): Likewise.
10546         * modules/mbschr-tests (Makefile.am): Likewise.
10547         * modules/mbscspn-tests (Makefile.am): Likewise.
10548         * modules/mbsinit-tests (Makefile.am): Likewise.
10549         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10550         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10551         * modules/mbspbrk-tests (Makefile.am): Likewise.
10552         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10553         * modules/mbsrchr-tests (Makefile.am): Likewise.
10554         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10555         * modules/mbsspn-tests (Makefile.am): Likewise.
10556         * modules/mbsstr-tests (Makefile.am): Likewise.
10557         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10558         * modules/quotearg-tests (Makefile.am): Likewise.
10559         * modules/regex-tests (Makefile.am): Likewise.
10560         * modules/strfmon_l-tests (Makefile.am): Likewise.
10561         * modules/strtod-tests (Makefile.am): Likewise.
10562         * modules/strtold-tests (Makefile.am): Likewise.
10563         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10564         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10565         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10566         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
10567         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10568         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10569         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10570         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10571         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10572         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10573         * modules/wcrtomb-tests (Makefile.am): Likewise.
10574         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10575         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10576         * modules/wcwidth-tests (Makefile.am): Likewise.
10577         * doc/posix-functions/setlocale.texi: Mention that the multithread-
10578         safety fix is also available in module 'setlocale'.
10580 2019-12-18  Bruno Haible  <bruno@clisp.org>
10582         hard-locale: Make multithread-safe.
10583         * lib/hard-locale.h (hard_locale): Move documentation to here.
10584         * lib/hard-locale.c: Don't include <stdlib.h>.
10585         (GLIBC_VERSION): Remove macro.
10586         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
10587         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
10588         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
10589         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
10590         (Link): New section.
10591         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10592         $(LIB_HARD_LOCALE).
10594 2019-12-18  Bruno Haible  <bruno@clisp.org>
10596         hard-locale: Avoid test failure on Haiku.
10597         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10599 2019-12-18  Bruno Haible  <bruno@clisp.org>
10601         setlocale-null: Handle NULL result from setlocale.
10602         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10603         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10604         from setlocale or _wsetlocale.
10606 2019-12-18  Bruno Haible  <bruno@clisp.org>
10608         hard-locale: Add test.
10609         * tests/test-hard-locale.c: New file.
10610         * tests/locale.c: New file.
10611         * modules/hard-locale-tests: New file.
10613 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10615         dfa: do not match invalid UTF-8
10616         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10617         from 5 to 9 tokens; this is needed due to the changes to
10618         add_utf8_anychar.
10619         (charclass_index): 2nd arg is now pointer-to-const.
10620         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10621         instead of allowing overlong encodings or surrogate halves.
10623         dfa: simplify charclass by assuming C99
10624         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10625         (charclass_word): Now always uint_fast64_t.
10626         (CHARCLASS_PAIR): Remove.
10627         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10629         fts: tune via calloc
10630         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10632         dfa: tune via xzalloc
10633         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10635 2019-12-17  Bruno Haible  <bruno@clisp.org>
10637         localcharset: Fix multithread-safety bug on Windows and OS/2.
10638         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10639         invalid.
10640         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10641         assemble the result.
10643 2019-12-17  Bruno Haible  <bruno@clisp.org>
10645         localcharset: Optimize code for native Windows.
10646         * lib/localcharset.c (locale_charset): Don't bother calling
10647         setlocale (LC_ALL, NULL) since we're not interested in its result.
10649 2019-12-17  Bruno Haible  <bruno@clisp.org>
10651         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10652         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10653         setlocale.
10654         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10655         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10656         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10658 2019-12-17  Bruno Haible  <bruno@clisp.org>
10660         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10661         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10662         stack-allocated buffer to assemble each result and different static
10663         buffers to return it.
10664         * tests/test-nl_langinfo-mt.c: New file.
10665         * modules/nl_langinfo-tests (Files): Add it.
10666         (Depends-on): Add thread, nanosleep.
10667         (Makefile.am): Build test-nl_langinfo-mt test.
10669 2019-12-17  Bruno Haible  <bruno@clisp.org>
10671         langinfo: Document more details.
10672         * doc/posix-headers/langinfo.texi: List platform details.
10673         * doc/posix-functions/nl_langinfo.texi: Likewise.
10675 2019-12-17  Bruno Haible  <bruno@clisp.org>
10677         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10678         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10679         and Martin Storsjö <martin@martin.st>
10680         in <https://savannah.gnu.org/bugs/?57406>.
10681         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10682         mingw.
10684 2019-12-17  Bruno Haible  <bruno@clisp.org>
10686         glob: Avoid warning on mingw.
10687         Reported by Christian Biesinger <cbiesinger@google.com> in
10688         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10689         * lib/glob.c (__stat64): Undefine first.
10691 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10693         xalloc: tune xzalloc for fresh allocations
10694         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10695         because when the memory is freshly allocated from the OS via sbrk
10696         or mmap, calloc can avoid doing the memset.
10698         dfa: new function dfacopysyntax
10699         * lib/dfa.c (struct dfa): Move syntax member later so
10700         that dfacopysyntax can easily clear earlier members.
10701         (dfacopysyntax): New function, used by Gawk.
10703 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10705         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10706         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10707         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10708         if not already defined.
10710         dfa: remove one dependency on MB_CUR_MAX
10711         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10713         dfa: remove struct lexer_state.cur_mb_len
10714         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10715         as it’s not needed and the code is simpler without it.
10716         All uses removed.
10718 2019-12-16  Bruno Haible  <bruno@clisp.org>
10720         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10721         Reported by Arnold Robbins <arnold@skeeve.com>.
10722         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10723         copied from lib/glthread/lock.h.
10724         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10725         (setlocale_null_with_lock): If pthread_in_use() is false, use
10726         setlocale_null_unlocked directly.
10727         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10728         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10729         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10730         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10731         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10732         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10734 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10736         dfa: make dfasyntax thread-safe
10737         Problem reported by Bruno Haible in:
10738         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10739         * lib/dfa.c: Do not include locale.h.
10740         (struct dfa): Remove simple_locale member.
10741         All uses replaced by localeinfo.simple.
10742         (using_simple_locale): Remove; now present (with some
10743         changes) in localeinfo.c.
10744         (dfasyntax): No need to initialize removed member.
10746         localeinfo: record whether locale is simple
10747         * lib/localeinfo.c (using_simple_locale): New function,
10748         copied here from lib/dfa.c but with a change: it uses
10749         strcoll for its heuristic, instead of using setlocale.
10750         This lets it be thread-safe.
10751         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10753 2019-12-15  Bruno Haible  <bruno@clisp.org>
10755         duplocale: Fix multithread-safety bug on AIX.
10756         * lib/duplocale.c: Don't include <stdlib.h>.
10757         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10758         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10759         Set LIB_DUPLOCALE.
10760         * modules/duplocale (Depends-on): Add setlocale-null.
10761         (Link): New section.
10762         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10763         $(LIB_DUPLOCALE).
10765 2019-12-15  Bruno Haible  <bruno@clisp.org>
10767         setlocale-null: Add tests.
10768         * tests/test-setlocale_null.c: New file.
10769         * tests/test-setlocale_null-one.c: New file.
10770         * tests/test-setlocale_null-all.c: New file.
10771         * modules/setlocale-null-tests: New file.
10773         setlocale-null: New module.
10774         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10775         setlocale_null): New declarations.
10776         * lib/setlocale_null.c: New file.
10777         * lib/setlocale-lock.c: New file.
10778         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10779         * m4/setlocale_null.m4: New file.
10780         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10781         GNULIB_SETLOCALE_NULL.
10782         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10783         * modules/setlocale-null: New file.
10784         * doc/posix-functions/setlocale.texi: Mention the new module.
10786 2019-12-15  Bruno Haible  <bruno@clisp.org>
10788         lock tests: Skip test when no multithreading is enabled.
10789         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10791 2019-12-14  Bruno Haible  <bruno@clisp.org>
10793         locale, duplocale, localename: Fix last patch.
10794         Reported by Daniel Richard G. in
10795         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10796         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10797         Don't define if locale_t does not exist.
10799 2019-12-13  Bruno Haible  <bruno@clisp.org>
10801         locale, duplocale, localename: Fix errors if locale_t does not exist.
10802         Reported by Daniel Richard G. in
10803         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10804         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10805         macros.
10806         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10807         HAVE_NEWLOCALE.
10808         * tests/test-localename.c: Likewise.
10809         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10810         HAVE_DUPLOCALE.
10811         * tests/test-locale-c++.cc: Likewise.
10813 2019-12-13  Bruno Haible  <bruno@clisp.org>
10815         wcstok: Fix test failure on HP-UX.
10816         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10817         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10819 2019-12-12  Bruno Haible  <bruno@clisp.org>
10821         strtod, strtold tests: Avoid test failure on AIX 7.2.
10822         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10823         '.' both are radix characters.
10824         * tests/test-strtold1.c (main): Likewise.
10826 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10828         dfa: prefer ptrdiff_t for API, too
10829         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10830         but do this only for internal use for now.
10831         * NEWS: Mention the API change.
10832         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10833         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10834         values known to be nonnegative.
10835         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10836         Prefer idx_t or ptrdiff_t to size_t for API.
10837         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10838         Prefer ptrdiff_t to size_t for API.
10840         stdalign: port to xlclang 16.01
10841         Problem reportd by Bruno Haible in:
10842         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10843         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10844         ((__aligned__ (...))) with xlclang, as a top-level
10845         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10846         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10848 2019-12-12  Bruno Haible  <bruno@clisp.org>
10850         duplocale: Fix test failure on AIX 7.2 with xlclang.
10851         * lib/duplocale.c: Include <stdlib.h>.
10852         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10853         value.
10855 2019-12-12  Bruno Haible  <bruno@clisp.org>
10857         stddef: Document the AIX xlc issue.
10858         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10860 2019-12-12  Bruno Haible  <bruno@clisp.org>
10862         duplocale: Don't attempt to override if locale_t does not exist.
10863         Reported by Daniel Richard G. in
10864         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10865         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10866         HAVE_DUPLOCALE to 0.
10868 2019-12-12  Bruno Haible  <bruno@clisp.org>
10870         wcwidth: Avoid test failure on AIX 7.2.
10871         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10872         negative.
10873         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10875 2019-12-12  Bruno Haible  <bruno@clisp.org>
10877         ilogbl: Work around Cygwin bug.
10878         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10879         correct.
10880         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10882 2019-12-12  Bruno Haible  <bruno@clisp.org>
10884         strtold: Work around Cygwin bug.
10885         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10886         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10887         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10888         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10889         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10891 2019-12-12  Bruno Haible  <bruno@clisp.org>
10893         strtold: Fix autoconf test.
10894         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10896 2019-12-11  Bruno Haible  <bruno@clisp.org>
10898         fsync tests: Skip test that is known to fail.
10899         * doc/posix-functions/fsync.texi: Update list of platforms.
10900         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10901         that is known to fail on AIX and Cygwin.
10903 2019-12-11  Bruno Haible  <bruno@clisp.org>
10905         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10907         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10908         HAVE_GETADDRINFO as a C macro.
10909         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10910         declare as replacement functions.
10911         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10912         define as no-op overrides.
10913         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10914         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10915         * modules/getaddrinfo (Depends-on, configure.ac): Test
10916         REPLACE_GETADDRINFO.
10917         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10918         problem.
10919         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10920         convention problems.
10922 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10924         dfa: prefer signed integers for internals
10925         Signed integers can be checked more easily for integer overflow.
10926         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10927         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10928         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10929         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10930         (replace, state_index, epsclosure, charclass_context)
10931         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10932         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10933         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10934         (comsubs, inboth, allocmust):
10935         Prefer a signed to an unsigned integer when calculating indexes,
10936         unless the integer is part of the external API (a bigger deal,
10937         and to be done later).
10939         dfa: fix index overflow
10940         * lib/dfa.c (compare): Avoid integer overflow when analyzing
10941         very large regular expressions.
10943         dfa: update commentary for previous change
10944         * NEWS: Mention the change.
10945         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10947 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10949         dfa: separate parse and compile phase
10950         ‘dfamust’ must be called after parsing and before tokens are
10951         reordered, but both are executed in the compilation phase.
10952         Token reordering was introduced in Gnulib commit
10953         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10954         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10955         * lib/dfa.c (dfaparse): Change it to global function.
10956         (dfacomp): If first argument is NULL, skip parse.
10957         * lib/dfa.h: (dfaparse): Add a prototype.
10959 2019-12-11  Bruno Haible  <bruno@clisp.org>
10961         unistd tests: Fix link error on MSVC.
10962         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10963         $(LIB_GETLOGIN).
10965 2019-12-11  Bruno Haible  <bruno@clisp.org>
10967         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10968         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10969         and POSIX substitutes are supported in C++ mode.
10970         * NEWS: Likewise.
10972 2019-12-11  Bruno Haible  <bruno@clisp.org>
10974         stddef: Fix compilation error in C++ mode on MSVC.
10975         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10976         instead, include <cstddef>.
10978 2019-12-11  Bruno Haible  <bruno@clisp.org>
10980         unistd: Fix compilation error in C++ mode on MSVC.
10981         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10982         does not have <unistd.h>.
10984 2019-12-11  Bruno Haible  <bruno@clisp.org>
10986         locale: Fix compilation error in C++ mode on MSVC.
10987         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10988         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10989         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10990         int_n_sep_by_space): Define as macros on MSVC.
10992 2019-12-11  Bruno Haible  <bruno@clisp.org>
10994         wchar: Fix compilation error in C++ mode on MSVC.
10995         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10997 2019-12-11  Bruno Haible  <bruno@clisp.org>
10999         pthread-thread: Fix compilation error in C++ mode on MSVC.
11000         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11001         _GL_CXXALIAS_RPL invocation.
11003 2019-12-08  Bruno Haible  <bruno@clisp.org>
11005         Fix compilation errors in C++ mode on Haiku.
11006         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11007         non-glibc systems.
11008         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11009         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11010         posix_spawnattr_setschedparam): Likewise.
11011         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11012         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11013         * lib/unistd.in.h (usleep): Likewise.
11015 2019-12-08  Bruno Haible  <bruno@clisp.org>
11017         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11018         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11019         * modules/fseeko (configure.ac-early): Require it instead of
11020         AC_FUNC_FSEEKO.
11021         * modules/ftello (configure.ac-early): Likewise.
11022         * modules/fflush (configure.ac-early): Likewise.
11024 2019-12-08  Bruno Haible  <bruno@clisp.org>
11026         Fix compilation error in C++ mode on HP-UX 11.
11027         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11028         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11030 2019-12-08  Bruno Haible  <bruno@clisp.org>
11032         Fix compilation errors on HP-UX 11/ia64.
11033         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11034         _GL_FUNCDECL_SYS.
11036 2019-12-08  Bruno Haible  <bruno@clisp.org>
11038         Fix compilation error in C++ mode on OpenBSD.
11039         * lib/signal.in.h (signal): Declare on OpenBSD.
11041 2019-12-08  Bruno Haible  <bruno@clisp.org>
11043         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11044         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11045         instead of #error.
11047 2019-12-08  Bruno Haible  <bruno@clisp.org>
11049         Fix compilation errors in C++ mode on FreeBSD.
11050         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11051         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11052         * lib/threads.in.h (thrd_exit): Likewise.
11053         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11055 2019-12-08  Bruno Haible  <bruno@clisp.org>
11057         Fix compilation errors in C++ mode on macOS and FreeBSD.
11058         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11059         or FreeBSD with clang, use the approach without C preprocessor macro.
11061 2019-12-07  Bruno Haible  <bruno@clisp.org>
11063         Fix compilation errors in C++ mode on AIX with xlclang++.
11064         Reported by Christian Biesinger <cbiesinger@google.com> in
11065         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11066         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11068 2019-12-07  Bruno Haible  <bruno@clisp.org>
11070         Document compilation error in C++ mode on NetBSD 8.0.
11071         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11073 2019-12-07  Bruno Haible  <bruno@clisp.org>
11075         Fix compilation errors in C++ mode on Solaris 10.
11076         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11077         to non-empty on Solaris with a non-GCC compiler.
11078         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11080 2019-12-07  Bruno Haible  <bruno@clisp.org>
11082         Reword NEWS entry.
11083         * NEWS: Reword the latest NEWS entry.
11085 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11087         Move xstrtol_fatal to a new xstrtol-error module.
11088         * lib/xstrtol.h: Stop including <getopt.h>.
11089         (xstrtol_fatal): Move ...
11090         * lib/xstrtol-error.h: ... here.  New file.
11091         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11092         * tests/test-xstrtol.c: Likewise.
11093         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11094         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11095         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11096         * modules/xstrtol-error: New file.
11097         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11098         * MODULES.html.sh: Add xstrtol-error.
11099         * NEWS: Document the change.
11101 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11103         nstrftime: better width support for %N, %z
11104         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11105         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11106         a new WIDTH parameter.
11107         (add, add1, cpy): Use these macros.
11108         (width_add): Do not treat digits == 0 as a special case,
11109         do not pad if padding is ‘-’, and do not use a negative width.
11110         (__strftime_internal): Redo formatting of nanoseconds and numeric
11111         timezones to avoid buffer misuse in unusual cases, and so that
11112         widths make more sense.  Add support for widths greater than 9 to
11113         the %N format; they are zero filled on the right.
11114         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11116 2019-12-05  Bruno Haible  <bruno@clisp.org>
11118         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11119         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11120         set REPLACE_ISFINITE to 1.
11121         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11122         REPLACE_ISINF to 1.
11123         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11124         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11125         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11126         * lib/threads.in.h (call_once): Likewise.
11127         * lib/iconv.in.h (iconv): Likewise.
11129 2019-12-05  Bruno Haible  <bruno@clisp.org>
11131         wchar: Add more C++ tests.
11132         Reported by Christian Biesinger <cbiesinger@google.com> in
11133         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11134         * tests/test-wchar-c++3.cc: New file.
11135         * modules/wchar-c++-tests (Files): Add it.
11136         (Makefile.am): Compile it.
11138 2019-12-05  Bruno Haible  <bruno@clisp.org>
11140         Add more C++ tests.
11142         assert-h: Add C++ tests.
11143         * tests/test-assert-h-c++.cc: New file.
11144         * tests/test-assert-h-c++2.cc: New file.
11145         * modules/assert-h-c++-tests: New file.
11146         * modules/assert-h-tests: New file.
11148         ctype: Add C++ tests.
11149         * tests/test-ctype-c++.cc: New file.
11150         * tests/test-ctype-c++2.cc: New file.
11151         * modules/ctype-c++-tests: New file.
11152         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11154         errno: Add C++ tests.
11155         * tests/test-errno-c++.cc: New file.
11156         * tests/test-errno-c++2.cc: New file.
11157         * modules/errno-c++-tests: New file.
11158         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11160         float: Add C++ tests.
11161         * tests/test-float-c++.cc: New file.
11162         * tests/test-float-c++2.cc: New file.
11163         * modules/float-c++-tests: New file.
11164         * modules/float-tests (Depends-on): Add float-c++-tests.
11166         inttypes: Add more C++ tests.
11167         * tests/test-inttypes-c++2.cc: New file.
11168         * modules/inttypes-c++-tests (Files): Add it.
11169         (Makefile.am): Compile it.
11171         limits-h: Add C++ tests.
11172         * tests/test-limits-h-c++.cc: New file.
11173         * tests/test-limits-h-c++2.cc: New file.
11174         * modules/limits-h-c++-tests: New file.
11175         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11177         stdarg: Add C++ tests.
11178         * tests/test-stdarg-c++.cc: New file.
11179         * tests/test-stdarg-c++2.cc: New file.
11180         * modules/stdarg-c++-tests: New file.
11181         * modules/stdarg-tests: New file.
11183         stdbool: Add C++ tests.
11184         * tests/test-stdbool-c++.cc: New file.
11185         * tests/test-stdbool-c++2.cc: New file.
11186         * modules/stdbool-c++-tests: New file.
11187         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11189         stddef: Add C++ tests.
11190         * tests/test-stddef-c++.cc: New file.
11191         * tests/test-stddef-c++2.cc: New file.
11192         * modules/stddef-c++-tests: New file.
11193         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11195         stdint: Add C++ tests.
11196         * tests/test-stdint-c++.cc: New file.
11197         * tests/test-stdint-c++2.cc: New file.
11198         * modules/stdint-c++-tests: New file.
11199         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11201         wchar: Add more C++ tests.
11202         * tests/test-wchar-c++2.cc: New file.
11203         * modules/wchar-c++-tests (Files): Add it.
11204         (Makefile.am): Compile it.
11206         wctype-h: Add more C++ tests.
11207         * tests/test-wctype-h-c++2.cc: New file.
11208         * modules/wctype-h-c++-tests (Files): Add it.
11209         (Makefile.am): Compile it.
11211 2019-12-04  Bruno Haible  <bruno@clisp.org>
11213         Fix compilation errors in C++ mode with xlclang++ on AIX.
11214         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11215         C++ mode on AIX.
11216         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11217         without C preprocessor macro.
11218         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11219         _GL_CXXALIAS_SYS.
11220         * lib/threads.in.h (thrd_exit): Likewise.
11222 2019-12-04  Bruno Haible  <bruno@clisp.org>
11224         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11225         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11226         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11228 2019-12-04  Bruno Haible  <bruno@clisp.org>
11230         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11231         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11232         _GL_CXXALIASWARN invocation on non-glibc systems.
11233         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11234         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11235         iswctype, towlower, towupper): Likewise.
11237 2019-12-03  Bruno Haible  <bruno@clisp.org>
11239         Avoid hassles caused by [[noreturn]] in C++.
11240         Reported by Christian Biesinger <cbiesinger@google.com> in
11241         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11242         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11243         * lib/_Noreturn.h: Likewise.
11245 2019-12-02  Bruno Haible  <bruno@clisp.org>
11247         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11248         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11249         LIBMULTITHREAD.
11250         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11251         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11252         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11253         gl_THREADLIB.
11254         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11256 2019-12-02  Bruno Haible  <bruno@clisp.org>
11258         Fix some more link errors with --enable-threads=isoc.
11259         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11260         * modules/pthread-rwlock (Depends-on): Likewise.
11262 2019-12-02  Bruno Haible  <bruno@clisp.org>
11264         Fix link errors with --enable-threads=posix on AIX.
11265         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11266         program with $(LIBTHREAD).
11267         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11268         program with $(LIBTHREAD).
11270 2019-12-02  Bruno Haible  <bruno@clisp.org>
11272         Fix link errors with --enable-threads=posix on AIX.
11273         * modules/mbrtowc (Link): New section.
11274         * modules/acl (Link): Likewise.
11275         * modules/argmatch (Link): Likewise.
11276         * modules/backup-rename (Link): Likewise.
11277         * modules/backupfile (Link): Likewise.
11278         * modules/closein (Link): Likewise.
11279         * modules/closeout (Link): Likewise.
11280         * modules/copy-file (Link): Likewise.
11281         * modules/csharpcomp (Link): Likewise.
11282         * modules/csharpexec (Link): Likewise.
11283         * modules/dfa (Link): Likewise.
11284         * modules/exclude (Link): Likewise.
11285         * modules/fnmatch (Link): Likewise.
11286         * modules/fnmatch-gnu (Link): Likewise.
11287         * modules/fnmatch-posix (Link): Likewise.
11288         * modules/glob (Link): Likewise.
11289         * modules/human (Link): Likewise.
11290         * modules/javacomp (Link): Likewise.
11291         * modules/javaexec (Link): Likewise.
11292         * modules/javaversion (Link): Likewise.
11293         * modules/mbfile (Link): Likewise.
11294         * modules/mbiter (Link): Likewise.
11295         * modules/mbmemcasecmp (Link): Likewise.
11296         * modules/mbmemcasecoll (Link): Likewise.
11297         * modules/mbrlen (Link): Likewise.
11298         * modules/mbscasecmp (Link): Likewise.
11299         * modules/mbscasestr (Link): Likewise.
11300         * modules/mbschr (Link): Likewise.
11301         * modules/mbscspn (Link): Likewise.
11302         * modules/mbsinit (Link): Likewise.
11303         * modules/mbslen (Link): Likewise.
11304         * modules/mbsncasecmp (Link): Likewise.
11305         * modules/mbsnlen (Link): Likewise.
11306         * modules/mbsnrtowcs (Link): Likewise.
11307         * modules/mbspbrk (Link): Likewise.
11308         * modules/mbspcasecmp (Link): Likewise.
11309         * modules/mbsrchr (Link): Likewise.
11310         * modules/mbsrtowcs (Link): Likewise.
11311         * modules/mbssep (Link): Likewise.
11312         * modules/mbsspn (Link): Likewise.
11313         * modules/mbsstr (Link): Likewise.
11314         * modules/mbstok_r (Link): Likewise.
11315         * modules/mbswidth (Link): Likewise.
11316         * modules/mbuiter (Link): Likewise.
11317         * modules/mkdir-p (Link): Likewise.
11318         * modules/propername (Link): Likewise.
11319         * modules/quote (Link): Likewise.
11320         * modules/quotearg (Link): Likewise.
11321         * modules/quotearg-simple (Link): Likewise.
11322         * modules/regex-quote (Link): Likewise.
11323         * modules/rpmatch (Link): Likewise.
11324         * modules/sh-quote (Link): Likewise.
11325         * modules/system-quote (Link): Likewise.
11326         * modules/trim (Link): Likewise.
11327         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11328         * modules/unistdio/ulc-fprintf (Link): Likewise.
11329         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11330         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11331         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11332         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11333         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11334         * modules/xfreopen (Link): Likewise.
11335         * modules/xmemcoll (Link): Likewise.
11336         * modules/yesno (Link): Likewise.
11337         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11338         * modules/argmatch-tests (Makefile.am): Likewise.
11339         * modules/closein-tests (Makefile.am): Likewise.
11340         * modules/copy-file-tests (Makefile.am): Likewise.
11341         * modules/dfa-tests (Makefile.am): Likewise.
11342         * modules/fnmatch-tests (Makefile.am): Likewise.
11343         * modules/glob-tests (Makefile.am): Likewise.
11344         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11345         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11346         * modules/mbrtowc-tests (Makefile.am): Likewise.
11347         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11348         * modules/mbscasestr-tests (Makefile.am): Likewise.
11349         * modules/mbschr-tests (Makefile.am): Likewise.
11350         * modules/mbscspn-tests (Makefile.am): Likewise.
11351         * modules/mbsinit-tests (Makefile.am): Likewise.
11352         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11353         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11354         * modules/mbspbrk-tests (Makefile.am): Likewise.
11355         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11356         * modules/mbsrchr-tests (Makefile.am): Likewise.
11357         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11358         * modules/mbsspn-tests (Makefile.am): Likewise.
11359         * modules/mbsstr-tests (Makefile.am): Likewise.
11360         * modules/quotearg-tests (Makefile.am): Likewise.
11361         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11362         * modules/readtokens-tests (Makefile.am): Likewise.
11363         * modules/regex-quote-tests (Makefile.am): Likewise.
11364         * modules/sh-quote-tests (Makefile.am): Likewise.
11365         * modules/system-quote-tests (Makefile.am): Likewise.
11366         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11367         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11368         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11369         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11370         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11371         * modules/yesno-tests (Makefile.am): Likewise.
11373 2019-12-02  Bruno Haible  <bruno@clisp.org>
11375         Simplify link sections.
11376         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11377         * modules/lock (Link): Likewise.
11378         * modules/cond (Link): Likewise.
11379         * modules/tls (Link): Likewise.
11380         * modules/yield (Link): Likewise.
11381         * modules/regex (Link): Likewise.
11382         * modules/localename (Link): Likewise.
11383         * modules/unicase/locale-language (Link): Likewise.
11384         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11386 2019-12-02  Bruno Haible  <bruno@clisp.org>
11388         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11389         * tests/test-thread_self.c (main): Disable test on AIX.
11391 2019-12-01  Bruno Haible  <bruno@clisp.org>
11393         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11394         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11395         gl_THREADLIB_EARLY_BODY.
11396         (gl_THREADLIB_EARLY_BODY): Invoke it.
11397         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11398         (gl_THREADLIB_BODY): Invoke it.
11399         (gl_PTHREADLIB): New macro.
11400         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11401         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11402         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11403         * modules/pthread-h (Files): Add threadlib.m4.
11404         (Depends-on): Remove threadlib.
11405         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11406         and _THREAD_SAFE here.
11407         (Link): Use LIBPTHREAD, not LIBTHREAD.
11408         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11409         LIBMULTITHREAD.
11410         * modules/pthread-once (Link): Likewise.
11411         * modules/pthread-mutex (Link): Likewise.
11412         * modules/pthread-rwlock (Link): Likewise.
11413         * modules/pthread-cond (Link): Likewise.
11414         * modules/pthread-tss (Link): Likewise.
11415         * modules/pthread-spin (Link): Likewise.
11416         * modules/pthread (Link): Likewise.
11417         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11418         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11419         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11420         test_pthread_once2_LDADD): Likewise.
11421         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11422         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11423         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11424         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11426 2019-12-01  Bruno Haible  <bruno@clisp.org>
11428         cond: State linking requirements.
11429         * modules/cond (Link): New section.
11431 2019-12-01  Bruno Haible  <bruno@clisp.org>
11433         threadlib: Remove unnecessary file (left over from 2019-07-06).
11434         * modules/threadlib (Files): Remove config.rpath.
11436 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11438         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11439         Reported by Dagobert Michelsen <dam@opencsw.org> in
11440         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11441         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11442         list of strings instead of one string.
11443         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11444         * pygnulib/GLImport.py (execute): Likewise.
11446 2019-11-27  Bruno Haible  <bruno@clisp.org>
11448         openpty, forkpty: Fix build error on Solaris 11.4.
11449         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11450         also in <termios.h>.
11451         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11452         of the function also in <termios.h>.
11453         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11454         * doc/glibc-functions/forkpty.texi: Likewise.
11456 2019-11-27  Bruno Haible  <bruno@clisp.org>
11458         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11459         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11460         --enable-threads=isoc and --enable-threads=isoc+posix.
11461         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11462         When both the ISO C and the POSIX threads API are available, choose
11463         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11464         --enable-threads=isoc+posix was specified. When only the ISO C threads
11465         API is available and --enable-threads=iso was specified, choose
11466         USE_ISOC_THREADS.
11467         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11468         USE_ISOC_AND_POSIX_THREADS.
11469         * lib/glthread/lock.c: Likewise.
11470         * lib/glthread/cond.h: Likewise.
11471         * lib/glthread/cond.c: Likewise.
11472         * lib/glthread/tls.h: Likewise.
11473         * lib/glthread/tls.c: Likewise.
11474         * lib/glthread/yield.h: Likewise.
11475         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11476         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11477         * lib/glthread/thread.c: Likewise.
11478         * lib/glthread/threadlib.c: Likewise.
11479         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11480         USE_ISOC_AND_POSIX_THREADS.
11481         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11482         USE_ISOC_AND_POSIX_THREADS.
11483         * tests/test-tls.c: Likewise.
11484         * tests/test-thread_create.c (main): Likewise.
11485         * tests/test-pthread-cond.c: Likewise.
11486         * tests/test-pthread-mutex.c: Likewise.
11487         * tests/test-pthread-once2.c: Likewise.
11488         * tests/test-pthread-rwlock.c: Likewise.
11489         * tests/test-pthread-tss.c: Likewise.
11490         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11491         USE_POSIX_THREADS.
11493 2019-11-24  Bruno Haible  <bruno@clisp.org>
11495         mbrtowc: Modernize autoconf test.
11496         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11497         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11498         try a UTF-8 locale.
11499         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11501 2019-11-24  Bruno Haible  <bruno@clisp.org>
11503         Fix errors in C++ mode on mingw.
11504         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11505         instead of _GL_CXXALIAS_SYS.
11506         * lib/signal.in.h (pthread_sigmask): Likewise.
11507         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11508         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11509         Likewise.
11510         * lib/wchar.in.h (btowc): Likewise.
11512 2019-11-24  Bruno Haible  <bruno@clisp.org>
11514         sys_time: Fix errors in C++ mode on mingw.
11515         * lib/sys_time.in.h (timeval): Restore the redirection
11516         '#define timeval rpl_timeval', for when the symbol timeval is being used
11517         outside the 'gnulib' namespace.
11518         * lib/sys_select.in.h (select): In C++, write 'timeval', not
11519         'struct timeval'.
11521 2019-11-24  Bruno Haible  <bruno@clisp.org>
11523         iswctype: Fix errors in C++ mode on mingw.
11524         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
11525         is 1.
11526         * lib/iswctype.c (iswctype): Add another implementation, for the
11527         GNULIB_defined_wint_t case.
11528         * modules/iswctype (configure.ac): Compile iswctype.c also if
11529         GNULIB_OVERRIDES_WINT_T is 1.
11531 2019-11-24  Bruno Haible  <bruno@clisp.org>
11533         windows-timedmutex: Fix errors in C++ mode on mingw.
11534         * lib/windows-timedmutex.h: Add closing brace.
11536 2019-11-24  Bruno Haible  <bruno@clisp.org>
11538         Fix errors in C++ mode on Cygwin.
11539         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
11540         _GL_CXXALIAS_SYS.
11542 2019-11-24  Bruno Haible  <bruno@clisp.org>
11544         time_r: Fix for mingw (regression from 2019-11-16).
11545         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
11546         AC_LINK_IFELSE test only if the function does not appear to exist.
11548 2019-11-24  Bruno Haible  <bruno@clisp.org>
11550         wcstok: Add tests.
11551         * tests/test-wcstok.c: New file.
11552         * modules/wcstok-tests: New file.
11554 2019-11-24  Bruno Haible  <bruno@clisp.org>
11556         wcstok: Work around wrong signature on native Windows.
11557         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
11558         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
11559         REPLACE_WCSTOK.
11560         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
11561         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
11562         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
11563         * doc/posix-functions/wcstok.texi: Mention the problem.
11565 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11567         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
11568         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
11569         remove workaround for GCC bug 91450 as the bug should be fixed
11570         there too.
11572 2019-11-21  Bruno Haible  <bruno@clisp.org>
11574         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
11575         Reported by Christian Biesinger <cbiesinger@google.com> in
11576         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
11577         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
11578         non-glibc systems.
11579         * lib/locale.in.h (localeconv, setlocale): Likewise.
11580         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
11581         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
11582         rint, round, trunc): Likewise.
11583         * lib/monetary.in.h (strfmon_l): Likewise.
11584         * lib/pthread.in.h (pthread_mutexattr_getrobust,
11585         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
11586         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
11587         pthread_spin_destroy): Likewise.
11588         * lib/signal.in.h (raise, signal): Likewise.
11589         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
11590         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
11591         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11592         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11593         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11594         Likewise.
11595         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11596         Likewise.
11597         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11598         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11599         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11600         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11601         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11602         wcsftime): Likewise.
11603         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11605 2019-11-21  Bruno Haible  <bruno@clisp.org>
11607         Fix various errors in _GL_CXXALIAS_SYS invocations.
11608         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
11609         _GL_CXXALIAS_SYS.
11610         * lib/pthread.in.h (pthread_mutexattr_gettype,
11611         pthread_mutexattr_getrobust): Likewise.
11612         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11613         * lib/sys_socket.in.h (recv, send): Likewise.
11614         * lib/unistd.in.h (getdtablesize): Likewise.
11615         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11616         'struct timeval'.
11618 2019-11-21  Bruno Haible  <bruno@clisp.org>
11620         math tests: Update after 2019-08-28 change.
11621         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11622         return type of 'bool', not 'int'.
11624 2019-11-21  Bruno Haible  <bruno@clisp.org>
11626         pthread-spin: Fix errors in C++ mode.
11627         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11628         functions as nonexistent when <pthread.h> exists but does not define
11629         the pthread_spinlock_t type.
11631 2019-11-21  Bruno Haible  <bruno@clisp.org>
11633         pthread-mutex: Fix errors in C++ mode.
11634         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11635         pthread_mutexattr_getrobust exists. If not, define
11636         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11637         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11638         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11639         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11640         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11641         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11642         definition.
11644 2019-11-19  Bruno Haible  <bruno@clisp.org>
11646         threads-h tests: Fix typo.
11647         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11649 2019-11-19  Bruno Haible  <bruno@clisp.org>
11651         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11652         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11653         to 'const pthread_attr_t *'.
11654         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11655         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11657 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11659         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11660         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11661         work around GCC bug 91450 as the bug should be fixed there.
11663 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11665         glob: get closer to glibc glob.c
11666         Omit differences from glibc when the differences don’t matter.
11667         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11668         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11669         (glob_lstat): New function.
11670         (glob_in_dir): Use it.
11671         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11672         Use changed.
11674 2019-11-18  Bruno Haible  <bruno@clisp.org>
11676         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11677         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11678         UINTPTR_MAX): Consider _WIN64.
11679         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11680         a pointer.
11682 2019-11-18  Bruno Haible  <bruno@clisp.org>
11684         stdint: Fix value of WINT_MAX when we override wint_t.
11685         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11686         when GNULIB_OVERRIDES_WINT_T is 1.
11688 2019-11-18  Bruno Haible  <bruno@clisp.org>
11690         vcs-to-changelog: New module.
11691         * modules/vcs-to-changelog: New file.
11692         * MODULES.html.sh (func_all_modules): Add it.
11694 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11696         vcs-to-changelog: New script to generate ChangeLog-like output.
11697         Discussion:
11698         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11699         * build-aux/vcs_to_changelog.py: New file.
11700         * build-aux/vcstocl/frontend_c.py: New file.
11701         * build-aux/vcstocl/misc_util.py: New file.
11702         * build-aux/vcstocl/vcs_git.py: New file.
11704 2019-11-18  Bruno Haible  <bruno@clisp.org>
11706         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11707         Reported by Keith Marshall <keith@users.osdn.me> in
11708         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11709         and <https://osdn.net/projects/mingw/ticket/39677>.
11710         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11711         already been defined by mingw's <crtdefs.h>.
11713 2019-11-18  Bruno Haible  <bruno@clisp.org>
11715         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11716         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11717         conditionally enabled.
11719 2019-11-18  Bruno Haible  <bruno@clisp.org>
11721         gc: Mirror libgcrypt.m4 from libgcrypt.
11722         * config/srclistvars.sh (LIBGCRYPT): New variable.
11723         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11725 2019-11-17  Bruno Haible  <bruno@clisp.org>
11727         locale, localename: Improve z/OS support.
11728         Reported by Daniel Richard G. in
11729         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11730         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11731         gl_LOCALE_H.
11732         (gl_LOCALE_H): Require it.
11733         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11734         defined, don't even check for newlocale, duplocale, freelocale.
11735         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11736         locale_t is not defined.
11738 2019-11-17  Bruno Haible  <bruno@clisp.org>
11740         havelib: Make libdirstems processing more flexible.
11741         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11742         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11743         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11744         patch from 2017-02-19).
11745         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11746         libdirs, even when the first one exists as a directory.
11748 2019-11-17  Bruno Haible  <bruno@clisp.org>
11750         havelib: Match the bitness when searching for libraries.
11751         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11752         acl_is_expected_elfclass.
11753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11754         file exists, in ELF, also test whether it has the ELF class that
11755         corresponds to the host's bitness.
11757 2019-11-17  Bruno Haible  <bruno@clisp.org>
11759         host-cpu-c-abi: Add support for unknown CPUs.
11760         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11761         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11762         32-bit or 64-bit.
11764 2019-11-17  Bruno Haible  <bruno@clisp.org>
11766         havelib: Remove redundant code.
11767         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11768         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11770 2019-11-17  Bruno Haible  <bruno@clisp.org>
11772         havelib: Fix a bug in dependency processing.
11773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11774         of .la files, don't overwrite the value of additional_libdir for the
11775         next rounds.
11777 2019-11-16  Bruno Haible  <bruno@clisp.org>
11779         wctype-h: When overriding wint_t, override also the related functions.
11780         Reported by Christian Biesinger <cbiesinger@google.com> in
11781         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11782         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11783         REPLACE_ISWCNTRL to 1.
11784         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11785         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11786         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11787         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11788         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11789         on mingw.
11790         * doc/posix-headers/wctype.texi: Likewise.
11792 2019-11-16  Bruno Haible  <bruno@clisp.org>
11794         time_r: Fix for mingw.
11795         Reported by Christian Biesinger <cbiesinger@google.com> in
11796         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11797         * lib/time.in.h: On mingw, include <unistd.h>.
11798         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11799         <time.h>. Test for localtime_r in a way that works when it is defined
11800         as an inline function.
11802 2019-11-13  Bruno Haible  <bruno@clisp.org>
11804         havelib: Revert last change.
11805         * build-aux/config.rpath: Revert last change. We can add msys2 support
11806         when it has been added to libtool.m4 upstream.
11808 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11810         config: add msys support
11811         Requested by Arnold Robbins in:
11812         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11813         He also requested a change to config.guess, which I’ll forward
11814         upstream.
11815         * build-aux/ar-lib (func_file_conv):
11816         * build-aux/compile (func_file_conv):
11817         * build-aux/config.rpath (wl, with_gnu_ld)
11818         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11819         Treat msys like cygwin.
11821 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11823         regex: now back in sync with glibc
11824         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11825         regexec.c got merged into glibc and are now copies again.
11827 2019-10-27  Bruno Haible  <bruno@clisp.org>
11829         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11830         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11831         statement.
11832         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11833         32-bit CPUs.
11835 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11837         timespec-add, timespec-sub: simplify
11838         * lib/timespec-add.c (timespec_add):
11839         * lib/timespec-sub.c (timespec_sub):
11840         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11841         work on unsigned integers.
11843 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11845         nstrftime: speed up integer overflow checking
11846         * lib/nstrftime.c: Include intprops.h.
11847         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11848         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11849         instead of doing it by hand.
11850         * modules/nstrftime (Depends-on): Add intprops.
11852         Port better to GCC under macOS
11853         Work around macOS header that has ‘#define __has_builtin(x) 0’
11854         when compiled by GCC.  Apple really, really doesn’t want you to
11855         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11856         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11857         The fix is to not trust __has_builtin when being compiled by
11858         recent-enough GCC.
11859         * lib/intprops.h (__has_builtin)
11860         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11861         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11862         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11863         Remove.  All uses removed.
11864         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11865         directly, if defined and if not newer GCC.
11866         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11867         New macro, that use __has_builtin directly, if defined and if
11868         not newer GCC.
11869         (assume): Use them.
11871 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11873         maintainer-makefile: update rule for argmatch.
11874         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11876 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11878         bitset: let freeing functions accept NULL.
11879         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11880         given NULL.
11881         * lib/bitset.h: Document that.
11882         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11884 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11886         inttypes: use more-robust test for int range
11887         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11888         Problem reported by Dagobert Michelsen in:
11889         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11890         * lib/inttypes.in.h: Rely only on limits.h when checking
11891         int range.
11893 2019-10-15  Bruno Haible  <bruno@clisp.org>
11895         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11896         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11897         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11898         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11899         term_ostream_set_hyperlink): New functions.
11900         (term_styled_ostream_get_hyperlink_ref,
11901         term_styled_ostream_get_hyperlink_id,
11902         term_styled_ostream_set_hyperlink): New function aliases.
11904 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11906         update-copyright: use en dashes in .texi ranges
11907         * build-aux/update-copyright: Match year ranges like "1998--2019",
11908         which are used in the Autoconf manual.  Also, update ranges in
11909         .tex, .texi, and .texinfo files to use en dashes instead of
11910         hyphens.
11912 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11914         * config/srclist.txt: Remove posix/regex_internal.c for now.
11916 2019-10-13  Bruno Haible  <bruno@clisp.org>
11918         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11919         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11920         contents to the empty string.
11922 2019-10-12  Bruno Haible  <bruno@clisp.org>
11924         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11925         * tests/test-intprops.c (main): Disable two more tests when using
11926         HP-UX cc.
11928 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11930         Simplify and regularize regex use of ‘assert’
11931         Also, tell GCC about the asserts even when compiling without
11932         debugging, to give it further optimization opportunities.
11933         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11934         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11935         (parse_expression, parse_bracket_exp):
11936         * lib/regex_internal.c (build_wcs_buffer)
11937         (build_wcs_upper_buffer, re_string_reconstruct)
11938         (re_string_context_at):
11939         * lib/regexec.c (re_search_stub, re_copy_regs)
11940         (re_search_internal, prune_impossible_nodes, check_matching)
11941         (check_halt_state_context, set_regs, sift_states_backward)
11942         (build_sifted_states, transit_state_mb, transit_state_bkref)
11943         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11944         (match_ctx_add_subtop):
11945         Use it instead of plain ‘assert’.
11947 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11949         regex: omit debug assignment when not debugging
11950         * lib/regexec.c (re_search_internal) [!DEBUG]:
11951         Remove unnecessary assignment.
11953         regex: tell compiler there’s at most 256 arcs out
11954         Partly this is to help the reader (and maybe help GCC);
11955         partly this is to pacify Coverity.
11956         * lib/regex_internal.h: Include verify.h.
11957         * lib/regexec.c (group_nodes_into_DFAstates):
11958         Tell the compiler that ndests cannot exceed SBC_MAX.
11959         * modules/regex (Depends-on): Add ‘verify’.
11961         regex: simplify by assuming C99
11962         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11963         temporarily.
11964         * lib/regex_internal.h (lock_define, re_match_context_t):
11965         Simplify by assuming C99 macros and const.
11966         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11967         initializers.  Remove unnecessary assignment, as mctx is now
11968         safely initialized earlier.
11970         regex: avoid copying of uninitialized storage
11971         * config/srclist.txt: Comment out regcomp.c temporarily.
11972         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11973         Initialize even when not checking for lint, as the behavior is
11974         arguably undefined otherwise and Coverity warns about it.
11976 2019-10-06  Bruno Haible  <bruno@clisp.org>
11978         access tests: Fix test failure when run as root.
11979         * tests/test-access.c: Include root-uid.h.
11980         (geteuid): Define fallback.
11981         (main): Don't expect that writing to a read-only file would fail when
11982         running as root. Also, remove the created files at the end.
11983         * modules/access-tests (Depends-on): Add root-uid.
11984         (configure.ac): Test whether geteuid exists.
11986 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11988         users.txt: add GNU nano
11989         Nano has been making use of gnulib since March 2017, version 2.8.0.
11991 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11993         bootstrap: simplify debugging of wget failures
11994         Problem reported by Tim Rühsen in:
11995         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11996         * build-aux/bootstrap (po_download_command_format):
11997         Invoke wget with -nv instead of -q, to make debugging easier.
11999 2019-09-29  Bruno Haible  <bruno@clisp.org>
12001         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12002         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12003         'const' attribute.
12005 2019-09-29  Bruno Haible  <bruno@clisp.org>
12007         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12008         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12010 2019-09-28  Bruno Haible  <bruno@clisp.org>
12012         Update comments that refer to POSIX.
12013         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12014         sentence about trailing slashes.
12015         * lib/fflush.c: Clarify the reasoning.
12016         * tests/test-fflush2.c: Cite the relevant sentence.
12018 2019-09-28  Bruno Haible  <bruno@clisp.org>
12020         access: Document limitations on Windows.
12021         Suggested by Zaretskii <eliz@gnu.org>.
12022         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12024 2019-09-28  Bruno Haible  <bruno@clisp.org>
12026         findprog-in: Fix comment.
12027         Reported by Eli Zaretskii <eliz@gnu.org>.
12028         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12029         condition.
12030         * lib/stat.c (rpl_stat): Fix typo in comment.
12031         * lib/utime.c (_gl_utimens_windows): Likewise.
12033 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12035         Update URLs and associated text
12036         (Thanks to Bruno Haible for proofreading this patch.)
12037         Prefer https: to http: in URLs where either will do, for the usual
12038         security reasons.  I also updated broken and/or moved URLs
12039         discovered during the process. In a few places I had to resort to
12040         archive.org, since I didn't find the originals elsewhere.
12042 2019-09-15  Paul Smith  <psmith@gnu.org>
12043             Bruno Haible  <bruno@clisp.org>
12045         findprog-in: Set errno when the search fails.
12046         * lib/findprog-in.c: Include <errno.h>.
12047         (find_in_given_path): Set errno before returning NULL.
12048         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12049         Define the term "slash".
12051 2019-09-15  Bruno Haible  <bruno@clisp.org>
12053         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12054         * modules/findprog (Depends-on): Add access.
12055         * modules/findprog-lgpl (Depends-on): Likewise.
12056         * modules/findprog-in (Depends-on): Likewise.
12058 2019-09-15  Bruno Haible  <bruno@clisp.org>
12060         access: Add tests.
12061         * tests/test-access.c: New file.
12062         * modules/access-tests: New file.
12064         access: New module.
12065         * lib/unistd.in.h (access): New declaration.
12066         * lib/access.c: New file.
12067         * m4/access.m4: New file.
12068         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12070         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12071         REPLACE_ACCESS.
12072         * modules/access: New file.
12073         * tests/test-unistd-c++.cc (access): Check signature.
12074         * doc/posix-functions/access.texi: Mention the new module.
12076 2019-09-15  Bruno Haible  <bruno@clisp.org>
12078         fcntl-h: Fix compilation error of creat.c on MSVC.
12079         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12080         defined.
12082 2019-09-15  Bruno Haible  <bruno@clisp.org>
12084         creat: Add tests.
12085         * tests/test-creat.c: New file, based on tests/test-open.h.
12086         * modules/creat-tests: New file.
12088         creat: New module.
12089         * lib/fcntl.in.h (creat): New declaration.
12090         * lib/creat.c: New file, based on lib/open.c.
12091         * m4/creat.m4: New file.
12092         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12093         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12094         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12095         * modules/open (Files): Add m4/open-slash.m4.
12096         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12097         REPLACE_CREAT.
12098         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12099         * modules/creat: New file.
12100         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12101         * doc/posix-functions/creat.texi: Mention the new module.
12103 2019-09-15  Bruno Haible  <bruno@clisp.org>
12105         open tests: Enhance test.
12106         * tests/test-open.h (test_open): Test the creation of an executable
12107         regular file. Also improve initial cleanup.
12109 2019-09-15  Bruno Haible  <bruno@clisp.org>
12111         intprops tests: Avoid build failure with HP-UX cc.
12112         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12113         "error 4018: Macro param too large after substitution - use -H option.".
12115 2019-09-14  Bruno Haible  <bruno@clisp.org>
12117         Make autoconf tests work with -Werror=implicit-function-declaration.
12118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12119         towupper() declaration.
12120         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12121         declaration.
12123 2019-09-14  Bruno Haible  <bruno@clisp.org>
12125         findprog-in: Better mimic the system on native Windows.
12126         Reported by Paul Smith <psmith@gnu.org>.
12127         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12128         non-empty suffixes when the file name already contains a '.'.
12130 2019-09-10  Bruno Haible  <bruno@clisp.org>
12132         wctob: Fix autoconf test.
12133         Based on patch by Florian Weimer <fweimer@redhat.com>.
12134         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12136 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12138         xhash: provide hash_xinitialize.
12139         Suggested by Egor Pugin <egor.pugin@gmail.com>
12140         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12141         * modules/xhash, lib/xhash.c: New.
12142         * lib/hash.h (hash_xinitialize): New.
12144 2019-09-09  Bruno Haible  <bruno@clisp.org>
12146         findprog-in: Make exec optimization optional.
12147         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12148         (find_in_given_path): Add optimize_for_exec parameter.
12149         * lib/findprog-in.c (find_in_given_path): Likewise.
12151 2019-09-08  Bruno Haible  <bruno@clisp.org>
12153         Add option to assume the best, not the worst, when cross-compiling.
12154         Suggested by Jonas Termansen <sortie@maxsi.org>.
12155         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12156         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12157         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12158         lt_cv_sys_argz_works.
12159         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12160         ac_cv_func_calloc_0_nonnull.
12161         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12162         --enable-cross-guesses for gl_cv_func_realpath_works.
12163         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12164         gl_cv_func_cbrtl_ieee.
12165         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12166         gl_cv_func_ceil_ieee.
12167         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12168         gl_cv_func_ceilf_ieee.
12169         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12170         gl_cv_func_ceill_ieee.
12171         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12172         ac_cv_func_chown_works.
12173         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12174         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12175         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12176         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12177         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12178         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12179         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12180         gl_cv_func_expl_works.
12181         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12182         gl_cv_func_expm1_ieee.
12183         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12184         gl_cv_func_expm1l_works.
12185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12186         gl_cv_func_open_directory_works.
12187         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12188         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12189         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12190         gl_cv_func_fchownat_empty_filename_works.
12191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12192         gl_cv_func_fdopendir_works.
12193         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12194         gl_cv_func_floor_ieee.
12195         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12196         gl_cv_func_floorf_ieee.
12197         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12198         gl_cv_func_fma_works.
12199         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12200         gl_cv_func_fmaf_works.
12201         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12202         gl_cv_func_fmal_works.
12203         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12204         gl_cv_func_fmod_ieee.
12205         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12206         gl_cv_func_fmodf_ieee.
12207         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12208         gl_cv_func_fmodl_ieee.
12209         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12210         gl_cv_func_fpurge_works.
12211         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12212         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12213         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12214         gl_cv_func_getcwd_null.
12215         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12217         gl_cv_func_working_getdelim.
12218         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12219         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12220         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12221         gl_cv_func_getgroups_works.
12222         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12223         am_cv_func_working_getline.
12224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12225         for gl_cv_func_getopt_gnu.
12226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12227         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12228         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12229         gl_cv_func_hypot_ieee.
12230         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12231         gl_cv_func_hypotf_ieee.
12232         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12233         gl_cv_func_hypotl_ieee.
12234         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12235         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12236         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12237         gl_cv_func_link_works.
12238         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12239         gl_cv_func_linkat_slash.
12240         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12241         gl_cv_func_log_ieee.
12242         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12243         gl_cv_func_logf_ieee.
12244         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12245         gl_cv_func_logl_works.
12246         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12247         gl_cv_func_log10_ieee.
12248         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12249         gl_cv_func_log10f_ieee.
12250         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12251         gl_cv_func_log10l_works.
12252         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12253         gl_cv_func_log1p_ieee.
12254         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12255         gl_cv_func_log1pf_ieee.
12256         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12257         gl_cv_func_log1pl_ieee.
12258         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12259         gl_cv_func_log2_ieee.
12260         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12261         gl_cv_func_log2f_ieee.
12262         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12263         --enable-cross-guesses for
12264         gl_cv_func_lstat_dereferences_slashed_symlink.
12265         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12266         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12267         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12268         gl_cv_C_locale_sans_EILSEQ.
12269         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12270         gl_cv_func_memchr_works.
12271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12272         gl_cv_func_memmem_works_always.
12273         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12274         gl_cv_func_memmem_works_fast.
12275         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12276         gl_cv_func_mkdir_trailing_slash_works,
12277         gl_cv_func_mkdir_trailing_dot_works.
12278         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12279         gl_cv_func_mkfifo_works.
12280         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12281         gl_cv_func_mknod_works.
12282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12283         gl_cv_func_working_mkstemp.
12284         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12285         gl_cv_func_working_mktime.
12286         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12287         gl_cv_func_modf_ieee.
12288         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12289         gl_cv_func_modff_ieee.
12290         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12291         gl_cv_func_modfl_ieee.
12292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12293         gl_cv_func_nanosleep.
12294         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12295         gl_cv_func_perror_works.
12296         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12297         gl_cv_func_printf_sizes_c99.
12298         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12299         gl_cv_func_printf_infinite.
12300         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12301         gl_cv_func_printf_infinite_long_double.
12302         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12303         gl_cv_func_printf_directive_a.
12304         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12305         gl_cv_func_printf_directive_f.
12306         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12307         gl_cv_func_printf_flag_zero.
12308         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12309         gl_cv_func_printf_enomem.
12310         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12311         gl_cv_func_snprintf_truncation_c99.
12312         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12313         gl_cv_func_snprintf_retval_c99.
12314         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12315         gl_cv_func_snprintf_directive_n.
12316         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12317         gl_cv_func_vsnprintf_zerosize_c99.
12318         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12319         gl_cv_func_pselect_detects_ebadf.
12320         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12321         Obey --enable-cross-guesses for
12322         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12323         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12324         gl_cv_func_ptsname_sets_errno.
12325         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12326         gl_cv_func_svid_putenv.
12327         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12328         gl_cv_func_readlink_works.
12329         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12330         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12331         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12332         gl_cv_func_re_compile_pattern_working.
12333         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12334         gl_cv_func_remainder_ieee.
12335         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12336         gl_cv_func_remainderf_ieee.
12337         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12338         gl_cv_func_remainderl_ieee.
12339         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12340         gl_cv_func_rintl_works.
12341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12342         gl_cv_func_rmdir_works.
12343         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12344         gl_cv_func_round_ieee.
12345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12346         gl_cv_func_roundf_ieee.
12347         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12348         gl_cv_func_roundl_ieee.
12349         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12350         gl_cv_func_select_detects_ebadf.
12351         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12352         gl_cv_func_setenv_works.
12353         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12354         gl_cv_func_unsetenv_works.
12355         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12356         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12357         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12358         gl_cv_func_sleep_works.
12359         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12360         gl_cv_func_stat_file_slash.
12361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12362         gl_cv_func_stpncpy.
12363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12364         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12365         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12366         gl_cv_func_strcasestr_linear.
12367         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12368         gl_cv_func_working_strerror.
12369         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12370         gl_cv_func_strerror_0_works.
12371         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12372         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12373         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12374         gl_cv_func_strstr_works_always.
12375         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12376         gl_cv_func_strstr_linear.
12377         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12378         gl_cv_func_strtod_works.
12379         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12380         gl_cv_func_strtold_works.
12381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12382         gl_cv_func_symlink_works.
12383         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12384         gl_cv_func_symlinkat_works.
12385         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12386         gl_cv_func_trunc_ieee.
12387         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12388         gl_cv_func_truncf_ieee.
12389         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12390         gl_cv_func_truncl_ieee.
12391         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12392         gl_cv_func_tzset_clobber.
12393         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12394         gl_cv_func_ungetc_works.
12395         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12396         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12397         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12398         gl_cv_func_usleep_works.
12399         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12400         gl_cv_func_futimesat_works.
12401         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12402         gl_cv_func_working_utimes.
12403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12404         gl_cv_func_wcwidth_works.
12405         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12406         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12407         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12408         links for testing. Obey --enable-cross-guesses for
12409         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12410         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12412 2019-09-08  Bruno Haible  <bruno@clisp.org>
12414         Clarify that cross-compilation guesses are guesses.
12415         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12416         cross-compiling.
12418 2019-09-08  Bruno Haible  <bruno@clisp.org>
12420         chown: Fix configure output (regression from 2019-03-23).
12421         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12422         gl_cv_func_chown_follows_symlink variable.
12424 2019-09-08  Bruno Haible  <bruno@clisp.org>
12426         findprog-in: New module.
12427         Suggested by Paul Smith <psmith@gnu.org>.
12428         * lib/findprog.h (find_in_given_path): New declaration.
12429         * lib/findprog-in.c: New file, based on lib/findprog.c.
12430         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12431         * modules/findprog-in: New file.
12433 2019-09-08  Bruno Haible  <bruno@clisp.org>
12435         findprog: Remove unused dependency.
12436         * modules/findprog (Depends-on): Remove strdup.
12438 2019-09-08  Bruno Haible  <bruno@clisp.org>
12440         findprog: Remove test that is obsolete since 2006-04-24.
12441         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12443 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12445         bitset: style changes
12446         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12447         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12448         xzalloc to xcalloc.
12449         Suggested by Paul Eggert.
12451 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12453         bitset: check memory allocation
12454         Reported by 江 祖铭 (Zu-Ming Jiang).
12455         With help from Paul Eggert.
12456         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12457         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12458         instead of realloc.
12459         When shrinking, accept failures.
12460         * lib/bitset/vector.c (vbitset_resize): Likewise.
12462 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12464         scratch_buffer: sync from glibc
12465         * config/srclist.txt: Add the scratch_buffer source
12466         code from glibc, since these should be in sync.
12467         Autoupdate.
12469 2019-09-07  Bruno Haible  <bruno@clisp.org>
12471         doc: Update for glibc 2.30.
12472         * doc/glibc-functions/gettid.texi: New file.
12473         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12474         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12475         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12476         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12477         * doc/glibc-functions/sem_clockwait.texi: New file.
12478         * doc/glibc-functions/tgkill.texi: New file.
12479         * doc/glibc-functions/twalk_r.texi: New file.
12480         * doc/gnulib.texi: Include them.
12481         (Glibc semaphore.h): New section.
12482         * doc/pastposix-functions/h_errno.texi: Update.
12483         * doc/posix-functions/*.texi: Likewise.
12485 2019-09-06  Bruno Haible  <bruno@clisp.org>
12487         symlink tests: Avoid test failure on Linux with Lustre file system.
12488         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12489         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12490         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12492 2019-09-01  Bruno Haible  <bruno@clisp.org>
12494         gitsub.sh: Add support for shallow-cloning of subdirectories.
12495         * top/gitsub.sh (func_usage): Document allowed git options with
12496         'git pull'.
12497         (func_pull): Accept GIT_OPTIONS argument.
12498         (pull): Parse git options before complaining about too many arguments.
12499         Pass the git options to func_pull.
12501 2019-08-29  Bruno Haible  <bruno@clisp.org>
12503         lock: Fix cross-compilation guesses.
12504         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12505         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12506         platforms.
12508 2019-08-28  Bruno Haible  <bruno@clisp.org>
12510         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12511         Reported by Martin Storsjö <martin@martin.st> in
12512         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12513         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12514         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
12515         files from GCC 6 or newer, use an override through '#define', because
12516         the inline definitions in the platform's <cmath> cannot be overridden
12517         in another way.
12519 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12521         Revert macOS INT_MULTIPLY_WRAPV patch
12522         Problem reported by Bruno Haible in:
12523         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
12524         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
12525         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12526         Go back to working around the Clang bug on macOS.
12528 2019-08-27  Bruno Haible  <bruno@clisp.org>
12530         libtool-next-version: Fix error output.
12531         * build-aux/libtool-next-version (func_fatal_error): Fix the program
12532         name.
12534 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12536         Speed up INT_MULTIPLY_WRAPV on macOS
12537         Assume that __builtin_mul_overflow works OK with Clang on macOS.
12538         Mattias Engdegård says it’s safe to assume the relevant library
12539         is always available there.
12540         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
12541         New temporary internal macro.
12542         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12543         No need to work around the Clang bug on macOS.
12545 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12547         intprops.h, verify.h: port better to clang
12548         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12549         with Clang.  Problem reported privately by Mattias Engdegård.
12550         Also, insulate intprops.h and verify.h better against each other’s
12551         definitions of __has_builtin on non-Clang hosts.
12552         * lib/intprops.h (__has_builtin): Define a temporary substitute
12553         if __has_builtin is not already defined.
12554         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12555         New temporary internal macros.
12556         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
12557         Now two separate macros, replacing the old
12558         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
12559         __builtin_mul_overflow is like the rest.  All uses changed.
12560         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
12561         Adjust to above changes.
12562         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
12563         longer relevant.  All uses changed.
12564         * lib/verify.h (__has_builtin): Treat like intprops.h,
12565         so that the two .h files do not collide with each other.
12566         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
12567         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
12569 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12571         intprops: say why not Clang __builtin_add_overflow
12572         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
12573         Mention Clang in comment, responding to a query from
12574         Mattias Engdegård.
12576 2019-08-24  Bruno Haible  <bruno@clisp.org>
12578         doc: Document most of the files outside of modules.
12579         * doc/gnulib.texi (Build Infrastructure Files,
12580         Release Management Files): New chapters.
12582 2019-08-24  Bruno Haible  <bruno@clisp.org>
12584         bootstrap: Keep in sync with the 'gettext' module.
12585         Reported by Assaf Gordon in
12586         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
12587         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
12588         * build-aux/po/remove-potcdate.sin: Likewise.
12590 2019-08-24  Bruno Haible  <bruno@clisp.org>
12592         crypto/gc-sha512: Add tests.
12593         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12594         * modules/crypto/gc-sha512-tests: New file.
12596         crypto/gc-sha256: Add tests.
12597         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12598         * modules/crypto/gc-sha256-tests: New file.
12600         crypto/gc-sha256, crypto/gc-sha512: New modules.
12601         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12602         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12603         (MAX_DIGEST_SIZE): Set to 64.
12604         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12605         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12606         (gc_sha256, gc_sha512): New functions.
12607         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12608         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
12609         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
12611 2019-08-24  Bruno Haible  <bruno@clisp.org>
12613         crypto/gc-sha1 tests: Improve output when the test fails.
12614         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12615         output.
12617 2019-08-24  Bruno Haible  <bruno@clisp.org>
12619         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12620         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12621         LIBGCRYPT_HAS_MD_SM3.
12622         * lib/gc-libgcrypt.c: Include sm3.h.
12623         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12624         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12625         implementation if libgcrypt does not support SM3.
12627 2019-08-24  Bruno Haible  <bruno@clisp.org>
12629         crypto/gc-md2: Optimize and clarify code.
12630         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12631         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12632         is not needed.
12634 2019-08-24  Bruno Haible  <bruno@clisp.org>
12636         crypto/gc-md2: Add comment.
12637         * lib/gc-libgcrypt.c: Add comment.
12639 2019-08-24  Bruno Haible  <bruno@clisp.org>
12641         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12642         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12643         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12644         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12645         variable.
12647 2019-08-24  Bruno Haible  <bruno@clisp.org>
12649         crypto/gc: Fix link error with --with-libgcrypt.
12650         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12651         AC_LIB_HAVE_LINKFLAGS invocation.
12653 2019-08-24  Bruno Haible  <bruno@clisp.org>
12655         crypto/gc: Access the module indicators correctly.
12656         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12657         * lib/gc-libgcrypt.c: Likewise.
12659 2019-08-24  Bruno Haible  <bruno@clisp.org>
12661         crypto/gc: Fix configuration with --with-libgcrypt.
12662         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12663         * modules/crypto/gc (Files): Add it.
12664         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12666 2019-08-24  Bruno Haible  <bruno@clisp.org>
12668         Remove unused file.
12669         * m4/stat-macros.m4: Remove file.
12671 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12673         New strip-trailing-space option for srclist-update
12674         * config/srclist-update (fixfile): Support new option.
12675         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12676         Use it.
12678 2019-08-20  Eric Blake  <eblake@redhat.com>
12680         accept4: Support SOCK_NONBLOCK, if defined
12681         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12683         accept4: Fix compilation when native accept4() exists.
12684         Reported by Richard W.M. Jones <rjones@redhat.com> in
12685         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12686         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12688 2019-08-18  Bruno Haible  <bruno@clisp.org>
12690         Defeat -flto GCC optimization in math autoconf tests.
12691         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12692         at <https://savannah.gnu.org/bugs/?56109>.
12693         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12694         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12695         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12696         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12697         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12698         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12699         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12700         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12701         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12702         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12703         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12704         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12706 2019-08-17  Bruno Haible  <bruno@clisp.org>
12708         windows-spin: Implement declared functions.
12709         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12710         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12711         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12712         name.
12714 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12716         intprops: port to Oracle Developer Studio 12.6
12717         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12718         typos that were in a section not compiled by GCC.
12720 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12722         intprops: support uchar, ushort _WRAPV dests
12723         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12724         when __builtin_add_overflow etc. and _Generic are not used.
12725         (_GL_INT_OP_WRAPV): Use it to support destinations that
12726         are unsigned char or unsigned short, even in compilers
12727         that lack __typeof__ and are not C11-compatible.
12729         intprops: pacify picky GCC
12730         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12731         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12732         possibly-incorrect result.
12733         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12734         about (A) used as a boolean, when A is an expression like 3 * 4.
12736         intprops: support unsigned *_WRAPV results
12737         Add support for unsigned, unsigned long, and unsigned long long
12738         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12739         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12740         bug with unsigned inputs reported by Eli Zaretskii in:
12741         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12742         * config/srclist.txt: Break the glibc connection for intprops.h
12743         temporarily, while more testing is done in Gnulib-using apps.
12744         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12745         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12746         Support unsigned results no narrower than unsigned int.  Report
12747         overflow correctly if some arguments are unsigned.
12748         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12749         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12750         the right thing with narrow args.
12751         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12752         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12753         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12754         * tests/test-intprops.c: Check for bugs and test new behavior.
12756 2019-08-14  Bruno Haible  <bruno@clisp.org>
12758         get_progname_of: New module.
12759         * lib/get_progname_of.h: New file.
12760         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12761         * lib/getprogname.c (getprogname): Tweak coding style.
12762         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12763         * modules/get_progname_of: New file.
12765 2019-08-14  Bruno Haible  <bruno@clisp.org>
12767         get_ppid_of: New module.
12768         * lib/get_ppid_of.h: New file.
12769         * lib/get_ppid_of.c: New file.
12770         * modules/get_ppid_of: New file.
12772 2019-08-13  Bruno Haible  <bruno@clisp.org>
12774         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12775         * tests/test-libtextstyle.c (main): Do not emit styling when the
12776         environment variable NO_COLOR is set.
12778 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12780         verify: improve diagnostic quality in recent GCC
12781         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12782         useful line number containing the top-level caller of the macro.
12783         So, bring back the older way of issuing a diagnostic containing
12784         the top-level call’s arg, so that it is easier to diagnose
12785         ‘verify’ failures with recent GCC.
12786         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12787         Bring back DIAGNOSTIC arg.  All callers changed.
12788         (verify): Just use _GL_VERIFY.
12790 2019-08-11  Bruno Haible  <bruno@clisp.org>
12792         localcharset: Add more aliases for OS/2.
12793         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12794         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12795         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12797 2019-08-10  Eric Blake  <eblake@redhat.com>
12799         configmake: Update advice on usage.
12800         * modules/configmake (Include): No longer necessary to include
12801         last, since configmake.h itself worries about collision avoidance.
12803 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12805         parse-datetime: fix 'T' military timezone handling
12806         * lib/parse-datetime.y (zone):
12807         follow-up to the previous commit: the 'T' case is handled outside the
12808         conversion table (used as either military timezone UTC-7 or ISO8601
12809         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12810         timezone letters.
12812 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12814         parse-datetime: fix military timezone letters
12815         Problem and trivial fix reported by Neil Hoggarth in:
12816         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12817         * lib/parse-datetime.y (military_table):
12818         Do it the right way, not the RFC 822 way.
12820 2019-08-08  Eric Blake  <eblake@redhat.com>
12822         configmake: Avoid namespace pollution issue on mingw.
12823         * modules/configmake (Makefile.am): If the project uses
12824         <winsock2.h>, include that header before defining DATADIR.
12826 2019-07-28  Bruno Haible  <bruno@clisp.org>
12828         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12829         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12831 2019-07-24  Bruno Haible  <bruno@clisp.org>
12833         pthread-h: Fix definitions of types and macros on mingw.
12834         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12835         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12836         not in use.
12837         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12838         'pthread-once' is not in use.
12839         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12840         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12841         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12842         in use.
12843         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12844         Define also when module 'pthread-rwlock' is not in use.
12845         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12846         also when module 'pthread-cond' is not in use.
12847         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12848         'pthread-tss' is not in use.
12849         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12850         use.
12852 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12854         crypto/gc: Cope with libgcrypt without SM3.
12855         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12857 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12859         backupfile: fix resource leak on memory failure
12860         Problem found by Coverity (CID 1484214).
12861         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12863 2019-07-22  Bruno Haible  <bruno@clisp.org>
12865         Avoid missing-declarations warning in various tests.
12866         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12867         test6, test_optional, test7, test8, test9, test10, test11, test12,
12868         test13, test14, test15, test_fun): Declare static.
12869         * tests/test-cnd.c (test_cnd_wait): Likewise.
12870         * tests/test-cond.c (test_cond): Likewise.
12872 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12874         pthread tests: Avoid missing-declarations warning.
12875         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12877 2019-07-19  Bruno Haible  <bruno@clisp.org>
12879         parse-datetime: Avoid warnings from bison versions >= 3.3.
12880         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12881         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12883 2019-07-19  Bruno Haible  <bruno@clisp.org>
12885         parse-datetime: Require Bison 2.4 or newer.
12886         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12887         Code taken from gettext's intl.m4.
12888         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12889         of YACC.
12891 2019-07-19  Bruno Haible  <bruno@clisp.org>
12893         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12894         * lib/areadlink-with-size.c: Include <string.h>.
12895         * lib/areadlinkat-with-size.c: Likewise.
12896         * lib/xgethostname.c: Likewise.
12897         * lib/xgetdomainname.c: Likewise.
12899 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12901         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12902         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12903         "%pure-parser".  The former is available since Bison 2.3b (2008),
12904         while the latter is marked as obsolete since version 3.4 (May 2019).
12906 2019-07-16  Bruno Haible  <bruno@clisp.org>
12908         update-copyright: Make it work again (regression from 2019-06-15).
12909         Reported by Brian C. Lane <bcl@redhat.com>.
12910         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12912 2019-07-14  Bruno Haible  <bruno@clisp.org>
12914         doc: Update info about <pthread.h>.
12915         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12916         of 'pthread'.
12918 2019-07-14  Bruno Haible  <bruno@clisp.org>
12920         pthread_sigmask tests: Use new multithread modules.
12921         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12922         glthread/thread.h.
12923         (main_thread, killer_thread): Change type to pthread_t.
12924         (main): Update accordingly.
12925         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12926         thread.
12928 2019-07-14  Bruno Haible  <bruno@clisp.org>
12930         pthread-tss: Add tests.
12931         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12932         tests/test-tss.c.
12933         * modules/pthread-tss-tests: New file.
12935 2019-07-14  Bruno Haible  <bruno@clisp.org>
12937         pthread-cond: Add tests.
12938         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
12939         tests/test-cnd.c.
12940         * modules/pthread-cond-tests: New file.
12942 2019-07-14  Bruno Haible  <bruno@clisp.org>
12944         pthread-rwlock: Add tests.
12945         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
12946         * modules/pthread-rwlock-tests: New file.
12948 2019-07-14  Bruno Haible  <bruno@clisp.org>
12950         pthread-mutex: Add tests.
12951         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12952         tests/test-mtx.c.
12953         * modules/pthread-mutex-tests: New file.
12955 2019-07-14  Bruno Haible  <bruno@clisp.org>
12957         pthread-once: Add tests.
12958         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12959         tests/test-call_once.c.
12960         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12961         tests/test-mtx.c.
12962         * modules/pthread-once-tests: New file.
12964 2019-07-14  Bruno Haible  <bruno@clisp.org>
12966         pthread-thread: Add tests.
12967         * tests/test-pthread-thread.c: New file, based on
12968         tests/test-thread_create.c and tests/test-thrd_create.c.
12969         * modules/pthread-thread-tests: New file.
12971 2019-07-14  Bruno Haible  <bruno@clisp.org>
12973         pthread: Turn into a convenience module.
12974         * lib/pthread.in.h: Remove declarations for extern inline functions.
12975         * lib/pthread.c: Remove file.
12976         * modules/pthread (Files): Remove it.
12977         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12978         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12979         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12980         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12981         GNULIB_PTHREAD.
12982         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12984 2019-07-14  Bruno Haible  <bruno@clisp.org>
12986         pthread-spin: New module.
12987         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12988         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12989         inline definitions.
12990         * lib/pthread-spin.c: New file.
12991         * m4/pthread-spin.m4: New file.
12992         * modules/pthread-spin: New file.
12993         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12994         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12995         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12996         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12997         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12999 2019-07-14  Bruno Haible  <bruno@clisp.org>
13001         pthread-tss: New module.
13002         * lib/pthread-tss.c: New file.
13003         * m4/pthread-tss.m4: New file.
13004         * modules/pthread-tss: New file.
13005         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13006         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13007         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13008         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13010 2019-07-14  Bruno Haible  <bruno@clisp.org>
13012         pthread-cond: New module.
13013         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13014         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13015         * lib/pthread-cond.c: New file.
13016         * m4/pthread-cond.m4: New file.
13017         * modules/pthread-cond: New file.
13018         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13019         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13020         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13021         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13022         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13023         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13024         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13025         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13027 2019-07-14  Bruno Haible  <bruno@clisp.org>
13029         pthread-rwlock: New module.
13030         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13031         * m4/pthread-rwlock.m4: New file.
13032         * modules/pthread-rwlock: New file.
13033         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13034         and the Android problem.
13035         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13036         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13037         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13038         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13039         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13040         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13041         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13042         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13043         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13044         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13046 2019-07-14  Bruno Haible  <bruno@clisp.org>
13048         pthread-mutex: New module.
13049         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13050         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13051         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13052         pthread_mutex_unlock): Remove inline definitions.
13053         * lib/pthread-mutex.c: New file.
13054         * m4/pthread-mutex.m4: New file.
13055         * modules/pthread-mutex: New file.
13056         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13057         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13058         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13059         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13060         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13061         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13062         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13063         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13064         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13065         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13066         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13067         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13069 2019-07-14  Bruno Haible  <bruno@clisp.org>
13071         pthread-once: New module.
13072         * lib/pthread-once.c: New file.
13073         * m4/pthread-once.m4: New file.
13074         * modules/pthread-once: New file.
13075         * doc/posix-functions/pthread_once.texi: Mention the new module.
13077 2019-07-14  Bruno Haible  <bruno@clisp.org>
13079         pthread-thread: New module.
13080         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13081         inline definitions.
13082         * lib/pthread-thread.c: New file.
13083         * m4/pthread-thread.m4: New file.
13084         * modules/pthread-thread: New file.
13085         * doc/posix-functions/pthread_create.texi: Mention the new module.
13086         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13087         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13088         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13089         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13090         * doc/posix-functions/pthread_self.texi: Likewise.
13091         * doc/posix-functions/pthread_equal.texi: Likewise.
13092         * doc/posix-functions/pthread_detach.texi: Likewise.
13093         * doc/posix-functions/pthread_join.texi: Likewise.
13094         * doc/posix-functions/pthread_exit.texi: Likewise.
13096 2019-07-14  Bruno Haible  <bruno@clisp.org>
13098         pthread-h: Prepare for adding new modules.
13099         * lib/pthread.in.h: Define the types and macros for each of the
13100         facilities separately.
13101         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13102         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13103         HAVE_PTHREAD_PROCESS_SHARED.
13104         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13105         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13106         HAVE_PTHREAD_PROCESS_SHARED.
13107         * modules/pthread-h (Makefile.am): Substitute
13108         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13109         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13111 2019-07-14  Bruno Haible  <bruno@clisp.org>
13113         pthread-h: Add declarations of essential pthread functions.
13114         * lib/pthread.in.h: Include snippets.
13115         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13116         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13117         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13118         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13119         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13120         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13121         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13122         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13123         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13124         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13125         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13126         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13127         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13128         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13129         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13130         pthread_key_create, pthread_setspecific, pthread_getspecific,
13131         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13132         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13133         declarations.
13134         (pthread_mutex_timedlock): Move declaration.
13135         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13136         declared.
13137         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13138         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13139         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13140         HAVE_* and REPLACE_* variables for the new functions.
13141         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13142         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13143         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13144         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13145         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13146         variables for the new functions. Split the sed script, to avoid the
13147         limit of 99 commands of HP-UX sed.
13148         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13150 2019-07-14  Bruno Haible  <bruno@clisp.org>
13152         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13153         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13154         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13155         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13156         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13157         * modules/pthread-h (Depends-on): Add threadlib.
13158         (Link): Change to $(LIBTHREAD).
13159         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13160         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13162 2019-07-14  Bruno Haible  <bruno@clisp.org>
13164         pthread-h: Add C++ tests.
13165         * tests/test-pthread-c++.cc: New file.
13166         * modules/pthread-h-c++-tests: New file.
13168 2019-07-14  Bruno Haible  <bruno@clisp.org>
13170         pthread-h: Add tests.
13171         * tests/test-pthread.c: New file.
13172         * modules/pthread-h-tests: New file.
13174 2019-07-14  Bruno Haible  <bruno@clisp.org>
13176         pthread-h: New module.
13177         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13178         is 1.
13179         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13180         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13181         <pthread.h> pollutes the namespace; instead, prepare for generating a
13182         pthread.h always. Substitute HAVE_PTHREAD_H here.
13183         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13184         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13185         * modules/pthread-h: New file, based on modules/pthread.
13186         * modules/pthread: Rely on 'pthread-h'.
13187         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13188         Update.
13189         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13190         pthread.
13192 2019-07-14  Bruno Haible  <bruno@clisp.org>
13194         sched_yield: New module.
13195         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13196         (sched_yield): New declaration.
13197         * lib/sched_yield.c: New file.
13198         * m4/sched_yield.m4: New file.
13199         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13200         provide a replacement sched.h always. Test whether sched_yield is
13201         declared.
13202         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13203         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13204         (Makefile.am): Provide a replacement sched.h always. Substitute
13205         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13206         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13207         * modules/sched_yield: New file.
13208         * doc/posix-functions/sched_yield.texi: Mention the new module.
13210 2019-07-14  Bruno Haible  <bruno@clisp.org>
13212         windows-spin: New module.
13213         * lib/windows-spin.h: New file.
13214         * lib/windows-spin.c: New file.
13215         * modules/windows-spin: New file.
13217 2019-07-14  Bruno Haible  <bruno@clisp.org>
13219         windows-timedrwlock: New module.
13220         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13221         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13222         windows-cond.c.
13223         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13224         redefinition conflict with windows-timedrwlock.h.
13225         * modules/windows-timedrwlock: New file.
13227 2019-07-14  Bruno Haible  <bruno@clisp.org>
13229         windows-rwlock: New module.
13230         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13231         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13232         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13233         windows-initguard.h.
13234         (gl_rwlock_t): Define using glwthread_rwlock_t.
13235         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13236         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13237         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13238         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13239         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13240         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13241         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13242         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13243         glthread_rwlock_destroy_func): Remove declarations.
13244         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13245         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13246         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13247         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13248         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13249         functions.
13250         * modules/windows-rwlock: New file.
13251         * modules/lock (Depends-on): Add windows-rwlock.
13253 2019-07-14  Bruno Haible  <bruno@clisp.org>
13255         windows-thread: Add support for creating a thread in detached state.
13256         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13257         (glwthread_thread_create): Add attr argument.
13258         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13259         * lib/glthread/thread.h (glthread_create): Update.
13260         * lib/thrd.c (thrd_create): Update.
13262 2019-07-14  Bruno Haible  <bruno@clisp.org>
13264         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13265         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13266         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13267         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13268         * lib/windows-mutex.h: Update.
13269         * lib/windows-recmutex.h: Likewise.
13270         * lib/windows-timedmutex.h: Likewise.
13271         * lib/windows-timedrecmutex.h: Likewise.
13272         * lib/windows-cond.h: Likewise.
13273         * lib/glthread/lock.h: Likewise.
13274         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13275         lib/windows-spinlock.h.
13276         * modules/windows-recmutex (Files): Likewise.
13277         * modules/windows-timedmutex (Files): Likewise.
13278         * modules/windows-timedrecmutex (Files): Likewise.
13279         * modules/windows-cond (Files): Likewise.
13280         * modules/threads-h (Files): Likewise.
13282 2019-07-14  Bruno Haible  <bruno@clisp.org>
13284         doc: Fix info about pthread API in HP-UX.
13285         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13287 2019-07-14  Bruno Haible  <bruno@clisp.org>
13289         threads-h: Fix generation of threads.h.
13290         * modules/threads-h (Makefile.am): Insert the required header file
13291         snippets.
13293 2019-07-09  Bruno Haible  <bruno@clisp.org>
13295         striconveh test: Fix a compilation failure when iconv is not available.
13296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13297         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13298         HAVE_ICONV.
13300 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13302         argmatch: adjust columns for help2man.
13303         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13304         requires column 20 or more, return 20.
13306 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13308         areadlink-with-size: avoid realloc when size==0
13309         * lib/areadlink-with-size.c (areadlink_with_size):
13310         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13311         Reallocate at the end to the actual size, to avoid memory waste,
13312         as suggested by Bruno Haible.  But when the guessed size is zero -
13313         useful when the size is unknown - do the initial small readlink
13314         into the stack, to avoid that realloc in the usual case.
13316 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13318         areadlink-with-size: guess a buffer size with 0 size
13319         The size is usually taken from st_size, which can be zero,
13320         resulting in inefficient operation.
13321         Instead let zero select an initial memory allocation
13322         of 128 bytes, which most symlinks fit within.
13323         * lib/areadlink-with-size.c (areadlink_with_size):
13324         Start with a 128 byte buffer, for SIZE == 0.
13325         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13327 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13329         Replace manually crafted hex regexes with [:xdigit:]
13330         * build-aux/gitlog-to-changelog (parse_amend_file)
13331         (git_dir_option):
13332         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13333         This patch is backported from Emacs (Bug#36167).
13335 2019-07-06  Bruno Haible  <bruno@clisp.org>
13337         error: Fix documentation.
13338         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13339         module provides.
13340         * doc/glibc-functions/error_message_count.texi: Likewise.
13341         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13342         * doc/glibc-functions/error_print_progname.texi: Likewise.
13344 2019-07-06  Bruno Haible  <bruno@clisp.org>
13346         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13347         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13348         and older is unsupported.
13349         * doc/**/*.texi: Update.
13351 2019-07-06  Bruno Haible  <bruno@clisp.org>
13353         doc: Remove documentation of Linux libc5 as a supported platform.
13354         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13355         to Linux libc5.
13356         * doc/posix-functions/iswalpha.texi: Likewise.
13357         * doc/posix-functions/iswblank.texi: Likewise.
13358         * doc/posix-functions/iswcntrl.texi: Likewise.
13359         * doc/posix-functions/iswdigit.texi: Likewise.
13360         * doc/posix-functions/iswgraph.texi: Likewise.
13361         * doc/posix-functions/iswlower.texi: Likewise.
13362         * doc/posix-functions/iswprint.texi: Likewise.
13363         * doc/posix-functions/iswpunct.texi: Likewise.
13364         * doc/posix-functions/iswspace.texi: Likewise.
13365         * doc/posix-functions/iswupper.texi: Likewise.
13366         * doc/posix-functions/iswxdigit.texi: Likewise.
13367         * doc/posix-functions/snprintf.texi: Likewise.
13368         * doc/posix-functions/vsnprintf.texi: Likewise.
13370 2019-07-06  Bruno Haible  <bruno@clisp.org>
13372         doc: Remove documentation of Tandem/NSK as a supported platform.
13373         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13374         Tandem/NSK.
13375         * doc/**/*.texi: Update.
13377 2019-07-06  Bruno Haible  <bruno@clisp.org>
13379         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13380         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13381         and older is unsupported.
13382         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13383         Mac OS X 10.4 and older.
13384         * doc/posix-functions/asinl.texi: Likewise.
13385         * doc/posix-functions/atanl.texi: Likewise.
13386         * doc/posix-functions/cosl.texi: Likewise.
13387         * doc/posix-functions/expl.texi: Likewise.
13388         * doc/posix-functions/frexpl.texi: Likewise.
13389         * doc/posix-functions/gettimeofday.texi: Likewise.
13390         * doc/posix-functions/logl.texi: Likewise.
13391         * doc/posix-functions/mkstemp.texi: Likewise.
13392         * doc/posix-functions/sinl.texi: Likewise.
13393         * doc/posix-functions/sqrtl.texi: Likewise.
13394         * doc/posix-functions/tanl.texi: Likewise.
13395         * doc/posix-functions/wcswidth.texi: Likewise.
13396         * doc/**/*.texi: Update.
13398 2019-07-06  Bruno Haible  <bruno@clisp.org>
13400         doc: Remove documentation of AIX 4 as a supported platform.
13401         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13402         unsupported.
13403         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13404         workarounds.
13405         * doc/posix-functions/strnlen.texi: Likewise.
13406         * doc/posix-headers/inttypes.texi: Likewise.
13407         * doc/**/*.texi: Update.
13409 2019-07-06  Bruno Haible  <bruno@clisp.org>
13411         doc: Remove documentation of HP-UX 10 as a supported platform.
13412         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13413         unsupported.
13414         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13415         workarounds.
13416         * doc/posix-functions/gmtime_r.texi: Likewise.
13417         * doc/posix-functions/localtime_r.texi: Likewise.
13418         * doc/posix-functions/mkstemp.texi: Likewise.
13419         * doc/**/*.texi: Update.
13421 2019-07-06  Bruno Haible  <bruno@clisp.org>
13423         doc: Remove documentation of Interix 3.5 as a supported platform.
13424         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13425         unsupported.
13426         * doc/posix-functions/select.texi: Don't mention Interix specific
13427         workarounds.
13428         * doc/posix-headers/signal.texi: Likewise.
13429         * doc/**/*.texi: Update.
13431 2019-07-06  Bruno Haible  <bruno@clisp.org>
13433         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13434         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13435         unsupported.
13436         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13437         workarounds.
13438         * doc/posix-functions/nl_langinfo.texi: Likewise.
13439         * doc/posix-functions/remainder.texi: Likewise.
13440         * doc/posix-functions/towlower.texi: Likewise.
13441         * doc/posix-functions/towupper.texi: Likewise.
13442         * doc/posix-functions/vsnprintf.texi: Likewise.
13443         * doc/posix-functions/wcscat.texi: Likewise.
13444         * doc/posix-functions/wcschr.texi: Likewise.
13445         * doc/posix-functions/wcscmp.texi: Likewise.
13446         * doc/posix-functions/wcscpy.texi: Likewise.
13447         * doc/posix-functions/wcscspn.texi: Likewise.
13448         * doc/posix-functions/wcslen.texi: Likewise.
13449         * doc/posix-functions/wcsncat.texi: Likewise.
13450         * doc/posix-functions/wcsncmp.texi: Likewise.
13451         * doc/posix-functions/wcsncpy.texi: Likewise.
13452         * doc/posix-functions/wcspbrk.texi: Likewise.
13453         * doc/posix-functions/wcsrchr.texi: Likewise.
13454         * doc/posix-functions/wcsspn.texi: Likewise.
13455         * doc/posix-headers/langinfo.texi: Likewise.
13456         * doc/posix-headers/signal.texi: Likewise.
13457         * doc/posix-headers/wchar.texi: Likewise.
13458         * doc/posix-headers/wctype.texi: Likewise.
13459         * doc/**/*.texi: Update.
13461 2019-07-05  Bruno Haible  <bruno@clisp.org>
13463         doc: Remove documentation of OSF/1 as supported platform.
13464         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13465         unsupported.
13466         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13467         workarounds.
13468         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13469         * doc/glibc-functions/ptsname_r.texi: Likewise.
13470         * doc/posix-functions/ceil.texi: Likewise.
13471         * doc/posix-functions/ceilf.texi: Likewise.
13472         * doc/posix-functions/ceill.texi: Likewise.
13473         * doc/posix-functions/fchdir.texi: Likewise.
13474         * doc/posix-functions/floor.texi: Likewise.
13475         * doc/posix-functions/floorf.texi: Likewise.
13476         * doc/posix-functions/fmod.texi: Likewise.
13477         * doc/posix-functions/fmodf.texi: Likewise.
13478         * doc/posix-functions/fmodl.texi: Likewise.
13479         * doc/posix-functions/log.texi: Likewise.
13480         * doc/posix-functions/logf.texi: Likewise.
13481         * doc/posix-functions/logl.texi: Likewise.
13482         * doc/posix-functions/log10.texi: Likewise.
13483         * doc/posix-functions/log10f.texi: Likewise.
13484         * doc/posix-functions/log10l.texi: Likewise.
13485         * doc/posix-functions/log2.texi: Likewise.
13486         * doc/posix-functions/log2f.texi: Likewise.
13487         * doc/posix-functions/log2l.texi: Likewise.
13488         * doc/posix-functions/mbrtowc.texi: Likewise.
13489         * doc/posix-functions/recv.texi: Likewise.
13490         * doc/posix-functions/recvfrom.texi: Likewise.
13491         * doc/posix-functions/remainder.texi: Likewise.
13492         * doc/posix-functions/remainderf.texi: Likewise.
13493         * doc/posix-functions/remainderl.texi: Likewise.
13494         * doc/posix-functions/round.texi: Likewise.
13495         * doc/posix-functions/roundf.texi: Likewise.
13496         * doc/posix-functions/roundl.texi: Likewise.
13497         * doc/posix-functions/send.texi: Likewise.
13498         * doc/posix-functions/sendto.texi: Likewise.
13499         * doc/posix-functions/setenv.texi: Likewise.
13500         * doc/posix-functions/snprintf.texi: Likewise.
13501         * doc/posix-functions/tcgetsid.texi: Likewise.
13502         * doc/posix-functions/trunc.texi: Likewise.
13503         * doc/posix-functions/truncf.texi: Likewise.
13504         * doc/posix-functions/truncl.texi: Likewise.
13505         * doc/posix-functions/ttyname_r.texi: Likewise.
13506         * doc/posix-functions/unsetenv.texi: Likewise.
13507         * doc/posix-functions/wcsrtombs.texi: Likewise.
13508         * doc/posix-headers/sys_select.texi: Likewise.
13509         * doc/posix-headers/wchar.texi: Likewise.
13510         * doc/posix-headers/wctype.texi: Likewise.
13511         * doc/**/*.texi: Update.
13513 2019-07-05  Bruno Haible  <bruno@clisp.org>
13515         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
13516         * doc/**/*.texi: Update.
13518 2019-07-05  Bruno Haible  <bruno@clisp.org>
13520         doc: Remove documentation of Solaris 8 and older as supported platforms.
13521         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
13522         unsupported.
13523         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
13524         workarounds.
13525         * doc/posix-functions/memcmp.texi: Likewise.
13526         * doc/posix-functions/rename.texi: Likewise.
13527         * doc/posix-functions/tzset.texi: Likewise.
13528         * doc/posix-headers/wctype.texi: Likewise.
13529         * doc/**/*.texi: Update.
13531 2019-07-05  Bruno Haible  <bruno@clisp.org>
13533         doc: Remove documentation of Interix 3.5 as a supported platform.
13534         * doc/**/*.texi: Update.
13536 2019-07-05  Bruno Haible  <bruno@clisp.org>
13538         doc: Remove documentation of BeOS as a supported platform.
13539         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
13540         unsupported.
13541         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
13542         * doc/posix-functions/getdelim.texi: Likewise.
13543         * doc/**/*.texi: Update.
13545 2019-07-05  Bruno Haible  <bruno@clisp.org>
13547         thread, lock, cond, tls: Remove support for Pth threads.
13548         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13549         --enable-threads=pth any more.
13550         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
13551         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
13552         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
13553         threads and ISO C11 threads.
13554         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
13555         * lib/glthread/lock.h: Likewise.
13556         * lib/glthread/lock.c: Likewise.
13557         * lib/glthread/cond.h: Likewise.
13558         * lib/glthread/cond.c: Likewise.
13559         * lib/glthread/tls.h: Likewise.
13560         * lib/glthread/tls.c: Likewise.
13561         * lib/glthread/yield.h: Likewise.
13562         * lib/regex_internal.h: Likewise.
13563         * tests/test-thread_create.c: Likewise.
13564         * tests/test-lock.c: Likewise.
13565         * tests/test-cond.c: Likewise.
13566         * tests/test-tls.c: Likewise.
13567         * tests/test-rwlock1.c: Don't include glthread/yield.h.
13568         (main): Sleep without calling gl_thread_yield.
13570 2019-07-05  Bruno Haible  <bruno@clisp.org>
13572         thread, lock, cond, tls: Remove support for old Solaris threads.
13573         Solaris >= 2.5.1 has POSIX threads.
13574         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13575         --enable-threads=solaris any more.
13576         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
13577         * lib/glthread/thread.c: Update comment.
13578         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
13579         * lib/glthread/lock.h: Likewise.
13580         * lib/glthread/lock.c: Likewise.
13581         * lib/glthread/cond.h: Likewise.
13582         * lib/glthread/cond.c: Likewise.
13583         * lib/glthread/tls.h: Likewise.
13584         * lib/glthread/tls.c: Likewise.
13585         * lib/glthread/yield.h: Likewise.
13586         * lib/regex_internal.h: Likewise.
13587         * tests/test-thread_create.c: Likewise.
13588         * tests/test-lock.c: Likewise.
13589         * tests/test-cond.c: Likewise.
13590         * tests/test-tls.c: Likewise.
13592 2019-07-05  Bruno Haible  <bruno@clisp.org>
13594         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13595         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13596         needed size is equal to the allocated size.
13597         * lib/getcwd.c (__getcwd): Likewise.
13599 2019-07-05  Bruno Haible  <bruno@clisp.org>
13601         xgetdomainname: Don't return an excessive memory allocation.
13602         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13603         before returning it.
13605 2019-07-05  Bruno Haible  <bruno@clisp.org>
13607         xgethostname: Don't return an excessive memory allocation.
13608         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
13609         returning it.
13611 2019-07-05  Bruno Haible  <bruno@clisp.org>
13613         areadlinkat-with-size: Don't return an excessive memory allocation.
13614         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13615         before returning it.
13617 2019-07-05  Bruno Haible  <bruno@clisp.org>
13619         areadlink-with-size: Don't return an excessive memory allocation.
13620         Reported by Andreas Dilger <adilger@whamcloud.com>.
13621         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13622         before returning it.
13624 2019-07-03  Bruno Haible  <bruno@clisp.org>
13626         renameatu: Fix test failure on MSVC.
13627         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13628         empty string.
13630 2019-07-03  Bruno Haible  <bruno@clisp.org>
13632         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13633         * lib/mbrtowc.c: Include glthread/lock.h.
13634         (mbtowc_lock): New variable.
13635         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13636         encodings, explicitly reset the internal state of mbtowc, and protect
13637         this through a lock.
13638         * modules/mbrtowc (Depends-on): Add lock.
13640 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13642         argmatch: don't define _ in the header.
13643         Reported by Jim Meyering.
13644         * lib/argmatch.h (N_, _): Don't define.
13645         Use gettext instead.
13646         * lib/argmatch.h (_): Define.
13647         * tests/test-argmatch.c (N_): Define.
13649 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13651         verify: document ‘assume’ better
13652         * lib/verify.h: Reword doc (Bug#36370).
13654 2019-07-02  Bruno Haible  <bruno@clisp.org>
13656         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13657         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13658         "CPutf8".
13659         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13661 2019-07-02  Bruno Haible  <bruno@clisp.org>
13663         getcwd: Fix crash when invoked with size = 0 on MSVC.
13664         * lib/getcwd.c: Include msvc-inval.h.
13665         (getcwd_nothrow): New function/macro.
13666         (getcwd_system): New macro.
13667         (__getcwd): Use it instead of getcwd.
13668         * modules/getcwd (Depends-on): Add msvc-inval.
13669         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13671 2019-07-02  Bruno Haible  <bruno@clisp.org>
13673         nonblocking-pipe tests: Fix test failure on MSVC.
13674         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13675         native Windows.
13677 2019-07-02  Bruno Haible  <bruno@clisp.org>
13679         usleep: Implement with millisecond resolution on native Windows.
13680         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13681         * doc/pastposix-functions/usleep.texi: Update accordingly.
13683 2019-07-02  Bruno Haible  <bruno@clisp.org>
13685         lstat tests: Fix test failure on MSVC.
13686         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13687         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13689 2019-07-02  Bruno Haible  <bruno@clisp.org>
13691         stat tests: Fix test failure on MSVC.
13692         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13693         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13695 2019-07-02  Bruno Haible  <bruno@clisp.org>
13697         getaddrinfo tests: Fix test failure on MSVC.
13698         * tests/test-getaddrinfo.c: Include sockets.h.
13699         (main): Invoke gl_sockets_startup.
13700         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13702 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13704         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13705         * lib/poll.c: Call Windows native select() with Windows native timeval.
13707 2019-06-30  Bruno Haible  <bruno@clisp.org>
13709         argmatch: Fix compilation errors.
13710         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13711         * tests/test-argmatch.c (main): Update after last-minute function names
13712         change.
13714 2019-06-30  Bruno Haible  <bruno@clisp.org>
13716         Include <stdlib.h> when needed.
13717         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13718         * lib/fcntl.c: Likewise.
13719         * lib/mbscasestr.c: Likewise.
13720         * lib/mbssep.c: Likewise.
13721         * lib/mbsstr.c: Likewise.
13722         * lib/openat.c: Include <stdlib.h>, needed for free().
13723         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13724         abort().
13726 2019-06-30  Bruno Haible  <bruno@clisp.org>
13728         Include <stdlib.h> when needed.
13729         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13730         * lib/faccessat.c: Likewise.
13731         * lib/fchmodat.c: Likewise.
13732         * lib/fchownat.c: Likewise.
13733         * lib/fstatat.c: Likewise.
13734         * lib/mkfifoat.c: Likewise.
13735         * lib/mknodat.c: Likewise.
13736         * lib/readlinkat.c: Likewise.
13737         * lib/symlinkat.c: Likewise.
13738         * lib/utimensat.c: Likewise.
13739         * lib/mkdirat.c: Likewise. Include also the specification header.
13741 2019-06-30  Bruno Haible  <bruno@clisp.org>
13743         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13744         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13745         from gl_PREREQ_SYS_H_SOCKET.
13746         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13747         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13748         gl_PREREQ_SYS_H_WS2TCPIP.
13749         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13750         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13751         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13753 2019-06-30  Bruno Haible  <bruno@clisp.org>
13755         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13756         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13757         REPLACE_INET_NTOP to 1 always.
13758         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13759         REPLACE_INET_PTON to 1 always.
13761 2019-06-30  Bruno Haible  <bruno@clisp.org>
13763         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13764         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13765         not REPLACE_INET_NTOP.
13767 2019-06-30  Bruno Haible  <bruno@clisp.org>
13769         poll: Add comment.
13770         * lib/poll.c: Add comment about WSAPoll.
13772 2019-06-30  Bruno Haible  <bruno@clisp.org>
13774         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13775         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13776         * lib/poll.in.h: Include <winsock2.h>.
13777         (POLL*, pollfd): Override on native Windows.
13778         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13779         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13780         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13782 2019-06-28  Bruno Haible  <bruno@clisp.org>
13784         accept4: Fix compilation error on OpenIndiana.
13785         Reported by Michal Nowak <mnowak@startmail.com>
13786         via Mark H Weaver <mhw@netris.org>.
13787         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13788         whether it exists as a function.
13790 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13792         strverscmp: sync from glibc
13793         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13794         comments, include libc-config.h, define __strverscmp to be
13795         strverscmp, and don’t assume types line uint8_t and int8_t that
13796         that C99 doesn’t guarantee.
13797         [!_LIBC]: Include libc-config.h; define __strverscmp.
13798         Include stdint.h.
13799         (__strverscmp): Assume C99.  Use uint_least8_t
13800         and int_least8_t instead of unsigned char and signed char.
13801         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13803 2019-06-25  Bruno Haible  <bruno@clisp.org>
13805         tss tests: Add tests for destructors and races.
13806         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13807         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13808         functions.
13809         (main): Invoke them.
13810         * modules/tls-tests (Depends-on): Add mtx.
13812 2019-06-25  Bruno Haible  <bruno@clisp.org>
13814         tls tests: Add tests for destructors and races.
13815         * tests/test-tls.c: Include glthread/lock.h.
13816         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13817         functions.
13818         (main): Invoke them.
13819         * modules/tls-tests (Depends-on): Add lock.
13821 2019-06-25  Bruno Haible  <bruno@clisp.org>
13823         windows-tls: Implement TLS key destructors for native Windows.
13824         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13825         declaration.
13826         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13827         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13828         (dtor_table_init_once, dtor_table_lock: New variables.
13829         (struct dtor): New type.
13830         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13831         dtor_processing_threads): New variables.
13832         (dtor_table_initialize, dtor_table_ensure_initialized,
13833         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13834         functions.
13835         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13836         handle non-NULL destructors.
13837         * modules/windows-tls (Depends-on): Add windows-once.
13838         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13839         Use the functions declared in windows-tls.h.
13840         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13841         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13842         * lib/windows-thread.c: Include windows-tls.h.
13843         (wrapper_func, glwthread_thread_exit): Invoke
13844         glwthread_tls_process_destructors.
13845         * modules/windows-thread (Depends-on): Add windows-tls.
13847 2019-06-25  Bruno Haible  <bruno@clisp.org>
13849         threadlib: Avoid autoconf warning "was expanded before it was required".
13850         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13852 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13854         argmatch: remove duplicate const qualifier
13855         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13857 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13859         unistd: stddef.h and sys/types.h namespace cleanup
13860         * lib/unistd.in.h [__GLIBC__]:
13861         Do not include stddef.h or sys/types.h.
13862         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13863         supposed to declare off_t and ssize_t.  Problem found when looking
13864         at why @GNULIB_PWRITE@ was different from the newly-added
13865         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13867 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13869         maintainer-makefile: restore portability to non-GNU awks
13870         Reported by Tim Rühsen.
13871         * top/maint.mk (AWK): New variable.  Use it.
13872         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13874 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13876         Document setvbuf _IOLBF problem
13877         * doc/posix-functions/setvbuf.texi (setvbuf):
13878         Document MS-Windows portability problem with _IOLBF.
13880         Document lseek SEEK_DATA/SEEK_HOLE
13881         * doc/posix-functions/lseek.texi (lseek):
13882         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13884 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13886         argmatch: put all the docs member last.
13887         Reported by Bruno Haible.
13888         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13889         member before the docs done.
13890         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13892 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13894         argmatch: add support to generate the usage message.
13895         * lib/argmatch.c: Move some #includes and gettext support to...
13896         * lib/argmatch.h: here.
13897         (ARGMATCH_DEFINE_GROUP): New macro.
13898         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13899         (argmatch_backup_group): New.
13900         (CHECK): New.
13901         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13902         argmatch_backup_argument and argmatch_backup_usage.
13903         * modules/argmatch: We depend on c99.
13904         * doc/argmatch.texi (Recognizing Option Arguments): New.
13905         * doc/gnulib.texi: Use it.
13907 2019-06-21  Bruno Haible  <bruno@clisp.org>
13909         thrd: Add comment.
13910         * lib/thrd.c (pthread_main_func): Add comment.
13912 2019-06-21  Bruno Haible  <bruno@clisp.org>
13914         threads-h: Define 'thread_local' if and only if it actually works.
13915         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13916         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13917         Oracle Solaris Studio C. Compile a simple program, to see whether
13918         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13919         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13920         * lib/threads.in.h (thread_local): Undefine if it does not work.
13921         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13922         (Link): Mention LIBTHREADLOCAL.
13923         * tests/test-threads.c: Don't check that thread_local is defined.
13924         * tests/test-thread_local.c: New file.
13925         * modules/threads-h-tests (Files): Add it and macros.h.
13926         (Depends-on): Add thrd and stdint.
13927         (configure.ac): Test whether 'alarm' is declared.
13928         (Makefile.am): Arrange to build and link test-thread_local.
13929         * doc/posix-headers/threads.texi: Mention the platforms that don't
13930         support 'thread_local'.
13932 2019-06-20  Bruno Haible  <bruno@clisp.org>
13934         threads-h: Simplify link dependencies.
13935         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
13936         Don't set LTLIBSTDTHREAD.
13937         * modules/thrd (Link): Simplify accordingly.
13938         * modules/mtx (Link): Likewise.
13939         * modules/cnd (Link): Likewise.
13940         * modules/tss (Link): Likewise.
13941         * modules/threads (Link): Likewise.
13943 2019-06-20  Bruno Haible  <bruno@clisp.org>
13945         threads-h: Fix link error on FreeBSD 11.
13946         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13947         also with -lpthread.
13949 2019-06-20  Bruno Haible  <bruno@clisp.org>
13951         threadlib: Fix typo (regression from today).
13952         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13954 2019-06-20  Bruno Haible  <bruno@clisp.org>
13956         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13957         * lib/windows-thread.c: Include <errno.h>.
13958         * lib/windows-tls.c: Likewise.
13960 2019-06-20  Bruno Haible  <bruno@clisp.org>
13962         tss tests: Small improvement.
13963         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13965 2019-06-20  Bruno Haible  <bruno@clisp.org>
13967         threads: New module.
13968         * modules/threads: New file.
13970 2019-06-20  Bruno Haible  <bruno@clisp.org>
13972         tss: Add tests.
13973         * tests/test-tss.c: New file, based on tests/test-tls.c.
13974         * modules/tss-tests: New file.
13976 2019-06-20  Bruno Haible  <bruno@clisp.org>
13978         cnd: Add tests.
13979         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13980         * modules/cnd-tests: New file.
13982 2019-06-20  Bruno Haible  <bruno@clisp.org>
13984         mtx: Add tests.
13985         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13986         * tests/test-call_once.c: New file, based on tests/test-once.c.
13987         * modules/mtx-tests: New file.
13989 2019-06-20  Bruno Haible  <bruno@clisp.org>
13991         thrd: Add tests.
13992         * tests/test-thrd_create.c: New file, based on
13993         tests/test-thread_create.c.
13994         * tests/test-thrd_current.c: New file, based on
13995         tests/test-thread_self.c.
13996         * modules/thrd-tests: New file.
13998 2019-06-20  Bruno Haible  <bruno@clisp.org>
14000         tss: New module.
14001         * lib/tss.c: New file.
14002         * modules/tss: New file.
14003         * doc/posix-functions/tss_create.texi: Mention the new module.
14004         * doc/posix-functions/tss_set.texi: Likewise.
14005         * doc/posix-functions/tss_get.texi: Likewise.
14006         * doc/posix-functions/tss_delete.texi: Likewise.
14008 2019-06-20  Bruno Haible  <bruno@clisp.org>
14010         cnd: New module.
14011         * lib/cnd.c: New file.
14012         * modules/cnd: New file.
14013         * doc/posix-functions/cnd_init.texi: Mention the new module.
14014         * doc/posix-functions/cnd_wait.texi: Likewise.
14015         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14016         * doc/posix-functions/cnd_signal.texi: Likewise.
14017         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14018         * doc/posix-functions/cnd_destroy.texi: Likewise.
14020 2019-06-20  Bruno Haible  <bruno@clisp.org>
14022         mtx: New module.
14023         * lib/mtx.c: New file.
14024         * modules/mtx: New file.
14025         * doc/posix-functions/call_once.texi: Mention the new module.
14026         * doc/posix-functions/mtx_init.texi: Likewise.
14027         * doc/posix-functions/mtx_lock.texi: Likewise.
14028         * doc/posix-functions/mtx_trylock.texi: Likewise.
14029         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14030         * doc/posix-functions/mtx_unlock.texi: Likewise.
14031         * doc/posix-functions/mtx_destroy.texi: Likewise.
14033 2019-06-20  Bruno Haible  <bruno@clisp.org>
14035         thrd: New module.
14036         * lib/thrd.c: New file.
14037         * m4/thrd.m4: New file.
14038         * modules/thrd: New file.
14039         * doc/posix-functions/thrd_current.texi: Mention the new module.
14040         * doc/posix-functions/thrd_detach.texi: Likewise.
14041         * doc/posix-functions/thrd_equal.texi: Likewise.
14042         * doc/posix-functions/thrd_exit.texi: Likewise.
14043         * doc/posix-functions/thrd_sleep.texi: Likewise.
14044         * doc/posix-functions/thrd_yield.texi: Likewise.
14045         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14046         AIX bug.
14047         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14048         AIX and Solaris bugs.
14050 2019-06-20  Bruno Haible  <bruno@clisp.org>
14052         threads-h: Add tests.
14053         * tests/test-threads.c: New file.
14054         * modules/threads-h-tests: New file.
14055         * tests/test-threads-c++.cc: New file.
14056         * modules/threads-h-c++-tests: New file.
14058 2019-06-20  Bruno Haible  <bruno@clisp.org>
14060         threads-h: New module.
14061         * lib/threads.in.h: New file.
14062         * m4/threads.m4: New file.
14063         * m4/yield.m4 (gl_YIELD): Update comment.
14064         * modules/threads-h: New file.
14065         * modules/yields (configure.ac): Use AC_REQUIRE.
14066         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14067         bugs.
14069 2019-06-20  Bruno Haible  <bruno@clisp.org>
14071         windows-thread: New module.
14072         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14073         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14074         * lib/glthread/thread.h: Include windows-thread.h.
14075         (gl_thread_t): Define using glwthread_thread_t.
14076         (glthread_create): Define using glwthread_thread_create.
14077         (glthread_join): Define using glwthread_thread_join.
14078         (gl_thread_self): Define using glwthread_thread_self.
14079         (gl_thread_exit): Define using glwthread_thread_exit.
14080         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14081         gl_thread_exit_func): Remove declarations.
14082         * lib/glthread/thread.c (self_key): Remove variable.
14083         (do_init_self_key, init_self_key): Remove functions.
14084         (struct gl_thread_struct): Remove type.
14085         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14086         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14087         functions.
14088         * modules/windows-thread: New file.
14089         * modules/thread (Depends-on): Add windows-thread.
14091 2019-06-20  Bruno Haible  <bruno@clisp.org>
14093         windows-tls: New module.
14094         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14095         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14096         * lib/glthread/tls.h: Include windows-tls.h.
14097         (gl_tls_key_t): Define using glwthread_tls_key_t.
14098         * modules/windows-tls: New file.
14099         * modules/tls (Depends-on): Add windows-tls.
14101 2019-06-20  Bruno Haible  <bruno@clisp.org>
14103         windows-cond: New module.
14104         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14105         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14106         * lib/glthread/cond.h: Include windows-cond.h.
14107         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14108         (gl_cond_t): Define using glwthread_cond_t.
14109         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14110         (glthread_cond_init): Define using glwthread_cond_init.
14111         (glthread_cond_wait): Define using glwthread_cond_wait.
14112         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14113         (glthread_cond_signal): Define using glwthread_cond_signal.
14114         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14115         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14116         (glthread_cond_init_func, glthread_cond_wait_func,
14117         glthread_cond_timedwait_func, glthread_cond_signal_func,
14118         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14119         declarations.
14120         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14121         types.
14122         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14123         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14124         glthread_cond_init_func, glthread_cond_wait_func,
14125         glthread_cond_timedwait_func, glthread_cond_signal_func,
14126         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14127         functions.
14128         * modules/windows-cond: New file.
14129         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14131 2019-06-20  Bruno Haible  <bruno@clisp.org>
14133         windows-timedrecmutex: New module.
14134         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14135         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14136         * modules/windows-timedrecmutex: New file.
14138 2019-06-20  Bruno Haible  <bruno@clisp.org>
14140         windows-timedmutex: New module.
14141         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14142         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14143         * modules/windows-timedmutex: New file.
14145 2019-06-20  Bruno Haible  <bruno@clisp.org>
14147         windows-recmutex: New module.
14148         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14149         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14150         * lib/glthread/lock.h: Include windows-recmutex.h.
14151         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14152         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14153         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14154         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14155         (glthread_recursive_lock_unlock): Define using
14156         glwthread_recmutex_unlock.
14157         (glthread_recursive_lock_destroy): Define using
14158         glwthread_recmutex_destroy.
14159         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14160         glthread_recursive_lock_unlock_func,
14161         glthread_recursive_lock_destroy_func): Remove declarations.
14162         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14163         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14164         glthread_recursive_lock_destroy_func): Remove functions.
14165         * modules/windows-recmutex: New file.
14166         * modules/lock (Depends-on): Add windows-recmutex.
14168 2019-06-20  Bruno Haible  <bruno@clisp.org>
14170         windows-mutex: New module.
14171         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14172         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14173         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14174         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14175         (gl_spinlock_t): Remove type.
14176         (gl_lock_t): Define using glwthread_mutex_t.
14177         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14178         (glthread_lock_init): Define using glwthread_mutex_init.
14179         (glthread_lock_lock): Define using glwthread_mutex_lock.
14180         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14181         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14182         (glthread_lock_init_func, glthread_lock_lock_func,
14183         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14184         declarations.
14185         Use glwthread_spinlock_t instead of gl_spinlock_t.
14186         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14187         GLWTHREAD_SPINLOCK_INIT.
14188         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14189         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14190         functions.
14191         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14192         gl_spinlock_t.
14193         * modules/windows-mutex: New file.
14194         * modules/lock (Depends-on): Add windows-mutex.
14196 2019-06-20  Bruno Haible  <bruno@clisp.org>
14198         windows-once: New module.
14199         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14200         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14201         * lib/glthread/lock.h: Include windows-once.h.
14202         (gl_once_t): Define using glwthread_once_t.
14203         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14204         (glthread_once): Define using glwthread_once.
14205         (glthread_once_func): Remove declaration.
14206         * lib/glthread/lock.c (glthread_once_func): Remove function.
14207         * modules/windows-once: New file.
14208         * modules/lock (Depends-on): Add windows-once.
14210 2019-06-20  Bruno Haible  <bruno@clisp.org>
14212         lock, cond: Avoid possible counter wraparound on Windows.
14213         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14214         field of the guard unchanged if it was already positive.
14215         (glthread_rwlock_rdlock_func): Likewise.
14216         (glthread_rwlock_wrlock_func): Likewise.
14217         (glthread_recursive_lock_lock_func): Likewise.
14218         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14219         (glthread_cond_timedwait_func): Likewise.
14221 2019-06-20  Bruno Haible  <bruno@clisp.org>
14223         cond: Make glthread_cond_timedwait more reliable on Windows.
14224         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14225         condition variable before looking at the current time.
14227 2019-06-20  Bruno Haible  <bruno@clisp.org>
14229         pthread_mutex_timedlock: New module.
14230         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14231         new declaration.
14232         * lib/pthread_mutex_timedlock.c: New file.
14233         * m4/pthread_mutex_timedlock.m4: New file.
14234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14235         whether pthread_mutex_timedlock is declared.
14236         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14237         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14238         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14239         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14240         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14241         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14242         * modules/pthread_mutex_timedlock: New file.
14243         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14244         module.
14246 2019-06-20  Bruno Haible  <bruno@clisp.org>
14248         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14249         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14250         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14251         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14252         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14253         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14254         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14255         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14256         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14257         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14259 2019-06-20  Bruno Haible  <bruno@clisp.org>
14261         tls tests: Small improvements.
14262         * tests/test-tls.c: Include <stdint.h>.
14263         (worker_thread): Avoid gcc warning on 64-bit mingw.
14264         (test_tls): Pass a different id to each thread.
14265         * modules/tls-tests (Depends-on): Add stdint.
14267 2019-06-20  Bruno Haible  <bruno@clisp.org>
14269         cond tests: Simplify.
14270         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14272 2019-06-20  Bruno Haible  <bruno@clisp.org>
14274         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14275         * tests/test-lock.c (test_once): Don't reference fire_signal if
14276         !ENABLE_LOCKING.
14278 2019-06-19  Bruno Haible  <bruno@clisp.org>
14280         nanosleep: Relicense under LGPLv2+.
14281         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14282         * modules/nanosleep (License): Change to LGPLv2+.
14284 2019-06-19  Bruno Haible  <bruno@clisp.org>
14286         Reorder pieces of header in perl scripts.
14287         The desired order is
14288         - Prologue part 1 (2 lines with #!)
14289         - Program short description
14290         - Copyright and license notice
14291         - Written-by notice
14292         - Program short description (optional)
14293         - Program long description (optional)
14294         - Prologue part 2
14295         - Time stamp
14296         - Code
14297         Reported by Paul Eggert.
14298         * build-aux/announce-gen: Reorder header.
14299         * build-aux/gitlog-to-changelog: Likewise.
14300         * build-aux/useless-if-before-free: Likewise.
14301         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14302         description.
14303         * build-aux/update-copyright: Likewise. Add short description. Bump
14304         time-stamp-line-limit to 200.
14306 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14308         verify-tests: work around xlc bug
14309         Problem reported by Bruno Haible in:
14310         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14311         * tests/test-verify.c (item): Move the arithmetic inside the
14312         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14314 2019-06-16  Bruno Haible  <bruno@clisp.org>
14316         Restore Emacs time-stamp hook applicability.
14317         Reported by Darshit Shah <darnir@gnu.org>.
14318         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14319         * build-aux/announce-gen: Likewise.
14320         * build-aux/gitlog-to-changelog: Likewise.
14321         * build-aux/prefix-gnulib-mk: Likewise.
14322         * build-aux/update-copyright: Likewise.
14324 2019-06-15  Bruno Haible  <bruno@clisp.org>
14326         Fix scripts to have valid executable format on Alpine Linux.
14327         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14328         Idea by Paul Eggert.
14329         * build-aux/useless-if-before-free: Use a prologue that starts with
14330         '#!/bin/sh'.
14331         * build-aux/announce-gen: Likewise.
14332         * build-aux/gitlog-to-changelog: Likewise.
14333         * build-aux/prefix-gnulib-mk: Likewise.
14334         * build-aux/update-copyright: Likewise.
14335         * tests/test-update-copyright.sh: Update test program accordingly.
14337 2019-06-10  Bruno Haible  <bruno@clisp.org>
14339         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14340         Reported by Nikita Ermakov <arei@altlinux.org> in
14341         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14342         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14343         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14345 2019-06-10  Bruno Haible  <bruno@clisp.org>
14347         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14348         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14349         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14350         a copy of the path argument.
14351         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14352         it.
14354 2019-06-10  Bruno Haible  <bruno@clisp.org>
14356         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14357         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14358         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14359         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14360         a copy of the path argument.
14361         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14362         it.
14364 2019-06-10  Bruno Haible  <bruno@clisp.org>
14366         posix_spawn_file_actions_addfchdir: Add tests.
14367         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14368         * tests/test-posix_spawn5.c: New file.
14369         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14371 2019-06-10  Bruno Haible  <bruno@clisp.org>
14373         posix_spawn_file_actions_addfchdir: New module.
14374         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14375         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14376         union member 'fchdir_action'.
14377         * lib/spawn_faction_addfchdir.c: New file.
14378         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14379         * m4/posix_spawn_faction_addfchdir.m4: New file.
14380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14381         'posix_spawn_file_actions_addfchdir' is present and whether
14382         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14383         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14384         posix_spawn_file_actions_addfchdir is declared.
14385         (gl_SPAWN_H_DEFAULTS): Initialize
14386         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14387         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14388         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14389         * modules/spawn (Makefile.am): Substitute
14390         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14391         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14392         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14393         * modules/posix_spawn_file_actions_addfchdir: New file.
14394         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14395         signature.
14396         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14397         * doc/posix-functions/posix_spawnp.texi: Likewise.
14398         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14399         Likewise.
14401 2019-06-10  Bruno Haible  <bruno@clisp.org>
14403         doc: Document existence of posix_spawn_file_actions_addchdir module.
14404         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14405         the posix_spawn_file_actions_addchdir module.
14407 2019-06-10  Bruno Haible  <bruno@clisp.org>
14409         posix_spawn-internal: Fix module description.
14410         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14411         from here...
14412         * modules/posix_spawnp (configure.ac): ... and here...
14413         * modules/posix_spawn-internal (configure.ac): ... to here.
14415 2019-06-10  Bruno Haible  <bruno@clisp.org>
14417         doc: Update and improve documentation of glibc functions.
14418         This is a series of commits that
14419         - updates the documentation to the state of glibc 2.29,
14420         - adds references to Linux man pages and glibc documentation,
14421         - marks Linux specific functions as such.
14422         These are the commits:
14423         doc: Update after removal of crypt functions from glibc 2.28.
14424         doc: Remove mention of function vm86 (does not exist on x86_64).
14425         doc: Remove mention of functions that are gone from glibc.
14426         doc: Mention that glibc no longer provides h_errno.
14427         doc: Mention the availability of specific functions in glibc versions.
14428         doc: Mention eaccess.
14429         doc: Add references to Linux man pages.
14430         doc: Add references to glibc documentation.
14431         doc: Mention inotify_* functions.
14432         doc: Mention ppoll.
14433         doc: Mention sched_getcpu.
14434         doc: Mention sync_file_range.
14435         doc: Mention epoll_pwait.
14436         doc: Mention eventfd, eventfd_read, eventfd_write.
14437         doc: Mention signalfd.
14438         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14439         doc: Mention epoll_create1.
14440         doc: Mention getauxval.
14441         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14442         doc: Mention nextdown, nextup.
14443         doc: Mention more ISO TS 18661-1 <math.h> functions.
14444         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14445         doc: Mention getrandom, getentropy.
14446         doc: Mention strfromf, strfromd, strfroml.
14447         doc: Mention preadv2, pwritev2.
14448         doc: Mention copy_file_range.
14449         doc: Mention memfd_create.
14450         doc: Mention mlock2.
14451         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14452         doc: Mention more ISO TS 18661-1 <math.h> functions.
14453         doc: Mention renameat2.
14454         doc: Mention statx.
14455         doc: Mention the ISO C11 multithreading header and functions.
14456         doc: Mention getcpu.
14457         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14458         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14459         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14460         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14461         doc: Some glibc functions also exist on Solaris 11.
14462         doc: Some glibc functions also exist on Solaris 11.4.
14463         doc: Some glibc functions also exist on FreeBSD.
14464         doc: Some glibc functions also exist on BeOS.
14465         doc: Some glibc functions also exist on Haiku.
14466         doc: Mark functions which exist only on Linux.
14467         doc: Mark functions which exist only on Linux and illumos.
14469 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14471         copy-file: fix typo
14472         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14474         copy-file-range: simplify into a stub
14475         Based on a comment by Florian Weimer in:
14476         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14477         It turns out that Emacs (which will use this module) won’t need an
14478         emulation and I suspect other programs won’t either, because these
14479         programs will need to fall back on read+write anyway.  Perhaps I
14480         am wrong and other programs will be able to use an emulation; if
14481         so, this patch can be reverted.
14482         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14483         Just call it copy_file_range.
14484         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14485         Check via AC_LINK_IFELSE.
14486         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14488 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14490         copy-file: prefer copy_file_range
14491         * lib/copy-file.c: Do not include xalloc.h.
14492         (qcopy_file_preserving): Allocate a buffer only if
14493         copy_file_range does not suffice.  If the allocation fails
14494         don't give up; just use a small stack-based buffer.
14495         Prefer copy_file_range if it works.
14496         * modules/copy-file (Depends-on): Add copy-file-range.
14497         Remove xalloc.
14499         copy-file-range: new module
14500         * MODULES.html.sh: Add copy-file-range.
14501         * lib/copy-file-range.c, m4/copy-file-range.m4:
14502         * modules/copy-file-range: New files.
14503         * lib/unistd.in.h (copy_file_range): Declare.
14504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14505         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14506         * modules/unistd (unistd.h): Substitute them.
14508 2019-05-28  Bruno Haible  <bruno@clisp.org>
14510         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14511         Reported by KO Myung-Hun <komh78@gmail.com> in
14512         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14513         * lib/binary-io.h (__gl_setmode_check): Remove function.
14514         (set_binary_mode): Declare as notinline on DJGPP and EMX.
14515         * lib/binary-io.c (__gl_setmode_check): Remove function.
14516         (set_binary_mode): Define here on DJGPP and EMX. Inline
14517         __gl_setmode_check. In case of a tty, don't return an error code.
14519 2019-05-28  James Youngman  <jay@gnu.org>
14521         dirent-safer: Make opendir_safer usable from C++.
14522         * lib/dirent-safer.h: use extern "C".
14524 2019-05-28  James Youngman  <jay@gnu.org>
14526         canonicalize: Make canonicalize_filename_mode usable from C++.
14527         * lib/canonicalize.h: use extern "C".
14529 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
14531         prefix-gnulib-mk: Fix CPPFLAGS migration.
14532         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
14533         _a part of the library name.
14535 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14537         flexmember: update comments again
14538         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
14540         flexmember: update comment
14541         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
14543 2019-05-20  Bruno Haible  <bruno@clisp.org>
14545         setlocale: Improve fallback on macOS.
14546         * lib/setlocale.c (search): Optimize away a redundant strcmp()
14547         invocation.
14548         (locales_with_principal_territory): New array.
14549         (langcmp, get_main_locale_with_same_language): New functions.
14550         (locales_with_principal_language): New array.
14551         (terrcmp, get_main_locale_with_same_territory): New functions.
14552         (rpl_setlocale): When setlocale_single failed, try again with a locale
14553         that is more likely to exist. Don't warn if the environment variable
14554         SETLOCALE_VERBOSE is not set.
14556 2019-05-19  Bruno Haible  <bruno@clisp.org>
14558         localename: Fix default on macOS.
14559         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
14560         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
14561         (gl_locale_name_environ, gl_locale_name_default): Remove code for
14562         HAVE_CFLOCALECOPYCURRENT.
14563         * lib/localename.h (gl_locale_name_default): Update.
14565 2019-05-19  Karl Berry  <karl@freefriends.org>
14567         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
14568         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
14569         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
14571 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
14573         maintainer-makefile: catch uses of $< in non-implicit rules
14574         * top/maint.mk (sc_prohibit_magic_number_exit): New.
14576 2019-05-18  Bruno Haible  <bruno@clisp.org>
14578         threadlib: Provide an easy way to avoid mingw's winpthreads library.
14579         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
14580         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
14581         gl_use_threads accordingly.
14583 2019-05-18  Bruno Haible  <bruno@clisp.org>
14585         pthread_sigmask: Fix compilation error with --enable-threads=windows.
14586         Reported by Tim Rühsen in
14587         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
14588         and Michele Locati in
14589         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
14590         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
14591         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14592         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14593         in use and regardless which threads API is chosen.
14595 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14597         close-stream, closein, closeout: simplify
14598         I noticed this opportunity for simplification while drafting a
14599         new, related module that I haven’t had time to finish yet.
14600         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14601         * modules/close-stream (Files): Remove m4/close-stream.m4.
14602         (configure.ac): Omit gl_CLOSE_STREAM.
14603         * modules/closein (Files): Remove m4/closein.m4
14604         (configure.ac): Omit gl_CLOSEIN.
14605         * modules/closeout (Files): Remove m4/closeout.m4.
14606         (configure.ac): Omit gl_CLOSEOUT.
14608 2019-05-12  Bruno Haible  <bruno@clisp.org>
14610         libtool-next-version: New program.
14611         * build-aux/libtool-next-version: New file.
14613 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14614             Bruno Haible  <bruno@clisp.org>
14616         version-etc: Ease translation.
14617         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14618         URLs and formatting newlines out of translatable string.
14620 2019-05-11  Bruno Haible  <bruno@clisp.org>
14622         gnupload: Explain how to create symlinks.
14623         * build-aux/gnupload (usage): Add an example that creates symlinks.
14625 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14627         fpucw: port to gcc -pedantic
14628         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14629         Use __extension__ if using ({ ... }).
14631         crypto/af_alg: port to strict C compilers
14632         * lib/af_alg.c: Include af_alg.h regardless, so that the
14633         compilation unit is nonempty.
14635 2019-05-10  Bruno Haible  <bruno@clisp.org>
14637         base64: Avoid false positive warning from Coverity.
14638         Reported by Kamil Dudka <kdudka@redhat.com>.
14639         Idea by Paul Eggert.
14640         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14641         '& 0x3f' to the array index expressions. This convinces Coverity that
14642         there is no out-of-bounds array reference, regardless of the input.
14644 2019-05-09  Bruno Haible  <bruno@clisp.org>
14646         gettext: Update to gettext 0.20.
14647         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14648         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14649         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14650         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14651         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14652         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14653         (configure.ac): Request infrastructure compatible with gettext 0.20.
14654         * m4/glibc2.m4: Remove file.
14655         * m4/intdiv0.m4: Remove file.
14656         * m4/intl.m4: Remove file.
14657         * m4/intldir.m4: Remove file.
14658         * m4/intmax.m4: Remove file.
14659         * m4/printf-posix.m4: Remove file.
14660         * m4/uintmax_t.m4: Remove file.
14661         * m4/gettext.m4: Update from gettext 0.20.
14662         * m4/po.m4: Likewise.
14664 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14666         verify: remove verify_true
14667         * NEWS: Mention this.
14668         * lib/verify.h (verify_true): Remove.
14669         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14671         Support C2X and C++17 static_assert
14672         C2X and C++17 finally added support for a simple, single-argument
14673         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14674         doing back in 2005.  Implement static_assert on older platforms.
14675         The only remaining advantage of ‘verify’ is a shorter name.
14676         * doc/posix-headers/assert.texi (assert.h):
14677         * doc/verify.texi (Compile-time Assertions):
14678         Modernize for C2X and C++17.
14679         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14680         New macros.
14681         (_GL_HAVE__STATIC_ASSERT): Remove.
14682         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14683         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14684         string.  All callers changed.
14685         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14686         are used.  All callers changed.
14687         (_Static_assert): Allow either 1 or 2 args, and define if
14688         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14689         !_GL_HAVE__STATIC_ASSERT.
14690         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14691         of defining if !_GL_HAVE_STATIC_ASSERT.
14692         (verify_expr, verify): Don’t bother trying to copy the expression
14693         into the diagnostic, since 1-argument static_assert doesn’t.
14694         (verify): Prefer 1-argument _Static_assert if it works.
14695         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14697 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14699         Fix _GL_HAVE__STATIC_ASSERT typo
14700         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14701         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14703 2019-05-05  Bruno Haible  <bruno@clisp.org>
14705         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14706         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14707         via Akim Demaille <akim.demaille@gmail.com>.
14708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14709         en_US.UTF-8 locale, since that is more likely to be present than an
14710         fr_FR.UTF-8 locale.
14711         * tests/test-wcwidth.c (main): Check the width of U+2202.
14712         * doc/posix-functions/wcwidth.texi: Mention the issue.
14714 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14716         Port manywarnings to GCC 9
14717         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14718         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14719         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14720         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14721         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14722         --help=warnings output.
14723         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14724         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14725         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14727 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14729         Sync lib/mktime-internal.h from glibc
14730         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14731         * lib/mktime-internal.h: Autoupdate.
14733 2019-04-28  Bruno Haible  <bruno@clisp.org>
14735         tls tests: Prevent that the test takes too long.
14736         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14737         (main): Let the test fail if it takes more than 10 minutes.
14738         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14740 2019-04-27  Bruno Haible  <bruno@clisp.org>
14742         lock tests: Prevent that the test takes too long.
14743         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14744         (main): Let the test fail if it takes more than 10 minutes.
14745         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14747 2019-04-27  Bruno Haible  <bruno@clisp.org>
14749         localename: Fix crash on mingw (regression from 2018-11-23).
14750         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14751         locale name that is null.
14753 2019-04-27  Bruno Haible  <bruno@clisp.org>
14755         Fix gcc warnings on 64-bit mode mingw.
14756         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14757         * lib/gl_array_list.c: Likewise.
14758         * lib/gl_array_map.c: Likewise.
14759         * lib/gl_array_set.c: Likewise.
14760         * lib/gl_carray_list.c: Likewise.
14761         * lib/gl_sublist.c: Likewise.
14762         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14763         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14764         * lib/gl_hash_map.c (uintptr_t): Likewise.
14765         * lib/gl_hash_set.c (uintptr_t): Likewise.
14766         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14767         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14768         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14769         * lib/iconv.c (uintptr_t): Likewise.
14770         * lib/iconv_close.c (uintptr_t): Likewise.
14771         * tests/test-lock.c: Include <stdint.h>.
14772         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14773         'long'.
14774         * modules/clean-temp (Depends-on): Add stdint.
14775         * modules/array-list (Depends-on): Likewise.
14776         * modules/array-map (Depends-on): Likewise.
14777         * modules/array-set (Depends-on): Likewise.
14778         * modules/carray-list (Depends-on): Likewise.
14779         * modules/sublist (Depends-on): Likewise.
14780         * modules/lock-tests (Depends-on): Likewise.
14782 2019-04-27  Bruno Haible  <bruno@clisp.org>
14784         error: Tweak indentation.
14785         * lib/error.c: Correct indentation.
14787 2019-04-27  Bruno Haible  <bruno@clisp.org>
14789         term-style-control: Fix gcc warning on mingw.
14790         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14791         of i.
14793 2019-04-26  Bruno Haible  <bruno@clisp.org>
14795         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14796         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14798 2019-04-26  Bruno Haible  <bruno@clisp.org>
14800         relocatable-prog: Fix gcc warning on mingw.
14801         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14802         on EMX.
14804 2019-04-02  Bruno Haible  <bruno@clisp.org>
14806         gitsub.sh: New file.
14807         * top/gitsub.sh: New file.
14809 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14811         argmatch: use void* for raw memory pointers
14812         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14813         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14814         to "values", keep char* for strings.
14816 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14818         prefix-gnulib-mk: fix the support for gnulib-po
14819         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14820         Don't touch HAVE_* variables.
14821         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14823 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14825         di-set: allow free with 'ino_map' being NULL.
14826         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14827         is NULL.  Bug introduced in commit 3703dbbe88dd.
14828         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14829         as a test.
14831 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14833         * lib/str-two-way.h: Fix comment typo.
14835 2019-04-13  Bruno Haible  <bruno@clisp.org>
14837         x-to-1: Restore ability to use original calling convention.
14838         * build-aux/x-to-1.in: Add comments. Accept the original form of
14839         HELP2MAN argument as well as the form expected since 2012-12-12.
14841 2019-04-13  Bruno Haible  <bruno@clisp.org>
14843         x-to-1: Avoid failure due to missing perl modules.
14844         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14845         needs are installed.
14847 2019-04-13  Bruno Haible  <bruno@clisp.org>
14849         openmp-init: New module.
14850         * modules/openmp-init: New file.
14851         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14852         the changes from 2019-04-09.
14854 2019-04-12  Bruno Haible  <bruno@clisp.org>
14856         signbit: Fix compilation error when gnulib's math.h exists twice.
14857         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14859 2019-04-12  Bruno Haible  <bruno@clisp.org>
14861         openmp: Fix compilation error on platforms without OpenMP.
14862         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14864 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14866         mountlist: make parsing /proc/self/mountinfo more robust
14867         Cater for the following issues with mountinfo parsing (the first
14868         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14869         in <https://bugs.gnu.org/35137>).
14870         1. The fields source, target, mntroot and fstype may contain characters
14871         like '\r'; sscanf(3) fails to read such values with the %s format
14872         specifier because it would stop at such characters.
14873         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14874         The only true separator in that file is the ' ' character.
14875         2. The source field may be an empty string, which happens e.g. with
14876         "mount -t tmpfs '' /target".
14877         3. The fstype field may contain mangled characters as well which need
14878         unescaping.
14879         * lib/mountlist.c (terminate_at_blank): Add utility function.
14880         (read_file_system_list): In the block trying to read the mountinfo file,
14881         avoid using sscanf(3) with %s format; instead, parse the above fields
14882         separated by spaces one by one.
14883         This also handles the case when the source field is an empty string.
14884         Unescape the fstype field.
14886 2019-04-09  Bruno Haible  <bruno@clisp.org>
14888         openmp: Add workaround for 32-bit programs on AIX.
14889         * lib/omp.in.h: New file.
14890         * lib/omp-init.c: New file, based on lib/nproc.c.
14891         * m4/omp_h.m4: New file.
14892         * modules/openmp (Files): Add them.
14893         (Depends-on): Add include_next, c-ctype, setenv.
14894         (configure.ac): Invoke gl_OMP_H.
14895         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14896         (Include): Mention <omp.h>.
14898 2019-04-09  Bruno Haible  <bruno@clisp.org>
14900         nproc: Fix return value for privileged processes.
14901         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14902         getpid().
14904 2019-04-07  Bruno Haible  <bruno@clisp.org>
14906         Add copyright notices in several files.
14907         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14908         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14909         * lib/libunistring.valgrind: Likewise.
14910         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14911         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14912         * lib/memchr.valgrind: Likewise.
14913         * lib/memchr2.valgrind: Likewise.
14914         * lib/rawmemchr.valgrind: Likewise.
14915         * lib/relocatable.valgrind: Likewise.
14916         * lib/strchrnul.valgrind: Likewise.
14918 2019-03-25  Bruno Haible  <bruno@clisp.org>
14920         term-style-control tests: Fix link error.
14921         Reported by Tom G. Christensen in
14922         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14923         * modules/term-style-control-tests (Makefile.am): Link
14924         test-term-style-control-hello and test-term-style-control-yes against
14925         LIBINTL.
14927 2019-03-24  Bruno Haible  <bruno@clisp.org>
14929         term-style-control: Add tests.
14930         * tests/test-term-style-control-hello.c: New file.
14931         * tests/test-term-style-control-yes.c: New file.
14932         * modules/term-style-control-tests: New file.
14934         term-style-control: New module.
14935         * lib/term-style-control.h: New file, based on libtextstyle's
14936         term-ostream.oo.h and term-ostream.oo.c.
14937         * lib/term-style-control.c: New file, based on libtextstyle's
14938         term-ostream.oo.c.
14939         * modules/term-style-control: New file.
14941 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14943         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
14944         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
14945         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14947 2019-03-23  Bruno Haible  <bruno@clisp.org>
14949         Support cross-compilation to musl libc.
14950         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14951         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14952         musl libc.
14953         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14954         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14955         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14956         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14957         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14958         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14959         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14960         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14961         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14962         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14963         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14964         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14965         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14966         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14967         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14968         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14969         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14971         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14973         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14974         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14975         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14976         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14978         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14979         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14980         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14981         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14982         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14983         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14984         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14985         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14986         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14987         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14988         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14989         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14990         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14991         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14992         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14993         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14994         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14995         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14997         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14998         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14999         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15000         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15001         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15002         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15003         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15004         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15005         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15006         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15007         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15008         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15009         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15010         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15011         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15012         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15013         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15014         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15015         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15016         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15017         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15018         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15020         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15021         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15022         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15023         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15024         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15025         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15026         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15027         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15028         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15029         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15032 2019-03-23  Bruno Haible  <bruno@clisp.org>
15034         posix_spawn_file_actions_*: Document musl libc bugs.
15035         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15036         the bug.
15037         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15038         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15039         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15040         cross-compiling to a musl system, guess no.
15041         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15042         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15044 2019-03-23  Bruno Haible  <bruno@clisp.org>
15046         futimens: Document musl libc bug.
15047         * doc/posix-functions/futimens.texi: Mention the bug.
15048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15049         cross-compiling, guess no on glibc and musl systems.
15051 2019-03-23  Bruno Haible  <bruno@clisp.org>
15053         Clarify that cross-compilation guesses are guesses.
15054         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15055         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15056         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15057         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15058         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15059         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15060         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15061         gl_cv_glob_lists_symlinks.
15062         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15063         'guessing ' to ac_cv_func_malloc_0_nonnull.
15064         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15065         'guessing ' to ac_cv_func_realloc_0_nonnull.
15066         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15067         'guessing ' to gl_cv_func_poll.
15068         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15069         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15072 2019-03-23  Bruno Haible  <bruno@clisp.org>
15074         strtold: Fix typo.
15075         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15077 2019-03-23  Bruno Haible  <bruno@clisp.org>
15079         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15080         Reported by Akim Demaille.
15081         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15082         [[noreturn]] would not work, use _Noreturn instead.
15084 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15086         libtextstyle-optional: Fix compiler warnings.
15087         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15088         as unused.
15090 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15092         bitset: fix memory leaks
15093         Reported by Bruno Haible.
15094         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15095         * lib/bitset/vector.c (vbitset_free): New.
15096         (vbitset_vtable): Use it.
15098 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15100         bitset: minor changes
15101         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15102         * lib/bitset/table.c: Formatting changes.
15103         Remove useless braces.
15104         Prefer using else in cascades of if/else-if with returns.
15105         * lib/bitset/vector.c: Reduce scopes.
15107 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15109         bitset: expose bitset_resize
15110         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15111         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15112         (main): Use a variable bitset as reference, since fixed does not support resize.
15114 2019-03-19  Bruno Haible  <bruno@clisp.org>
15116         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15117         Reported by Akim Demaille.
15118         * doc/noreturn.texi: New file.
15119         * doc/gnulib.texi: Include it.
15121 2019-03-19  Bruno Haible  <bruno@clisp.org>
15123         doc: Document how to use 'static inline'.
15124         * doc/static-inline.texi: New file.
15125         * doc/gnulib.texi: Include it.
15127 2019-03-19  Bruno Haible  <bruno@clisp.org>
15129         libtextstyle-optional: Add tests.
15130         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15131         adhoc-tests/hello.c.
15132         * tests/test-libtextstyle-default.css: New file, copied from
15133         libtextstyle's adhoc-tests/hello-default.css.
15134         * modules/libtextstyle-optional-tests: New file.
15136         libtextstyle-optional: New module.
15137         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15138         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15139         * modules/libtextstyle-optional: New file.
15141 2019-03-19  Bruno Haible  <bruno@clisp.org>
15143         c-stack: Make signal handlers more reliable.
15144         * lib/c-stack.c (progname): New variable.
15145         (die): Use it.
15146         (c_stack_action): Initialize it.
15147         (segv_handler): Save and restore errno.
15149 2019-03-19  Bruno Haible  <bruno@clisp.org>
15151         Help making signal handlers more reliable.
15152         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15153         _GL_ASYNC_SAFE into config.h.
15154         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15155         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15156         argument.
15157         * lib/fatal-signal.c (action_t, uninstall_handlers,
15158         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15159         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15160         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15161         _GL_ASYNC_SAFE.
15162         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15163         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15165 2019-03-18  Bruno Haible  <bruno@clisp.org>
15167         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15168         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15169         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15171 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15173         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15174         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15175         GCC 4.8.
15177 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15179         fts: minor simplification
15180         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15182 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15184         bitset, timevar: Depend on c99.
15185         Reported by Bruno Haible.
15186         * modules/bitset, modules/timevar (Depends-on): Add c99.
15188 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15190         bitset: a bit (...) more tests
15191         * tests/test-bitset.c (check_attributes): Check zero and ones.
15193 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15195         bitset: fix overflows.
15196         Reported by Bruno Haible.
15197         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15198         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15199         the bit in the array of bitset_word, so be sure to take its modulo
15200         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15201         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15203 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15205         bitset: style changes.
15206         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15207         Formatting changes.
15208         (tbitset_list): Reduce scopes.
15210 2019-03-16  Bruno Haible  <bruno@clisp.org>
15212         fatal-signal: Pass the signal number to the action.
15213         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15214         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15215         (fatal_signal_handler): Pass the signal number to the action.
15216         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15217         signal number as parameter.
15218         (create_temp_dir): Update.
15219         * lib/wait-process.c (cleanup_slaves_action): New function.
15220         (register_slave_subprocess): Update at_fatal_signal invocation.
15221         * NEWS: Mention the change.
15223 2019-03-16  Bruno Haible  <bruno@clisp.org>
15225         fatal-signal: Add function that lists the fatal signals.
15226         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15227         * lib/fatal-signal.c (get_fatal_signals): New function.
15229 2019-03-14  Bruno Haible  <bruno@clisp.org>
15231         isatty: Make it return true in Cygwin consoles on native Windows.
15232         * lib/isatty.c: Include <string.h>.
15233         (GetProcAddress): New macro.
15234         (GetNamedPipeClientProcessIdFuncType): New type.
15235         (GetNamedPipeClientProcessIdFunc): New variable.
15236         (QueryFullProcessImageNameFuncType): New type.
15237         (QueryFullProcessImageNameFunc): New variable.
15238         (initialized): New variable.
15239         (initialize): New function.
15240         (IsCygwinConsoleHandle): New function.
15241         (isatty): Invoke it.
15242         * doc/posix-functions/isatty.texi: Mention the issue.
15244 2019-03-14  Bruno Haible  <bruno@clisp.org>
15246         all: Update URLs to msdn.microsoft.com.
15247         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15248         was moved to docs.microsoft.com.
15250 2019-03-13  Bruno Haible  <bruno@clisp.org>
15252         gnulib-tool: Clarify the coding style.
15253         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15254         * gnulib-tool: Add comment about coding style.
15256 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15258         strtod: fix clash with strtold
15259         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15260         * lib/strtod.c (compute_minus_zero, minus_zero):
15261         Simplify by remving the macro / external variable,
15262         and having just a function.  User changed.  This avoids
15263         the need for an external variable that might clash.
15265 2019-03-10  Bruno Haible  <bruno@clisp.org>
15267         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15268         Reported by Eli Zaretskii <eliz@gnu.org>.
15269         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15270         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15271         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15273 2019-03-10  Bruno Haible  <bruno@clisp.org>
15275         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15276         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15277         is in use.
15278         * tests/test-printf-posix2.c: Likewise.
15280 2019-03-10  Bruno Haible  <bruno@clisp.org>
15282         uninorm tests: Free allocated memory.
15283         * tests/uninorm/test-u32-normalize-big.h
15284         (struct normalization_test_file): Remove 'const' from allocated member.
15285         (free_normalization_test_file): New declaration.
15286         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15287         memory.
15288         (free_normalization_test_file): New function.
15289         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15290         'struct normalization_test_file' contents.
15291         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15292         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15293         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15295 2019-03-10  Bruno Haible  <bruno@clisp.org>
15297         di-set: Fix memory leak.
15298         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15299         not free().
15301 2019-03-10  Bruno Haible  <bruno@clisp.org>
15303         tests: Free allocated memory.
15304         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15305         * tests/test-astrxfrm.c (main): Free allocated memory.
15306         * tests/test-bitset.c (compare, check_attributes): Free allocated
15307         bitsets.
15308         * tests/test-filenamecat.c (main): Free allocated memory.
15309         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15310         * tests/test-freadptr.c (main): Likewise.
15311         * tests/test-freadptr2.c (main): Free allocated memory.
15312         * tests/test-freadseek.c (main): Likewise.
15313         * tests/test-gc-arcfour.c (main): Close allocated context.
15314         * tests/test-gc-arctwo.c (main): Likewise.
15315         * tests/test-gc-des.c (main): Close all allocated contexts.
15316         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15317         * tests/test-pipe-filter-ii1.c (main): Likewise.
15318         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15319         allocated file actions.
15320         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15321         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15322         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15323         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15324         * tests/test-strfmon_l.c (main): Free allocated locales.
15325         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15326         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15327         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15328         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15329         * tests/unistr/test-chr.h (main): Free input32.
15330         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15332 2019-03-10  Bruno Haible  <bruno@clisp.org>
15334         tests: Prepare for using valgrind.
15335         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15336         * tests/*/*.sh: Likewise.
15337         * tests/test-freadptr.c (main): Update accordingly.
15338         * tests/test-freadseek.c (main): Likewise.
15340 2019-03-09  Bruno Haible  <bruno@clisp.org>
15342         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15343         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15344         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15345         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15346         before exiting.
15348 2019-03-09  Jim Meyering  <meyering@fb.com>
15350         test-userspec.c: don't print NULL
15351         * tests/test-userspec.c (main): A test release of gcc,
15352         9.0.1 20190310, warned that this test would attempt to
15353         print a NULL pointer via a %s printf format.  Fix that
15354         and remove the unnecessary preceding "!diag" conjunct.
15355         Also add a comment.
15357 2019-03-03  Bruno Haible  <bruno@clisp.org>
15359         getloadavg: Write NULL for the null pointer.
15360         Reported by Michal Privoznik <mprivozn@redhat.com>.
15361         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15363 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15365         alloca, tsearch-tests: Write NULL for the null pointer.
15366         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15367         * tests/test-tsearch.c (mangle_tree): Likewise.
15369 2019-03-09  Bruno Haible  <bruno@clisp.org>
15371         strfmon_l: Fix -fsanitize=address finding.
15372         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15373         <string.h>.
15374         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15375         (directive_t, directives_t): New types.
15376         (fmon_parse): New function.
15377         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15378         format string. Consume 'long double' arguments in places where the
15379         format string indicates so.
15380         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15382 2019-03-09  Bruno Haible  <bruno@clisp.org>
15384         crypto/des: Fix undefined behaviour.
15385         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15386         shift operations on 'int'.
15388 2019-03-09  Bruno Haible  <bruno@clisp.org>
15390         Fix undefined behaviour.
15391         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15392         'unsigned int', to avoid shift operations on 'int'.
15393         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15394         * tests/test-count-leading-zeros.c (main): Use a random number that has
15395         as many bits as TYPE, not only 2*15 or 2*31 bits.
15396         * tests/test-count-trailing-zeros.c (main): Likewise.
15397         * tests/test-count-one-bits.c (main): Likewise.
15398         * tests/test-memmem.c: Don't include "null-ptr.h".
15399         (main): Use zerosize_ptr() instead of null_ptr().
15400         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15402 2019-03-08  Bruno Haible  <bruno@clisp.org>
15404         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15405         Reported by Jeffrey Walton <noloader@gmail.com>.
15406         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15407         invoke memset with a zero size.
15408         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15409         Likewise.
15410         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15411         Adjust accordingly.
15413 2019-03-08  Bruno Haible  <bruno@clisp.org>
15415         unistr/*, uniconv/*: Fix undefined behaviour.
15416         Reported by Jeffrey Walton <noloader@gmail.com>.
15417         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15418         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15419         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15420         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15422 2019-03-08  Bruno Haible  <bruno@clisp.org>
15424         unistr/u8-cmp: Fix undefined behaviour.
15425         Reported by Jeffrey Walton <noloader@gmail.com>.
15426         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15428 2019-03-08  Bruno Haible  <bruno@clisp.org>
15430         unictype/numeric: Fix undefined behaviour.
15431         Reported by Jeffrey Walton <noloader@gmail.com>.
15432         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15433         on shift overflow, caught by "gcc -fsanitize=undefined".
15434         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15435         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15436         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15438 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15440         git-version-gen: fix --version copyright year
15441         * build-aux/git-version-gen, build-aux/move-if-change (version):
15442         --version output copyright year is now taken from script year,
15443         so that it no longer needs to be updated by hand.
15445 2019-03-04  Bruno Haible  <bruno@clisp.org>
15447         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15448         This approach supports relocatable installation of shared libraries
15449         which depend on other shared libraries from the same package.
15450         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15451         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15452         wrapper around the original LIBTOOL.
15453         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15454         token '@loader_path' instead of '$ORIGIN'.
15455         * build-aux/libtool-reloc: New file.
15456         * modules/relocatable-prog (Files): Add it.
15457         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15458         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15459         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15460         Makefile.am, not in configure.ac.
15462 2019-03-04  Bruno Haible  <bruno@clisp.org>
15464         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15465         * build-aux/install-reloc: Revert change.
15466         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15468 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15470         nstrftime: support the ‘+’ flag
15471         * lib/nstrftime.c (add, __strftime_internal):
15472         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15473         (__strftime_internal): New arg ‘width’.  All uses changed.
15474         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15476 2019-02-24  Bruno Haible  <bruno@clisp.org>
15478         relocatable-prog: Improve verbose output.
15479         * build-aux/install-reloc (func_verbose): Escape characters that would
15480         be interpreted by the shell.
15482 2019-02-24  Bruno Haible  <bruno@clisp.org>
15484         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15485         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15486         "sys/stat.h".
15487         * lib/lstat.c: Likewise.
15488         * lib/fstat.c: Likewise.
15489         * lib/fstatat.c: Likewise.
15491 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15493         long-options: add parse_gnu_standard_options_only
15494         Discussed in https://bugs.gnu.org/33468 .
15496         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15497         (parse_gnu_standard_options_only): Add function to process
15498         the GNU default options --help and --version and fail for
15499         any other unknown long or short option. See
15500         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15501         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15502         * modules/long-options (depends-on): Add stdbool, exitfail.
15503         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15504         syntax-check rule, add new function name.
15506 2019-02-23  Bruno Haible  <bruno@clisp.org>
15508         relocatable-prog: Update documentation.
15509         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15510         the recent changes.
15512 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15514         nstrftime: tweak arg order
15515         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
15516         All callers changed.  Suggested by TAMUKI Shoichi in:
15517         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
15519 2019-02-23  Bruno Haible  <bruno@clisp.org>
15521         relocatable-prog: Use wrapper-free installation also on Mac OS X.
15522         Reported by Paul Smith <psmith@gnu.org>.
15523         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
15524         (func_relativize): New function, from gnulib-tool.
15525         Handle mode 'macosx' through invocations of 'otool' and
15526         'install_name_tool'.
15527         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15528         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
15529         'install-reloc' invocation with mode 'macosx'.
15531 2019-02-23  Bruno Haible  <bruno@clisp.org>
15533         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
15534         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15535         Hurd with glibc >= 2.27.
15537 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15539         nstrftime: merge glibc strftime changes
15540         This incorporates:
15541         2019-02-11 Fix a few whitespace arrangement inconsistencies
15542         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
15543         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
15544         2019-01-11 strftime: use the "L_" macro with character literals
15545         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
15546         callers changed.  Default width of %Ey is now 2.  This is needed
15547         for proper handling of Japanese dates starting on 2019-05-01.
15549 2019-02-19  Bruno Haible  <bruno@clisp.org>
15551         relocatable-prog: Use $ORIGIN trick on more platforms.
15552         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15553         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
15554         Solaris >= 10, Haiku. But don't use it on Android.
15555         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
15556         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
15558 2019-02-19  Bruno Haible  <bruno@clisp.org>
15560         progreloc: Speed up executable lookup on various platforms.
15561         * lib/progreloc.c: Include <errno.h>.
15562         (safe_read, full_read): New functions.
15563         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
15564         prefer the information from the /proc file system to a PATH search.
15566 2019-02-19  Bruno Haible  <bruno@clisp.org>
15568         progreloc: Simplify code for Android.
15569         * lib/progreloc.c (executable_fd): Don't define on Android.
15570         (maybe_executable, find_executable): Don't use executable_fd on Android.
15572 2019-02-15  Bruno Haible  <bruno@clisp.org>
15574         gnulib-tool: Support --import with just a few tests, not --with-tests.
15575         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
15576         'inctests' when generating files; use 'inctests' only for computing the
15577         transitive closure.
15579 2019-02-14  Bruno Haible  <bruno@clisp.org>
15581         gnulib-tool: Improve handling of multiple --local-dir options.
15582         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
15583         options work.
15584         * gnulib-tool (func_path_prepend): Remove function.
15585         (func_path_foreach): Make IFS handling more robust.
15586         (local_gnulib_path): Collect --local-dir values using func_path_append,
15587         not func_path_prepend.
15588         (func_determine_path_separator): Make IFS handling more robust.
15589         (func_lookup_file_cb): New function.
15590         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
15591         func_lookup_local_file. Apply the patches in the reverse order of their
15592         origin in $local_gnulib_path.
15593         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15594         * NEWS: Mention that the first --local-dir option is the one with
15595         highest priority.
15597 2019-02-10  Bruno Haible  <bruno@clisp.org>
15599         libtextstyle: New module.
15600         * m4/libtextstyle.m4: New file.
15601         * modules/libtextstyle: New file.
15603 2019-02-05  Bruno Haible  <bruno@clisp.org>
15605         declared.sh: Fix bug with variables of pointer type.
15606         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15607         before the symbol to be omitted if the preceding character is a '*'.
15609 2019-02-04  Bruno Haible  <bruno@clisp.org>
15611         Add script for running tests under valgrind.
15612         * build-aux/run-test: New file, from GNU libunistring.
15613         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15614         as well.
15616 2019-02-04  Bruno Haible  <bruno@clisp.org>
15618         declared.sh: Fix --version output.
15619         * build-aux/declared.sh (func_version): Update package name.
15621 2019-02-03  Bruno Haible  <bruno@clisp.org>
15623         Add script for determining the set of symbols to export from a library.
15624         * build-aux/declared.sh: New file, from GNU libunistring.
15625         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15626         Mention it.
15628 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15630         vla: add commentary about VLA_ELEMS
15631         * lib/vla.h (VLA_ELEMS): Add commentary,
15632         some inspired by Bruno Haible’s proposal in:
15633         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15635         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15636         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15637         assume the C99 signatures for strtod and strtold.  Programs that
15638         require stricter adherence to C99 should also use the strtod and
15639         strtold modules as needed, and we no longer need the
15640         HAVE_C99_STRTOLD macro.
15641         * NEWS: Mention this.
15642         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15643         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15644         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15645         (Files): Remove m4/c-strtod.m4.
15646         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15647         exists.
15649 2019-02-02  Bruno Haible  <bruno@clisp.org>
15651         fma: Improve code style.
15652         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15654 2019-02-02  Colin Watson  <cjwatson@debian.org>
15656         *-map tests: Fix compilation error.
15657         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15658         * tests/test-hash_map.c: Likewise.
15659         * tests/test-linkedhash_map.c: Likewise.
15661 2019-01-31  Bruno Haible  <bruno@clisp.org>
15663         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15664         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15665         GNULIB_defined_strtold_function): New macros.
15666         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15667         (STRTOD): Ignore HAVE_C99_STRTOLD.
15668         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15669         deemed buggy. But do use it on platforms where uselocale exists and is
15670         usable.
15671         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15672         deemed buggy. On platforms where uselocale exists and is usable, use
15673         uselocale and strtod/strtold.
15674         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15675         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15676         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15677         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15678         (Depends-on): Add strtod.
15679         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15680         (Depends-on): Add strtold.
15682 2019-01-31  Bruno Haible  <bruno@clisp.org>
15684         strtod, strtold: Use the locale's decimal point.
15685         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15686         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15687         (parse_number): Add a radixchar argument. Use it instead of '.'.
15688         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15689         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15690         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15691         * tests/test-strtod1.c: New file.
15692         * tests/test-strtod1.sh: New file.
15693         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15694         locale-fr.m4 and its dependencies.
15695         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15696         (Makefile.am): Arrange to compile test-strtod1.c and run
15697         test-strtod1.sh.
15698         * tests/test-strtold1.c: New file.
15699         * tests/test-strtold1.sh: New file.
15700         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15701         locale-fr.m4 and its dependencies.
15702         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15703         (Makefile.am): Arrange to compile test-strtold1.c and run
15704         test-strtold1.sh.
15706 2019-01-31  Bruno Haible  <bruno@clisp.org>
15708         strtod, strtold tests: Simplify tests.
15709         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15710         * tests/test-strtold.c (main): Likewise.
15712 2019-01-31  Bruno Haible  <bruno@clisp.org>
15714         strtod, strtold: Avoid unnecessary rounding errors.
15715         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15716         decimal to DOUBLE conversion.
15718 2019-01-31  Bruno Haible  <bruno@clisp.org>
15720         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15721         * lib/strtod.c (STRTOD): When there is an extra character after the
15722         exponent marker 'p', reparse the number.
15723         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15724         * doc/posix-functions/strtold.texi: Likewise.
15726 2019-01-29  Bruno Haible  <bruno@clisp.org>
15728         strtold: Add tests.
15729         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15730         * modules/strtold-tests: New file.
15732 2019-01-29  Bruno Haible  <bruno@clisp.org>
15734         strtold: New module.
15735         * lib/stdlib.in.h (strtold): New declaration.
15736         * lib/strtold.c: New file.
15737         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15738         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15739         USE_LDEXP): New macros.
15740         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15741         USE_LONG_DOUBLE.
15742         (underlying_strtod): Remove function. Replace with some macros.
15743         Re-add the code for a missing underlying function that was removed on
15744         2013-02-19.
15745         * m4/strtold.m4: New file.
15746         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15747         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15748         REPLACE_STRTOLD.
15749         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15750         REPLACE_STRTOLD.
15751         * modules/strtold: New file.
15752         * doc/posix-functions/strtold.texi: Document the new module.
15754 2019-01-29  Bruno Haible  <bruno@clisp.org>
15756         strtod: Fix compilation error on IRIX 6.5.
15757         * modules/strtod (Depends-on): Add 'math'.
15759 2019-01-28  Bruno Haible  <bruno@clisp.org>
15761         Fix build error when building a shared libunistring on Android.
15762         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15763         (main): Add 'volatile', to defeat a GCC optimization that would
15764         eliminate the reference.
15765         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15766         (main): Add 'volatile', to defeat a GCC optimization that would
15767         eliminate the reference.
15768         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15769         (main): Add 'volatile', to defeat a GCC optimization that would
15770         eliminate the reference.
15771         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15772         (main): Add 'volatile', to defeat a GCC optimization that would
15773         eliminate the reference.
15775 2019-01-27  Bruno Haible  <bruno@clisp.org>
15777         Avoid build errors due to wrong references between modules.
15778         * lib/uninorm/canonical-decomposition.c: Include
15779         "uninorm/decomposition-table.h", not "decomposition-table.h".
15780         * lib/uninorm/decomposition.c: Likewise.
15781         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15782         not "decompose-internal.h".
15783         * lib/uninorm/u16-normalize.c: Likewise.
15784         * lib/uninorm/u32-normalize.c: Likewise.
15785         * lib/uninorm/uninorm-filter.c: Likewise.
15786         * lib/uninorm/nfkc.c: Likewise.
15787         * lib/uninorm/nfkd.c: Likewise.
15788         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15789         "caseprop.h".
15790         * lib/unicase/u8-ct-totitle.c: Likewise.
15791         * lib/unicase/u8-prefix-context.c: Likewise.
15792         * lib/unicase/u8-suffix-context.c: Likewise.
15793         * lib/unicase/u16-casemap.c: Likewise.
15794         * lib/unicase/u16-ct-totitle.c: Likewise.
15795         * lib/unicase/u16-prefix-context.c: Likewise.
15796         * lib/unicase/u16-suffix-context.c: Likewise.
15797         * lib/unicase/u32-casemap.c: Likewise.
15798         * lib/unicase/u32-ct-totitle.c: Likewise.
15799         * lib/unicase/u32-prefix-context.c: Likewise.
15800         * lib/unicase/u32-suffix-context.c: Likewise.
15801         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15802         "unicasemap.h".
15803         * lib/unicase/u8-toupper.c: Likewise.
15804         * lib/unicase/u8-ct-tolower.c: Likewise.
15805         * lib/unicase/u8-ct-toupper.c: Likewise.
15806         * lib/unicase/u16-tolower.c: Likewise.
15807         * lib/unicase/u16-toupper.c: Likewise.
15808         * lib/unicase/u16-ct-tolower.c: Likewise.
15809         * lib/unicase/u16-ct-toupper.c: Likewise.
15810         * lib/unicase/u32-tolower.c: Likewise.
15811         * lib/unicase/u32-toupper.c: Likewise.
15812         * lib/unicase/u32-ct-tolower.c: Likewise.
15813         * lib/unicase/u32-ct-toupper.c: Likewise.
15814         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15815         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15816         * lib/unicase/u16-ct-casefold.c: Likewise.
15817         * lib/unicase/u32-ct-casefold.c: Likewise.
15819 2019-01-27  Bruno Haible  <bruno@clisp.org>
15821         gperf: Fix error when this module is required by some test module.
15822         * modules/gperf (Applicability): Set to 'all'.
15824 2019-01-27  Bruno Haible  <bruno@clisp.org>
15826         tmpfile: Add support for Android.
15827         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15828         works.
15829         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15830         Android.
15831         * modules/tmpfile (Depends-on): Add 'stdbool'.
15832         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15833         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15835 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15837         bitsetv: allow free on NULL.
15838         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15840 2019-01-27  Bruno Haible  <bruno@clisp.org>
15842         test-framework-sh: Improve maintainability.
15843         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15845 2019-01-27  Bruno Haible  <bruno@clisp.org>
15847         tests: Don't assume that /tmp exists.
15848         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15849         * tests/test-copy-acl-1.sh: Likewise.
15850         * tests/test-file-has-acl-1.sh: Likewise.
15851         * tests/test-copy-file-1.sh: Likewise.
15853 2019-01-27  Bruno Haible  <bruno@clisp.org>
15855         tests: Accommodate a shell that is not in /bin/sh.
15856         * tests/init.sh (setup_): Set srcdir and builddir.
15857         (BOURNE_SHELL): New variable.
15858         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15859         * modules/file-has-acl-tests (Depends-on): Likewise.
15860         * modules/copy-file-tests (Depends-on): Likewise.
15861         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15862         scripts through $BOURNE_SHELL.
15863         * tests/test-set-mode-acl-2.sh: Likewise.
15864         * tests/test-copy-acl-1.sh: Likewise.
15865         * tests/test-copy-acl-2.sh: Likewise.
15866         * tests/test-file-has-acl-1.sh: Likewise.
15867         * tests/test-file-has-acl-2.sh: Likewise.
15868         * tests/test-copy-file-1.sh: Likewise.
15869         * tests/test-copy-file-2.sh: Likewise.
15870         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15871         invoker.
15872         * tests/test-copy-acl.sh (builddir): Likewise.
15873         * tests/test-file-has-acl.sh (builddir): Likewise.
15874         * tests/test-copy-file.sh (builddir): Likewise.
15875         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15876         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15877         * tests/test-vc-list-files-git.sh: Likewise.
15879 2019-01-27  Bruno Haible  <bruno@clisp.org>
15881         tests: Fix some "unused variable" warnings.
15882         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15883         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15884         * tests/test-striconveh.c (main): Move some variable into the
15885         '#if HAVE_ICONV'.
15886         * tests/test-striconveha.c (main): Likewise.
15887         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15888         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15889         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15890         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15891         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15892         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15893         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15894         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15895         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15896         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15897         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15898         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15899         * tests/test-tsearch.c (main): Move some variable into the
15900         '#if HAVE_INITSTATE'.
15902 2019-01-27  Bruno Haible  <bruno@clisp.org>
15904         unigbrk/uc-grapheme-breaks: Fix build failure.
15905         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15906         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15908 2019-01-27  Bruno Haible  <bruno@clisp.org>
15910         mountlist: Merge two .m4 files.
15911         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15912         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15913         * m4/ls-mntd-fs.m4: Remove file.
15914         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15916 2019-01-27  Bruno Haible  <bruno@clisp.org>
15918         tests: Enable Linux specific tests on Android.
15919         * tests/test-flock.c (main): Treat Android like Linux.
15920         * tests/test-openat-safer.c (main): Likewise.
15922 2019-01-27  Bruno Haible  <bruno@clisp.org>
15924         relocatable-prog: Use Linux code on Android.
15925         * lib/progreloc.c: Treat Android like Linux.
15927 2019-01-26  Bruno Haible  <bruno@clisp.org>
15929         getloadavg: Add support for Android.
15930         * lib/getloadavg.c: Treat Android like Linux.
15932 2019-01-26  Bruno Haible  <bruno@clisp.org>
15934         vma-iter: Add support for Android.
15935         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
15936         * lib/vma-iter.c: Treat Android like Linux.
15937         * lib/get-rusage-data.c (get_rusage_data): Likewise.
15939 2019-01-26  Bruno Haible  <bruno@clisp.org>
15941         fts: Optimize on Android.
15942         * lib/fts.c: Treat Android like Linux.
15944 2019-01-26  Bruno Haible  <bruno@clisp.org>
15946         fts: Add support for Android.
15947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15948         defined by this module and the ones in libc.
15949         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15951 2019-01-26  Bruno Haible  <bruno@clisp.org>
15953         mountlist: Use Linux code on Android.
15954         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15955         (unescape_tab, read_file_system_list): Enable Linux code on Android
15956         as well.
15957         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15958         and endmntent.
15959         * modules/mountlist (Depends-on): Add 'getline'.
15961 2019-01-26  Bruno Haible  <bruno@clisp.org>
15963         localename tests: Fix test failure on Android.
15964         * modules/localename-tests (Depends-on): Add 'setlocale'.
15966 2019-01-26  Bruno Haible  <bruno@clisp.org>
15968         mountlist: Port better to Android.
15969         * lib/mountlist.c (MOUNTED): Redefine on Android.
15970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15971         Android.
15973 2019-01-26  Bruno Haible  <bruno@clisp.org>
15975         striconveh: Fix use of uninitialized iconv_t.
15976         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15977         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15978         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15980 2019-01-26  Bruno Haible  <bruno@clisp.org>
15982         nonblocking-socket-tests: Fix test failure on Android 4.3.
15983         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15984         also on Android.
15986 2019-01-26  Bruno Haible  <bruno@clisp.org>
15988         sh-filename: Add support for Android 4.3.
15989         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15991 2019-01-26  Bruno Haible  <bruno@clisp.org>
15993         ptsname_r: Work around bug on Android 4.3.
15994         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15995         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15996         correct.
15997         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15998         is defined, just fix the return value.
15999         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16000         The behaviour of musl libc is nothing to be "fixed", since it is
16001         compliant with the next POSIX standard.
16003 2019-01-26  Bruno Haible  <bruno@clisp.org>
16005         ttyname_r: Work around bug on Android 4.3.
16006         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16007         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16008         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16009         * doc/posix-functions/ttyname.texi: Likewise.
16011 2019-01-25  Bruno Haible  <bruno@clisp.org>
16013         getprogname: Port to Android 4.3.
16014         * lib/getprogname.c (getprogname): On Android, take only the last
16015         component of __progname.
16017 2019-01-25  Bruno Haible  <bruno@clisp.org>
16019         wcrtomb: Work around bug on Android 4.3.
16020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16021         the C locale.
16022         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16023         which does not have the 'wctomb' function.
16024         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16025         * tests/test-wcrtomb.c (main): Accept argument '5'.
16026         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16028 2019-01-25  Bruno Haible  <bruno@clisp.org>
16030         setlocale: Work around bug on Android 4.3.
16031         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16032         the "C" locale.
16033         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16034         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16036 2019-01-24  Bruno Haible  <bruno@clisp.org>
16038         memchr: Work around bug on Android <= 5.0.
16039         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16040         * doc/posix-functions/memchr.texi: Mention the Android bug.
16042 2019-01-24  Bruno Haible  <bruno@clisp.org>
16044         random: Fix compilation error on Android 4.3.
16045         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16046         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16047         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16048         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16049         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16051         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16052         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16053         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16054         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16055         REPLACE_INITSTATE, REPLACE_SETSTATE.
16056         * doc/posix-functions/random.texi: Correct the description of the
16057         situation on Android.
16058         * doc/posix-functions/srandom.texi: Likewise.
16059         * doc/posix-functions/rand.texi: Likewise.
16060         * doc/posix-functions/srand.texi: Likewise.
16062 2019-01-24  Bruno Haible  <bruno@clisp.org>
16064         mbtowc: Fix compilation error on Android 4.3.
16065         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16066         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16067         HAVE_MBTOWC.
16068         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16069         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16070         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16071         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16072         * doc/posix-functions/mbtowc.texi: Mention the change.
16074 2019-01-24  Bruno Haible  <bruno@clisp.org>
16076         fdatasync: Fix compilation error on Android 4.3.
16077         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16078         test whether fdatasync() exists.
16080 2019-01-24  Bruno Haible  <bruno@clisp.org>
16082         unlinkat: Fix compilation error on Android 4.3.
16083         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16084         also on Android.
16085         * doc/posix-functions/unlinkat.texi: Mention the issue.
16087 2019-01-24  Bruno Haible  <bruno@clisp.org>
16089         renameat: Fix compilation error on Android 4.3.
16090         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16091         * doc/posix-functions/renameat.texi: Mention the issue.
16093 2019-01-24  Bruno Haible  <bruno@clisp.org>
16095         fchownat: Fix compilation error on Android 4.3.
16096         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16097         use.
16098         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16099         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16100         * doc/posix-functions/fchownat.texi: Mention the issue.
16102 2019-01-23  Bruno Haible  <bruno@clisp.org>
16104         gnulib-tool: Support running testdirs on Android.
16105         * build-aux/test-driver.diff: New file.
16106         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16107         build-aux/test-driver after running automake.
16109 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16111         relocatable-prog: avoid warnings from Automake
16112         * modules/relocatable-prog: Don't declare PHONY dependencies in
16113         Automake conditionals.
16115 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16117         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16118         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16120 2019-01-23  Bruno Haible  <bruno@clisp.org>
16122         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16123         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16124         preceding -Wl,--as-needed option. Don't check whether the linker
16125         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16127 2019-01-23  Bruno Haible  <bruno@clisp.org>
16129         thread: Force linking with -lpthread, even when --as-needed is in use.
16130         Reported by Richard W.M. Jones <rjones@redhat.com> in
16131         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16132         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16134 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16135             Bruno Haible  <bruno@clisp.org>
16137         relocatable: avoid compiler warnings (-Wshadow)
16138         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16139         to avoid name collisions with global variables.
16141 2019-01-22  Bruno Haible  <bruno@clisp.org>
16143         vasnprintf: Don't use %n on Android.
16144         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16145         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16146         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16148 2019-01-22  Bruno Haible  <bruno@clisp.org>
16150         *printf: Support cross-compilation to Android.
16151         * m4/printf.m4: Add cross-compilation guesses for Android.
16153 2019-01-21  Bruno Haible  <bruno@clisp.org>
16155         diacrit: Mark deprecated.
16156         * modules/diacrit (Status, Notice): Mark as deprecated.
16157         * NEWS: Mention it.
16159 2019-01-20  Bruno Haible  <bruno@clisp.org>
16161         rintl: Override broken implementation on NetBSD.
16162         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16163         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16164         REPLACE_RINTL.
16165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16166         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16167         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16168         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16170 2019-01-20  Bruno Haible  <bruno@clisp.org>
16172         log10l: Work around inaccurate implementation on NetBSD.
16173         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16174         * lib/log10l.c: Comment out too simplistic override.
16175         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16177 2019-01-20  Bruno Haible  <bruno@clisp.org>
16179         logl: Work around inaccurate implementation on NetBSD.
16180         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16181         * lib/logl.c: Comment out unused code.
16182         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16184 2019-01-20  Bruno Haible  <bruno@clisp.org>
16186         expm1l: Work around inaccurate implementation on NetBSD.
16187         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16188         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16189         REPLACE_EXPM1L.
16190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16191         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16192         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16193         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16195 2019-01-20  Bruno Haible  <bruno@clisp.org>
16197         expl: Work around inaccurate implementation on NetBSD.
16198         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16199         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16200         REPLACE_EXPL.
16201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16202         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16203         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16204         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16206 2019-01-20  Bruno Haible  <bruno@clisp.org>
16208         exp2l: Work around inaccurate implementation on NetBSD.
16209         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16210         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16212 2019-01-20  Bruno Haible  <bruno@clisp.org>
16214         floor, floorl: Avoid autoconf warnings.
16215         * modules/floor (configure.ac): Use AC_REQUIRE.
16216         * modules/floorl (configure.ac): Likewise.
16218 2019-01-20  Bruno Haible  <bruno@clisp.org>
16220         Defeat current GCC optimizations in math autoconf tests.
16221         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16222         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16223         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16224         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16225         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16226         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16227         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16228         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16229         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16230         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16231         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16232         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16233         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16234         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16235         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16236         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16237         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16238         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16239         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16240         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16241         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16242         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16243         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16244         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16245         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16246         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16247         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16248         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16249         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16250         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16251         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16252         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16253         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16254         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16255         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16256         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16257         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16258         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16260 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16262         gettext: support disabling use of VLAs
16263         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16265 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16267         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16268         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16270 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16272         fcntl: Fix syntax error (regression from 2018-10-05).
16273         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16275 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16277         relocatable: improve documentation.
16278         * doc/relocatable-maint.texi (Supporting Relocation): For
16279         substitutions performed by config.status, we need more variables
16280         (for instance datarootdir defaults to '${prefix}/share' so we need
16281         prefix).
16283 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16285         backup: update dependencies
16286         * modules/backup-rename (Depends-on): It now depends on opendirat
16287         instead of opendir.  It also uses stdint, and xalloc-oversized.
16288         But no longer dirfd.
16289         * modules/backupfile (Depends-on): Add xalloc-oversized.
16291 2019-01-13  Bruno Haible  <bruno@clisp.org>
16293         getcwd: Fix test failure when building on a Linux 9p file system.
16294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16295         EINVAL from mkdir like ENAMETOOLONG.
16296         * tests/test-getcwd.c (test_long_name): Likewise.
16298 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16300         Fix typos found by codespell.
16301         * lib/*.[hc]: Fix typos in comments.
16302         * pygnulib/*.py: Fix typos in error messages and comments.
16304 2019-01-12  Bruno Haible  <bruno@clisp.org>
16306         doc: Fix documentation about container data types.
16307         Reported by Werner Lemberg <wl@gnu.org>.
16308         * doc/containers.texi (Container data types): Fix typo.
16310 2019-01-10  Bruno Haible  <bruno@clisp.org>
16312         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16313         Reported by Reuben Thomas <rrt@sc3d.org>.
16314         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16316 2019-01-06  Bruno Haible  <bruno@clisp.org>
16318         maintainer-makefile: Make the configure.ac section optional.
16319         * top/maint.mk (GREP, SED): Define if not defined.
16321 2019-01-06  Bruno Haible  <bruno@clisp.org>
16323         localename: Assume setlocale function.
16324         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16325         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16327 2019-01-06  Bruno Haible  <bruno@clisp.org>
16329         doc: Add documentation about container data types.
16330         * doc/containers.texi: New file.
16331         * doc/gnulib.texi (Particular Modules): Include it.
16333 2019-01-06  Bruno Haible  <bruno@clisp.org>
16335         doc: Update documentation about 'progname' module.
16336         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16337         title. Rewrite.
16338         * doc/gnulib.texi (Particular Modules): Update.
16340 2019-01-06  Bruno Haible  <bruno@clisp.org>
16342         doc: Document the xstdopen and *-safer modules.
16343         * doc/xstdopen.texi: New file.
16344         * doc/gnulib.texi (Particular Modules): Include it.
16346 2019-01-06  Bruno Haible  <bruno@clisp.org>
16348         xstdopen: Add tests.
16349         * tests/test-xstdopen.c: New file.
16350         * tests/test-xstdopen.sh: New file.
16351         * modules/xstdopen-tests: New file.
16353         xstdopen: New module.
16354         * lib/xstdopen.h: New file.
16355         * lib/xstdopen.c: New file.
16356         * modules/xstdopen: New file.
16358 2019-01-06  Bruno Haible  <bruno@clisp.org>
16360         stdopen: Fix compilation error with IRIX cc.
16361         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16363 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16365         xfreopen need not include stdio--.h
16366         * lib/xfreopen.c: Do not include stdio--.h.
16368         xfreopen need not depend on freopen-safer
16369         * modules/xfreopen (Depends-on):
16370         Depend on freopen, not freopen-safer.
16372         stdopen: modernize and simplify
16373         * lib/stdopen.c: Update copyright date
16374         Do not include sys/types.h; no longer needed these days.
16375         (stdopen): Use C99-style decl in loop.  Return int errno
16376         value, rather than just a bool.  Do not worry about fd mismatches,
16377         since the caller cares only if 0, 1, 2 are occupied.
16378         * lib/stdopen.h: No need to include <stdbool.h>.
16379         * m4/stdopen.m4: Remove.
16380         * modules/stdopen: New file.
16382         stdopen: copy from last use in coreutils
16383         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16384         New files, taken from their last commit in coreutils
16385         2007-07-23T12:35:58Z!jim@meyering.net
16386         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16388 2019-01-05  Bruno Haible  <bruno@clisp.org>
16390         argp: Don't pass an invalid argument to dgettext().
16391         Reported by He X <xw897002528@gmail.com>.
16392         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16393         dgettext().
16395 2019-01-05  Bruno Haible  <bruno@clisp.org>
16397         argp: Don't pass an invalid argument to dgettext().
16398         Reported by He X <xw897002528@gmail.com>.
16399         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16400         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16401         dgettext().
16403 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16405         stdioext: port to newer 32-bit Android
16406         Problem reported by Tom Yan in:
16407         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16408         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16409         (fp_) [__ANDROID__]: Use it.
16411 2019-01-04  Bruno Haible  <bruno@clisp.org>
16413         lock: Fix link error with --enable-threads=pth.
16414         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16415         Mark as weak.
16417 2019-01-04  Bruno Haible  <bruno@clisp.org>
16419         Fix link errors in unit tests.
16420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16421         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16422         * modules/array-map-tests (Makefile.am): Link test-array_map against
16423         libintl.
16424         * modules/array-set-tests (Makefile.am): Link test-array_set against
16425         libintl.
16426         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16427         libintl.
16428         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16429         libintl.
16430         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16431         against libintl.
16432         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16433         against libintl.
16435 2019-01-04  Bruno Haible  <bruno@clisp.org>
16437         Fix incorrect 'Link' sections.
16438         * modules/regex (Link): Mention the link requirement of module 'lock'.
16439         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16441 2019-01-04  Bruno Haible  <bruno@clisp.org>
16443         Fix some 'Link' sections.
16444         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16445         dependency.
16446         * modules/getaddrinfo (Link): Likewise.
16448 2019-01-04  Bruno Haible  <bruno@clisp.org>
16450         Remove redundant 'Link' sections.
16451         * modules/canon-host (Link): Remove section.
16452         * modules/timevar (Link): Likewise.
16454 2019-01-04  Bruno Haible  <bruno@clisp.org>
16456         Remove incorrect 'Link' sections.
16457         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16458         the dependencies instead.
16459         * modules/crypto/md5 (Link): Likewise.
16460         * modules/crypto/sha1 (Link): Likewise.
16461         * modules/crypto/sha256 (Link): Likewise.
16462         * modules/crypto/sha512 (Link): Likewise.
16463         * modules/faccessat (Link): Likewise.
16464         * modules/fdutimensat (Link): Likewise.
16465         * modules/iconv_open-utf (Link): Likewise.
16466         * modules/propername (Link): Likewise.
16467         * modules/qacl (Link): Likewise.
16468         * modules/unicodeio (Link): Likewise.
16469         * modules/utimecmp (Link): Likewise.
16470         * modules/utimensat (Link): Likewise.
16471         * modules/xstriconv (Link): Likewise.
16472         * modules/xstriconveh (Link): Likewise.
16474 2019-01-04  Bruno Haible  <bruno@clisp.org>
16476         gnulib-tool: New option --extract-recursive-link-directive.
16477         * gnulib-tool (func_usage): Document the new options
16478         --extract-recursive-dependencies, --extract-recursive-link-directive.
16479         (func_verify_module): Document output variables.
16480         (func_get_dependencies_recursively): New function.
16481         (func_get_link_directive_recursively): New function.
16482         Use them to implement the new options
16483         --extract-recursive-dependencies, --extract-recursive-link-directive.
16484         * doc/gnulib-tool.texi (Link-time requirements): New section.
16486 2019-01-04  Bruno Haible  <bruno@clisp.org>
16488         Clarify meaning of 'Link' section in module description.
16489         * doc/gnulib.texi (Module description): Clarify the meaning of the
16490         'Link' section versus the one of the dependencies.
16491         * NEWS: Mention the change.
16493 2019-01-04  Bruno Haible  <bruno@clisp.org>
16495         pselect: Fix module description.
16496         * modules/pselect (Link): Put one link option per line.
16498 2019-01-04  Bruno Haible  <bruno@clisp.org>
16500         cosl: Fix module description.
16501         * modules/cosl (Link): Fix typo.
16502         * modules/mathl (configure.ac): Likewise.
16504 2019-01-04  Bruno Haible  <bruno@clisp.org>
16506         c-xvasprintf: Fix module dependencies.
16507         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16509 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16511         bootstrap: die when some submodules are not initialized
16512         * build-aux/bootstrap: Make sure all submodules are initialized.
16514 2019-01-04  Bruno Haible  <bruno@clisp.org>
16516         bitsetv: Fix module dependencies.
16517         * lib/bitsetv.c: Include xalloc.h.
16518         * modules/bitsetv (Depends-on): Add 'xalloc'.
16520 2019-01-04  Bruno Haible  <bruno@clisp.org>
16522         xmemdup0: Remove redundant code.
16523         * lib/xmemdup0.h (xalloc_die): Remove declaration.
16525 2019-01-04  Bruno Haible  <bruno@clisp.org>
16527         backupfile: Fix module dependencies.
16528         * modules/backupfile (Depends-on): Add 'xalloc'.
16530 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16532         bitset, crypto/gc: fix conflicts with Solaris 11
16533         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
16534         avoid clash with Solaris 11 <sys/bitset.h>.
16535         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
16536         with Solaris 11 <xorg/gc.h>.
16538 2019-01-04  Bruno Haible  <bruno@clisp.org>
16540         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
16541         Reported by Andy Fiddaman <andy@omniosce.org>.
16542         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
16544 2019-01-03  Eric Blake  <eblake@redhat.com>
16546         maintainer-makefile: fix typo in previous patch
16547         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
16548         of Roman's work.
16550 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
16552         maintainer-makefile: prefer $(GREP) over grep
16553         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
16554         defined.
16555         * top/maint.mk: Use it everywhere.
16557         maintainer-makefile: split long argument lines
16558         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
16559         it would be too long for exec limits on BSD.
16561 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16563         mkfifo: bring back HAVE_MKFIFO macro
16564         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
16565         Problem reported by Andrew Janke in:
16566         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
16568 2018-12-21  Bruno Haible  <bruno@clisp.org>
16570         Assume Autoconf >= 2.63.
16571         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
16572         versions < 2.60.
16574 2018-12-21  Bruno Haible  <bruno@clisp.org>
16576         memcmp: Mention the clang bug.
16577         * tests/test-memcmp.c: Add comment about a known test failure.
16578         * doc/posix-functions/memcmp.texi: Mention the clang bug.
16580 2018-12-20  Jim Meyering  <meyering@fb.com>
16582         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16583         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
16584           echo '123-x'|LC_ALL=C grep -E '.\bx'
16585         The goal is to revert the first, but reverting it requires to restore
16586         the function deleted in the second. I ran this to restore the deleted
16587         function:
16588           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
16589             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
16590             | patch -R -p1
16591         * lib/dfa.c (charclass_context): Restore deleted function.
16592         Reverting the primary commit removes this change:
16593         dfa: Simplify a building state
16594         * lib/dfa.c (build_state): Simplify a building state.
16596 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16598         version-etc: allow zero authors
16599         * lib/version-etc.c (version_etc_arn): If no authors are given,
16600         omit authorship info instead of dumping core.
16602 2018-12-19  Bruno Haible  <bruno@clisp.org>
16604         lchown tests: Be more permissive regarding errno values.
16605         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16606         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16607         alternative to ENOSYS.
16608         * modules/lchown-tests (Depends-on): Add 'errno'.
16609         * modules/fchownat-tests (Depends-on): Likewise.
16611 2018-12-18  Bruno Haible  <bruno@clisp.org>
16613         duplocale: Avoid test failure on AIX 7.
16614         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16615         (configure.ac): Invoke gt_FUNC_USELOCALE.
16616         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16617         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16618         works.
16620 2018-12-18  Bruno Haible  <bruno@clisp.org>
16622         localename: Fix test failure on AIX 7.
16623         Reported by Assaf Gordon in
16624         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16625         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16626         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16627         instead of ac_cv_func_uselocale.
16628         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16629         HAVE_USELOCALE.
16630         * lib/localename-table.h: Likewise.
16631         * lib/localename-table.c: Likewise.
16632         * tests/test-localename.c: Likewise.
16633         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16635 2018-12-18  Bruno Haible  <bruno@clisp.org>
16637         localename: Update comments regarding Cygwin.
16638         * lib/localename.c: Update comment.
16639         * doc/posix-functions/uselocale.texi: Update platforms list.
16640         * doc/posix-functions/newlocale.texi: Likewise.
16641         * doc/posix-functions/duplocale.texi: Likewise.
16642         * doc/posix-functions/freelocale.texi: Likewise.
16644 2018-12-16  Bruno Haible  <bruno@clisp.org>
16646         c-stack: Fix for Linux/sparc.
16647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16648         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16650 2018-12-16  Bruno Haible  <bruno@clisp.org>
16652         localename: Avoid test failure on some glibc systems.
16653         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16654         Unset environment variables that might disturb the first setlocale call,
16655         and verify that this setlocale call succeeds.
16657 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16659         random: Fix build error on native Windows (regression from 2018-06-21).
16660         * lib/random.c (__srandom, __initstate, __setstate, __random,
16661         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16662         to the symbols without '__' prefix.
16664 2018-12-16  Bruno Haible  <bruno@clisp.org>
16666         obstack, libc-config: Support HP-UX cc in C99 mode.
16667         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16668         compiler, even when in C99 mode.
16669         * lib/cdefs.h (__flexarr): Likewise.
16670         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16672 2018-12-16  Bruno Haible  <bruno@clisp.org>
16674         localename: Fix test failure on OpenBSD >= 6.2.
16675         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16676         locale system. Define HAVE_FAKE_LOCALES in this case.
16677         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16678         HAVE_USELOCALE.
16679         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16680         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16681         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16682         platforms list.
16683         * doc/posix-functions/newlocale.texi: Likewise.
16684         * doc/posix-functions/duplocale.texi: Update platforms list.
16685         * doc/posix-functions/freelocale.texi: Likewise.
16687 2018-12-16  Bruno Haible  <bruno@clisp.org>
16689         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16690         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16691         of the test, on platforms without <monetary.h>.
16693 2018-12-16  Bruno Haible  <bruno@clisp.org>
16695         localename: Update comments.
16696         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16698 2018-12-15  Jim Meyering  <meyering@fb.com>
16700         regex: fix indentation
16701         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16703 2018-12-15  Bruno Haible  <bruno@clisp.org>
16705         openat-safer tests: Avoid test failure on NetBSD 8.
16706         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16707         on Linux.
16709 2018-12-15  Jim Meyering  <meyering@fb.com>
16711         regex: work around a bug in glibc-2.27 and prior
16712         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16713         assertion for /0|()0|\1|0/.
16714         * tests/test-regex.c (main): Add the same test here.
16716 2018-12-15  Bruno Haible  <bruno@clisp.org>
16718         localename: Fix use of uninitialized shell variable.
16719         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16720         gt_cv_locale_solaris114 always before use. Remove assignment without
16721         effect.
16723 2018-12-15  Bruno Haible  <bruno@clisp.org>
16725         dfa tests: Avoid test failure on Alpine Linux.
16726         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16727         command found on Alpine Linux.
16729 2018-12-15  Jim Meyering  <meyering@fb.com>
16731         dfa: avoid new warnings from gcc
16732         These would prevent building with -Werror and a Dec snapshot of gcc.
16733         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16734         Rename each inner instance to "p".
16735         (charclass_context): Remove unused static function.
16737 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16739         mkdir-p: improve diagnostic for FUSE mounts
16740         Problem reported by Niklas Hambüchen in:
16741         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16742         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16743         errno to mkdir errno if the stat errno is likely more interesting.
16745 2018-12-14  Bruno Haible  <bruno@clisp.org>
16747         hash-map: Add tests.
16748         * tests/test-hash_map.c: New file.
16749         * modules/hash-map-tests: New file.
16751         linkedhash-map: Add tests.
16752         * tests/test-linkedhash_map.c: New file.
16753         * modules/linkedhash-map-tests: New file.
16755         array-map: Add tests.
16756         * tests/test-array_map.c: New file.
16757         * modules/array-map-tests: New file.
16759         xmap: New module.
16760         * lib/gl_xmap.h: New file.
16761         * lib/gl_xmap.c: New file.
16762         * modules/xmap: New file.
16764         hash-map: New module.
16765         * lib/gl_hash_map.h: New file.
16766         * lib/gl_hash_map.c: New file.
16767         * modules/hash-map: New file.
16769         linkedhash-map: New module.
16770         * lib/gl_linkedhash_map.h: New file.
16771         * lib/gl_linkedhash_map.c: New file.
16772         * lib/gl_anyhash1.h: Update comments.
16773         * lib/gl_anyhash2.h: Likewise.
16774         * modules/linkedhash-map: New file.
16776         array-map: New module.
16777         * lib/gl_array_map.h: New file.
16778         * lib/gl_array_map.c: New file.
16779         * modules/array-map: New file.
16781         map: New module.
16782         * lib/gl_map.h: New file.
16783         * lib/gl_map.c: New file.
16784         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16785         conflict with gl_map.h.
16786         * modules/map: New file.
16788 2018-12-13  Bruno Haible  <bruno@clisp.org>
16790         select tests: Avoid test failure on Cygwin.
16791         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16793 2018-12-13  Bruno Haible  <bruno@clisp.org>
16795         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16796         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16798 2018-12-13  Bruno Haible  <bruno@clisp.org>
16800         localeconv tests: Avoid test failure on Cygwin.
16801         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16802         'mon_grouping' tests.
16804 2018-12-11  Bruno Haible  <bruno@clisp.org>
16806         omap: Don't dispose the old value when the function returns it.
16807         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16808         here.
16809         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16810         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16811         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16812         here.
16814         array-omap, avltree-omap, rbtree-omap: Tweak style.
16815         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16816         false.
16817         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16819         rbtree-omap: Add tests.
16820         * tests/test-rbtree_omap.c: New file.
16821         * modules/rbtree-omap-tests: New file.
16823         avltree-omap: Add tests.
16824         * tests/test-avltree_omap.c: New file.
16825         * modules/avltree-omap-tests: New file.
16827         array-omap: Add tests.
16828         * tests/test-array_omap.c: New file.
16829         * modules/array-omap-tests: New file.
16831         xomap: New module.
16832         * lib/gl_xomap.h: New file.
16833         * lib/gl_xomap.c: New file.
16834         * modules/xomap: New file.
16836         rbtree-omap: New module.
16837         * lib/gl_rbtree_omap.h: New file.
16838         * lib/gl_rbtree_omap.c: New file.
16839         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16840         Parameterize.
16841         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16842         * modules/rbtree-omap: New file.
16843         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16844         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16846         avltree-omap: New module.
16847         * lib/gl_avltree_omap.h: New file.
16848         * lib/gl_avltree_omap.c: New file.
16849         * lib/gl_avltree_ordered.h: Code moved to here from
16850         lib/gl_avltree_oset.c. Parameterize.
16851         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16852         * lib/gl_anytree_omap.h: New file.
16853         * modules/avltree-omap: New file.
16854         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16855         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16857         array-omap: New module.
16858         * lib/gl_array_omap.h: New file.
16859         * lib/gl_array_omap.c: New file.
16860         * modules/array-omap: New file.
16862         omap: New module.
16863         * lib/gl_omap.h: New file.
16864         * lib/gl_omap.c: New file.
16865         * modules/omap: New file.
16867 2018-12-11  Bruno Haible  <bruno@clisp.org>
16869         hash-set, linkedhash-set: Reduce code duplication.
16870         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16871         lib/gl_anyhash_set1.h.
16872         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16873         lib/gl_anyhash_set2.h. Parameterize.
16874         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16875         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16876         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16877         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16878         * lib/gl_rbtreehash_list.c: Likewise.
16879         * lib/gl_linkedhash_list.c: Likewise.
16880         (hash_resize_after_add): Remove function.
16881         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16882         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16883         * gl_hash_set.c: Likewise.
16884         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16885         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16886         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16887         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16888         * modules/hash-set (Files, Makefile.am): Likewise.
16890 2018-12-11  Bruno Haible  <bruno@clisp.org>
16892         array-set: Optimize.
16893         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16894         outside the loop, not inside the loop.
16896 2018-12-11  Bruno Haible  <bruno@clisp.org>
16898         times: Fix tests.
16899         * tests/test-times.c (doublecmp): Implement a total order.
16901 2018-12-11  Bruno Haible  <bruno@clisp.org>
16903         array-set, linkedhash-set, hash-set: Fix tests.
16904         * tests/test-array_set.c (cmp_objects_in_array): New function.
16905         (check_equals): Use it.
16906         * tests/test-hash_set.c: Likewise.
16907         * tests/test-linkedhash_set.c: Likewise.
16909 2018-12-08  Bruno Haible  <bruno@clisp.org>
16911         Fix comments.
16912         * lib/gl_list.h (gl_list_free): Clarify what it does.
16913         * lib/gl_oset.h (gl_oset_free): Likewise.
16914         * lib/gl_set.h (gl_set_free): Likewise.
16915         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16916         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16917         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16918         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16920 2018-12-03  Bruno Haible  <bruno@clisp.org>
16922         hash-set: Add tests.
16923         * tests/test-hash_set.c: New file.
16924         * modules/hash-set-tests: New file.
16926         linkedhash-set: Add tests.
16927         * tests/test-linkedhash_set.c: New file.
16928         * modules/linkedhash-set-tests: New file.
16930         array-set: Add tests.
16931         * tests/test-array_set.c: New file.
16932         * modules/array-set-tests: New file.
16934         xset: New module.
16935         * lib/gl_xset.h: New file.
16936         * lib/gl_xset.c: New file.
16937         * modules/xset: New file.
16939         hash-set: New module.
16940         * lib/gl_hash_set.h: New file.
16941         * lib/gl_hash_set.c: New file.
16942         * modules/hash-set: New file.
16944         linkedhash-set: New module.
16945         * lib/gl_linkedhash_set.h: New file.
16946         * lib/gl_linkedhash_set.c: New file.
16947         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16948         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16949         * lib/gl_anyhash_primes.h: New file, extracted from
16950         lib/gl_anyhash_list2.h.
16951         * lib/gl_anyhash_list2.h: Include it.
16952         (primes, next_prime): Remove definitions.
16953         * modules/linkedhash-set: New file.
16954         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16955         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16956         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16957         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16958         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16959         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16961         array-set: New module.
16962         * lib/gl_array_set.h: New file.
16963         * lib/gl_array_set.c: New file.
16964         * modules/array-set: New file.
16966         set: New module.
16967         * lib/gl_set.h: New file.
16968         * lib/gl_set.c: New file.
16969         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16970         gl_set.h.
16971         * modules/set: New file.
16973 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16975         bison: don't force the Yacc mode
16976         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16977         errors when Bison features are used in the grammar file.  Some of
16978         these features (such as %expect) were flagged non-yacc recently.  Most
16979         of the time, -y is actually used to please Automake's ylwrap which
16980         expects the output to be y.tab.c.
16981         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16983 2018-12-01  Bruno Haible  <bruno@clisp.org>
16985         gnupload: Document short options.
16986         * build-aux/gnupload (usage): Document the short options.
16988 2018-11-28  Ben Elliston  <bje@gnu.org>
16990         gnupload: Support option -h as alias of --help.
16991         * build-aux/gnupload: Support -h.
16993 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16995         memrchr: port better to clang
16996         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16997         longword *, to pacify clang -Wcast-align (Bug#33544).
16999 2018-11-29  Eric Blake  <eblake@redhat.com>
17001         docs: mention printf %m considerations
17002         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17003         is not portable, and is easy enough to work around.
17004         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17005         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17006         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17007         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17008         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17009         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17010         * doc/posix-functions/printf.texi (printf): Likewise.
17011         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17012         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17013         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17014         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17015         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17016         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17017         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17018         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17019         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17020         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17021         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17022         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17024 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17026         bitset: rename ebitset/expandable.* as tbitset/table.*
17027         See
17028         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17029         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17030         * lib/bitset/table.h, lib/bitset/table.c: these.
17031         Rename all the ebitset* symbols as tbitset*.
17032         Adjust dependencies.
17034 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17036         bitset: check the operations
17037         * tests/test-bitset.c (bitset_random): New.
17038         Use it.
17039         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17041 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17043         bitset: properly use false/true instead of 0/1 for Booleans
17044         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17045         0/1, as Booleans.
17047 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17049         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17050         For consistency with the name of the file.
17051         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17052         * lib/bitset/stats.c, lib/bitset/vector.c
17053         (BITSET_VARRAY): Rename as...
17054         (BITSET_VECTOR): this.
17056 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17058         strerror_r-posix: memmove, not memcpy
17059         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17060         since the source and destination might overlap in the call
17061         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17062         Simplify.
17064 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17066         bitsetv: new module
17067         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17069 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17071         bitset: add tests and doc
17072         First stabs at providing a documentation and test for the bitset
17073         module.
17074         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17076 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17078         bitset: new module
17079         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17080         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17081         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17082         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17083         * lib/bitset/vector.h, modules/bitset:
17084         New.
17086 2018-11-23  Bruno Haible  <bruno@clisp.org>
17088         localename: Fix gettext test failures on mingw.
17089         * lib/localename.c (gl_locale_name_posix): Convert the result of
17090         gl_locale_name_environ to XPG syntax.
17092 2018-11-23  Karl Berry  <karl@freefriends.org>
17094         * config/srclistvars.txt,
17095         * config/srclist.txt: remove all gettext references;
17096         the gettext maintainers will sync as needed.
17098 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17100         mktime: add libc-config dependency
17101         I missed this when we synced from glibc.
17102         * modules/mktime (Depends-on): Add libc-config.
17104 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17106         longlong: fix comment typo
17107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17109 2018-11-11  Bruno Haible  <bruno@clisp.org>
17111         havelib: Remove the need to include asm-underscore.m4.
17112         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17113         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17114         gl_HOST_CPU_C_ABI.
17115         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17116         (Depends-on): Remove host-cpu-c-abi.
17118 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17120         parse-datetime: simplify test for mktime failure
17121         * lib/parse-datetime.y (mktime_ok): Simplify.
17122         Remove args TZ and T; no longer needed.  Callers changed.
17124         posixtm: simplify test for mktime failure
17125         * lib/posixtm.c (posixtime): Simplify.
17127         nstrftime: simplify test for mktime failure
17128         * lib/nstrftime.c (__strftime_internal): Simplify.
17130 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17132         gnulib-common.m4: port _Noreturn to C++
17133         Problem reported by Akim Demaille in:
17134         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17135         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17136         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17137         version.
17138         * lib/_Noreturn.h: Match gnulib-common.
17140 2018-10-30  Bruno Haible  <bruno@clisp.org>
17142         gnu-make: Fix for NetBSD 8 'make'.
17143         Reported by Reuben Thomas in
17144         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17145         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17146         output, ignoring exit codes.
17148 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17150         maintainer-makefile: fix syntax-check rule for "same.h"
17151         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17152         for 'same_nameat', too.
17154 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17156         havelib: fix nested ‘configure’ chatter
17157         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17158         AC_CACHE_CHECK calls, which resulted in confusing output like
17159         “checking for the common suffixes of directories in the library
17160         search path... checking for 64-bit host... no lib,lib”.
17162         backupfile: tweak for better code
17163         * lib/backupfile.c: Sort include directives, and remove
17164         unnecessary <limits.h> include.
17165         (FALLTHROUGH): New macro, copied from other modules.
17166         (backupfile_internal): Use it to avoid code duplication.
17167         This lets GCC 8.2.1 generate better code by inlining the
17168         call to check_extension.
17170 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17172         backupfile: new dir_fd args
17173         New module opendirat with code taken from fts.
17174         Use this module to let backupfile use a directory file descriptor.
17175         * NEWS: Document the incompatible change.
17176         * lib/backup-find.c (find_backup_file_name):
17177         * lib/backup-rename.c (backup_file_rename):
17178         New arg DIR_FD.
17179         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17180         (SIZE_MAX): Remove.
17181         Include opendirat.h rather than dirent--.h.
17182         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17183         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17184         (backupfile_internal): New arg DIR_FD.  All callers changed.
17185         * lib/fts.c: Include opendirat.h.
17186         (opendirat): Move to opendirat.c.
17187         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17188         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17189         Add opendirat.
17190         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17191         Add opendirat.
17193 2018-10-23  Bruno Haible  <bruno@clisp.org>
17195         localename: Simplify support for per-thread locales on Solaris 11.4.
17196         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17197         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17198         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17199         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17200         specific code.
17201         * lib/localename-table.h: Update comments.
17202         * lib/localename-table.c: Update comments.
17203         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17204         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17205         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17206         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17207         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17208         HAVE_NAMELESS_LOCALES here.
17209         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17210         m4/intlsolaris.m4.
17211         * modules/gettext (Files): Likewise.
17213 2018-10-22  Bruno Haible  <bruno@clisp.org>
17215         std-gnu11: Support Autoconf versions < 2.64.
17216         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17217         when _AC_DO_LIMIT does not exist.
17219 2018-10-22  Bruno Haible  <bruno@clisp.org>
17221         Assume Autoconf >= 2.63.
17222         * DEPENDENCIES: Mention the requirement.
17224         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17225         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17226         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17227         * m4/onceonly.m4: Remove file.
17229         * m4/openmp.m4: Remove file.
17230         * modules/openmp (Files): Remove m4/openmp.m4.
17232         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17233         htmldir, dvidir, pdfdir, psdir, localedir.
17234         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17236         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17237         Autoconf < 2.60.
17238         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17239         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17241         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17242         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17243         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17245         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17246         exists.
17247         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17250         Autoconf < 2.61.
17252         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17253         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17254         Autoconf >= 2.52.
17256         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17257         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17258         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17260 2018-10-22  Bruno Haible  <bruno@clisp.org>
17262         Assume Automake >= 1.11.
17263         * m4/configmake.m4: Update comments.
17264         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17265         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17266         of 'eval'.
17267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17268         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17269         requires Automake >= 1.11.
17271 2018-10-22  Bruno Haible  <bruno@clisp.org>
17273         localename: Fix typo in comment.
17274         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17276 2018-10-22  Bruno Haible  <bruno@clisp.org>
17278         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17279         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17281 2018-10-21  Bruno Haible  <bruno@clisp.org>
17283         locale: Ease integration with GNU libintl.
17284         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17285         GNULIB_defined_freelocale): New macros.
17287 2018-10-21  Bruno Haible  <bruno@clisp.org>
17289         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17290         * lib/localename-table.h: New file, extracted from lib/localename.c.
17291         * lib/localename-table.c: Likewise.
17292         * lib/localename.c: Include localename-table.h.
17293         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17294         locale_hash_function instead of pointer_hash.
17295         * modules/localename (Files): Add lib/localename-table.h,
17296         lib/localename-table.c.
17297         (lib_SOURCES): Add localename-table.c.
17298         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17299         for Solaris 11.4 locale system only on Solaris. Test for it
17300         independently whether getlocalename_l exists.
17301         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17302         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17303         HAVE_NAMELESS_LOCALES.
17304         * modules/gettext (Files): Add m4/intlsolaris.m4.
17306 2018-10-21  Bruno Haible  <bruno@clisp.org>
17308         Small update from gettext.
17309         * m4/intl.m4: Update from gettext:
17310         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17311         mode on AIX.
17312         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17313         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17315 2018-10-16  Bruno Haible  <bruno@clisp.org>
17317         mountlist: Remove support for Cray with UNICOS 9.
17318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17319         MOUNTED_LISTMNTENT.
17320         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17322 2018-10-16  Bruno Haible  <bruno@clisp.org>
17324         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17326         STAT_STATFS2_FS_DATA.
17327         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17328         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17329         MOUNTED_GETMNT.
17330         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17331         * lib/getloadavg.c (decstation): Remove definition and case.
17332         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17333         * lib/getgroups.c: Likewise.
17334         * doc/posix-functions/getgroups.texi: Likewise.
17335         * lib/time.in.h: Update comments.
17337 2018-10-16  Bruno Haible  <bruno@clisp.org>
17339         getloadavg: Remove support for ConvexOS.
17340         * lib/getloadavg.c: Remove convex case.
17342 2018-10-16  Bruno Haible  <bruno@clisp.org>
17344         getloadavg: Remove support for Sony NEWS.
17345         * lib/getloadavg.c: Remove sony_news case.
17347 2018-10-16  Bruno Haible  <bruno@clisp.org>
17349         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17350         * lib/fsusage.c: Remove _SEQUENT_ case.
17351         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17352         * lib/mountlist.c: Don't test for MNTTABNAME.
17353         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17354         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17355         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17356         * lib/stat-size.h: Don't mention the Sequent bug.
17357         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17359 2018-10-16  Bruno Haible  <bruno@clisp.org>
17361         fsusage: Remove support for AIX 3.
17362         * lib/fsusage.c: Remove code for AIX 3.
17363         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17365 2018-10-16  Bruno Haible  <bruno@clisp.org>
17367         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17368         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17369         * lib/fsusage.c: Remove code for AIX PS/2.
17370         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17371         * lib/getloadavg.c: Likewise.
17373 2018-10-16  Bruno Haible  <bruno@clisp.org>
17375         getloadavg: Remove support for HP-UX on m68k.
17376         * lib/getloadavg.c: Remove hp9000s300 case.
17378 2018-10-16  Bruno Haible  <bruno@clisp.org>
17380         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17381         * lib/fsusage.c: Remove DOLPHIN case.
17382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17383         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17385 2018-10-16  Bruno Haible  <bruno@clisp.org>
17387         getloadavg: Remove support for Alliant FX/2800.
17388         * lib/getloadavg.c: Remove alliant case.
17390 2018-10-16  Bruno Haible  <bruno@clisp.org>
17392         getloadavg: Remove support for tek4300.
17393         * lib/getloadavg.c: Remove tek4300 case.
17395 2018-10-16  Bruno Haible  <bruno@clisp.org>
17397         getloadavg: Remove support for Ardent.
17398         * lib/getloadavg.c: Remove ardent case.
17400 2018-10-16  Bruno Haible  <bruno@clisp.org>
17402         mountlist: Remove support for SVR2.
17403         Reported by Andrew Borodin <aborodin@vmail.ru> in
17404         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17405         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17407         MOUNTED_FREAD.
17409 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17411         libc-config: merge from glibc
17412         * lib/cdefs.h (__glibc_has_attribute): New macro.
17414         regex: depend on libc-config
17415         * modules/regex (Depends-on): Add libc-config.
17416         This is needed after the recent autoupdate from glibc.
17418 2018-10-14  Bruno Haible  <bruno@clisp.org>
17420         localename: Add support for per-thread locales on Solaris 11.4.
17421         * lib/locale.in.h (newlocale, freelocale): New declarations.
17422         (duplocale): Declare also when the 'localename' module requests it.
17423         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17424         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17425         (struniq): Update.
17426         (struct locale_categories_names, struct locale_hash_node): New types.
17427         (LOCALE_HASH_TABLE_SIZE): New constant.
17428         (locale_hash_table, locale_lock): New variables.
17429         (pointer_hash, get_locale_t_name): New functions.
17430         (newlocale, duplocale, freelocale): New overridden functions.
17431         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17432         * m4/intlsolaris.m4: New file.
17433         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17434         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17435         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17436         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17437         declared.
17438         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17439         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17440         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17441         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17442         * modules/localename (Files): Add intlsolaris.m4.
17443         (Depends-on): Add 'locale'.
17444         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17445         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17446         the signatures.
17448 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17450         timevar: use gethrxtime to get wall clock time
17451         clock_gettime is not portable.  gethrxtime takes the best available
17452         option to get the wall clock time, including clock_gettime (monotonic
17453         clock), and gettime (non monotonic).
17454         Also, using xtime_t instead of float preserves the precision.
17455         Suggested by Bruno Haible.
17456         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17457         * modules/timevar (Depends-on): We need gethrxtime.
17458         We no longer use times().
17459         (Link): Update.
17460         * lib/timevar.h (timevar_time_def): Use xtime_t.
17461         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17462         (timevar_print): Instead of checking whether the timings themselves
17463         are large enough for the timevar to be printed, check the percentages.
17465 2018-10-14  Bruno Haible  <bruno@clisp.org>
17467         wcsnrtombs: Work around Solaris 11.4 bug.
17468         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17469         macro.
17470         (gl_FUNC_WCSNRTOMBS): Invoke it.
17471         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17473 2018-10-14  Bruno Haible  <bruno@clisp.org>
17475         mbsnrtowcs: Work around Solaris 11.4 bug.
17476         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17477         macro.
17478         (gl_FUNC_MBSNRTOWCS): Invoke it.
17479         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17481 2018-10-14  Bruno Haible  <bruno@clisp.org>
17483         doc: Update for Solaris 11.4.
17484         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17485         mention Solaris 11.4.
17486         * m4/printf.m4: Update comments about Solaris.
17487         * m4/log.m4: Likewise.
17488         * m4/log10.m4: Likewise.
17489         * m4/logb.m4: Likewise.
17490         * m4/logbf.m4: Likewise.
17491         * m4/logbl.m4: Likewise.
17492         * m4/rename.m4: Likewise.
17493         * m4/wcrtomb.m4: Likewise.
17494         * m4/hostent.m4: Likewise.
17495         * m4/servent.m4: Likewise.
17497 2018-10-14  Bruno Haible  <bruno@clisp.org>
17499         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17500         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17501         pointer.
17502         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17503         pointer.
17504         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17505         pointer.
17506         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17507         pointer.
17508         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17509         pointer.
17511 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17513         bootstrap: fix wget command for po files.
17514         * build-aux/bootstrap (po_download_command_format): Fix comment,
17515         and adjust callers.
17517 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17519         timevar: improve the output format
17520         Suggested by Bruno Haible.
17521         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
17522         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
17523         wall, since its resolution is much higher.
17525 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17527         timevar: expect that getrusage is available.
17528         Don't keep both times and getrusage as backend: both are guaranteed by
17529         gnulib, a single one suffices.  Using getrusage is open to possibly
17530         tracking other types of resources in the future.
17531         * modules/timevar (Depends-on): Add getrusage.
17532         (configure.ac): Remove gl_TIMEVAR.
17533         (Files): Remove m4/timevar.m4.
17534         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
17535         * lib/timevar.h (timevar_enabled): Clarify documentation.
17536         * lib/timevar.c: Remove all the code about times.
17537         Remove all the CPP guards about getrusage: expect it to be present
17538         (courtesy of gnulib).
17540 2018-10-12  Bruno Haible  <bruno@clisp.org>
17542         mountlist: Improve support for Solaris in 64-bit mode.
17543         Reported by David Wood <David.Wood@deshaw.com> in
17544         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
17545         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
17546         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
17547         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
17549 2018-10-12  Bruno Haible  <bruno@clisp.org>
17551         mountlist: Add support for Minix.
17552         Reported by Assaf Gordon in
17553         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
17554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
17555         AC_CHECK_FUNCS to check for 'getmntinfo'.
17556         * lib/mountlist.c: Update comments.
17558 2018-10-12  Bruno Haible  <bruno@clisp.org>
17560         Make better use of Autoconf.
17561         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
17562         * m4/manywarnings.m4: Likewise.
17563         * m4/manywarnings-c++.m4: Likewise.
17564         * m4/socklen.m4: Likewise.
17565         * m4/sockpfaf.m4: Likewise.
17566         * m4/stdarg.m4: Likewise.
17567         * m4/visibility.m4: Likewise.
17568         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
17569         indentation.
17570         * m4/ls-mntd-fs.m4: Likewise.
17572 2018-10-11  Bruno Haible  <bruno@clisp.org>
17574         mountlist: Modernize platform lists.
17575         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
17576         platforms, deemphasizing the obsolete ones.
17577         * lib/mountlist.c: Likewise.
17579 2018-10-11  Bruno Haible  <bruno@clisp.org>
17581         getprogname: Add support for 32-bit programs on HP-UX.
17582         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
17583         try the similar functions 32-bit programs on 64-bit HP-UX.
17585 2018-10-11  Bruno Haible  <bruno@clisp.org>
17587         getprogname: Work around program name truncation when possible.
17588         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
17589         possibly use pst_cmd instead.
17591 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17593         fts: cleanup after FTS_NOATIME removal
17594         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17595         (FTS_STOP): Shrink to minimal values.  We don’t need to
17596         worry about binary compatibility in Gnulib, and the old way
17597         of doing things had a hole in the user options that caused
17598         FTS_OPTIONMASK to not work as desired.
17600 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17602         fts: remove FTS_NOATIME
17603         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17604         We cannot guarantee that O_NOATIME works: e.g. openat fails
17605         with EPERM if the effective user ID of the caller does not match
17606         the owner of the file and the caller is not privileged.
17607         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17608         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
17609         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
17610         (FTS_OPTIONMASK): Adjust.
17611         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17612         (fd_ring_check): Likewise.
17614 2018-10-08  Bruno Haible  <bruno@clisp.org>
17616         csharpcomp*, csharpexec*: Remove support for pnet.
17617         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17618         HAVE_CSCC.
17619         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17620         Don't test HAVE_CSCC.
17621         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17622         (compile_csharp_class): Don't invoke it.
17623         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17624         HAVE_ILRUN.
17625         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17626         Don't test HAVE_ILRUN.
17627         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17628         (execute_csharp_program): Don't invoke it.
17629         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17630         any more.
17632 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17634         renameatu: prefer renameat2 to syscall
17635         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17636         Use renameat2 instead of syscall (Bug#32796).
17637         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17639 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17641         bootstrap, gnulib-tool: use https instead of insecure rsync
17642         * build-aux/bootstrap (download_po_files, po_download_command_format):
17643         Don't try using rsync; always use wget over https to fetch PO files.
17644         * gnulib-tool (func_import): Likewise.
17645         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17647 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17649         bootstrap, gnulib-tool: correct the translations wget command
17650         * build-aux/bootstrap (po_download_command_format2): Restrict
17651         recursion to a single level.
17652         * gnulib-tool (func_import): Likewise.
17653         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17655 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17657         doc: the gnulib snapshots are not maintained
17658         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17660 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17662         timevar: add to lib_SOURCES
17663         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17665 2018-10-07  Bruno Haible  <bruno@clisp.org>
17667         dirent: Update documentation.
17668         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17670 2018-10-05  Bruno Haible  <bruno@clisp.org>
17672         strpbrk: Make it possible to namespace the defined symbol.
17673         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17675 2018-10-05  Bruno Haible  <bruno@clisp.org>
17677         strcspn: Make it possible to namespace the defined symbol.
17678         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17680 2018-10-05  Bruno Haible  <bruno@clisp.org>
17682         raise: Make it possible to namespace the defined symbol.
17683         * lib/raise.c (raise): Undefine only after the replacement function has
17684         been defined.
17685         (raise): Renamed from rpl_raise.
17686         (raise_nothrow): Move to the end of the compilation unit.
17688 2018-10-05  Bruno Haible  <bruno@clisp.org>
17690         memcmp: Make it possible to namespace the defined symbol.
17691         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17693 2018-10-05  Bruno Haible  <bruno@clisp.org>
17695         explicit_bzero: Make it possible to namespace the defined symbol.
17696         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17697         glibc.
17699 2018-10-05  Bruno Haible  <bruno@clisp.org>
17701         mkdir-p: Depend on 'mkdir'.
17702         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17704 2018-10-05  Bruno Haible  <bruno@clisp.org>
17706         tempname: Depend on 'mkdir'.
17707         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17708         at <https://savannah.gnu.org/bugs/?33379>.
17709         * modules/tempname (Depends-on): Add 'mkdir'.
17711 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17713         timevar: rely on gnulib modules for time portability.
17714         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17715         * m4/timevar.m4: Don't check for clock_t and struct tms,
17716         guaranteed by gnulib.
17717         * lib/timevar.h: Use extern "C" protection.
17718         Include <stdio.h> for FILE.
17719         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17720         they are guaranteed by gnulib.
17721         Remove uses of clock as (now useless) fallback.
17723 2018-10-04  Bruno Haible  <bruno@clisp.org>
17725         sh-filename: New module.
17726         * m4/sh-filename.m4: New file.
17727         * modules/sh-filename: New file.
17728         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17729         "/bin/sh".
17730         * tests/test-posix_spawn1.c (main): Likewise.
17731         * tests/test-posix_spawn2.c (main): Likewise.
17732         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17733         is_envjavac_gcj43): Likewise.
17734         * lib/javaexec.c (execute_java_class): Likewise.
17735         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17736         * modules/posix_spawnp-tests (Depends-on): Likewise.
17737         * modules/javacomp (Depends-on): Likewise.
17738         * modules/javaexec (Depends-on): Likewise.
17740 2018-10-04  Bruno Haible  <bruno@clisp.org>
17742         spawn-pipe tests: Avoid test failure on native Windows.
17743         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17744         that fd 2 is closed.
17746 2018-10-04  Bruno Haible  <bruno@clisp.org>
17748         fcntl: Make it possible to namespace the defined symbol.
17749         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17750         been defined.
17751         (fcntl): Renamed from rpl_fcntl.
17752         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17753         from fcntl.
17754         (klibc_fcntl): Move to the end of the compilation unit.
17756 2018-10-02  Bruno Haible  <bruno@clisp.org>
17758         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17759         * tests/test-vasnprintf.c (test_function): Change the test added on
17760         2018-09-23 to check only the 18 most significant digits.
17762         vasnprintf tests: Avoid test failure on Cygwin.
17763         * tests/test-vasnprintf.c (test_function): Change the test added on
17764         2018-09-23 to check only the 42 most significant digits.
17766 2018-10-01  Bruno Haible  <bruno@clisp.org>
17768         mkostemp, mkostemps: Update documentation.
17769         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17770         * doc/glibc-functions/mkostemps.texi: Likewise.
17772 2018-10-01  Tom Tromey  <tom@tromey.com>
17774         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17775         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17776         on OS X.
17778 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17780         hmac-*: refactor to remove repetitive code
17781         * lib/hmac.c: A new parameterized single implementation.
17782         * lib/hmac-md5.c: Define parameters and include implementation.
17783         * lib/hmac-sha1.c: Likewise.
17784         * lib/hmac-sha256.c: Likewise.
17785         * lib/hmac-sha512.c: Likewise.
17786         * modules/crypto/hmac-md5: Reference the new implementation file.
17787         * modules/crypto/hmac-sha1: Likewise.
17788         * modules/crypto/hmac-sha256: Likewise.
17789         * modules/crypto/hmac-sha512: Likewise.
17790         * tests/test-hmac-md5.c: Refactor common code to a single function.
17791         * tests/test-hmac-sha1.c: Likewise.
17792         * tests/test-hmac-sha256.c: Likewise.
17793         * tests/test-hmac-sha512.c: Likewise.
17795 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17797         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17798         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17799         key length to that output by sha512, not the blocksize.
17800         Otherwise uninitialized data from the stack
17801         is used when computing the hash.
17802         * tests/test-hmac-sha512.c: Add a shortened key test case.
17803         Reported at https://github.com/coreutils/gnulib/pull/5
17805 2018-09-30  Bruno Haible  <bruno@clisp.org>
17807         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17808         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17809         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17810         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17811         'unsigned int' before comparison with an unsigned value.
17813 2018-09-30  Bruno Haible  <bruno@clisp.org>
17815         grantpt: Remove unnecessary dependency.
17816         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17818 2018-09-30  Bruno Haible  <bruno@clisp.org>
17820         timevar: Small tweaks.
17821         * lib/timevar.h: Fix comments. Add parameter names to function
17822         declarations.
17823         * lib/timevar.c: Include timevar.h immediately after config.h.
17824         * lib/timevar.def: Fix comments.
17825         * modules/timevar (Maintainer): List Akim Demaille.
17827 2018-09-30  Bruno Haible  <bruno@clisp.org>
17829         timevar: Include documentation in gnulib manual.
17830         * doc/timevar.texi: Change node and section name to 'Profiling of
17831         program phases'.
17832         In the code snippets, tweak the #includes and use GNU coding style.
17833         * doc/gnulib.texi: Include timevar.texi.
17835 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17837         timevar: import from Bison.
17838         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17839         New files.
17840         * lib/timevar.def: New file.
17841         * doc/timevar.texi: New file.
17843 2018-09-26  Bruno Haible  <bruno@clisp.org>
17845         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17846         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17847         * lib/javacomp.c (default_target_version): Likewise.
17849 2018-09-26  Bruno Haible  <bruno@clisp.org>
17851         javacomp-script, javacomp: Add support for Java 11.
17852         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17853         target-version 11.
17854         * lib/javaversion.h: Update comments.
17855         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17856         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17857         TARGET_VERSION_BOUND, target_version_index,
17858         corresponding_classfile_version): Accept source_version 11 and
17859         target_version 11.
17860         * lib/javacomp.h: Update comments accordingly.
17862 2018-09-23  Bruno Haible  <bruno@clisp.org>
17864         vasnprintf: Fix heap memory overrun bug.
17865         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17866         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17867         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17868         memory.
17869         * tests/test-vasnprintf.c (test_function): Add another test.
17871 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17873         maint: mktime.c now shared with glibc
17874         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17875         are now the same in Gnulib and glibc.
17877         mktime: fix _LIBC typo
17878         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17880 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17882         dfa: optimization for state merge
17883         * lib/dfa.c (merge2): New function.
17884         (merge_nfa_state): Use it.
17886 2018-09-18  Jim Meyering  <meyering@fb.com>
17888         dfa: trivial comment fix: s/is/if/
17889         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17891 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17893         dfa: use more-informative function name
17894         * lib/dfa.c (maybe_disable_superset_dfa):
17895         Rename from dfautf8noss.  Use change.
17897         dfa: tweak allocation performance
17898         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17899         Prefer ptrdiff_t for indexes some more.
17900         Use char for flags, as it’s wide enough.
17901         Allocate queue and flags together, with one malloc call.
17902         No need to use xnmalloc since the multiplication and
17903         addition cannot overflow (it’s already been checked by
17904         earlier allocation).  Prefer memset to open-coding.
17906         dfa: prune states as we go
17907         * lib/dfa.c (prune): Remove.
17908         dfa: reorder enum for efficiency
17909         (merge_nfa_state): Prune as we go instead of at the end.
17910         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17912         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17913         of the enumeration to make it easier for GCC to generate
17914         efficient code by using fewer comparisons to check for
17915         ranges of values.
17916         (atom): Take advantage of the reordering.
17918 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17920         dfa: optimize alternation in NFA
17921         Even when similar states exist in alternation, the DFA treats them
17922         as separate items, which may complicate the transition in NFA and
17923         cause slowdown.  This change assembles the states into one.  For
17924         example, ab|ac is changed into a(b|c).  This change speeds-up
17925         matching for many branched patterns.  For example, grep speeds up
17926         more than 30× in:
17928           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17929           time -p env LC_ALL=C grep -vf in in
17931         * lib/dfa.c (prune): New function.
17932         (merge_nfa_state): New function.  It merges similar NFA states.
17933         (dfaoptimize): New function.  It seeks merged and removed nodes.
17934         (dfaanalyze): Call new function.
17935         (dfautf8noss): Change name from dfaoptimize because of addition of new
17936         function.
17937         (dfacomp): Update caller.
17939         dfa: simplify initial state
17940         Simplifying the initial state enables easier optimization of the NFA.
17941         * lib/dfa.c (enum token): Add new element BEG.
17942         (prtok): Adjust due to adding element BEG.
17943         (dfaparse): Put BEG at a head of tokens.
17944         (state_index): Adjust due to adding element BEG.
17945         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
17946         build initial state.
17947         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17949 2018-09-18  Bruno Haible  <bruno@clisp.org>
17951         file-has-acl: Fix test failure on Cygwin 2.9.
17952         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17953         * lib/acl-internal.h: Likewise.
17954         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17955         * lib/acl-internal.c: Update comments regarding Cygwin.
17956         * lib/acl_entries.c: Likewise.
17957         * lib/file-has-acl.c: Likewise.
17958         (file_has_acl): For Cygwin, use a different way to determine whether
17959         the "default" ACL of a directory is nontrivial.
17960         * lib/get-permissions.c: Update comments regarding Cygwin.
17961         * lib/set-permissions.c: Likewise.
17963 2018-09-18  Bruno Haible  <bruno@clisp.org>
17965         stat-time tests: Fix test failure on Cygwin.
17966         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17968 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17970         doc: OS X 10.11 lacked ns time functions
17971         According to <https://github.com/zeromq/libzmq/issues/2175>,
17972         nanosecond-resolution timestamp functions were introduced
17973         in macOS 10.12, so document the last version (OS X 10.11)
17974         where they were absent.
17976         gettime: nanotime never existed
17977         Problem reported by Bruno Haible in:
17978         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17979         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17980         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17982 2018-09-18  Bruno Haible  <bruno@clisp.org>
17984         doc: Update statement about target platforms.
17985         Reported by Simon Sobisch.
17986         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17987         restrictions on MSVC versions.
17989 2018-09-18  Bruno Haible  <bruno@clisp.org>
17991         posix_spawn tests: Fix link error on 64-bit Cygwin.
17992         * tests/test-posix_spawn1.c (environ): Remove declaration.
17993         * tests/test-posix_spawn2.c (environ): Likewise.
17994         * tests/test-posix_spawn3.c (environ): Likewise.
17995         * tests/test-posix_spawn4.c (environ): Likewise.
17996         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17997         * modules/posix_spawnp-tests (Depends-on): Likewise.
17999 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18001         timespec: new function current_timespec
18002         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18003         and don’t worry about it failing on a CLOCK_REALTIME arg.
18004         POSIX requires it to succeed and I don’t know of any
18005         counterexamples where the fallbacks would work.
18006         (current_timespec): New function, taken from Emacs.  It is more
18007         convenient than gettime, and can help register allocation.
18008         * lib/timespec.h: Include arg-nonnull.h.
18009         (current_timespec): New declaration.
18010         (gettime, settime): Declare args to be nonnull.
18011         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18013 2018-09-16  Bruno Haible  <bruno@clisp.org>
18015         setlocale: Improve locale handling on macOS 10.12 or newer.
18016         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18017         gl_locale_name_canonicalize.
18018         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18019         and LC_MESSAGES.
18020         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18022 2018-09-16  Bruno Haible  <bruno@clisp.org>
18024         Update list of locale names with scripts on macOS.
18025         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18026         match Mac OS X 10.13 and recent glibc.
18028 2018-09-16  Bruno Haible  <bruno@clisp.org>
18030         gettext: Use newer macOS APIs when possible.
18031         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18032         CFLocaleCopyPreferredLanguages.
18034 2018-09-16  Bruno Haible  <bruno@clisp.org>
18036         localename: Revisit macOS specific code.
18037         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18038         Fix comments about Mac OS X versions.
18040 2018-09-15  Bruno Haible  <bruno@clisp.org>
18042         setlocale: Improve support for locales not supported by libc.
18043         Reported by Dapeng Gao <peter@dpgao.cc> at
18044         <https://savannah.gnu.org/bugs/?54479>.
18045         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18046         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18047         to be set is not supported by libc: Emit warnings instead of failing.
18049 2018-09-15  Bruno Haible  <bruno@clisp.org>
18051         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18052         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18053         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18054         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18056         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18057         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18058         * doc/glibc-functions/strcasestr.texi: Likewise.
18060 2018-09-14  Bruno Haible  <bruno@clisp.org>
18062         doc: Fix bottom of top-level page.
18063         Reported by Akim Demaille <akim.demaille@gmail.com> in
18064         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18065         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18066         mode.
18067         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18068         accordingly.
18070 2018-09-12  Bruno Haible  <bruno@clisp.org>
18072         Add test case from a recent glibc bug.
18073         * tests/test-strstr.c (main): Add test of long needle.
18074         * tests/test-strcasestr.c (main): Likewise.
18075         * tests/test-c-strstr.c (main): Likewise.
18076         * tests/test-c-strcasestr.c (main): Likewise.
18077         * tests/test-memmem.c (main): Likewise.
18079 2018-09-12  Bruno Haible  <bruno@clisp.org>
18081         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18082         * tests/test-c-strstr.c (main): Add the same tests here as well.
18084 2018-09-12  Bruno Haible  <bruno@clisp.org>
18086         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18087         * tests/test-memmem.c (main): Free haystack.
18088         * tests/test-strcasestr.c (main): Likewise.
18089         * tests/test-c-strcasestr.c (main): Likewise.
18091 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18093         xstrtol: fix missing-TYPE_SIGNED typo
18094         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18096 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18098         timespec: fix resolution confusion
18099         In normal usage, clock resolution is given in seconds, but the
18100         code was mistakenly using inverse seconds and calling it
18101         “resolution”.  Fix this, partly by renaming two identifiers.
18102         The old names will be kept for a bit, to ease transition.
18103         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18104         New constants, replacing TIMESPEC_RESOLUTION and
18105         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18106         All uses changed.
18108 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18110         mktime: simplify in prep for glibc merge
18111         * lib/mktime.c, lib/timegm.c [_LIBC]:
18112         Include mktime-internal.h (a small file just for glibc)
18113         instead of using a typedef.
18115 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18117         intprops: minor clarification of code
18118         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18119         Use _GL_INT_CONVERT rather than reinventing it.
18121 2018-09-07  Bruno Haible  <bruno@clisp.org>
18123         Fix a comment.
18124         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18126 2018-09-07  Bruno Haible  <bruno@clisp.org>
18128         posix_spawn_file_actions_addchdir: Add tests.
18129         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18130         * tests/test-posix_spawn4.c: New file.
18131         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18133 2018-09-07  Bruno Haible  <bruno@clisp.org>
18135         posix_spawn_file_actions_addchdir: New module.
18136         Suggested by Eric Blake in
18137         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18138         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18139         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18140         union member 'chdir_action'.
18141         * lib/spawn_faction_addchdir.c: New file.
18142         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18143         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18144         HAVE_WORKING_POSIX_SPAWN.
18145         * lib/spawn_faction_adddup2.c: Likewise.
18146         * lib/spawn_faction_addopen.c: Likewise.
18147         * m4/posix_spawn_faction_addchdir.m4: New file.
18148         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18149         'posix_spawn_file_actions_addchdir' is present and whether
18150         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18151         instead of HAVE_WORKING_POSIX_SPAWN.
18152         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18153         posix_spawn_file_actions_addchdir is declared.
18154         (gl_SPAWN_H_DEFAULTS): Initialize
18155         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18156         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18157         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18158         * modules/spawn (Makefile.am): Substitute
18159         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18160         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18161         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18162         * modules/posix_spawn_file_actions_addchdir: New file.
18163         * modules/posix_spawn_file_actions_addclose (Depends-on,
18164         configure.ac): Test also REPLACE_POSIX_SPAWN.
18165         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18166         configure.ac): Likewise.
18167         * modules/posix_spawn_file_actions_addopen (Depends-on,
18168         configure.ac): Likewise.
18169         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18170         signature.
18171         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18172         * doc/posix-functions/posix_spawnp.texi: Likewise.
18174 2018-09-06  Bruno Haible  <bruno@clisp.org>
18176         stddef: Override max_align_t on NetBSD 8.0/x86.
18177         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18178         the value of __alignof__ (max_align_t).
18179         * doc/posix-headers/stddef.texi: Mention the issue.
18181 2018-09-06  Bruno Haible  <bruno@clisp.org>
18183         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18184         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18185         system fcntl.
18186         * doc/posix-functions/fcntl.texi: Document the issue.
18188 2018-09-06  Bruno Haible  <bruno@clisp.org>
18190         count-trailing-zeros tests: Rely on limits-h module.
18191         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18192         definition.
18193         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18195 2018-09-06  Bruno Haible  <bruno@clisp.org>
18197         count-leading-zeros tests: Rely on limits-h module.
18198         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18199         definition.
18200         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18202 2018-09-06  Bruno Haible  <bruno@clisp.org>
18204         count-one-bits tests: Rely on limits-h module.
18205         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18206         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18208 2018-09-06  Bruno Haible  <bruno@clisp.org>
18210         xstrtoll: Rely on limits-h module.
18211         * lib/xstrtol.c: Don't include intprops.h.
18212         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18213         * modules/xstrtol (Depends-on): Remove 'intprops'.
18214         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18216 2018-09-06  Bruno Haible  <bruno@clisp.org>
18218         strtoll, strtoull: Rely on limits-h module.
18219         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18220         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18221         * modules/strtoll (Depends-on): Add limits-h.
18222         * modules/strtoull (Depends-on): Likewise.
18224 2018-09-06  Bruno Haible  <bruno@clisp.org>
18226         intprops tests: Fix compilation error with pre-C99 compiler.
18227         * tests/test-intprops.c (verify_stmt): New macro.
18228         (VERIFY, main): Use it.
18230 2018-09-06  Bruno Haible  <bruno@clisp.org>
18232         limits-h: Provide numerical limits macros.
18233         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18234         IRIX and for GCC.
18235         (WORD_BIT, LONG_BIT): Define.
18236         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18237         <limits.h> does not define LLONG_MAX or WORD_BIT.
18238         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18239         TYPE_MAXIMUM): New macros, from intprops.h.
18240         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18241         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18242         provides.
18244 2018-09-05  Bruno Haible  <bruno@clisp.org>
18246         fcntl: Don't access nonexistent optional argument.
18247         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18248         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18249         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18250         don't consume an argument. For actions that take an 'int' argument,
18251         consume an 'int' argument.
18253 2018-09-05  Eric Blake  <eblake@redhat.com>
18255         doc: mention environ pitfall
18256         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18257         environ is a glibc extension.
18259 2018-09-03  Bruno Haible  <bruno@clisp.org>
18261         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18262         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18263         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18264         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18265         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18266         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18268 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18270         mktime: fix unlikely race+overflow bug
18271         Problem reported by Alexandre Oliva in:
18272         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18273         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18274         to avoid an unlikely race if the compiler delays a load and
18275         if this cascades into a signed integer overflow.
18277 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18279         mktime, timegm: simplify glibc time64_t
18280         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18281         Now long int, not time_t, since long int is the longstanding type
18282         for this in glibc and there is no need to change it even if time_t
18283         becomes 64 bits - even int would do, though this would be a change
18284         to the glibc generated code.  When this change is merged into
18285         glibc, it should simplify the time_t vs time64_t situation.
18287         mktime, timegm: simplify merge to glibc
18288         Move code around to make a merge to glibc easier to audit.
18289         This should not change behavior.
18290         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18291         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18292         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18293         simplify later conditionals; default the others to zero.  In uses
18294         of these conditionals, explicitly spell out how _LIBC affects
18295         things, so it’s easier to review from a glibc viewpoint.
18296         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18297         compartmentalize tzset issues.  Move system-dependent tzsettish
18298         code here from mktime.
18299         (mktime): Move tzsettish code to my_tzset, and move
18300         localtime_offset to within mktime so that it doesn’t
18301         need a separate ifdef.
18303 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18305         intprops: avoid evaluation of some expressions
18306         This makes EXPR_SIGNED (e) easier to use, as it no longer
18307         evaluates the expression E.  Formerly, E was required to be free
18308         of side effects.
18309         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18310         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18311         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18313 2018-08-23  Bruno Haible  <bruno@clisp.org>
18315         getcwd: Add cross-compilation guesses.
18316         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18317         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18318         Based on a patch by Paul Eggert.
18319         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18320         guesses for all GNU systems.
18322 2018-08-19  Bruno Haible  <bruno@clisp.org>
18324         glob-h: Formalize side effects from other modules.
18325         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18326         * m4/glob.m4 (gl_GLOB): Invoke it.
18328         fnmatch-h: Formalize side effects from other modules.
18329         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18330         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18332         limits-h: Formalize side effects from other modules.
18333         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18334         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18336 2018-08-19  Bruno Haible  <bruno@clisp.org>
18338         getpass: Move declaration to <unistd.h>.
18339         * lib/unistd.in.h (getpass): New declaration.
18340         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18341         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18342         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18343         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18344         On glibc systems, don't set REPLACE_GETPASS to 1.
18345         * modules/getpass (Depends-on): Add 'unistd'.
18346         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18347         (Include): Specify <unistd.h> instead of "getpass.h".
18348         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18349         (configure.ac): Sync with the configure.ac section of modules/getpass.
18350         (Include): Specify <unistd.h> instead of "getpass.h".
18351         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18352         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18353         REPLACE_GETPASS.
18354         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18355         REPLACE_GETPASS.
18356         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18357         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18358         and musl.
18359         * NEWS: Mention the change.
18361 2018-08-19  Bruno Haible  <bruno@clisp.org>
18363         glob: Fix over-optimization due to attribute __nonnull__.
18364         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18366 2018-08-19  Bruno Haible  <bruno@clisp.org>
18368         glob: Fix another compilation error when glob.h is not replaced.
18369         Reported by Reuben Thomas <rrt@sc3d.org> in
18370         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18371         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18372         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18374 2018-08-18  Bruno Haible  <bruno@clisp.org>
18376         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18377         Reported by Reuben Thomas <rrt@sc3d.org> in
18378         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18379         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18380         in config.h.
18382 2018-08-18  Bruno Haible  <bruno@clisp.org>
18384         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18385         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18386         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18387         Solution proposed by Eli Zaretskii.
18388         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18389         * lib/gettimeofday.c (GetProcAddress): Likewise.
18390         * lib/link.c (GetProcAddress): Likewise.
18391         * lib/physmem.c (GetProcAddress): Likewise.
18392         * lib/poll.c (GetProcAddress): Likewise.
18393         * lib/select.c (GetProcAddress): Likewise.
18394         * lib/stat-w32.c (GetProcAddress): Likewise.
18396 2018-08-18  Bruno Haible  <bruno@clisp.org>
18398         glob: Fix another compilation error when glob.h is not replaced.
18399         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18400         * lib/globfree.c: Include <libc-config.h>.
18402 2018-08-18  Bruno Haible  <bruno@clisp.org>
18404         glob: Fix compilation error when glob.h is not replaced.
18405         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18406         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18407         * lib/glob_pattern_p.c: Include <libc-config.h>.
18408         * modules/glob (Depends-on): Add libc-config.
18410 2018-08-18  Bruno Haible  <bruno@clisp.org>
18412         scratch_buffer: Add tests.
18413         * tests/test-scratch-buffer.c: New file.
18414         * modules/scratch_buffer-tests: New file.
18416 2018-08-18  Bruno Haible  <bruno@clisp.org>
18418         scratch_buffer: Fix include file.
18419         Reported by Reuben Thomas <rrt@sc3d.org> in
18420         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18421         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18422         double-inclusion guard.
18424 2018-08-18  Bruno Haible  <bruno@clisp.org>
18426         glob-h: Revert Paul Eggert's revert.
18427         * m4/glob_h.m4: Revert to previous state.
18428         * modules/glob-h: Likewise.
18430 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18432         glob-h: always build glob.h
18433         This works around a problem reported by Reuben Thomas in:
18434         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18435         This workaround always builds glob.h, even on platforms that
18436         do not need it; perhaps this could be improved someday.
18437         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18438         is always created now.
18439         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18441 2018-08-13  Bruno Haible  <bruno@clisp.org>
18443         monetary: Simplify m4 code.
18444         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18445         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18447 2018-08-13  Bruno Haible  <bruno@clisp.org>
18449         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18450         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18451         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18452         and by Paul J. Lucas <paul@lucasmail.org> in
18453         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18454         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18456 2018-08-11  Bruno Haible  <bruno@clisp.org>
18458         setlocale: Trivial simplification.
18459         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18461 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18463         verify: port 'assume' to traditional tools
18464         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18465         and other tools that use /*NOTREACHED*/ comments.
18467 2018-08-10  Bruno Haible  <bruno@clisp.org>
18469         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18470         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18471         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18472         'fnmatch-gnu' is in use.
18474 2018-08-07  Bruno Haible  <bruno@clisp.org>
18476         glob-h: Add tests.
18477         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18478         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18479         tests/test-glob-h.c.
18480         * modules/glob-h-tests: New file.
18481         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18482         conditions.
18483         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18484         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18486 2018-08-07  Bruno Haible  <bruno@clisp.org>
18488         glob-h: New module.
18489         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18490         replacements.
18491         * lib/glob.c: Include <config.h>.
18492         * m4/glob_h.m4: New file.
18493         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18494         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18495         REPLACE_GLOB_PATTERN_P as appropriate.
18496         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18497         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18498         * modules/glob-h: New file.
18499         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18500         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18501         lstat, sys_stat. Change conditions.
18502         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18503         REPLACE_GLOB_PATTERN_P. Set module indicator.
18504         (Makefile.am): Remove code that is moved to glob-h.
18505         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18506         * modules/posixcheck (Depends-on): Add glob-h.
18508 2018-08-06  Bruno Haible  <bruno@clisp.org>
18510         Force generation of substitute .h file when C++ support is enabled.
18511         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18512         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18513         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18514         FNMATCH_H to non-empty.
18515         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
18516         ICONV_H to non-empty.
18517         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
18518         MONETARY_H to non-empty.
18519         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
18520         non-empty.
18522 2018-08-06  Bruno Haible  <bruno@clisp.org>
18524         fnmatch-h: Fix test compilation error on mingw (regression from today).
18525         * lib/fnmatch.in.h: Fix conditions.
18527 2018-08-06  Bruno Haible  <bruno@clisp.org>
18529         sys_resource: Relicense under LGPLv2+.
18530         John Malmberg's approval is in
18531         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
18532         * modules/sys_resource (License): Change to LGPLv2+.
18534 2018-08-06  Bruno Haible  <bruno@clisp.org>
18536         fnmatch-h: Add tests.
18537         * tests/test-fnmatch-h.c: New file.
18538         * modules/fnmatch-h-tests: New file.
18539         * tests/test-fnmatch-h-c++.cc: New file.
18540         * modules/fnmatch-h-c++-tests: New file.
18542 2018-08-06  Bruno Haible  <bruno@clisp.org>
18544         fnmatch-h: New module.
18545         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
18546         replacements.
18547         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
18548         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
18549         'posixcheck' warning.
18550         * m4/fnmatch_h.m4: New file.
18551         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
18552         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
18553         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
18554         as appropriate.
18555         * modules/fnmatch-h: New file.
18556         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
18557         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
18558         conditions.
18559         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
18560         indicator.
18561         (Makefile.am): Remove code that is moved to fnmatch-h.
18562         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
18563         REPLACE_FNMATCH.
18564         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
18565         * modules/posixcheck (Depends-on): Add fnmatch-h.
18567 2018-08-06  Bruno Haible  <bruno@clisp.org>
18569         Enable more C++ tests.
18570         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
18571         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
18572         * modules/strings-tests (Depends-on): Add strings-c++-tests.
18573         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
18574         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
18576 2018-08-06  Bruno Haible  <bruno@clisp.org>
18578         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
18579         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
18580         getopt.h.
18581         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
18583 2018-08-05  Bruno Haible  <bruno@clisp.org>
18585         utime-h: Generate header file when module 'posixcheck' is in use.
18586         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
18587         UTIME_H to non-empty.
18589 2018-08-05  Bruno Haible  <bruno@clisp.org>
18591         monetary: Generate header file when module 'posixcheck' is in use.
18592         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18593         use, set MONETARY_H to non-empty.
18595 2018-08-05  Bruno Haible  <bruno@clisp.org>
18597         iconv-h: Generate header file when module 'posixcheck' is in use.
18598         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18599         set ICONV_H to non-empty.
18601 2018-08-05  Bruno Haible  <bruno@clisp.org>
18603         Optimize the "checking whether ... is declared without a macro" checks.
18604         Suggested by Paul Eggert in
18605         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18606         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18607         Gnulib module 'posixcheck' is not in use.
18609 2018-08-05  Bruno Haible  <bruno@clisp.org>
18611         iconv-h: Enable 'posixcheck' warnings.
18612         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18613         iconv_open.
18614         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18616 2018-08-05  Bruno Haible  <bruno@clisp.org>
18618         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18619         * m4/extern-inline.m4: Add more comments.
18620         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18621         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18622         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18624 2018-08-04  Bruno Haible  <bruno@clisp.org>
18626         New module 'posixcheck'.
18627         * modules/posixcheck: New file.
18628         * m4/posixcheck.m4: New file.
18629         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18630         (Which modules?): Reference it.
18632 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18634         dfa: fix memory leak
18635         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18637 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18639         ieee754-h: new module
18640         It looks like Emacs can use this for some NaN processing.
18641         Emacs uses it only on double NaNs so it should be safe.
18642         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18643         * config/srclist.txt: Mention ieee754.h in a comment.
18644         * doc/glibc-headers/ieee754.texi (ieee754.h):
18645         Gnulib now has a substitute that should work
18646         except for long double and for non-IEEE platforms.
18647         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18648         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18650 2018-07-27  Bruno Haible  <bruno@clisp.org>
18652         iswcntrl: Mention minor problem on macOS.
18653         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18655 2018-07-26  Colin Watson  <cjwatson@debian.org>
18657         bootstrap, gnulib-tool: fix translations rsync
18658         Previously, we created files such as $pobase/Makefile.in.in and then the
18659         subsequent rsync would immediately delete them.
18660         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18661         non-.po files in target directory when rsyncing translations.
18662         * gnulib-tool (func_import): Likewise.
18663         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18665 2018-07-25  Jim Meyering  <meyering@fb.com>
18667         bootstrap: reinstate definition fo gnulib_mk.
18668         That variable is used at least by cppi.
18669         * build-aux/bootstrap (gnulib_mk): Restore definition.
18670         This reverts the deletion from v0.1-1844-gc66dba9ba.
18672 2018-07-23  Bruno Haible  <bruno@clisp.org>
18674         doc: For module names, use texinfo markup @code{} or @samp{}.
18675         * doc/alloca.texi: Mark gnulib module names with @code.
18676         * doc/alloca-opt.texi: Likewise.
18677         * doc/quote.texi: Likewise.
18678         * doc/posix-functions/freopen.texi: Likewise.
18679         * doc/posix-functions/open.texi: Likewise.
18680         * doc/posix-functions/readlink.texi: Likewise.
18681         * doc/posix-functions/readlinkat.texi: Likewise.
18682         * doc/posix-functions/stdout.texi: Likewise.
18683         * doc/posix-functions/stderr.texi: Likewise.
18684         * doc/posix-functions/unlink.texi: Likewise.
18685         * doc/posix-functions/unlinkat.texi: Likewise.
18686         * doc/posix-functions/utime.texi: Likewise.
18687         * doc/posix-functions/utimensat.texi: Likewise.
18688         * doc/posix-functions/utimes.texi: Likewise.
18689         * doc/posix-headers/stdint.texi: Likewise.
18690         * doc/glibc-functions/futimesat.texi: Likewise.
18691         * doc/glibc-functions/lutimes.texi: Likewise.
18692         * doc/glibc-functions/memmem.texi: Likewise.
18694 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18696         doc: Avoid some overfull lines in the TeX output.
18697         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18698         @example.
18699         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18700         newline before the long URL.
18701         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18702         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18703         Add line breaks in code snippets.
18705 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18707         hard-locale: simplify by removing hard-locale.m4
18708         * m4/hard-locale.m4: Remove.
18709         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18710         (configure.ac): Do not call gl_HARD_LOCALE.
18712         gnulib-tool: limit line length for git send-email
18713         * gnulib-tool (func_import): Break actioncmd log line
18714         into multiple lines.
18716 2018-07-16  Bruno Haible  <bruno@clisp.org>
18718         ffs: Ensure declaration on mingw.
18719         Reported by Daniel P. Berrangé <berrange@redhat.com>
18720         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18721         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18722         also declared.
18724 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18726         regex-tests: add dependency
18727         * modules/regex-tests (Depends-on): Add gettext-h.
18728         This is needed given the recent changes to regex,
18729         which no longer depends on gettext-h.
18731 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18733         regex: now in sync with glibc
18734         * config/srclist.txt: Gnulib and glibc regex code
18735         are synchronized again.
18737 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18739         renameatu: rename from renameat2
18740         It's looking like Glibc will add a renameat2 function
18741         that is incompatible with Gnulib renameat2; see:
18742         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18743         To help avoid future confusion, rename renameat2 to something else.
18744         Use the name 'renameatu', as the Gnulib function is close to the
18745         Glibc function.  Perhaps someday there will also be a renameat2
18746         Gnulib module, which mimicks the future glibc renameat2, but that
18747         can wait as nobody seems to need such a module now.
18748         * NEWS: Mention this.
18749         * lib/renameatu.c: Rename from lib/renameat2.c.
18750         * lib/renameatu.h: Rename from lib/renameat2.h.
18751         * modules/renameatu: Rename from modules/renameat2.
18752         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18753         All uses of "renameat2" in identifiers or file name
18754         changed to "renameatu", except for two instances in
18755         lib/renameatu.c that deal with the Linux kernel's
18756         renameat2 syscall.
18758 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18760         gnulib-tool: minor tweaks for --gnu-make
18761         * gnulib-tool: Do not allow --gnu-make in test modes,
18762         since they all require automake.
18763         (func_emit_lib_Makefile_am): Don’t emit automake comment
18764         if --gnu-make.
18766         regex: work around conditional-dependencies glitch
18767         * modules/regex (Depends-on): Add langinfo.
18768         Without this change, I had problems building an experimental
18769         version of GNU Emacs.  The symptom of the bug was a message
18770         ‘./configure: line 12726: test: =: unary operator expected’.
18771         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18772         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18773         was unset.  Although gl_FUNC_NL_LANGINFO has
18774         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18775         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18776         --conditional-dependencies sometimes arranges for the
18777         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18778         code.  Since the regex code includes <langinfo.h> it should be
18779         depending on the langinfo module anyway, and this happens to work
18780         around the bug, so install that as a workaround for now.  To
18781         reproduce the original problem, run the following shell script on
18782         the version of Gnulib just before this patch was installed.
18783                 rm -fr foo
18784                 mkdir foo
18785                 cat >foo/configure.ac <<'EOF'
18786                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18787                 gl_EARLY
18788                 gl_INIT
18789                 AC_OUTPUT
18790                 EOF
18791                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18792                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18793                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18794                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18795                 cd foo
18796                 aclocal -I m4
18797                 autoconf
18798                 ./configure --with-included-regex
18800 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18802         wchar: fix bug when checking for ‘inline’
18803         I discovered this when looking into using the regex module
18804         with Emacs.
18805         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18806         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18807         conftest1.c and conftest2.c but these files were not created.
18808         As far as I can see, this check never worked and nobody reported
18809         it until now, which is a bit worrisome.
18811 2018-06-30  Jim Meyering  <meyering@fb.com>
18813         bootstrap: s/--option val/--option=val/
18814         * build-aux/bootstrap (gnulib_tool_options): Change the
18815         spelling of "--option val" pairs to "--option=val", for
18816         aesthetics, and also so that this file no longer triggers
18817         a common help2man syntax-check warning when copied into
18818         projects like grep, gzip, etc.
18820 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18822         manywarnings: omit -Wswitch-default
18823         This should make things more consistent, as we already ignore
18824         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18825         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18826         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18827         Add -Wswitch-default.
18828         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18830         Remove -Wswitch-default.
18832         regex: revert most trimming
18833         Problems reported by Bruno Haible in:
18834         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18835         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18836         and wctype back in.  lock because regex users shouldn’t
18837         need to know that regex needs locking, and the rest because
18838         gnulib-tool should ordinarily ignore them anyway.
18840 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18842         regex: trim module dependencies
18843         * modules/regex (Depends-on): Remove gettext-h and lock,
18844         since the regex code should work OK without these modules,
18845         and Emacs uses it that way.  Also remove memcmp, memmove,
18846         and wctype, as these modules are obsolete and should not be
18847         needed any more.
18849 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18851         regex: glibc does not use intprops.h
18852         Maybe we can talk glibc into using intprops.h someday, but
18853         now doesn’t seem to be a good time.
18854         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18855         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18856         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18858 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18860         regex: port to recently proposed glibc regex merge
18861         This patch is inspired by Adhemerval Zanella's recent proposal
18862         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18863         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18864         the glibc side, without keeping Gnulib portable.
18865         * lib/regex.h: Fix a problem with glibc installed-header checking,
18866         as follows:
18867         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18868         (_Restrict_arr_): Prefer __restrict_arr if defined,
18869         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18870         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18871         (build_wcs_upper_buffer, build_upper_buffer)
18872         (re_string_translate_buffer, re_string_context_at):
18873         Move decls here from lib/regex_internal.h, for glibc internal tests.
18874         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18875         glibc BZ #18496.
18876         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18877         -Wunused-value.
18878         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18879         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18880         (bitset_mask): Now static inline, and without any __attribute__
18881         ((unused)) decoration, for glibc internal tests.
18883 2018-06-25  Bruno Haible  <bruno@clisp.org>
18885         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18886         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18887         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18888         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18889         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18890         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18891         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18892         / -lthread / -lpth does not get optimized away by a preceding
18893         --as-needed option.
18895 2018-06-25  Bruno Haible  <bruno@clisp.org>
18897         Continue to use spaces for indentation, not tabs.
18898         * MODULES.html.sh: Untabify.
18899         * doc/regex.texi: Likewise.
18900         * lib/acl-internal.c: Likewise.
18901         * lib/dfa.c: Likewise.
18902         * lib/exclude.c: Likewise.
18903         * lib/exclude.h: Likewise.
18904         * lib/get-permissions.c: Likewise.
18905         * lib/gettimeofday.c: Likewise.
18906         * lib/parse-datetime.y: Likewise.
18907         * lib/pselect.c: Likewise.
18908         * lib/set-permissions.c: Likewise.
18909         * lib/time.in.h: Likewise.
18910         * m4/canonicalize.m4: Likewise.
18911         * m4/gc.m4: Likewise.
18912         * m4/gnulib-common.m4: Likewise.
18913         * m4/pthread_sigmask.m4: Likewise.
18914         * m4/vararrays.m4: Likewise.
18915         * tests/test-digest.h: Likewise.
18916         * tests/test-fcntl-h.c: Likewise.
18917         * tests/test-timespec.c: Likewise.
18918         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18920 2018-06-25  Bruno Haible  <bruno@clisp.org>
18922         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18923         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18924         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18925         -Wjump-misses-init.
18927 2018-06-25  Jim Meyering  <meyering@fb.com>
18929         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18930         * lib/acl-internal.h (free_permission_context): Remove that
18931         attribute directive.  Otherwise, it would provoke this from GCC 9:
18932         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18933           returning 'void' [-Werror=attributes]
18935 2018-06-24  Jim Meyering  <meyering@fb.com>
18937         parse-datetime: accommodate gcc-4.8.5
18938         Bruno Haible reported the build failure in
18939         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
18940         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
18941         on declaration of new local.
18943 2018-06-24  Bruno Haible  <bruno@clisp.org>
18945         af_alg: Fail in continuable manner on Linux/powerpc64le.
18946         Reported by Assaf Gordon <assafgordon@gmail.com>
18947         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18948         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18949         byte send() as the first round.
18951 2018-06-24  Bruno Haible  <bruno@clisp.org>
18953         af_alg: Fix state of stream after sendfile() succeeds.
18954         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18955         the stream is correctly positioned afterwards.
18956         * modules/crypto/af_alg (Depends-on): Add fflush.
18957         * tests/test-digest.h (test_digest_on_files): Verify that after the
18958         operation the stream is positioned at end of file.
18960 2018-06-24  Jim Meyering  <meyering@fb.com>
18962         canon-host: take GCC9's advice rather than ignoring warning
18963         Pádraig Brady suggested not to ignore this GCC9 advice.
18964         * lib/canon-host.c: Undo preceding change.
18965         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18967         parse-datetime.y: avoid spurious GCC 9 warning
18968         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18969         a function local prior to the first "goto fail".  The prior use would
18970         evoke this:
18971         parse-datetime.y: In function 'parse_datetime2':
18972         parse-datetime.y:1791:19: error: jump skips variable initialization \
18973           [-Werror=jump-misses-init]
18974         parse-datetime.y:2385:2: note: label 'fail' defined here
18975         parse-datetime.y:188:43: note: '({anonymous})' declared here
18976         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18978         canon-host.c: avoid spurious GCC 9 warning
18979         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18981         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18982         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18983         * m4/manywarnings.m4: Remove them.
18984         Otherwise, building coreutils, I would see this:
18985         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18986         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18987         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18988           which is also used by default
18989         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18991 2018-06-24  Bruno Haible  <bruno@clisp.org>
18993         af_alg tests: Add another test.
18994         * tests/test-digest.h (test_digest_on_files): Also check a large file
18995         with a skipped header.
18996         * tests/test-md5.c: Include macros.h.
18997         * tests/test-sha1.c: Likewise.
18998         * tests/test-sha256.c: Likewise.
18999         * tests/test-sha512.c: Likewise.
19000         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19001         * modules/crypto/sha1-tests (Files): Likewise.
19002         * modules/crypto/sha256-tests (Files): Likewise.
19003         * modules/crypto/sha512-tests (Files): Likewise.
19005 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19007         maint: clarify comments about sticky EOF
19008         * lib/af_alg.c: Be more direct that we can't
19009         assume stickiness of EOF for portability reasons.
19010         * lib/md5.c: Clarify that this isn't just a glibc issue.
19011         * lib/sha1.c: Likewise.
19012         * lib/sha256.c: Likewise.
19013         * lib/sha512.c: Likewise.
19015 2018-06-24  Bruno Haible  <bruno@clisp.org>
19017         af_alg: Comment and style improvements.
19018         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19019         (afalg_buffer, afalg_stream): Improve comments.
19021 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19023         af_alg: disable kernel hash functions by default
19024         All the kernel routines were seen to be significantly slower
19025         with these relatively recent components on an i3-2310M system:
19026           kernel-4.10.6-200.fc25.x86_64
19027           openssl-1.0.2m-1.fc25.x86_64
19028         sha1 was nearly twice as slow in the kernel for example.
19029         Further considerations why this should not be the default, at:
19030         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19032         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19033         * m4/gl-openssl.m4: Tweak accordingly.
19035 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19037         af_alg: avoid hangs when reading from streams
19038         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19039         and thus avoid doing a fread() when feof() is set.
19040         * lib/md5.c: Ensure feof() is called before fread().
19041         * lib/sha1.c: Likewise.
19042         * lib/sha256.c: Likewise.
19043         * lib/sha512.c: Likewise.
19045 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19047         af_alg: fix error handling when hash not returned
19048         * lib/af_alg.c (afalg_stream): Handle the case where we've
19049         successfully written data to the kernel in the read/write loop,
19050         but the kernel doesn't respond with the hash.
19052 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19054         libc-config: merge from glibc
19055         * lib/cdefs.h (__inline, __restrict):
19056         Copy from current glibc.  This fixes glibc bug 17721,
19057         which Gnulib had already fixed in a different way.
19058         (__nonnull): Lessen the distance from glibc by using the
19059         glibc definition inside an ‘#ifndef __nonnull’.
19060         (__attribute_nonstring__): New macro, copied from
19061         current glibc.
19062         * lib/libc-config.h (__attribute_nonstring__): New undef.
19063         (__restrict): Remove; workaround no longer needed.
19064         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19065         support more compilers than the glibc __inline can.
19067 2018-06-24  Bruno Haible  <bruno@clisp.org>
19069         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19070         * lib/mbrtowc.c (enc_t): New enum type.
19071         (locale_enc, locale_enc_cached): New functions.
19072         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19073         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19074         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19075         instead.
19076         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19077         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19078         * modules/wcwidth (configure.ac): Invoke it.
19080 2018-06-24  Bruno Haible  <bruno@clisp.org>
19082         wchar-single: Fix test failure in wcwidth tests.
19083         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19084         skip the tests in the C locale.
19086 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19088         crypto: mention --without-linux-crypto in --with-openssl --help
19089         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19090         routines take precedence in --with-openssl help output.
19092 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19094         wchar-single: a new module to enable optimizations in wchar replacements
19095         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19096         GNULIB_WCHAR_SINGLE is enabled.
19097         * lib/wcwidth.c (wcwidth): Likewise.
19099 2018-06-23  Bruno Haible  <bruno@clisp.org>
19101         libc-config: Fix conflict with FreeBSD include files.
19102         * lib/cdefs.h (__nonnull): Remove definition.
19103         * lib/libc-config.h (__nonnull): Remove undefinition.
19105 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19107         random_r: do not crash if state is unaligned
19108         Problem reported by Bruce Korb in:
19109         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19110         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19111         with 'cc -O2 -xmemalign=8s'.
19112         * lib/random_r.c: Include string.h, for memcpy.
19113         (get_int32, set_int32): New functions.
19114         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19115         Use them to avoid assumption that state pointer is aligned.
19116         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19117         * tests/test-random_r.c (test_failed): New function.
19118         (main): Use it, to test for alignment bugs.
19120         random_r: omit unnecessary include
19121         * lib/random_r.c: Do not include limits.h.
19123         random, random_r: merge from glibc
19124         * lib/random.c, lib/random_r.c:
19125         Include libc-config.h if !_LIBC, not config.h unilaterally.
19126         * lib/random.c:
19127         Do not include stdint.h or time.h; not needed.
19128         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19129         (unsafe_state): Rename from generator.  All uses changed.
19130         Use C99-style initializers.
19131         (__random, __srandom, __initstate, __setstate): Rename from
19132         non-underscored version, but define it to non-underscored version
19133         on Gnulib.  Add a lock.
19134         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19135         Likewise.
19136         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19137         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19138         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19139         (__random_r): Use uint32 to fix glibc bug 17343.
19140         * modules/random, modules/random_r (Depends-on): Add libc-config.
19141         Depend on stdint only if $HAVE_RANDOM = 0.
19143 2018-06-19  Jim Meyering  <meyering@fb.com>
19145         README-release: also run any check-very-expensive tests
19146         * top/README-release: Adjust instructions so they run the
19147         check-very-expensive tests when there is such a target.
19149 2018-06-18  Bruno Haible  <bruno@clisp.org>
19151         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19152         * m4/pthread_rwlock_rdlock.m4: Add comment.
19153         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19154         are reader-preferring in glibc.
19155         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19156         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19158 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19160         crypto: use byteswap
19161         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19162         * lib/sm3.c: Include <byteswap.h>.
19163         (SWAP): Use its macros rather than reinventing the wheel.
19164         * modules/crypto/md4, modules/crypto/md5-buffer:
19165         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19166         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19167         (Depends-on): Add byteswap.
19169 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19171         gendocs.sh: fix support for legacy --texi2html
19172         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19173         to the default makeinfo invocation.
19174         Reported by Bruce Korb
19176 2018-06-17  Bruno Haible  <bruno@clisp.org>
19178         gettext po infrastructure: Update from current gettext git.
19179         Reported by Akim Demaille <akim@lrde.epita.fr>.
19180         * build-aux/po/Makefile.in.in: Update from current gettext git.
19181         * build-aux/po/remove-potcdate.sin: Likewise.
19182         * config/srclist.txt: Temporarily disable sync for these files.
19184 2018-06-17  Bruno Haible  <bruno@clisp.org>
19186         getloadavg: Return 0 on Windows without Cygwin.
19187         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19189 2018-06-17  Paul Smith  <psmith@gnu.org>
19191         getloadavg: Allow building on Windows without Cygwin
19192         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19193         * m4/getloadavg.m4: Check for unistd.h.
19195 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19197         Port crypto/af_alg to GCC 4.8.4
19198         Problem reported by Peter Simons in:
19199         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19200         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19202 2018-05-27  Colin Watson  <cjwatson@debian.org>
19204         bootstrap: document source fetching in --help
19205         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19207 2018-04-09  Colin Watson  <cjwatson@debian.org>
19209         bootstrap: allow non-submodule control of gnulib
19210         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19211         bootstrap.conf when fetching gnulib using "git clone" or via
19212         GNULIB_SRCDIR.
19214 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19216         crypto: omit stream ops Emacs doesn’t need
19217         * lib/md5.c (md5_stream):
19218         * lib/sha1.c (sha1_stream):
19219         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19220         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19221         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19222         defined.  Emacs needs this, as it does not use the stream
19223         operations and doesn’t need all the af_alg stuff we’ve recently
19224         added.  Perhaps a similar change is needed to the other crypto
19225         modules, but this patch changes only those needed for Emacs.
19226         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19227         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19228         New modules, used by Emacs.
19229         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19230         * modules/crypto/sha512: Rewrite to depend on the new modules.
19232 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19234         fts: avoid a memory leak edge case
19235         * lib/fts.c (fts_open): Set an appropriate fts_level
19236         so that an immediate fts_close() will free the allocation.
19237         * tests/test-fts.c (fts_dealloc): Add a test case which
19238         will trigger under valgrind or address sanitizer.
19239         Fixes https://bugs.gnu.org/31439
19241 2018-05-20  Bruno Haible  <bruno@clisp.org>
19243         wcwidth tests: Fix link error.
19244         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19245         $(LIBUNISTRING).
19247 2018-05-20  Bruno Haible  <bruno@clisp.org>
19249         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19250         * modules/regex (Files): Add m4/glibc21.m4.
19252 2018-05-20  Bruno Haible  <bruno@clisp.org>
19254         localcharset: Optimize.
19255         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19256         platforms where these don't matter. This reduces the table size,
19257         which in turn reduces the lookup time.
19259 2018-05-19  Bruno Haible  <bruno@clisp.org>
19261         localcharset: Map the locale encodings found in newer OSes.
19262         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19263         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19264         IRIX 6.5, Minix 3.3.
19265         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19267 2018-05-19  Bruno Haible  <bruno@clisp.org>
19269         localcharset: Move mapping tables into the code. Use a binary search.
19270         * lib/localcharset.h: Document the GNU canonical names for character
19271         encodings here.
19272         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19273         relocatable.h, configmake.h.
19274         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19275         macros.
19276         (charset_aliases): Remove variable.
19277         (get_charset_aliases): Remove function.
19278         (struct table_entry): New type.
19279         (alias_table, locale_table): New constants.
19280         (locale_charset): Use the alias_table or locale_table to get the
19281         canonicalized encoding name.
19282         * lib/config.charset: Remove file.
19283         * lib/ref-add.sin: Remove file.
19284         * lib/ref-del.sin: Remove file.
19285         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19286         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19287         * modules/localcharset (Notice): Remove.
19288         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19289         glibc21.m4.
19290         (Depends-on): Remove configmake.
19291         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19292         (Makefile.am): Simplify.
19293         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19295 2018-05-19  Bruno Haible  <bruno@clisp.org>
19297         localcharset: Add a manual test.
19298         * tests/test-localcharset.c: New file.
19299         * modules/localcharset-tests: New file.
19301 2018-05-19  Bruno Haible  <bruno@clisp.org>
19303         localcharset: Remove support for obsolete platforms.
19304         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19305         Mac OS X 10.2. Comment out dubious entry for Solaris.
19307 2018-05-19  Jim Meyering  <meyering@fb.com>
19309         gnupload: adjust comment
19310         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19311         more likely we'll remove the just-added code in a year or two.
19313 2018-05-19  Bruno Haible  <bruno@clisp.org>
19315         gnupload: Fix "gpg-agent is not available in this session" error.
19316         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19318 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19320         crypto/af_alg: fix --help
19321         * m4/af_alg.m4: Avoid spurious newline in --help output.
19323 2018-05-13  Bruno Haible  <bruno@clisp.org>
19325         nl_langinfo: Fix compilation error on Android.
19326         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19327         INT_CURR_SYMBOL, etc. only if these items are defined.
19329 2018-05-13  Bruno Haible  <bruno@clisp.org>
19331         truncate: Fix compilation error on Android.
19332         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19333         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19334         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19335         HAVE_TRUNCATE.
19336         * modules/truncate: Likewise.
19337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19338         not HAVE_TRUNCATE.
19339         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19340         HAVE_TRUNCATE.
19341         * doc/posix-functions/truncate.texi: Mention the issue.
19343 2018-05-13  Bruno Haible  <bruno@clisp.org>
19345         pthread: Fix compilation error on Android.
19346         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19347         recursive inclusion of this file.
19349 2018-05-13  Bruno Haible  <bruno@clisp.org>
19351         posix_spawn: Fix compilation error on Android.
19352         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19353         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19354         (posix_spawn_file_actions_t): Consider also the case
19355         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19357 2018-05-13  Bruno Haible  <bruno@clisp.org>
19359         tsearch: Move from K&R C to ANSI C.
19360         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19362 2018-05-13  Bruno Haible  <bruno@clisp.org>
19364         tsearch: Fix compilation error on Android.
19365         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19366         is 0.
19367         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19368         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19369         GNULIB_defined_tsearch is true.
19370         (twalk): Define only if GNULIB_defined_twalk is true.
19371         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19372         is 0.
19373         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19374         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19375         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19377 2018-05-13  Bruno Haible  <bruno@clisp.org>
19379         imaxdiv: Fix compilation error on Android.
19380         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19381         is not defined.
19382         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19383         HAVE_DECL_IMAXDIV, is 0.
19384         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19385         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19387 2018-05-13  Bruno Haible  <bruno@clisp.org>
19389         Support selective inclusion mechanism of recent mingw.org header files.
19390         Reported by Eli Zaretskii <eliz@gnu.org>.
19391         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19392         __need_ssize_t, or __need_time_t is defined, just include the system's
19393         <sys/types.h>.
19394         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19395         include the system's <locale.h>.
19397 2018-05-13  Bruno Haible  <bruno@clisp.org>
19399         Avoid compilation error due to 'mmap' on Android.
19400         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19401         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19402         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19403         Undefine on Android.
19405 2018-05-13  Bruno Haible  <bruno@clisp.org>
19407         Add cross-compilation guesses for Linux systems without glibc.
19408         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19410         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19411         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19412         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19413         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19414         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19415         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19416         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19417         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19418         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19419         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19420         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19421         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19422         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19423         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19424         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19425         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19427 2018-05-13  Bruno Haible  <bruno@clisp.org>
19429         getpagesize: Fix compilation error on Android.
19430         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19431         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19432         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19433         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19434         HAVE_GETPAGESIZE accordingly.
19435         * modules/getcwd (Files): Add m4/getpagesize.m4.
19437 2018-05-13  Bruno Haible  <bruno@clisp.org>
19439         tcgetsid: Fix compilation error on Android.
19440         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19441         AC_CHECK_FUNC.
19443 2018-05-13  Bruno Haible  <bruno@clisp.org>
19445         getpass: Fix configure test for Android.
19446         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19447         AC_CHECK_FUNC.
19449 2018-05-13  Bruno Haible  <bruno@clisp.org>
19451         ffs: Fix compilation error on Android.
19452         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19454 2018-05-13  Bruno Haible  <bruno@clisp.org>
19456         mkfifo: Fix compilation error on Android.
19457         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19458         AC_CHECK_FUNC.
19460 2018-05-13  Bruno Haible  <bruno@clisp.org>
19462         c-strtod: Fix configure test for Android.
19463         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19464         AC_CHECK_FUNC.
19466 2018-05-13  Bruno Haible  <bruno@clisp.org>
19468         random: Fix compilation error on Android.
19469         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19470         AC_CHECK_FUNC.
19472 2018-05-13  Bruno Haible  <bruno@clisp.org>
19474         grantpt: Fix compilation error on Android.
19475         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19476         AC_CHECK_FUNC.
19478 2018-05-13  Bruno Haible  <bruno@clisp.org>
19480         stdioext: Fix compilation errors with newer Android headers.
19481         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19482         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19483         fallbacks for Android.
19484         * lib/fpending.c: Update comments.
19485         * lib/fpurge.c: Likewise.
19486         * lib/freadable.h: Likewise.
19487         * lib/freadable.c: Likewise.
19488         * lib/freadahead.c: Likewise.
19489         * lib/freading.h: Likewise.
19490         * lib/freadptr.c: Likewise.
19491         * lib/fseterr.c: Likewise.
19492         * lib/fwritable.h: Likewise.
19493         * lib/fwritable.c: Likewise.
19494         * lib/fwriting.h: Likewise.
19495         * lib/fwriting.c: Likewise.
19497 2018-05-13  Bruno Haible  <bruno@clisp.org>
19499         doc: Add info about Android versions 2.0 to 8.1.
19500         * doc/**/*.texi: Add info about functions in all released versions of
19501         Bionic.
19503 2018-05-12  Bruno Haible  <bruno@clisp.org>
19505         fseeko: On mingw, don't use the hidden function _fseeki64.
19506         Reported by Eli Zaretskii <eliz@gnu.org>.
19507         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19508         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19510 2018-05-12  Bruno Haible  <bruno@clisp.org>
19512         glob: Choose 'dirent_type' in a way that works better on mingw.
19513         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19514         * lib/glob.c (dirent_type): Define as uint_fast32_t.
19516 2018-05-12  Bruno Haible  <bruno@clisp.org>
19518         execute, spawn-pipe: Avoid warning about redefining 'close'.
19519         Reported by Eli Zaretskii <eliz@gnu.org>.
19520         * lib/execute.c: Undefine 'close' before redefining it.
19521         * lib/spawn-pipe.c: Likewise.
19523 2018-05-12  Bruno Haible  <bruno@clisp.org>
19525         nanosleep: Avoid test failure on mingw when it has nanosleep.
19526         Reported by Eli Zaretskii <eliz@gnu.org>.
19527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
19528         If it does not exist, use a simpler test program that does not call
19529         alarm().
19531 2018-05-10  Bruno Haible  <bruno@clisp.org>
19533         lock, cond, thread, tls: Use a different symbol as libpthread witness.
19534         Reported by Devin Hussey <husseydevin@gmail.com>.
19535         Based on a patch by Paul Eggert.
19536         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
19537         as witness of libpthread.
19538         * lib/glthread/cond.h (pthread_in_use): Likewise.
19539         * lib/glthread/thread.h (pthread_in_use): Likewise.
19540         * lib/glthread/tls.h (pthread_in_use): Likewise.
19542 2018-05-10  Bruno Haible  <bruno@clisp.org>
19544         cond tests: Fix compilation error on Solaris.
19545         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
19546         macro.
19548 2018-05-10  Bruno Haible  <bruno@clisp.org>
19550         doc: Add partial info about Android 4.3.
19551         * doc/*-functions/*.texi: Add info about functions that were added
19552         to Bionic between Android 4.3 and Android 9.0.
19554 2018-05-10  Bruno Haible  <bruno@clisp.org>
19556         doc: Add info about Android 9.0.
19557         * doc/**/*.texi: Add info about functions and headers in Bionic from
19558         Android 9.0.
19560 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19562         af_alg: fix my typo in afalg_buffer
19563         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
19564         (afalg_stream): Simplify and avoid the need for a runtime test
19565         at the end.
19567         af_alg: recover better from crypto failures
19568         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
19569         input stream is seekable, by repositioning the stream back to
19570         where it was, possibly by just calling sendfile with an offset
19571         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
19572         cases, which lets our callers try again with user-mode code.
19573         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
19574         instead of on fflush and lseek.
19576         af_alg: distiguish I/O errors better
19577         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
19578         not -EIO, if it’s OK for the caller to try again with user-mode code.
19579         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
19580         some other error number) if fflush fails, as the caller should not
19581         try again that case.
19583         af_alg: avoid gotos
19584         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
19585         gotos, as they were a source of unreliability and made the code a
19586         bit harder to follow.
19588         af_alg: don’t leak file descriptors into children
19589         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
19590         This code should be compiled only on recent GNU/Linux platforms
19591         so we shouldn’t have to also depend on the accept4 module.
19593         af_alg: coalesce socket creation
19594         * lib/af_alg.c (alg_socket): New function.
19595         (afalg_buffer, afalg_stream): Use it.  This avoids some
19596         code duplication and gotos.
19598         af_alg: fix file descriptor leak
19599         * lib/af_alg.c (afalg_stream): Close leak.
19601         af_alg: Pacify --enable-gcc-warnings on GCC 8
19602         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19603         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19605 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19607         af_alg: Pacify --enable-gcc-warnings
19608         Problem reported by Assaf Gordon in:
19609         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
19610         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
19611         gcc -Wjump-misses-init.
19612         * lib/sha512.c (shaxxx_stream): Now static.
19614 2018-05-06  Bruno Haible  <bruno@clisp.org>
19616         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19617         * lib/af_alg.h (afalg_buffer): New declaration.
19618         * lib/af_alg.c (afalg_buffer): New function.
19620 2018-05-06  Bruno Haible  <bruno@clisp.org>
19622         af_alg: Avoid warnings.
19623         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19624         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19626 2018-05-06  Bruno Haible  <bruno@clisp.org>
19628         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19629         * tests/bench-digest.h: New file.
19630         * tests/bench-md5.c: New file.
19631         * tests/bench-sha1.c: New file.
19632         * tests/bench-sha224.c: New file.
19633         * tests/bench-sha256.c: New file.
19634         * tests/bench-sha384.c: New file.
19635         * tests/bench-sha512.c: New file.
19636         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19637         tests/bench-digest.h.
19638         (Depends-on): Add getrusage, gettimeofday.
19639         (Makefile.am): Add variables to build bench-md5.
19640         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19641         tests/bench-digest.h.
19642         (Depends-on): Add getrusage, gettimeofday.
19643         (Makefile.am): Add variables to build bench-sha1.
19644         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19645         tests/bench-sha256.c, tests/bench-digest.h.
19646         (Depends-on): Add getrusage, gettimeofday.
19647         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19648         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19649         tests/bench-sha512.c, tests/bench-digest.h.
19650         (Depends-on): Add getrusage, gettimeofday.
19651         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19653 2018-05-06  Bruno Haible  <bruno@clisp.org>
19655         af_alg: Fix a resource leak.
19656         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19657         New local variable 'result'.
19659 2018-05-06  Bruno Haible  <bruno@clisp.org>
19661         af_alg: Fix bug with streams that are not at position 0.
19662         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19663         assume that the stream is positioned at position 0.
19664         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19665         of the stream.
19666         * lib/md5.h (md5_stream): Likewise.
19667         * lib/sha1.h (sha1_stream): Likewise.
19668         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19669         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19670         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19672         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19673         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19674         stream that is not positioned at the beginning.
19676 2018-05-06  Bruno Haible  <bruno@clisp.org>
19678         af_alg: Add configure option to enable/disable use of Linux crypto API.
19679         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19680         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19681         USE_LINUX_CRYPTO_API.
19682         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19683         * lib/af_alg.c: Likewise.
19685 2018-05-06  Bruno Haible  <bruno@clisp.org>
19687         Followup to 'af_alg: New module.'.
19688         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19689         * modules/crypto/sha1 (Depends-on): Likewise.
19690         * modules/crypto/sha256 (Depends-on): Likewise.
19691         * modules/crypto/sha512 (Depends-on): Likewise.
19693 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19695         crypto/{md5,sha1,sha256,sha512}: simplify
19696         * lib/md5.c (md5_stream):
19697         * lib/sha1.c (sha1_stream):
19698         * lib/sha256.c (shaxxx_stream):
19699         Simplify, partly by assuming C99.
19700         * lib/sha256.c (shaxxx_stream):
19701         New function, which implements both sha256 and sha224.
19702         Simplify, partly by assuming C99.
19703         (sha256_stream, sha224_stream):
19704         Use it to avoid code duplication, removing a FIXME.
19705         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19706         Likewise.
19708         af_alg: Improve comments.
19709         * lib/af_alg.h: Use imperatives and tighten up wording.
19711 2018-05-05  Bruno Haible  <bruno@clisp.org>
19713         af_alg: Improve comments.
19714         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19716 2018-05-05  Bruno Haible  <bruno@clisp.org>
19718         af_alg: New module.
19719         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19720         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19721         * lib/md5.c: Include "af_alg.h" unconditionally.
19722         (md5_stream): Invoke afalg_stream unconditionally.
19723         * lib/sha1.c: Include "af_alg.h" unconditionally.
19724         (sha1_stream): Invoke afalg_stream unconditionally.
19725         * lib/sha256.c: Include "af_alg.h" unconditionally.
19726         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19727         * lib/sha512.c: Include "af_alg.h" unconditionally.
19728         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19729         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19730         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19731         * modules/crypto/af_alg: New file.
19732         * modules/crypto/md5 (Files): Remove files that are now in the
19733         'crypto/af_alg' module.
19734         (Depends-on): Add crypto/af_alg.
19735         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19736         (Makefile.am): Don't mention af_alg.c here.
19737         * modules/crypto/sha1 (Files): Remove files that are now in the
19738         'crypto/af_alg' module.
19739         (Depends-on): Add crypto/af_alg.
19740         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19741         (Makefile.am): Don't mention af_alg.c here.
19742         * modules/crypto/sha256 (Files): Remove files that are now in the
19743         'crypto/af_alg' module.
19744         (Depends-on): Add crypto/af_alg.
19745         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19746         (Makefile.am): Don't mention af_alg.c here.
19747         * modules/crypto/sha512 (Files): Remove files that are now in the
19748         'crypto/af_alg' module.
19749         (Depends-on): Add crypto/af_alg.
19750         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19751         (Makefile.am): Don't mention af_alg.c here.
19753 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19755         crypto tests: pacify GCC
19756         * tests/test-digest.h (test_digest_on_files):
19757         Don’t assume digest size fits in int (!).
19759         af_alg: minor style improvements
19760         * lib/af_alg.c (afalg_stream): Prefer C99 style
19761         decl-after-statement, since we’re already assuming C99.  Clarify
19762         by strengthening the bind test and omit unnecessary assignment.
19764 2018-05-05  Bruno Haible  <bruno@clisp.org>
19766         af_alg: Fix bug on empty files.
19767         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19768         stream is empty.
19770 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19772         sys-limits.h: new file for crypto and safe I/O
19773         * lib/af_alg.c: Include sys-limits.h.
19774         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19775         (afalg_stream): Also reject negative sizes for sendfile; they
19776         should not happen and the code is a bit cleaner and faster this way.
19777         * lib/safe-read.c: Include sys-limits.h.
19778         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19779         * lib/sys-limits.h: New file, with values and commentary derived
19780         from the old safe-read.c and from GNU Emacs sysdep.c.
19781         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19782         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19783         Add lib/sys-limits.h to Files section.
19785 2018-05-05  Bruno Haible  <bruno@clisp.org>
19787         af_alg: Improve function signature.
19788         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19789         * lib/af_alg.c (afalg_stream): Likewise.
19790         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19792 2018-05-05  Bruno Haible  <bruno@clisp.org>
19794         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19795         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19796         * modules/crypto/sha1 (Depends-on): Likewise.
19797         * modules/crypto/sha256 (Depends-on): Likewise.
19798         * modules/crypto/sha512 (Depends-on): Likewise.
19800 2018-05-05  Bruno Haible  <bruno@clisp.org>
19802         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19803         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19804         * modules/crypto/sha1 (Depends-on): Likewise.
19805         * modules/crypto/sha256 (Depends-on): Likewise.
19806         * modules/crypto/sha512 (Depends-on): Likewise.
19808 2018-05-05  Bruno Haible  <bruno@clisp.org>
19810         af_alg: Add documentation.
19811         * lib/af_alg.h: Add comments.
19813 2018-05-05  Bruno Haible  <bruno@clisp.org>
19815         sha512: Add tests.
19816         * tests/test-sha512.c: New file.
19817         * modules/crypto/sha512-tests: New file.
19819 2018-05-05  Bruno Haible  <bruno@clisp.org>
19821         sha256: Add tests.
19822         * tests/test-sha256.c: New file.
19823         * modules/crypto/sha256-tests: New file.
19825 2018-05-05  Bruno Haible  <bruno@clisp.org>
19827         sha1 tests: Add test for sha1_stream.
19828         * tests/test-sha1.c: Include test-digest.h.
19829         (main): Invoke test_digest_on_files on 'sha1_stream'.
19830         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19832 2018-05-05  Bruno Haible  <bruno@clisp.org>
19834         md5 tests: Add test for md5_stream.
19835         * tests/test-digest.h: New file.
19836         * tests/test-md5.c: Include test-digest.h.
19837         (main): Invoke test_digest_on_files on 'md5_stream'.
19838         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19840 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19842         md5sum: Use AF_ALG when available.
19843         * lib/md5.c: Include af_alg.h.
19844         (md5_stream): Use afalg_stream when available.
19845         * modules/crypto/md5 (Files): Add the af_alg files.
19846         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19847         (Makefile.am): Add af_alg.c.
19849 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19851         sha512sum: Use AF_ALG when available.
19852         * lib/sha512.c: Include af_alg.h.
19853         (sha512_stream, sha384_stream): Use afalg_stream when available.
19854         * modules/crypto/sha512 (Files): Add the af_alg files.
19855         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19856         (Makefile.am): Add af_alg.c.
19858 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19860         sha256sum: Use AF_ALG when available.
19861         * lib/sha256.c: Include af_alg.h.
19862         (sha256_stream, sha224_stream): Use afalg_stream when available.
19863         * modules/crypto/sha256 (Files): Add the af_alg files.
19864         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19865         (Makefile.am): Add af_alg.c.
19867 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19869         sha1sum: Use AF_ALG when available.
19870         * lib/af_alg.h: New file.
19871         * lib/af_alg.c: New file.
19872         * lib/sha1.c: Include af_alg.h.
19873         (sha1_stream): Use afalg_stream when available.
19874         * m4/linux-if-alg.m4: New file.
19875         * modules/crypto/sha1 (Files): Add the new files.
19876         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19877         (Makefile.am): Add af_alg.c.
19879 2018-05-05  Bruno Haible  <bruno@clisp.org>
19881         all: Replace more http URLs by https URLs.
19882         * lib/localename.c: Use https: URL.
19883         * lib/timespec.h: Likewise.
19885 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19887         maint: port more modules to GCC 8
19888         * lib/dirname.h (base_name):
19889         * lib/exclude.h (new_exclude):
19890         * lib/xstrndup.h (xstrndup):
19891         Add malloc attribute.
19892         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19893         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19894         This pacifies GCC 8.
19895         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19896         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19898 2018-05-03  Bruno Haible  <bruno@clisp.org>
19900         Simplify code. Drop support for Borland C++ on Windows.
19901         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19902         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19903         'defined _WIN32'.
19904         * lib/canonicalize-lgpl.c: Likewise.
19905         * lib/classpath.c: Likewise.
19906         * lib/clean-temp.c: Likewise.
19907         * lib/csharpexec.c: Likewise.
19908         * lib/ctime.c: Likewise.
19909         * lib/dosname.h: Likewise.
19910         * lib/dup2.c: Likewise.
19911         * lib/errno.in.h: Likewise.
19912         * lib/error.c: Likewise.
19913         * lib/euidaccess.c: Likewise.
19914         * lib/execute.c: Likewise.
19915         * lib/fcntl.in.h: Likewise.
19916         * lib/fcntl.c: Likewise.
19917         * lib/filename.h: Likewise.
19918         * lib/findprog.c: Likewise.
19919         * lib/flock.c: Likewise.
19920         * lib/fopen.c: Likewise.
19921         * lib/freopen.c: Likewise.
19922         * lib/fstat.c: Likewise.
19923         * lib/fsync.c: Likewise.
19924         * lib/gc-gnulib.c: Likewise.
19925         * lib/get-rusage-data.c: Likewise.
19926         * lib/getaddrinfo.c: Likewise.
19927         * lib/getdelim.c: Likewise.
19928         * lib/getdtablesize.c: Likewise.
19929         * lib/gethostname.c: Likewise.
19930         * lib/getlogin.c: Likewise.
19931         * lib/getlogin_r.c: Likewise.
19932         * lib/getopt.c: Likewise.
19933         * lib/getpagesize.c: Likewise.
19934         * lib/getpass.c: Likewise.
19935         * lib/getrusage.c: Likewise.
19936         * lib/gettimeofday.c: Likewise.
19937         * lib/glob.c: Likewise.
19938         * lib/inttypes.in.h: Likewise.
19939         * lib/isapipe.c: Likewise.
19940         * lib/javaexec.c: Likewise.
19941         * lib/link.c: Likewise.
19942         * lib/localcharset.c: Likewise.
19943         * lib/localename.h: Likewise.
19944         * lib/localename.c: Likewise.
19945         * lib/localtime.c: Likewise.
19946         * lib/lseek.c: Likewise.
19947         * lib/mbsinit.c: Likewise.
19948         * lib/mkdir.c: Likewise.
19949         * lib/msvc-nothrow.h: Likewise.
19950         * lib/nanosleep.c: Likewise.
19951         * lib/nl_langinfo.c: Likewise.
19952         * lib/nonblocking.c: Likewise.
19953         * lib/nproc.c: Likewise.
19954         * lib/open.c: Likewise.
19955         * lib/openpty.c: Likewise.
19956         * lib/pathmax.h: Likewise.
19957         * lib/pipe-filter-aux.c: Likewise.
19958         * lib/pipe-filter-gi.c: Likewise.
19959         * lib/pipe-filter-ii.c: Likewise.
19960         * lib/pipe.c: Likewise.
19961         * lib/pipe2.c: Likewise.
19962         * lib/poll.c: Likewise.
19963         * lib/popen.c: Likewise.
19964         * lib/posix_openpt.c: Likewise.
19965         * lib/printf-parse.c: Likewise.
19966         * lib/progreloc.c: Likewise.
19967         * lib/putenv.c: Likewise.
19968         * lib/read.c: Likewise.
19969         * lib/relocatable.c: Likewise.
19970         * lib/rename.c: Likewise.
19971         * lib/same-inode.h: Likewise.
19972         * lib/secure_getenv.c: Likewise.
19973         * lib/select.c: Likewise.
19974         * lib/sethostname.c: Likewise.
19975         * lib/setlocale.c: Likewise.
19976         * lib/sigaction.c: Likewise.
19977         * lib/sigprocmask.c: Likewise.
19978         * lib/sleep.c: Likewise.
19979         * lib/spawn-pipe.h: Likewise.
19980         * lib/spawn-pipe.c: Likewise.
19981         * lib/spawni.c: Likewise.
19982         * lib/stat-time.h: Likewise.
19983         * lib/stat-w32.c: Likewise.
19984         * lib/stat.c: Likewise.
19985         * lib/stdio.in.h: Likewise.
19986         * lib/stdio-impl.h: Likewise.
19987         * lib/stdio-read.c: Likewise.
19988         * lib/stdio-write.c: Likewise.
19989         * lib/stdlib.in.h: Likewise.
19990         * lib/strerror_r.c: Likewise.
19991         * lib/strftime-fixes.c: Likewise.
19992         * lib/sys_stat.in.h: Likewise.
19993         * lib/sys_types.in.h: Likewise.
19994         * lib/sys_wait.in.h : Likewise.
19995         * lib/system-quote.h: Likewise.
19996         * lib/system-quote.c: Likewise.
19997         * lib/tmpdir.c: Likewise.
19998         * lib/tzset.c: Likewise.
19999         * lib/uname.c: Likewise.
20000         * lib/unistd.in.h: Likewise.
20001         * lib/utime.in.h: Likewise.
20002         * lib/utime.c: Likewise.
20003         * lib/utimecmp.c: Likewise.
20004         * lib/utimens.c: Likewise.
20005         * lib/vasnprintf.c: Likewise.
20006         * lib/vma-iter.h: Likewise.
20007         * lib/vma-iter.c: Likewise.
20008         * lib/wait-process.c: Likewise.
20009         * lib/wcsftime.c: Likewise.
20010         * lib/wctype.in.h: Likewise.
20011         * lib/write.c: Likewise.
20012         * tests/nap.h: Likewise.
20013         * tests/test-cloexec.c: Likewise.
20014         * tests/test-dup-safer.c: Likewise.
20015         * tests/test-dup2.c: Likewise.
20016         * tests/test-dup3.c: Likewise.
20017         * tests/test-fcntl.c: Likewise.
20018         * tests/test-get-rusage-data.c: Likewise.
20019         * tests/test-getaddrinfo.c: Likewise.
20020         * tests/test-getlogin.h: Likewise.
20021         * tests/test-isatty.c: Likewise.
20022         * tests/test-localename.c: Likewise.
20023         * tests/test-mbrtowc-w32.c: Likewise.
20024         * tests/test-nonblocking.c: Likewise.
20025         * tests/test-nonblocking-pipe-main.c: Likewise.
20026         * tests/test-nonblocking-socket-main.c: Likewise.
20027         * tests/test-nonblocking-socket.h: Likewise.
20028         * tests/test-pipe.c: Likewise.
20029         * tests/test-pipe2.c: Likewise.
20030         * tests/test-poll.c: Likewise.
20031         * tests/test-pthread_sigmask1.c: Likewise.
20032         * tests/test-select.h: Likewise.
20033         * tests/test-sethostname2.c: Likewise.
20034         * tests/test-sigprocmask.c: Likewise.
20035         * tests/test-spawn-pipe-child.c: Likewise.
20036         * tests/test-stat-time.c: Likewise.
20037         * tests/test-system-quote-main.c: Likewise.
20038         * tests/test-utimens-common.h: Likewise.
20039         * tests/test-wcrtomb-w32.c: Likewise.
20040         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20041         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20042         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20043         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20044         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20045         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20046         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20047         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20049         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20050         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20051         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20052         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20053         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20054         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20055         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20057 2018-05-02  Bruno Haible  <bruno@clisp.org>
20059         localename: Fix test failures on mingw.
20060         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20061         native Windows.
20062         (gl_locale_name_posix): Move code specific to native Windows here.
20063         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20064         Accept result without charset suffix, as it appears on mingw.
20066 2018-04-28  Paul Smith  <psmith@gnu.org>
20068         bootstrap: Avoid gnulib operations if not needed
20069         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20070         Set $gnulib_extra_files early so it can be overridden in .conf.
20071         Remove redundant --import flag from $gnulib_tool_options.
20072         Set $use_gnulib to false if no gnulib modules or files are needed.
20073         If $use_gnulib is false, don't do anything related to gnulib.
20074         A lot of this is just whitespace (indentation) changes.
20076 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20078         manywarnings: port to GCC 8.0
20079         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20080         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20081         fact that the GCC help message now mentions operands for
20082         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20083         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20084         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20085         and -Wunused-const-variable.
20086         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20087         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20088         -Wmissing-attributes, -Wmultistatement-macros,
20089         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20090         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20092 2018-04-24  Bruno Haible  <bruno@clisp.org>
20094         sys_socket: Make SO_REUSEPORT available across platforms.
20095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20096         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20097         * doc/posix-headers/sys_socket.texi: Mention the issue.
20098         * tests/test-poll.c (SO_REUSEPORT): Remove.
20099         * tests/test-select.h: Include <sys/socket.h>.
20100         (SO_REUSEPORT): Remove.
20101         * modules/select-tests (Depends-on): Add 'sys_socket'.
20103 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20105         localcharset: short-circuit the search for an alias on a Mac
20106         * lib/localcharset.c (get_charset_aliases): Add a tautological
20107         UTF-8 entry to speed up the search for this case.
20108         Most machines default to a UTF-8 locale nowadays, so begin the
20109         list of aliases with a dummy UTF-8 entry so it will be found
20110         immediately and a time-consuming search through the rest of
20111         the list is avoided.
20113 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20115         fts: add comment
20116         * lib/fts.c (fts_build): Explain why ==, not >.
20117         See remark by Bernhard Voelker in:
20118         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20120         fts: fix bug in find across filesystems
20121         This fixes a bug I introduced last summer.
20122         Problem reported by Kamil Dudka in:
20123         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20124         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20125         (leaf_optimization):
20126         New arg for file descriptor.  All callers changed.
20127         (fts_build): Check for whether inodes should be sorted
20128         before closing the directory.
20130 2018-04-07  Bruno Haible  <bruno@clisp.org>
20132         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20133         Reported by Genki Sky <sky@genki.is>.
20134         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20135         version 0.9.10 or newer.
20136         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20137         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20138         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20139         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20140         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20142 2018-04-07  Bruno Haible  <bruno@clisp.org>
20144         execute: Update comment.
20145         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20147 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20149         fts: treat CIFS like NFS
20150         Problem reported by Kamil Dudka in:
20151         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20152         * lib/fts.c (S_MAGIC_CIFS): New macro.
20153         (dirent_inode_sort_may_be_useful, leaf_optimization):
20154         Treat CIFS like NFS.
20156 2018-03-28  Bruno Haible  <bruno@clisp.org>
20158         c-stack: Fix possible build failure on some platforms.
20159         * lib/c-stack.c (die): Define whenever this function is referenced.
20161 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20163         time_rz: fix workaround for Mac OS X 10.6 infloop
20164         Problems reported by Charles A. Roelli (Bug#27736#117).
20165         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20166         Also, discard output, which clutters the 'configure' log.
20168 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20170         havelib: port to Solaris 10 /bin/sh
20171         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20172         instead of '! test EXPR'.
20174 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20176         time_rz: work around Mac OS X 10.6 infloop
20177         * doc/posix-functions/localtime.texi:
20178         * doc/posix-functions/localtime_r.texi: Mention the bug.
20179         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20180         better to fix localtime and localtime_r instead, but that would be
20181         more work and is not needed to fix the Emacs problem.
20182         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20184 2018-03-24  Jim Meyering  <meyering@fb.com>
20186         test-version-etc.sh: don't use diff directly: use init.sh's compare
20187         We'd rather not sacrifice readable "diff -u" output even for
20188         "diff -c" output (not supported by busybox) or for even less
20189         readable ed-style "diff" output.  So use init.sh's compare function
20190         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20191         Remove "./" from invocation of test-version-etc, so we use path.
20192         And s/diff/compare/.
20193         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20194         to get init.sh.
20195         Prompted by Eric Blake's comments in
20196         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20198 2018-03-24  Bruno Haible  <bruno@clisp.org>
20200         javacomp-script, javacomp: Add support for Java 10.
20201         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20202         target-version 10.
20203         * lib/javaversion.h: Update comments.
20204         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20205         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20206         TARGET_VERSION_BOUND, target_version_index,
20207         corresponding_classfile_version): Accept source_version 10 and
20208         target_version 10.
20209         * lib/javacomp.h: Update comments accordingly.
20211 2018-03-24  Bruno Haible  <bruno@clisp.org>
20213         javacomp-script, javacomp: Update comments.
20214         * m4/javacomp.m4: Update comments regarding gcj.
20215         * lib/javacomp.h: Likewise.
20217 2018-03-24  Bruno Haible  <bruno@clisp.org>
20219         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20220         * lib/javaversion.h: Update comments.
20221         * lib/javacomp.h: Likewise.
20222         * lib/javacomp.c (default_target_version, source_version_index,
20223         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20224         "1.9".
20225         (TARGET_VERSION_BOUND): Bump to 9.
20226         (target_version_index, corresponding_classfile_version): Recognize "9"
20227         instead of "1.9".
20228         (get_source_version_for_javac): New function.
20229         (is_envjavac_nongcj_usable, is_javac_usable): Add
20230         source_version_for_javac argument.
20231         (compile_java_class): Determine and pass source_version_for_javac.
20232         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20233         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20234         appropriate.
20236 2018-03-23  Jim Meyering  <meyering@fb.com>
20238         test-version-etc.sh: port to diff without -c
20239         * tests/test-version-etc.sh: Don't use diff's -c option.
20240         This caused spurious test failure on Alpine Linux, which
20241         uses busybox's diff. Reported by Assaf Gordon in
20242         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20244 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20246         c-stack: port to recent GCC build
20247         Problem reported by The Fireplace (Bug#30913).
20248         * lib/c-stack.c (die): Define only if used.
20250 2018-03-20  Bruno Haible  <bruno@clisp.org>
20252         euidaccess: Port to native Windows.
20253         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20254         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20256 2018-03-19  Bruno Haible  <bruno@clisp.org>
20258         javacomp: Add support for Java 7, 8, 9.
20259         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20260         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20261         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20262         and target_version 1,7, 1.8, 1.9.
20263         * lib/javacomp.h: Update comments accordingly.
20265 2018-03-19  Bruno Haible  <bruno@clisp.org>
20267         javacomp-script: Add support for Java 9.
20268         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20269         target-version 1.9.
20271 2018-03-16  Bruno Haible  <bruno@clisp.org>
20273         glob: Don't compile replacements on recent glibc systems.
20274         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20275         REPLACE_GLOB is 0, include the system's <glob.h> and use
20276         _GL_CXXALIAS_SYS.
20277         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20278         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20279         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20280         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20281         Remove snippet/warn-on-use.
20282         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20283         (Makefile.am): Create glob.h always. Update list of substitutions in
20284         glob.h. Don't depend on $(WARN_ON_USE_H).
20286 2018-03-16  Bruno Haible  <bruno@clisp.org>
20288         glob: Fix link error on native Windows.
20289         * modules/glob (Depends-on): Add 'lstat'.
20291 2018-03-15  Bruno Haible  <bruno@clisp.org>
20293         glob: Fix compilation error in C++ mode.
20294         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20296 2018-03-15  Bruno Haible  <bruno@clisp.org>
20298         host-cpu-c-abi: Support for RISC-V CPU.
20299         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20300         riscv32 and riscv64 ABIs.
20301         References:
20302         https://github.com/riscv/riscv-toolchain-conventions
20303         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20304         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20306 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20308         fflush: be more paranoid about libio.h change
20309         Suggested by Eli Zaretskii in:
20310         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20311         * lib/fbufmode.c (fbufmode):
20312         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20313         (disable_seek_optimization, rpl_fflush):
20314         * lib/fpending.c (__fpending):
20315         * lib/fpurge.c (fpurge):
20316         * lib/freadable.c (freadable):
20317         * lib/freadahead.c (freadahead):
20318         * lib/freading.c (freading):
20319         * lib/freadptr.c (freadptr):
20320         * lib/freadseek.c (freadptrinc):
20321         * lib/fseeko.c (fseeko):
20322         * lib/fseterr.c (fseterr):
20323         * lib/fwritable.c (fwritable):
20324         * lib/fwriting.c (fwriting):
20325         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20327 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20329         maint: write-file-hooks -> before-save-hook
20330         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20331         it's time to use the recommended replacement.
20332         Problem reported by Glenn Morris in:
20333         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20334         * build-aux/announce-gen, build-aux/bootstrap:
20335         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20336         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20337         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20338         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20339         * build-aux/update-copyright, build-aux/useless-if-before-free:
20340         * build-aux/vc-list-files:
20341         Update hook usage for files where Gnulib is the canonical source.
20343 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20345         binary-io: pacify gcc -Wunused-parameter
20346         Problem reported by Reuben Thomas in:
20347         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20348         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20349         Use _GL_UNUSED where appropriate.
20351         fflush: adjust to glibc 2.28 libio.h removal
20352         Problem reported by Daniel P. Berrangé in:
20353         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20354         * lib/fbufmode.c (fbufmode):
20355         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20356         (disable_seek_optimization, rpl_fflush):
20357         * lib/fpending.c (__fpending):
20358         * lib/fpurge.c (fpurge):
20359         * lib/freadable.c (freadable):
20360         * lib/freadahead.c (freadahead):
20361         * lib/freading.c (freading):
20362         * lib/freadptr.c (freadptr):
20363         * lib/freadseek.c (freadptrinc):
20364         * lib/fseeko.c (fseeko):
20365         * lib/fseterr.c (fseterr):
20366         * lib/fwritable.c (fwritable):
20367         * lib/fwriting.c (fwriting):
20368         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20369         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20370         Define if not already defined.
20372 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20374         environ: fix link error on 32-bit Cygwin
20375         Problem reported for GNU Emacs by Ken Brown in:
20376         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20377         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20379 2018-02-24  Bruno Haible  <bruno@clisp.org>
20381         mbrtowc tests: Fix regression on glibc.
20382         Reported by Bernhard Voelker.
20383         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20385 2018-02-24  Bruno Haible  <bruno@clisp.org>
20387         striconveha, uniconv/*: Avoid test failures on musl libc.
20388         * tests/iconvsupport.c: New file.
20389         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20390         does not support the ISO-2022-JP-2 encoding.
20391         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20392         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20393         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20394         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20395         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20396         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20397         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20398         (Makefile.am): Link test-striconveha with iconvsupport.o.
20399         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20400         tests/iconvsupport.c.
20401         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20402         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20403         tests/iconvsupport.c.
20404         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20405         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20406         tests/iconvsupport.c.
20407         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20408         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20409         tests/iconvsupport.c.
20410         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20411         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20412         tests/iconvsupport.c.
20413         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20414         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20415         tests/iconvsupport.c.
20416         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20418 2018-02-24  Bruno Haible  <bruno@clisp.org>
20420         localename: Add support for musl libc.
20421         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20422         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20423         on Linux platforms which define NL_LOCALE_NAME.
20425 2018-02-24  Bruno Haible  <bruno@clisp.org>
20427         mbrtowc tests: Don't make assumptions about the charset the C locale.
20428         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20429         particular mapping in the C locale.
20431 2018-02-24  Bruno Haible  <bruno@clisp.org>
20433         ptsname_r: Don't expect that this function sets errno.
20434         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20435         from ptsname_r().
20436         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20438 2018-02-23  Bruno Haible  <bruno@clisp.org>
20440         xmalloca: pacify gcc -Wbad-function-cast
20441         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20443 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20445         nl_langinfo: pacify gcc -Wunused-function
20446         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20447         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20448         this case.  Without this change, I got a diagnostic when building
20449         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20451         same: pacify gcc -Wunused-variable
20452         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20453         Omit unused variable.
20455         malloca: pacify gcc -Wbad-function-cast
20456         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20457         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20458         To pacify GCC, I had to cast alloca’s result to some type other
20459         than void * before casting that to uintptr_t.
20461 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20463         utimecmp: new function utimecmpat
20464         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20465         Do not include utimens.h.
20466         (utimecmpat): New function, generalizing utimecmp.
20467         (utimecmp): Now a thin layer around utimecmpat.
20468         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20469         utimensat instead of on lstat and utimens.
20471         same: new function same_nameat
20472         * lib/same.c: Include fcntl.h.
20473         * lib/same.c (same_nameat): New function, generalizing same_name.
20474         (same_name): Now a thin layer around same_nameat.
20475         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20476         * modules/same (Depends-on): Depend on fstatat, openat.
20478 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20480         warnings: Add support for Objective C.
20481         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20482         macro.
20484 2018-02-17  Bruno Haible  <bruno@clisp.org>
20486         lock: Fix test-once1 crash on FreeBSD11.
20487         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20488         'pthread_create', not 'pthread_cancel'.
20490 2018-02-17  Bruno Haible  <bruno@clisp.org>
20492         lock: Add test of gl_once.
20493         * tests/test-once.c: New file.
20494         * modules/lock-tests (Files): Add it.
20495         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20497 2018-02-17  Bruno Haible  <bruno@clisp.org>
20499         thread: Fix compilation error on IRIX.
20500         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20501         needed; include it outside the C++ extern "C" {} block.
20502         * doc/posix-headers/pthread.texi: Mention the problem with
20503         pthread_atfork on IRIX.
20505 2018-02-04  Bruno Haible  <bruno@clisp.org>
20507         nl_langinfo: Override the system's nl_langinfo() when needed.
20508         Reported by Jim Meyering.
20509         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20510         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20512 2018-02-04  Bruno Haible  <bruno@clisp.org>
20514         signal-h, monetary, strings: Fix build failure in some cases.
20515         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20516         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
20517         as delimiter in sed command, not '|'.
20518         * modules/monetary (Makefile.am): Likewise.
20519         * modules/strings (Makefile.am): Likewise.
20521 2018-02-03  Jim Meyering  <meyering@fb.com>
20523         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
20524         * top/maint.mk (sc_file_system): Don't complain about
20525         "/proc/filesystems".
20527 2018-02-03  Bruno Haible  <bruno@clisp.org>
20529         stdlib: Fix compilation error on OpenIndiana.
20530         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
20531         <sys/time.h>.
20532         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20533         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
20535 2018-02-03  Bruno Haible  <bruno@clisp.org>
20537         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
20538         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
20539         and use $EGREP instead of 'grep -E'.
20540         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
20541         'grep -E'.
20543 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20545         malloca: Add a compile-time verification.
20546         * lib/malloca.c (small_t): Verify that it is wide enough.
20547         * modules/malloca (Depends-on): Add verify.
20549 2018-02-02  Bruno Haible  <bruno@clisp.org>
20551         malloca: Add an argument check.
20552         Suggested by Paul Eggert.
20553         * lib/malloca.c (freea): Check against an invalid argument.
20555 2018-02-02  Bruno Haible  <bruno@clisp.org>
20557         localename: Add support for OpenIndiana.
20558         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
20559         Solaris 11 variants with uselocale() but without getlocalename_l().
20561 2018-02-02  Bruno Haible  <bruno@clisp.org>
20563         malloca, xmalloca: Make multithread-safe.
20564         Reported by Florian Weimer <fweimer@redhat.com>.
20565         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
20566         * lib/malloca.h (malloca): In the stack allocation case, return a
20567         pointer that is a multiple of 2 * sa_alignment_max.
20568         (sa_increment): Remove enum item.
20569         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
20570         a pointer that is a multiple of 2 * sa_alignment_max.
20571         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
20572         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
20573         HASH_TABLE_SIZE, mmalloca_results): Remove.
20574         (small_t): New type.
20575         (mmalloca, free): Rewritten.
20576         * lib/malloca.valgrind: Remove file.
20577         * modules/malloca (Files): Remove it.
20578         (Depends-on): Remove verify.
20580 2018-01-31  Bruno Haible  <bruno@clisp.org>
20582         environ: Fix link error on 64-bit Cygwin.
20583         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
20584         __declspec(dllimport) attribute.
20585         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
20587 2018-01-30  Bruno Haible  <bruno@clisp.org>
20589         get-rusage-data: Add support for Minix 3.
20590         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20592 2018-01-30  Bruno Haible  <bruno@clisp.org>
20594         vma-iter: Add support for Minix 3.
20595         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20596         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20598 2018-01-27  Bruno Haible  <bruno@clisp.org>
20600         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20601         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20602         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20603         _HPUX_ALT_XOPEN_SOCKET_API.
20604         * modules/accept (Depends-on): Add 'extensions'.
20605         * modules/getpeername (Depends-on): Likewise.
20606         * modules/getsockname (Depends-on): Likewise.
20607         * modules/getsockopt (Depends-on): Likewise.
20608         * modules/recvfrom (Depends-on): Likewise.
20609         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
20610         * doc/posix-functions/getpeername.texi: Likewise.
20611         * doc/posix-functions/getsockname.texi: Likewise.
20612         * doc/posix-functions/getsockopt.texi: Likewise.
20613         * doc/posix-functions/recvfrom.texi: Likewise.
20615 2018-01-27  Bruno Haible  <bruno@clisp.org>
20617         getsockname tests: More tests.
20618         * tests/test-getsockname.c (open_server_socket): New function, mostly
20619         copied from test-poll.c.
20620         (main): Check that getsockname fills in addr.
20621         * modules/getsockname-tests (Depends-on): Add the necessary
20622         dependencies.
20623         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20625 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20627         manywarnings: fix maintainer comment
20628         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20629         it does not mistakenly think that ‘-1)’ is an option.
20631 2018-01-26  Bruno Haible  <bruno@clisp.org>
20633         langinfo: Fix last commit.
20634         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20635         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20637 2018-01-24  Bruno Haible  <bruno@clisp.org>
20639         langinfo, nl_langinfo: Add support for alternative month names.
20640         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20641         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20642         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20643         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20644         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20645         * doc/posix-functions/nl_langinfo.texi: Likewise.
20647 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20649         Merge strftime.c changes from glibc
20650         This incorporates:
20651         2017-11-14 [BZ #10871] Implement alternative month names
20652         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20653         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20654         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20655         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20656         Use locale_t, not __locale_t.
20657         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20658         (__strftime_internal): Add support for alternate months.
20660 2018-01-23  Bruno Haible  <bruno@clisp.org>
20662         doc: Mention another prerequisite for using Gnulib.
20663         Reported at <https://stackoverflow.com/questions/48378214/>.
20664         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20665         AC_CONFIG_HEADERS.
20667 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20669         build: GuixSD doesn't have /bin/bash
20670         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20672 2018-01-21  Bruno Haible  <bruno@clisp.org>
20674         Avoid test failures on Microsoft Windows Subsystem for Linux.
20675         * tests/test-fcntl.c (main): Allow a different errno.
20676         * tests/test-rename.h (test_rename): Likewise.
20677         * tests/test-renameat.c (main): Likewise.
20678         * tests/test-renameat2.c (main): Likewise.
20680 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20682         filenamecat: make base a suffix of result
20683         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20684         (mfile_name_concat): Always make BASE a suffix of the result, as
20685         cp expects this.  To implement this, separate with '.' instead of
20686         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20687         * tests/test-filenamecat.c (main): Adjust tests to match
20688         current behavior.  Check that BASE_IN_RESULT points to
20689         a copy of BASE and is a suffix of the resultk, and that DIR
20690         is a prefix of the result that is no longer than the prefix
20691         indicated by BASE_IN_RESULT.
20693 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20695         update-copyright: Handle use of ©
20696         * build-aux/update-copyright ($circle_c_re): Update regex to
20697         handle use of © in headers.
20699 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20701         Fix -Wundef warning in user-included header lib/cdefs.h.
20702         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20704 2018-01-04  Bruno Haible  <bruno@clisp.org>
20706         pthread_sigmask: Avoid compilation error on mingw.
20707         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20708         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20709         macro.
20711 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20713         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20714         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20715         Suggested by Bob Proulx (Bug#29968).
20716         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20718 2018-01-02  Eric Blake  <eblake@redhat.com>
20720         stat-time: silence -Wunused-parameter regression
20721         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20722         Prefer attribute over cast-to-void.
20723         (stat_time_normalize): Mark st as potentially unused.
20725 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20727         test-framework-sh: avoid netstat
20728         Problem reported by Kristýna Streitová (Bug#29947).
20729         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20730         deprecated on SuSE and it's not that important anyway.
20732 2018-01-01  Jim Meyering  <meyering@fb.com>
20734         update-copyright: add code to handle more special cases
20735         After running "make update-copyright" this year, five files
20736         required additional manual changes.  Automate those adjustments
20737         for next year.
20738         * Makefile (_year_and_prev): Define.
20739         (update-copyright): Add perl commands to induce this year's post-
20740         update-copyright adjustments.
20742 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20744         version-etc: new year
20745         * build-aux/gendocs.sh (version):
20746         * doc/gendocs_template:
20747         * doc/gendocs_template_min:
20748         * doc/gnulib.texi:
20749         * lib/version-etc.c (COPYRIGHT_YEAR):
20750         Update copyright dates by hand in templates and the like.
20752         maint: fix 'make update-copyright'
20753         * Makefile (update-copyright): Adjust to 2016-11-23 change
20754         to config/srclist-update, which changed the format of srclist.txt.
20756 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20758         chdir-safer: remove this module
20759         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20760         * NEWS: Document removal.
20761         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20762         * modules/chdir-safer: Remove these files.
20764 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20766         Add cross-compilation results for GNU/Hurd.
20767         * m4/calloc.m4: Add GNU/Hurd guess.
20768         * m4/cbrtl.m4: Likewise.
20769         * m4/ceil.m4: Likewise.
20770         * m4/ceilf.m4: Likewise.
20771         * m4/ceill.m4: Likewise.
20772         * m4/chown.m4: Likewise.
20773         * m4/duplocale.m4: Likewise.
20774         * m4/exp2l.m4: Likewise.
20775         * m4/expm1.m4: Likewise.
20776         * m4/fchdir.m4: Likewise.
20777         * m4/floor.m4: Likewise.
20778         * m4/floorf.m4: Likewise.
20779         * m4/fmod.m4: Likewise.
20780         * m4/fmodf.m4: Likewise.
20781         * m4/fmodl.m4: Likewise.
20782         * m4/getcwd.m4: Likewise.
20783         * m4/getgroups.m4: Likewise.
20784         * m4/gettimeofday.m4: Likewise.
20785         * m4/hypot.m4: Likewise.
20786         * m4/hypotf.m4: Likewise.
20787         * m4/hypotl.m4: Likewise.
20788         * m4/link-follow.m4: Likewise.
20789         * m4/link.m4: Likewise.
20790         * m4/linkat.m4: Likewise.
20791         * m4/log.m4: Likewise.
20792         * m4/log10.m4: Likewise.
20793         * m4/log10f.m4: Likewise.
20794         * m4/log1p.m4: Likewise.
20795         * m4/log1pf.m4: Likewise.
20796         * m4/log1pl.m4: Likewise.
20797         * m4/log2.m4: Likewise.
20798         * m4/log2f.m4: Likewise.
20799         * m4/logf.m4: Likewise.
20800         * m4/lstat.m4: Likewise.
20801         * m4/malloc.m4: Likewise.
20802         * m4/mbrlen.m4: Likewise.
20803         * m4/mbrtowc.m4: Likewise.
20804         * m4/mkdir.m4: Likewise.
20805         * m4/mkfifo.m4: Likewise.
20806         * m4/mknod.m4: Likewise.
20807         * m4/mkstemp.m4: Likewise.
20808         * m4/modf.m4: Likewise.
20809         * m4/modff.m4: Likewise.
20810         * m4/modfl.m4: Likewise.
20811         * m4/printf.m4: Likewise.
20812         * m4/pselect.m4: Likewise.
20813         * m4/ptsname.m4: Likewise.
20814         * m4/putenv.m4: Likewise.
20815         * m4/readlink.m4: Likewise.
20816         * m4/realloc.m4: Likewise.
20817         * m4/remainder.m4: Likewise.
20818         * m4/remainderf.m4: Likewise.
20819         * m4/remainderl.m4: Likewise.
20820         * m4/rmdir.m4: Likewise.
20821         * m4/round.m4: Likewise.
20822         * m4/roundf.m4: Likewise.
20823         * m4/roundl.m4: Likewise.
20824         * m4/select.m4: Likewise.
20825         * m4/setenv.m4: Likewise.
20826         * m4/signbit.m4: Likewise.
20827         * m4/sleep.m4: Likewise.
20828         * m4/stat.m4: Likewise.
20829         * m4/strerror.m4: Likewise.
20830         * m4/strtok_r.m4: Likewise.
20831         * m4/symlink.m4: Likewise.
20832         * m4/symlinkat.m4: Likewise.
20833         * m4/trunc.m4: Likewise.
20834         * m4/truncf.m4: Likewise.
20835         * m4/truncl.m4: Likewise.
20836         * m4/tzset.m4: Likewise.
20837         * m4/ungetc.m4: Likewise.
20838         * m4/usleep.m4: Likewise.
20839         * m4/wcwidth.m4: Likewise.
20841 2017-12-28  Bruno Haible  <bruno@clisp.org>
20843         gnulib-tool: Make --conditional-dependencies work better.
20844         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20845         * gnulib-tool (Options): Don't reject the combination of
20846         --conditional-dependencies with --with-tests.
20847         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20848         Don't reference $modules.
20849         (func_import, func_create_testdir): Pass it.
20851 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20853         regex: use re_malloc etc. consistently
20854         Problem and original patch reported by Arnold Robbins in:
20855         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20856         * lib/regcomp.c (re_comp):
20857         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20858         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20860 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20861             Paul Eggert  <eggert@cs.ucla.edu>
20863         glob: Silence warning about void pointer arithmetic.
20864         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20865         arithmetic.
20867 2017-12-15  Bruno Haible  <bruno@clisp.org>
20869         spawn-pipe: Silence a clang warning.
20870         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20871         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20872         in this file.
20874 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20876         explicit_bzero: port to macOS + Clang 9.0.0
20877         Problem reported by Marcus Johnson (Bug#29658).
20878         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20879         Don’t use asm.
20881 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20883         doc: Improve explanation of supporting relocatable libraries.
20884         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20885         properly how to build the relocatable module for
20886         libraries. (Method and example code from Bruno Haible.)
20888 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20890         doc: Use better texinfo tags in a few cases.
20891         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20892         instead of @samp in a few places.
20894 2017-12-11  Bruno Haible  <bruno@clisp.org>
20896         unistr/base: Update comment.
20897         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20899 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20901         test-faccessat.c: unlink temp file to avoid subsequent test failure
20902         * tests/test-faccessat.c: Remove the file to avoid failure
20903         to open the file on subsequent runs due to being created
20904         with no permissions.
20906 2017-12-10  Bruno Haible  <bruno@clisp.org>
20908         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20909         * doc/gnulib-tool.texi (Modified build rules): New node.
20911 2017-12-10  Bruno Haible  <bruno@clisp.org>
20913         doc: Tweak wording.
20914         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20915         "binaries".
20917 2017-12-05  Sam Steingold  <sds@gnu.org>
20918             Bruno Haible  <bruno@clisp.org>
20920         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20921         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20922         AC_EGREP_CPP pattern.
20924 2017-12-03  Bruno Haible  <bruno@clisp.org>
20926         all: Replace more http URLs by https URLs.
20927         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20928         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20929         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20930         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20932 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20934         Port better to CentOS 5
20935         Problems reported by Tom G. Christensen in:
20936         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
20937         * doc/glibc-functions/strverscmp.texi (strverscmp):
20938         Document strverscmp bug with glibc 2.9 and earlier.
20939         * doc/posix-functions/tzset.texi (tzset):
20940         Document that TZ with angle brackets is POSIX-2001 and later.
20941         * tests/test-nstrftime.c: Include unistd.h.
20942         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
20943         (TZ): Use it to skip tests with angle brackets in TZ,
20944         for older systems.
20946         stat: add missing module dependencies
20947         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20948         Add stat-time.
20950 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20952         stat: fix compilation failure on macOS Sierra
20953         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20954         https://savannah.gnu.org/bugs/?52546
20955         * lib/stat.c: Add missing include of stat-time.h.
20957 2017-11-28  Jim Meyering  <meyering@fb.com>
20959         test-faccessat.c: correct BASE definition to avoid parallel test failure
20960         * tests/test-faccessat.c (BASE): Define using this file's name, not
20961         that of test-lstat.c.  Using the latter caused this test to fail
20962         sometimes when run concurrently with test-lstat.
20964 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20966         unicase: fix VPATH build
20967         * modules/unicase/special-casing (Makefile.am): Ensure that the
20968         base directory is created when generating
20969         unicase/special-casing.h.
20971 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20973         libunistring: update to Unicode 9.0.0
20974         * lib/gen-uni-tables.c (fill_properties): Recognize
20975         Sentence_Terminal and Prepended_Concatenation_Mark.
20976         (is_property_default_ignorable_code_point): Exclude U+08E2.
20977         (fill_arabicshaping): Allow missing whitespace when parsing;
20978         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20979         (output_blocks): Increase the element size of the level1 table to
20980         accommodate more blocks.
20981         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20982         Update each class according to the standard.
20983         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20984         E_Base_GAZ characters.
20985         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20986         Glue_After_Zwj, and E_Base_GAZ characters.
20987         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20988         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20989         enum value.
20990         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20991         value.
20992         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20993         LBP_ZWJ, LBP_EB, and LBP_EM.
20994         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20995         enum value.
20996         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20997         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20998         declaration.
20999         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21000         (uniwbrk_table): Implement WB14.
21001         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21002         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21003         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21004         uc-is-grapheme-break.
21005         * modules/unigbrk/uc-grapheme-breaks: New module.
21006         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21007         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21008         enum value.
21009         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21010         * lib/unigbrk/u-grapheme-breaks.h: New file.
21011         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21012         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21013         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21014         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21015         29.
21016         * tests/unigbrk/test-uc-gbrk-prop.c
21017         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21018         GBP_GAZ, and GBP_EBG.
21019         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21020         * tests/unigbrk/test-uc-is-grapheme-break.c
21021         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21022         GBP_GAZ, and GBP_EBG.
21023         (main): Skip unsupported rules involving 3 or more characters,
21024         namely GB10, GB12, and GB13.
21025         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21026         * all generated files under lib/uni* and tests/uni*: Regenerate.
21027         * all the affected modules: Bump version.
21029 2017-11-26  Bruno Haible  <bruno@clisp.org>
21031         strfmon_l: Fix compilation error with glibc 2.5.
21032         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21033         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21034         * lib/monetary.in.h: Include also <locale.h>.
21036 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21038         posixtm: remove PDS_LEADING_YEAR
21039         This changes the API slightly, in a hopefully-innocuous way.
21040         Without this change the code had undefined behavior when a
21041         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21042         Problem reported by Pádraig Brady in:
21043         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21044         * NEWS: Mention this.
21045         * lib/posixtm.c (posix_time_parse): Treat the absence of
21046         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21047         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21048         present, but define it as zero, for compatibility with existing
21049         source code).  All other PDS_* values moved up.
21050         * tests/test-posixtm.c (LY): New macro.
21051         (T): Use it.  Do not expect a particular numeric encoding
21052         for PDS_CENTURY etc.
21054 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21056         stat: work around Solaris bug with tv_nsec < 0
21057         * doc/posix-functions/fstat.texi (fstat):
21058         * doc/posix-functions/fstatat.texi (fstatat):
21059         * doc/posix-functions/lstat.texi (lstat):
21060         * doc/posix-functions/stat.texi (stat):
21061         Mention Solaris 11 bug.
21062         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21063         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21064         * lib/lstat.c (rpl_lstat):
21065         * lib/stat.c (rpl_stat):
21066         Normalize resulting timestamps.
21067         * lib/fstatat.c (normal_fstatat): New function.
21068         (rpl_fstatat): Use it.
21069         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21070         (stat_time_normalize): New function.
21071         * m4/fstat.m4 (gl_FUNC_FSTAT):
21072         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21073         * m4/lstat.m4 (gl_FUNC_LSTAT):
21074         * m4/stat.m4 (gl_FUNC_STAT):
21075         Replace on Solaris.
21076         * modules/fstat (Depends-on):
21077         * modules/fstatat (Depends-on):
21078         Add stat-time.
21079         * modules/stat-time (Depends-on): Add errno, intprops.
21081 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21083         regex: merge from glibc
21084         * lib/regcomp.c (init_word_char): Add comments.
21086 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21088         regex: merge from glibc
21089         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21090         * lib/regex_internal.h (internal_function): Remove.
21091         All uses removed.
21093 2017-11-20  Bruno Haible  <bruno@clisp.org>
21095         crypto/gc-sm3: Fix buffer overrun.
21096         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21097         Reported by Coverity.
21099 2017-11-12  Jim Meyering  <meyering@fb.com>
21101         maint: shorten https://lists.gnu.org/archive/html/... links
21102         Each /archive/html/ part can be replace with /r/.
21103         Run this to induce the change:
21104         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21105         * ChangeLog: Perform that substitution.
21106         * Makefile: Likewise.
21107         * STATUS-libposix: Likewise.
21108         * build-aux/bootstrap: Likewise.
21109         * doc/maintain.texi: Likewise.
21110         * gnulib-tool: Likewise.
21111         * lib/allocator.h: Likewise.
21112         * lib/argp-ba.c: Likewise.
21113         * lib/argp-pv.c: Likewise.
21114         * lib/canon-host.c: Likewise.
21115         * lib/canonicalize-lgpl.c: Likewise.
21116         * lib/float.in.h: Likewise.
21117         * lib/fstat.c: Likewise.
21118         * lib/getdelim.c: Likewise.
21119         * lib/getprogname.c: Likewise.
21120         * lib/glthread/thread.h: Likewise.
21121         * lib/intprops.h: Likewise.
21122         * lib/mbsrtowcs-state.c: Likewise.
21123         * lib/safe-read.c: Likewise.
21124         * lib/signal.in.h: Likewise.
21125         * lib/stat.c: Likewise.
21126         * lib/stdbool.in.h: Likewise.
21127         * lib/stdio-impl.h: Likewise.
21128         * lib/stdio.in.h: Likewise.
21129         * lib/sysexits.in.h: Likewise.
21130         * lib/timespec.h: Likewise.
21131         * lib/wcsrtombs-state.c: Likewise.
21132         * m4/alloca.m4: Likewise.
21133         * m4/extern-inline.m4: Likewise.
21134         * m4/fstatat.m4: Likewise.
21135         * m4/gnulib-common.m4: Likewise.
21136         * m4/lib-ignore.m4: Likewise.
21137         * m4/printf.m4: Likewise.
21138         * m4/regex.m4: Likewise.
21139         * m4/stat-size.m4: Likewise.
21140         * m4/std-gnu11.m4: Likewise.
21141         * m4/stdbool.m4: Likewise.
21142         * m4/sys_types_h.m4: Likewise.
21143         * m4/threadlib.m4: Likewise.
21144         * m4/vararrays.m4: Likewise.
21145         * pygnulib/GLImport.py: Likewise.
21146         * tests/test-exp.h: Likewise.
21147         * tests/test-exp2.h: Likewise.
21148         * tests/test-expm1.h: Likewise.
21149         * tests/test-fflush2.c: Likewise.
21150         * tests/test-getopt_long.h: Likewise.
21151         * tests/test-intprops.c: Likewise.
21152         * tests/test-log.h: Likewise.
21153         * tests/test-log10.h: Likewise.
21154         * tests/test-log1p.h: Likewise.
21155         * tests/test-log2.h: Likewise.
21156         * tests/test-printf-posix.h: Likewise.
21157         * tests/test-regex.c: Likewise.
21158         * tests/test-snprintf-posix.h: Likewise.
21159         * tests/test-sprintf-posix.h: Likewise.
21160         * tests/test-stdalign.c: Likewise.
21161         * tests/test-stdbool.c: Likewise.
21162         * tests/test-vasnprintf-posix.c: Likewise.
21163         * tests/test-vasprintf-posix.c: Likewise.
21164         * top/maint.mk: Likewise.
21166 2017-11-12  Bruno Haible  <bruno@clisp.org>
21168         faccessat: Make the last change more robust.
21169         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21170         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21172 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21174         faccessat: port to macOS (Bug#29231)
21175         macOS faccessat has the same bug that lstat does: if the file
21176         name ends in '/' it ignores the trailing slash.
21177         Problem reported for Emacs by Vincent Zhang.
21178         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21179         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21180         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21181         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21182         Include "unistd.h" after defining it.
21183         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21184         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21185         Handle in the usual way.
21186         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21187         lstat dereferences symlinks, since faccessat is likely to
21188         have the same problem.
21189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21190         * modules/faccessat (Depends-on): Add fstatat.
21191         Depend if REPLACE_FACCESSAT is 1, too.
21192         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21193         * modules/faccessat-tests (Depends-on): Add symlink.
21194         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21195         * tests/test-faccessat.c (main): Test for the bug.
21197 2017-11-11  Bruno Haible  <bruno@clisp.org>
21199         getprogname: Fix compilation error on IRIX.
21200         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21201         'namesize'.
21203 2017-11-11  Bruno Haible  <bruno@clisp.org>
21205         year2038: Tweak last patch.
21206         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21208 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21210         year2038: be more insistent about 64-bit time_t
21211         Applications requiring access to arbitrary files should not be
21212         built with 32-bit time_t on hosts that have 64-bit timestamps,
21213         as this can lead to real trouble at runtime.
21214         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21215         Check on all systems, not just MinGW.  Use a heuristic involving
21216         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21217         output a failure or just a warning, to make it more likely that
21218         builders will select 64-bit time_t.
21220 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21222         havelib: fix typo in previous change
21223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21225         Don’t use AC_EGREP_CPP if affected by CFLAGS
21226         * m4/float_h.m4 (gl_FLOAT_H):
21227         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21228         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21229         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21230         * m4/year2038.m4 (gl_YEAR2038):
21231         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21232         likely to be affected by the choice of CFLAGS, since CFLAGS are
21233         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21234         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21236         fstatat: pacify GCC on unusual platform
21237         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21238         Omit, as it’s unused in this case.
21240 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21242         timespec: prefer ‘assume’ to ‘assure’
21243         This avoids some runtime tests.  The rest of the module makes
21244         similar assumptions and there is little point to testing here.
21245         * lib/timespec.h: Include verify.h instead of assure.h.
21246         (timespec_cmp): Use ‘assume’, not ‘assure’.
21247         Also, remove an unnecessary cast to ‘int’, as lots of other
21248         code in this module now causes -Wconversion to complain, and
21249         this is a problem with -Wconversion not with the code.
21251         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21253         Port recent gnulib-tool change to Dash
21254         * gnulib-tool (func_create_testdir): Don't assume that the shell
21255         retokenizes after expanding "$@" inside the call to
21256         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21258 2017-10-27  Jim Meyering  <meyering@fb.com>
21260         timespec.h: use "assure" to avoid a spurious warning
21261         * lib/timespec.h: Include "assure.h" and use it to help
21262         gcc7's -Wstrict-overflow avoid a false positive warning
21263         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21264         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21265         * modules/timespec (Depends-on): Add assure.
21267 2017-10-29  Bruno Haible  <bruno@clisp.org>
21269         Avoid several test failures with traditional locales on Haiku.
21270         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21271         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21272         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21274         LOCALE_ZH_CN=none.
21276 2017-10-29  Bruno Haible  <bruno@clisp.org>
21278         strerror_r-posix: Fix behaviour and test failure on Haiku.
21279         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21280         are positive. Work around return value 0 instead of ERANGE on Haiku.
21281         For unknown error numbers, use a format string consistent with perror().
21282         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21283         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21284         are positive.
21286 2017-10-29  Bruno Haible  <bruno@clisp.org>
21288         get-rusage-data: Avoid crash on Haiku.
21289         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21291 2017-10-29  Bruno Haible  <bruno@clisp.org>
21293         get-rusage-as: Avoid crash on Haiku.
21294         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21296 2017-10-29  Bruno Haible  <bruno@clisp.org>
21298         ilogbl: Ensure replacement on Haiku.
21299         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21300         REPLACE_ILOGBL if ilogbl does not work.
21301         (gl_FUNC_ILOGBL_WORKS): New macro.
21302         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21304         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21305         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21306         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21308 2017-10-29  Bruno Haible  <bruno@clisp.org>
21310         expl: Ensure replacement on Haiku.
21311         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21312         zero.
21313         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21315 2017-10-29  Bruno Haible  <bruno@clisp.org>
21317         math: Fix test failure on Haiku.
21318         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21319         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21320         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21321         * doc/posix-headers/math.texi: Mention the Haiku problem.
21323 2017-10-29  Bruno Haible  <bruno@clisp.org>
21325         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21326         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21327         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21329 2017-10-29  Bruno Haible  <bruno@clisp.org>
21331         crypto/*: Verify that the header file is self-contained.
21332         * tests/test-gc-*.c: Include the module's header file immediately after
21333         <config.h>.
21334         * tests/test-hmac-*.c: Likewise.
21335         * tests/test-arcfour.c: Likewise.
21336         * tests/test-arctwo.c: Likewise.
21337         * tests/test-des.c: Likewise.
21338         * tests/test-md2.c: Likewise.
21339         * tests/test-md4.c: Likewise.
21340         * tests/test-md5.c: Likewise.
21341         * tests/test-rijndael.c: Likewise.
21342         * tests/test-sha1.c: Likewise.
21343         * tests/test-sm3.c: Likewise.
21345 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21346             Bruno Haible  <bruno@clisp.org>
21348         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21349         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21351 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21353         New module: crypto/gc-sm3
21354         * lib/gc.h: Declare SM3-related stuffs.
21355         * lib/gc-gnulib.c: Support sm3 in internal functions.
21356         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21357         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21358         * modules/crypto/gc-sm3: Define gc-sm3 module.
21359         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21360         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21361         * MODULES.html.sh: List gc-sm3 module.
21363 2017-10-29  Bruno Haible  <bruno@clisp.org>
21365         random, random_r: Mention different prototypes on Haiku.
21366         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21367         * doc/glibc-functions/random_r.texi: Likewise.
21368         * doc/glibc-functions/initstate_r.texi: Likewise.
21369         * doc/glibc-functions/setstate_r.texi: Likewise.
21371 2017-10-28  Bruno Haible  <bruno@clisp.org>
21373         posix_spawn: Avoid spurious message in configure output.
21374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21375         'cmp' command.
21377 2017-10-28  Bruno Haible  <bruno@clisp.org>
21379         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21380         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21381         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21383 2017-10-28  Bruno Haible  <bruno@clisp.org>
21385         ioctl: Override non-POSIX declaration on Haiku.
21386         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21387         * lib/sys_ioctl.in.h: Add comment about Haiku.
21388         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21389         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21391 2017-10-28  Bruno Haible  <bruno@clisp.org>
21393         crypto/sm3: Add overview documentation to the .h file.
21394         * lib/sm3.h: Add comments.
21396 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21398         New module: crypto/sm3
21399         This new module can be used to compute SM3 message digest of files or
21400         memory blocks according to the specification GM/T 004-2012
21401         Cryptographic Hash Algorithm SM3, published by State Cryptography
21402         Administration, China.
21403         The official SM3 cryptographic hash algorithm specification is
21404         available at
21405         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21406         * lib/sm3.h: Declare the APIs of sm3 module.
21407         * lib/sm3.c: Implement SM3 hash algorithm.
21408         * m4/sm3.m4: m4 file for sm3 module.
21409         * modules/crypto/sm3: Define sm3 module.
21410         * tests/test-sm3.c: Implement SM3 test case.
21411         * modules/crypto/sm3-tests: Define sm3 test module.
21412         * MODULES.html.sh: List sm3 module.
21414 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21416         gc-libgcrypt: fix undefined enum type in switch statement
21417         Resolve the following build failure:
21418         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21419         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21420         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21421              case 0:
21422              ^~~~
21423         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21424         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21426 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21428         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21429         Resolve the following build failure:
21430         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21431         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21432         in signedness [-Werror=pointer-sign]
21433             digest = gcry_md_read (ctx->gch, 0);
21434                    ^
21435         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21437 2017-10-26  Bruno Haible  <bruno@clisp.org>
21439         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21440         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21441         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21443 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21445         glob: fix another heap buffer overflow
21446         Problem reported by Tim Rühsen in:
21447         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21448         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21450 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21452         quotearg: pacify compiler re unsigned
21453         * lib/quotearg.c (quotearg_n_options):
21454         Rewrite to avoid diagnostic from overly-picky compiler.
21455         Problem reported by Sami Kerola in:
21456         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21458         glob: fix heap buffer overflow
21459         * lib/glob.c (glob): Fix off-by-one error introduced into
21460         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21461         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21462         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21463         Fix suggested by Bruno Haible.
21465 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21467         glob: pacify fuzzer for mempcpy
21468         Problem reported by Tim Rühsen in:
21469         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21470         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21472 2017-10-12  Bruno Haible  <bruno@clisp.org>
21474         doc: Fix syntax error (regression from 2017-10-03).
21475         * doc/posix-functions/strncpy.texi: Fix syntax error.
21477 2017-10-12  Bruno Haible  <bruno@clisp.org>
21479         doc: Update for Solaris 11.3.
21480         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21481         mention Solaris 11.3.
21482         * m4/log2.m4: Fix comments.
21483         * m4/log2f.m4: Likewise.
21484         * m4/printf.m4: Update comments.
21485         * m4/rename.m4: Likewise.
21486         * m4/strncat.m4: Likewise.
21488         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21490 2017-10-10  Bruno Haible  <bruno@clisp.org>
21492         doc: Improve doc about ioctl.
21493         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21494         prototype.
21496 2017-10-09  Bruno Haible  <bruno@clisp.org>
21498         wcwidth: Don't use obsolete syntax of 'test'.
21499         Reported by Eric Blake.
21500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21501         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21503 2017-10-09  Bruno Haible  <bruno@clisp.org>
21505         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21506         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21507         and Daniel P. Berrange <berrange@redhat.com>.
21508         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21509         on glibc systems. The getopt-pfx-core.h file declares exactly what
21510         unistd.h needs, nothing more.
21512 2017-10-08  Bruno Haible  <bruno@clisp.org>
21514         vma-iter: Improve support for FreeBSD.
21515         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
21516         vma_iterate.
21517         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
21519 2017-10-08  Bruno Haible  <bruno@clisp.org>
21521         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
21522         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
21524 2017-10-07  KO Myung-Hun  <komh@chollian.net>
21526         test-framework-sh: Fix 'invalid path dir' error.
21527         On OS/2, a path separator is ';' not ':'. And ':' is used as a
21528         separator between a drive letter and directory parts.
21529         As a result, an absolute path such as x:/path/to/dir on OS/2 is
21530         treated as an invalid path dir.
21531         * tests/init.sh (PATH_SEPARATOR): Set at startup.
21532         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
21533         instead of hard coded ':'.
21535 2017-10-07  Bruno Haible  <bruno@clisp.org>
21537         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
21538         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
21539         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
21540         (rof_open): On Linux, do multiple read() calls and make sure
21541         MIN_LEFTOVER bytes are left when read() returns.
21543 2017-10-07  Bruno Haible  <bruno@clisp.org>
21545         vma-iter: Improve support for GNU/Hurd.
21546         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
21547         API, not the /proc file system.
21549 2017-10-07  Bruno Haible  <bruno@clisp.org>
21551         test-framework-sh: Don't require bash on Windows and OS/2.
21552         Reported by KO Myung-Hun.
21553         * tests/test-init.sh: Use 'shopt' only when running in bash.
21555 2017-10-06  KO Myung-Hun  <komh@chollian.net>
21557         wcwidth: check a macro version of wcwidth () as well
21558         * lib/wchar.in.h: Revert commit from 2016-01-14.
21559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
21561 2017-10-06  Bruno Haible  <bruno@clisp.org>
21563         getopt-posix: Clarify copyright header.
21564         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
21565         * lib/getopt-pfx-core.h: Likewise.
21566         * lib/getopt-pfx-ext.h: Likewise.
21567         * lib/getopt-cdefs.in.h: Likewise.
21569 2017-10-03  Bruno Haible  <bruno@clisp.org>
21571         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
21572         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
21573         gl_HOST_CPU_C_ABI.
21575 2017-10-03  Bruno Haible  <bruno@clisp.org>
21577         doc: warn about misuse of strncpy and wcsncpy.
21578         * doc/posix-functions/strcpy.texi: Describe requirements on prior
21579         memory allocation.
21580         * doc/posix-functions/wcscpy.texi: Likewise.
21581         * doc/posix-functions/strncpy.texi: Describe what this function is not
21582         useful for.
21583         * doc/posix-functions/wcsncpy.texi: Likewise.
21585 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21587         fsuage: fix typo in previous change
21588         * lib/fsusage.c: Remove stray include of full-read.h.
21589         Problem reported by Sam Steingold for macOS (Bug#28669).
21591 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21593         fsusage: remove SVR2 support
21594         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21595         and its code was getting in the way of use of this module by
21596         Emacs, which has its own ‘read’ function anyway.
21597         * lib/fsusage.c: Do not include sys/filsys.h.
21598         (get_fs_usage): Remove SVR2-specific code.
21599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21600         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21601         * modules/fsusage (Depends-on): Do not depend on full-read.
21603         Simplify autoupdate of licenses
21604         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21605         place.
21607 2017-10-01  Bruno Haible  <bruno@clisp.org>
21609         vma-iter: Add support for GNU/Hurd.
21610         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
21611         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21613 2017-09-30  Bruno Haible  <bruno@clisp.org>
21615         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21616         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21617         fail when module 'largefile' is in use.
21618         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21619         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21620         Don't test HAVE_SYS_PROCFS_H.
21622 2017-09-30  Bruno Haible  <bruno@clisp.org>
21624         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21625         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21626         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21627         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21629 2017-09-30  Bruno Haible  <bruno@clisp.org>
21631         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21632         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21633         scope of local variables.
21635 2017-09-28  Bruno Haible  <bruno@clisp.org>
21637         string: code style
21638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21639         substitutable variables.
21640         * modules/string (Makefile.am): Likewise.
21642 2017-09-26  Bruno Haible  <bruno@clisp.org>
21644         uniname/uniname-tests: Tighten code.
21645         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21646         local variables into one.
21648 2017-09-26  Bruno Haible  <bruno@clisp.org>
21650         vma-iter: Improvements for Linux and BSD platforms.
21651         - Add support for DragonFly BSD.
21652         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21653         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21654         Read the entire file into memory in a single system call.
21655         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21656         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21658 2017-09-26  Bruno Haible  <bruno@clisp.org>
21660         vma-iter: Provide the protection flags on FreeBSD.
21661         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21662         skip three fields between the addresses and the protection flags.
21664 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21666         glob: remove bogus extern decl
21667         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21668         extern declaration.  Problem reported by Adhemerval Zanella in:
21669         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21671 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21673         uniname/uniname-tests: integer overflow fix
21674         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21675         Check for integer overflow.
21677         duplocale-tests: fix unlikely crash
21678         * tests/test-duplocale.c (get_locale_dependent_values):
21679         Don’t crash with absurdly long month names.
21681         maint: fix overflow checking in nap.h
21682         * modules/chown-tests:
21683         * modules/fchownat-tests, modules/fdutimensat-tests:
21684         * modules/futimens-tests, modules/lchown-tests:
21685         * modules/stat-time-tests, modules/utime-tests:
21686         * modules/utimens-tests, modules/utimensat-tests:
21687         Depend on intprops.
21688         * tests/nap.h: Include intprops.h.
21689         (diff_timespec): Handle overflow properly.
21691         sys_types: update URL
21692         * m4/sys_types_h.m4: Use https: URL.
21694         parse-datetime: fix dependency
21695         * modules/parse-datetime (Depends-on): Depend
21696         on nstrftime, not strftime.
21698         parse-datetime, posixtm: avoid uninit access
21699         * lib/parse-datetime.y (parse_datetime2):
21700         * lib/posixtm.c (posixtime):
21701         Do not access uninitialized storage, even though the resulting
21702         value is never used.
21704 2017-09-25  Bruno Haible  <bruno@clisp.org>
21706         vma-iter: Improvements for BSD platforms.
21707         - Add support for GNU/kFreeBSD.
21708         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21709         - Speed up on OpenBSD.
21710         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21711         (vma_iterate_bsd): New function.
21712         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21713         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21714         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21715         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21717 2017-09-23  Bruno Haible  <bruno@clisp.org>
21719         strfmon_l: New module.
21720         * modules/strfmon_l: New file.
21721         * lib/strfmon_l.c: New file.
21722         * m4/strfmon_l.m4: New file.
21723         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21724         * modules/strfmon_l-tests: New file.
21725         * tests/test-strfmon_l.c: New file.
21727         monetary: New module.
21728         * modules/monetary: New file.
21729         * lib/monetary.in.h: New file.
21730         * m4/monetary_h.m4: New file.
21731         * doc/posix-headers/monetary.texi: Mention the new module.
21732         * modules/monetary-tests: New file.
21733         * tests/test-monetary.c: New file.
21734         * modules/monetary-c++-tests: New file.
21735         * tests/test-monetary-c++.cc: New file.
21736         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21738 2017-09-23  Bruno Haible  <bruno@clisp.org>
21740         duplocale tests: Fix test crash on Linux/x86.
21741         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21742         locale from the current thread before freeing it.
21744 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21746         mktime: port to OpenVMS
21747         Problem reported by John E. Malmberg in:
21748         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21749         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21751 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21753         manywarnings: port to GCC on 64-bit MS-Windows
21754         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21755         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21756         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21758 2017-09-13  Bruno Haible  <bruno@clisp.org>
21760         all: Replace many more http URLs by https URLs. Update stale URLs.
21761         * users.txt: Remove mention of 'newts'.
21762         * lib/localename.c: Update comment about LANG_SOTHO.
21764 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21766         all: Replace many http URLs by https URLs.
21768 2017-09-12  Bruno Haible  <bruno@clisp.org>
21770         doc: Prefer https URLs where possible.
21771         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21772         * doc/ld-output-def.texi: Remove unavailable URL.
21774 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21776         maintainer-makefile: FTP -> HTTPS
21777         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21778         of FTP, which is planned to be decommissioned on 2017-11-01.
21780 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21782         libc-config: Fix __GNUC_PREREQ macro.
21783         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21784         __GNUC_MINOR.
21786 2017-09-09  Bruno Haible  <bruno@clisp.org>
21788         gnulib-tool: Simplify commit from 2015-08-20.
21789         * gnulib-tool (func_add_or_update): Remove local variable
21790         is_binary_file.
21792 2017-09-08  Bruno Haible  <bruno@clisp.org>
21794         stddef: Avoid conflict with system-defined max_align_t.
21795         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21796         Reported by Werner Lemberg <wl@gnu.org> in
21797         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21798         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21799         (max_align_t): Define as a macro.
21800         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21801         definitions of rpl_max_align_t in different copies of gnulib-generated
21802         <stddef.h>.
21804 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21806         libc-config: port to MSVC
21807         Problems reported by Gisle Vanem in:
21808         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21809         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21810         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21811         * m4/__inline.m4: New file.
21812         * modules/libc-config (Files): Add it.
21813         (Depends-on): Use it.
21815         glob: Use enum for __glob_pattern_type result
21816         From a patch proposed by Adhemerval Zanella in:
21817         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21818         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21819         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21820         * lib/glob_internal.h (__glob_pattern_type):
21821         * lib/glob.c (glob):
21822         * lib/glob_pattern_p.c (__glob_pattern_p):
21823         Use them.
21825         glob: fix for use in glibc
21826         Problem reported by Adhemerval Zanella in:
21827         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21828         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21829         Do not redefine if _LIBC.
21831 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21833         glob: fix bugs with long login names
21834         Problem reported by Adhemerval Zanella in:
21835         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21836         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21837         (glob): Use the same scratch buffer for both getlogin_r and
21838         getpwnam_r.  Don’t require preallocation of the login name.  This
21839         simplifies storage allocation, and corrects the handling of
21840         long login names.
21842 2017-09-02  Bruno Haible  <bruno@clisp.org>
21844         dirent: Update doc.
21845         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21847 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21849         glob: fix getpwnam_r errno typo
21850         * lib/glob.c (glob): Fix longstanding misuse of errno after
21851         getpwnam_r, which returns an error number rather than setting
21852         errno.
21854         glob: fix typo in recent change
21855         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21856         Fix recently-introduced typo.
21858 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21860         glob: don't save and restore errno unnecessarily
21861         * lib/glob.c (glob): Don't save and restore errno
21862         merely because we have getpwnam_r.
21864         glob: don't assume getpwnam_r
21865         * lib/glob.c (glob): Port recent patches to platforms
21866         lacking getpwnam_r.
21868         scratch_buffer: don’t use private glibc API
21869         Suggested by Florian Weimer in:
21870         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21871         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21872         * lib/scratch_buffer_grow.c: Rename to
21873         lib/malloc/scratch_buffer_grow.c.
21874         * lib/scratch_buffer_grow_preserve.c: Rename to
21875         lib/malloc/scratch_buffer_grow_preserve.c.
21876         * lib/scratch_buffer_set_array_size.c: Rename to
21877         lib/malloc/scratch_buffer_set_array_size.c.
21878         * lib/scratch_buffer.h: New file.
21879         * modules/scratch_buffer (Files, Makefile.am):
21880         Adjust to source-file renaming.
21882 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21884         glob: use scratch_buffer instead of extend_alloca
21885         Much of the lib/glob.c part of this patch comes from a glibc patch
21886         proposed by Adhemerval Zanella in:
21887         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21888         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21889         included via glob.h, does this for us now.
21890         (__set_errno): Remove, as libc-config does this for us now.
21891         Include <scratch_buffer.h>.
21892         (GETPW_R_SIZE_MAX): Remove.
21893         (glob): Use struct scratch_buffer instead of extend_alloca.
21894         * lib/glob.in.h: Include libc-config.h rather than
21895         including <sys/cdefs.h> conditionally.
21896         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21897         (__glibc_unlikely, __restrict, weak_alias):
21898         Remove, as libc-config does this for us now.
21899         * m4/glob.m4 (gl_PREREQ_GLOB):
21900         Remove sys/cdefs.h tests; no longer needed.
21901         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21902         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21904         scratch_buffer: new module
21905         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21906         * lib/scratch_buffer_grow_preserve.c:
21907         * lib/scratch_buffer_set_array_size.c:
21908         New files, copied from glibc with very minor changes that can be
21909         copied back.
21910         * modules/scratch_buffer: New file.
21912         libc-config: new module
21913         * MODULES.html.sh: Add libc-config.
21914         * lib/cdefs.h: New file, copied from the GNU C Library with very
21915         minor changes that can be copied back.
21916         * lib/libc-config.h, modules/libc-config: New files.
21918 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21920         glob: match dangling symlinks
21921         This fixes a bug I inadvertently introduced to Gnulib when I
21922         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21923         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21924         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21925         * doc/posix-functions/glob.texi: Update list of affected platforms.
21926         * lib/glob.c (__lstat64): New macro.
21927         (is_dir): New function.
21928         (glob, glob_in_dir): Match symlinks even if they are dangling.
21929         (link_stat, link_exists_p): Remove.  All uses removed.
21930         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21931         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21932         * modules/glob-tests (Depends-on): Add symlink.
21933         * tests/test-glob.c: Include errno.h, unistd.h.
21934         (BASE): New macro.
21935         (main): Test dangling symlinks, if symlinks are supported.
21937         glob, backupfile: inode 0 is a valid inode number
21938         * doc/posix-functions/readdir.texi (readdir):
21939         * doc/posix-headers/dirent.texi (dirent.h):
21940         Document more readdir portability issues.
21941         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
21942         (numbered_backup): Don’t treat inode 0 any differently from
21943         other inode values.
21944         * lib/glob.c (struct readdir_result): Remove skip_entry member.
21945         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21946         All uses removed.
21947         * modules/glob (Depends-on): Remove d-ino.
21949         glob: simplify symlink detection
21950         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21951         uint8_t, as C99 does not require uint8_t.
21952         (struct readdir_result): Use it.  Do not define skip_entry unless
21953         it is needed; this saves a byte on platforms lacking d_ino.
21954         (readdir_result_type, readdir_result_skip_entry):
21955         New functions, replacing ...
21956         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21957         ... these functions, which were removed.  This makes the callers
21958         easier to read.  All callers changed.
21959         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21961 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21963         fts-tests: tag as a longrunning-test so not included by default
21964         * modules/fts-tests: This test takes about 20s on current systems,
21965         and uses about 285M of space on ext4.
21967 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21969         renameat2: fix compilation on alpine linux
21970         * m4/renameat.m4: Check for <linux/fs.h> presence.
21971         * lib/renameat2.h: Only include <linux/fs.h> if present.
21972         Reported by Assaf Gordon on Alpine Linux.
21974 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21976         glob: try to port recent changes to MS-Windows
21977         Problem reported by Bruno Haible in:
21978         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21979         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21980         * lib/glob.in.h (__glob_pattern_p): ... to here.
21982 2017-08-24  Eric Blake  <eblake@redhat.com>
21984         warnings: fix compilation with old autoconf
21985         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21986         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21987         AC_DEFUN.
21988         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21989         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21991 2017-08-24  Bruno Haible  <bruno@clisp.org>
21993         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21994         * modules/glob (Depends-on): Add c99.
21996 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21998         glob: fix typo that broke platforms lacking d_ino
21999         This typo also hurt performance on GNU/Linux and similar hosts.
22000         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22001         in previous change.
22003 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22005         glob: merge from glibc with Zanella glob changes
22006         Merge glob from glibc, with changes for glob proposed
22007         by Adhemerval Zanella in the thread starting here:
22008         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22009         plus some fixes for this merge.
22010         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22011         New files, ported from glibc.
22012         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22013         with __restrict.
22014         (__size_t): Remove.  All uses replaced by size_t.
22015         (size_t): Define by defining __need_size_t and including <stddef.h>.
22016         This should work even in non-glibc platforms, where any name
22017         pollution is OK.
22018         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22019         (struct stat64): Don’t worry about __GLOB_GNULIB.
22020         (glob, globfree, glob_pattern_p): Remove macros for
22021         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22022         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22023         but set errno.
22024         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22025         removed since the glibc behavior works on null pointers.
22026         Do not include stdio.h; old SunOS is irrelevant now.
22027         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22028         Include glob_internal.h.
22029         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22030         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22031         worked only coincidentally.
22032         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22033         Remove macros; now done in glob.in.h.
22034         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22035         (glob): Properly initialize glob structure with
22036         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22037         Remove old code using SHELL since Bash no longer
22038         uses this.
22039         (glob, prefix_array): Separate MS code better.
22040         (glob, glob_in_dir): Use C99 decls before statements when glibc
22041         does.
22042         (glob_in_dir): Remove old Amiga and VMS code.
22043         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22044         separate files.
22045         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22046         (__glibc_unlikely):
22047         Move here from glob.c.
22048         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22049         (weak_alias): New macro.
22050         (__size_t): Remove.  All uses replaced by size_t.
22051         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22052         * modules/glob (Files): Add +lib/glob_internal.h,
22053         lib/glob_pattern_p.c, lib/globfree.c.
22054         (Depends-on): Remove snippet/arg-nonnull.
22056 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22058         glob: port to clang's Undefined Sanitizer
22059         Problem reported by Tim Rühsen in:
22060         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22061         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22062         (glob_in_dir): Do not rely on undefined behavior in accessing
22063         struct members beyond their bounds.  Use a flexible array member
22064         instead.
22066 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22068         vc-list-files: port to Solaris 10
22069         * build-aux/vc-list-files: Don't assume test -e works.
22071 2017-08-21  Karl Berry  <karl@freefriends.org>
22073         * doc/posix-functions/srandom.texi (srandom): typo }.
22075 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22077         git-version-gen: port to Solaris 10
22078         Problem reported by Dagobert Michelsen in:
22079         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22080         * build-aux/git-version-gen (v_from_git):
22081         Use expr instead of shell substitution.
22083 2017-08-19  Bruno Haible  <bruno@clisp.org>
22085         host-cpu-c-abi: Improve detection of MIPS ABI.
22086         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22087         _MIPS_SIM.
22089 2017-08-17  Bruno Haible  <bruno@clisp.org>
22091         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22092         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22094 2017-08-17  Bruno Haible  <bruno@clisp.org>
22096         float: Fix LDBL_MIN value on FreeBSD/x86.
22097         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22099 2017-08-17  Bruno Haible  <bruno@clisp.org>
22101         random: Fix test compilation failure on Cygwin 1.5.25.
22102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22103         HAVE_DECL_SETSTATE.
22104         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22105         declared.
22106         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22107         HAVE_DECL_SETSTATE.
22108         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22109         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22110         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22111         * doc/posix-functions/random.texi: Likewise.
22112         * doc/posix-functions/setstate.texi: Likewise.
22113         * doc/posix-functions/srandom.texi: Likewise.
22115 2017-08-16  Bruno Haible  <bruno@clisp.org>
22117         stdnoreturn: Fix test compilation failure on Cygwin.
22118         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22119         <stdnoreturn.h> replacement.
22120         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22121         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22123 2017-08-16  Bruno Haible  <bruno@clisp.org>
22125         thread: Fix conflict with pthread_sigmask module.
22126         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22127         it's defined as a macro.
22128         * modules/thread (Depends-on): Add pthread_sigmask.
22130 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22132         rename: port better to NetBSD
22133         * doc/posix-functions/rename.texi (rename): NetBSD 7
22134         does not have the link-count bug.
22135         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22136         broken merely because rename ("a", "b") removes "a" when the two
22137         names are hard links to the same file.
22139 2017-08-16  Bruno Haible  <bruno@clisp.org>
22141         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22142         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22143         the target file names with '$(srcdir)/'.
22144         * modules/unicase/locale-language (Makefile.am): Likewise.
22145         * modules/unicase/special-casing (Makefile.am): Likewise.
22146         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22147         * modules/unictype/category-byname (Makefile.am): Likewise.
22148         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22149         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22150         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22151         * modules/unictype/property-byname (Makefile.am): Likewise.
22152         * modules/unictype/scripts (Makefile.am): Likewise.
22153         * modules/uninorm/composition (Makefile.am): Likewise.
22155 2017-08-16  Bruno Haible  <bruno@clisp.org>
22157         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22158         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22159         value for OpenBSD.
22161 2017-08-16  Bruno Haible  <bruno@clisp.org>
22163         rename, renameat: Update doc regarding NetBSD.
22164         * doc/posix-functions/rename.texi: Clarify that when using
22165         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22166         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22167         version.
22169 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22171         renameat2: port better to macOS
22172         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22174         futimens: don’t assume struct timespec layout
22175         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22176         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22177         * tests/test-fdutimensat.c (main):
22178         * tests/test-futimens.h (test_futimens):
22179         * tests/test-lutimens.h (test_lutimens):
22180         * tests/test-utimens.h (test_utimens):
22181         * tests/test-utimensat.c (main):
22182         Don’t assume that struct timespec is a two-member structure in
22183         tv_sec, tv_nsec order.  Although this is true on all platforms we
22184         know about, POSIX does not guarantee it.
22186         rename: document+test NetBSD rename
22187         Test failure reported by Bruno Haible in:
22188         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22189         This is an area where NetBSD is better-behaved than POSIX,
22190         so allow the NetBSD behavior in tests.
22191         * doc/posix-functions/rename.texi:
22192         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22193         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22195 2017-08-15  Bruno Haible  <bruno@clisp.org>
22197         renameat: Ensure declaration in <stdio.h> on NetBSD.
22198         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22199         * doc/posix-functions/renameat.texi: Mention this problem.
22201 2017-08-15  Bruno Haible  <bruno@clisp.org>
22203         duplocale: Work around NetBSD 7.0 bug.
22204         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22205         * lib/duplocale.c: Add comment about NetBSD problem.
22206         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22208 2017-08-15  Bruno Haible  <bruno@clisp.org>
22210         duplocale tests: Verify use with *_l functions.
22211         * modules/duplocale-tests (configure.ac): Test for uselocale and
22212         some *_l functions.
22213         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22214         from main.
22215         (get_locale_dependent_values_from, test_with_locale_parameter): New
22216         functions.
22217         (main): Test both test_with_uselocale and test_with_locale_parameter.
22219 2017-08-15  Bruno Haible  <bruno@clisp.org>
22221         extensions: Enable NetBSD specific extensions.
22222         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22224 2017-08-14  Bruno Haible  <bruno@clisp.org>
22226         open, openat: Update doc about O_CLOEXEC.
22227         * doc/posix-functions/open.texi: More concrete list of platforms.
22228         * doc/posix-functions/openat.texi: Likewise.
22230 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22232         open: support O_CLOEXEC
22233         * NEWS, doc/posix-functions/open.texi:
22234         * doc/posix-functions/openat.texi: Document this.
22235         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22236         (GNULIB_defined_O_CLOEXEC): New symbol.
22237         * lib/open.c: Include cloexec.h.
22238         (open): Support O_CLOEXEC.
22239         * lib/openat.c: Include cloexec.h.
22240         (rpl_openat): Support O_CLOEXEC.
22241         * lib/popen-safer.c: Do not include cloexec.h.
22242         (open_noinherit): Remove.
22243         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22244         * lib/save-cwd.c: Do not include cloexec.h.
22245         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22246         * m4/open-cloexec.m4: New file.
22247         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22248         Replace 'open' if O_CLOEXEC is not present.
22249         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22250         Replace 'openat' if O_CLOEXEC is not present.
22251         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22252         * modules/open (Files): Add m4/open-cloexec.m4.
22253         (Depends-on): Depend on cloexec if replacing 'open'.
22254         * modules/openat (Files): Add m4/open-cloexec.m4.
22255         (Depends-on): Depend on cloexec if replacing openat.
22256         * modules/popen-safer (Depends-on): Remove cloexec.
22257         * modules/save-cwd (Depends-on): Remove cloexec, and add
22258         fd-safer-flag and 'open'.
22260 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22262         reallocarray: minor fixes
22263         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22264         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22265         * modules/reallocarray (License): Change from GPL to LGPL.
22266         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22267         Indent properly and don't use tabs.
22269 2017-08-13  Darshit Shah  <darnir@gnu.org>
22271         reallocarray: New module
22272         reallocarray is a new function in glibc 2.26 to safely allocate an array
22273         of memory locations with integer overflow protection.
22274         * MODULES.html.sh: Add reallocarray.
22275         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22276         * lib/reallocarray.c: New file to implement module reallocarray.
22277         * lib/stdlib.in.h: Add function declarations for reallocarray.
22278         * m4/reallocarray.m4: New file.
22279         * m4/stdlib_h.m4: Declare reallocarray.
22280         * modules/reallocarray: New file.
22281         * modules/reallocarray-test: New file.
22282         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22283         * tests/test-reallocarray.c: New test.
22285 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22287         dirent-safer: fix cloexec race
22288         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22289         (opendir_safer): Use F_DUPFD_CLOEXEC.
22290         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22291         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22292         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22293         instead of dup_safer.
22295         fts: fix cloexec races
22296         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22297         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22298         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22299         (fd_ring_check): Set cloexec flag on new file descriptors.
22300         (fts_build, fd_ring_check): While we’re at it, make sure the
22301         resulting file descriptor is not 0, 1, or 2, since that is easy.
22303 2017-08-11  Bruno Haible  <bruno@clisp.org>
22305         fts tests: Fix link error.
22306         Reported by Tom G. Christensen in
22307         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22308         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22310 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22312         fts: port recent changes to CentOS 6
22313         Problem reported by Tom G. Christensen in:
22314         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22315         * lib/fts.c (fsword): New type.
22316         (struct dev_type, filesystem_type): Use it.
22317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22318         Also, check for f_type only if fstatfs and sys/vfs.h work.
22320 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22322         tempname: do not depend on secure_getenv
22323         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22324         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22325         * modules/tempname (Depends-on): Remove secure_getenv.
22327 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22329         extensions: add _OPENBSD_SOURCE
22330         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22332 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22333             Bruno Haible  <bruno@clisp.org>
22335         manywarnings: Add support for C++.
22336         * build-aux/g++-warning.spec: New file.
22337         * m4/manywarnings-c++.m4: New file.
22338         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22339         redirects to manywarnings-c++.m4.
22340         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22342 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22344         git-version-gen: another fix for tags with "-"
22345         * build-aux/git-version-gen: Improve fix for tags containing "-".
22346         Suggested by Markus Armbruster in:
22347         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22349 2017-08-06  Bruno Haible  <bruno@clisp.org>
22351         warnings, manywarnings: Add support for multiple languages, not just C.
22352         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22353         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22354         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22355         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22356         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22357         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22358         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22359         of the current language. If C++ is the current language, modify
22360         WARN_CXXFLAGS instead of WARN_CFLAGS.
22361         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22362         gl_MANYWARN_ALL_GCC.
22363         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22365 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22367         git-version-gen: Fix for tags containing '-'
22369         Really old versions of git-describe (before v1.5.0, Feb 2007)
22370         don't have the number of commits in their long format output,
22371         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22372         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22373         recognizes both patterns, and normalizes the old format to the new one.
22375         Unfortunately, this normalization code gets confused when the tag
22376         contains '-'.  Reproducer:
22378             $ git-tag -m test v0.2-rc1
22379             $ build-aux/git-version-gen .tarball-version; echo
22380             build-aux/git-version-gen: WARNING: git rev-list failed
22381             UNKNOWN
22383         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22384         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22385         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22387         * git-version-gen: We could perhaps drop support for versions from
22388         more than a decade ago.  But tightening the pattern match is easy
22389         enough, so do that.  Still breaks when you use version tags ending in
22390         something matching -g????, but you arguably get what you deserve then.
22392 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22394         valgrind-tests: use ls, and cache
22395         * m4/valgrind-tests.m4: Test ls, not bash.
22396         Problem reported by Reuben Thomas.
22397         Also, cache the result so that it can be overridden.
22399 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22401         manywarnings: port to 64-bit GCC builds of Emacs
22402         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22403         object size rather than hardwiring 2147483647.  This is needed to
22404         build GNU Emacs, which has one conditional (and used
22405         only-in-theory) call to malloc with a literal greater than
22406         2147483647.
22408 2017-08-04  Bruno Haible  <bruno@clisp.org>
22410         Relax the license of some modules with no runtime code.
22411         * modules/std-gnu11 (License): Set to 'unlimited'.
22412         * modules/c99 (License): Likewise.
22413         Reported by Reuben Thomas <rrt@sc3d.org>.
22414         * modules/d-ino (License): Set to 'LGPL'.
22415         * modules/host-os (License): Likewise.
22416         * modules/longlong (License): Likewise.
22418 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22420         renameat2: port to RHEL 7 + NFS
22421         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22422         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22423         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22425 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22427         renameat2: port to non-renameat platforms
22428         Problem reported for MSVC-2015 by Gisle Vanem in:
22429         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22430         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22431         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22433 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22435         manywarnings: port to 32-bit GCC bug
22436         Problem reported by Pino Toscano in:
22437         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22438         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22439         not 2**63 - 1, to work around the following GCC bug:
22440         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22442 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22444         backupfile: new function to validate backup suffix
22445         * lib/backupfile.c (set_simple_backup_suffix): New function.
22446         (backupfile_internal): Use it.
22448         canonicalize: fix EOVERFLOW commentary
22449         Problem reported by Bruno Haible in:
22450         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22451         * lib/canonicalize.c (canonicalize_filename_mode):
22452         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22454         Don't interpret EOVERFLOW to mean nonexistence
22455         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22456         may be EOVERFLOW; this is likely more useful than reporting the
22457         stat errno.
22458         * lib/glob.c (link_stat): Rename from link_exists2_p and
22459         return -1/0 instead of 0/1.  Caller changed.
22460         * lib/glob.c (link_exists_p):
22461         * lib/renameat2.c (rename_noreplace, renameat2):
22462         * lib/tempname.c (try_nocreate):
22463         If errno == EOVERFLOW then the directory entry exists, so do not
22464         act as if it does not exist.
22466         backup-rename: new module
22467         It is like backupfile, except it avoids some race conditions,
22468         and it does not output to stderr or exit.
22469         * MODULES.html.sh: Add backup-rename.
22470         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22471         * modules/backup-rename: New files.
22472         * lib/backupfile.c: Turn this into an internals file, which
22473         contains code common to backupfile and backup_rename.  Include
22474         backupfile-internal.h instead of backupfile.h.  Do not include
22475         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22476         renameat2.h and fcntl.h.
22477         (BACKUP_NOMEM): New constant.
22478         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22479         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22480         (backupfile_internal): Rename from find_backup_file_name.
22481         Support new arg RENAME.
22482         (backup_args, backup_types, get_version, xget_version):
22483         Move to lib/backup-find.c.
22484         * lib/backupfile.h (backup_file_rename): New decl.
22485         * modules/backupfile (Files): Add lib/backup-internal.h,
22486         lib/backup-find.c.
22487         (Depends-on): Add dirfd, fcntl, renameat2.
22488         (lib_SOURCES): Add backup-find.c.
22490         renameat2: port better to older Solaris
22491         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22492         Add goto to use a label, to silence picky compilers.
22494         fts-tests: port to gcc -Wwrite-strings
22495         * tests/test-fts.c (base, base_d): New static vars.
22496         (argv, remove_tree, main): Use them.
22498 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22500         relocatable-lib{,-lgpl}: improve documentation
22501         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22502         Various other updates.
22504 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22505             Bruno Haible  <bruno@clisp.org>
22507         relocatable-lib{,-lgpl}: add Valgrind suppressions
22508         * lib/relocatable.valgrind: New file.
22509         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22510         * modules/relocatable-lib-lgpl: Likewise.
22512 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22514         relocatable: Make the license on the sources the GPL.
22515         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
22516         LGPL, which was a special case so that the relocatable source files
22517         could be used without gnulib-tool, to GPL. They can still be used under
22518         the LGPL, using the --lgpl option to gnulib-tool.
22520 2017-07-30  Bruno Haible  <bruno@clisp.org>
22522         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
22523         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
22524         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
22525         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
22526         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
22528 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
22530         faccessat: document AT_SYMLINK_NOFOLLOW issue
22531         * doc/posix-functions/faccessat.texi: Modernize platform list.
22532         Document AT_SYMLINK_NOFOLLOW limitation.
22534         renameat2: port to Solaris 10
22535         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
22536         with AT_SYMLINK_NOFOLLOW (which is not portable).
22537         (renameat): Undef before using, to avoid endless recursion when
22538         the replacement renameat calls renameat2 which calls the
22539         replacement renameat.
22540         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
22541         * modules/renameat2 (Depends-on): Remove faccessat.
22542         * modules/renameat-tests (test_renameat_LDADD):
22543         * modules/renameat2-tests (test_renameat2_LDADD):
22544         Remove $(LIB_EACCESS).
22546         renameat2: new module
22547         Although the Linux syscall renameat2 is not in glibc (yet?), it is
22548         useful to have access to its RENAME_NOREPLACE flag.
22549         * MODULES.html.sh (func_all_modules): Add renameat2.
22550         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
22551         * modules/renameat2-tests, tests/test-renameat2.c: New files.
22552         * lib/renameat.c (renameat): Move most of the implementation
22553         to renameat2, and just call renameat2.
22554         * modules/renameat (Files): Remove lib/at-func2.c.
22555         (Depends-on): Depend only on renameat2.
22556         (Include): Remove <fcntl.h>.
22557         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
22558         since renameat (via renameat2) might use faccessat.
22560 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
22562         vc-list-files: Adjust the script to support git worktrees
22563         * build-aux/vc-list-files: Require existence, not directory.
22565 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22567         doc: bring MODULES.html.sh up to date
22568         Somehow a few months ago we stopped updating MODULES.html.sh.
22569         I don’t recall explicitly deciding this, so I updated it now.
22570         Alternatively I suppose we could remove it.
22571         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
22572         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
22573         truncate, utime, utime-h, windows-stat-inodes,
22574         windows-stat-override, windows-stat-timespec, year2038.  Sort.
22576 2017-07-26  Jim Meyering  <meyering@fb.com>
22578         fprintftime: fix build-break caused by recent renaming
22579         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
22580         "strftime.c".
22581         * modules/fprintftime: Depend directly on nstrftime.
22583 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22585         regex: work with GCC7's -Werror=implicit-fallthrough=
22586         * lib/regex_internal.h (FALLTHROUGH): New macro.
22587         * lib/regcomp.c (peek_token_bracket, parse_expression):
22588         * lib/regexec.c (check_node_accept): Use it.
22590 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22592         fts: simplify fts_build
22593         * lib/fts.c (fts_build): Simplify, and be lazier about
22594         calling leaf_optimization.
22596         fts: three levels of leaf optimization
22597         * lib/fts.c (enum leaf_optimization): New type with three values.
22598         (S_MAGIC_AFS): New macro.  Sort them.
22599         (leaf_optimization): Rename from leaf_optimization_applies, and
22600         return enum leaf_optimization instead of bool.  All uses changed.
22601         Add cases for unknown type and for AFS.
22602         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22604         fts: cache dirent_inode_sort_may_be_useful too
22605         * lib/fts.c (struct dev_type): New struct.
22606         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22607         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22608         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
22609         Now takes FTSENT const *, not int.  All uses changed.  Use
22610         filesystem_type to cache.
22611         (link_count_optimize_ok): Remove.  Caller changed to use
22612         leaf_optimization_applies, which now uses shared cache.
22614         fts: introduce MIN_DIR_NLINK
22615         * lib/fts.c (MIN_DIR_NLINK): New constant.
22616         Use it instead of 2, whenever we are talking about link counts.
22618         fts: nlink_t signedness fixups
22619         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22620         so that root need not be a special case later.
22621         (fts_read): Remove now-redundant test for fts_level.
22622         Do not assume that nlink_t is signed.
22623         (fts_build): Remove useless decrement of nlinks.
22624         (fts_stat): Avoid unlikely signed integer overflow later, if
22625         nlink_t is signed.
22627         fts-tests: new module
22628         * modules/fts-tests, tests/test-fts.c: New files.
22630 2017-07-23  Bruno Haible  <bruno@clisp.org>
22632         Rename module 'strftime' to 'nstrftime'.
22633         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22634         * lib/nstrftime.c: Renamed from lib/strftime.c.
22635         * modules/nstrftime: Renamed from modules/strftime.
22636         (Files, Makefile.am): Update.
22637         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22638         Fix comment.
22639         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22640         (Files, Makefile.am): Update.
22641         * modules/strftime: New file, an obsolete indirection.
22642         * doc/posix-functions/strftime.texi: Update reference.
22643         * config/srclist.txt: Update info.
22644         * NEWS: Mention the change.
22646 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22648         malloca: Silence a warning from clang's memory sanitizer.
22649         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22650         (freea): Use it.
22652 2017-07-18  Bruno Haible  <bruno@clisp.org>
22654         host-cpu-c-abi: Fix detection of MIPS ABI.
22655         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22656         ABI, not the CPU instruction set.
22658 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22660         explicit_bzero: new module
22661         The explicit_bzero function has been added to glibc.
22662         This module is intended to supports its use in GNU programs.
22663         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22664         * m4/explicit_bzero.m4, modules/explicit_bzero:
22665         New files.
22666         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22667         * lib/string.in.h (explicit_bzero): Declare.
22668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22669         * modules/string (string.h): Substitute its vars.
22671 2017-07-16  Bruno Haible  <bruno@clisp.org>
22673         threadlib: Support static linking.
22674         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22675         set gl_cv_have_weak to 'no'.
22677 2017-07-16  Bruno Haible  <bruno@clisp.org>
22679         unicase/locale-language: Fix link dependencies.
22680         * modules/unicase/locale-language (Link): New section.
22681         * modules/unicase/locale-language-tests (Makefile.am): Link
22682         test-locale-language program with $(LIBTHREAD).
22684 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22686         sys_socket: Add support for OpenVMS.
22687         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22688         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22690 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22692         sys_resource: Add support for OpenVMS.
22693         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22694         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22696 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22697             Bruno Haible  <bruno@clisp.org>
22699         math: Add support for OpenVMS.
22700         * lib/math.in.h [__VMS]: Include <fp.h>.
22701         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22703 2017-07-15  Bruno Haible  <bruno@clisp.org>
22705         getdtablesize: Add minimal support for OpenVMS.
22706         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22707         * modules/getdtablesize (Description): Fix.
22708         * lib/getdtablesize.c: Fix comment.
22709         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22710         getdtablesize() function, even though the test fails.
22711         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22712         limitation on OpenVMS.
22714 2017-07-13  Bruno Haible  <bruno@clisp.org>
22716         Revisit cross-compilation guesses.
22717         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22719 2017-07-13  Bruno Haible  <bruno@clisp.org>
22721         Improve cross-compilation guesses for native Windows.
22722         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22723         Windows.
22724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22725         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22727         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22728         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22729         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22730         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22731         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22733         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22734         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22735         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22736         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22737         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22738         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22739         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22740         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22742         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22743         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22744         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22745         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22746         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22747         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22748         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22749         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22750         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22751         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22752         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22753         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22754         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22756         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22757         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22758         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22759         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22760         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22761         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22762         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22763         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22764         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22766         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22767         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22768         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22769         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22770         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22771         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22772         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22773         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22774         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22775         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22776         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22777         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22778         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22779         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22780         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22781         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22782         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22783         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22785         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22786         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22787         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22788         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22790         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22791         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22792         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22793         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22794         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22795         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22796         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22797         * m4/regex.m4 (gl_REGEX): Likewise.
22798         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22799         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22800         gl_FUNC_REMAINDERF_WORKS): Likewise.
22801         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22802         gl_FUNC_REMAINDERL_WORKS): Likewise.
22803         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22804         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22805         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22806         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22808         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22809         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22810         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22811         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22812         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22813         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22814         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22815         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22816         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22818         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22819         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22820         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22821         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22822         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22823         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22824         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22825         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22826         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22827         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22828         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22829         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22830         Likewise.
22831         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22832         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22833         Windows. Enable also on Autoconf 2.70.
22834         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22835         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22836         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22837         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22838         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22839         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22840         for native Windows.
22841         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22842         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22844 2017-07-13  Bruno Haible  <bruno@clisp.org>
22846         Improve cross-compilation guesses for native Windows.
22847         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22848         Windows.
22849         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22850         memchr.m4.
22851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22853 2017-07-13  Bruno Haible  <bruno@clisp.org>
22855         Improve cross-compilation guesses for native Windows.
22856         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22857         native Windows.
22858         (gl_FUNC_FFLUSH): Update accordingly.
22859         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22860         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22862 2017-07-11  Bruno Haible  <bruno@clisp.org>
22864         More systematic m4 quoting and indentation.
22865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22866         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22867         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22869         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22870         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22871         gl_WINSIZE_IN_PTEM): Likewise.
22872         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22873         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22874         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22875         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22876         Correct indentation.
22877         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22878         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22879         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22880         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22881         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22884 2017-07-10  Bruno Haible  <bruno@clisp.org>
22886         round, roundf: Avoid compiler warning in configure test.
22887         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22888         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22890 2017-07-10  Bruno Haible  <bruno@clisp.org>
22892         getlogin tests: Avoid #ifdefs when sharing code between modules.
22893         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22894         * modules/getlogin-tests (Files): Likewise. Remove
22895         tests/test-getlogin_r.c.
22896         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22897         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22898         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22899         getlogin().
22901 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22903         getlogin: don’t assume one name per uid
22904         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22905         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22906         (ttyname): Remove test.
22907         * modules/getlogin_r-tests (ttyname): Remove test.
22908         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22909         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22910         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22911         getlogin rather than getlogin_r.  This avoids code duplication.
22912         (main): Use isatty and fstat rather than ttyname and stat.
22913         Use getpwnam instead of getpwuid, to be portable to test platforms
22914         that have multiple login names for the same uid.
22916 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22917             Bruno Haible  <bruno@clisp.org>
22919         glob: Fix more memory leaks.
22920         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22921         returning.
22922         Reported by Tim Rühsen.
22924 2017-07-10  Bruno Haible  <bruno@clisp.org>
22926         Make sure $host and $host_os are defined when used.
22927         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22928         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22929         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22930         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22931         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22933         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22934         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22935         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22936         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22937         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
22938         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
22939         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22940         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
22941         m4_ifdef block.
22943 2017-07-09  Bruno Haible  <bruno@clisp.org>
22945         *printf: Fix cross-compilation guess for Solaris.
22946         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22947         2010-12-21.
22949 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22950             Bruno Haible  <bruno@clisp.org>
22952         vasnprintf: port to macOS 10.13
22953         Problem reported by comex in:
22954         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22955         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22957 2017-07-06  Bruno Haible  <bruno@clisp.org>
22959         imaxdiv tests: Fix logic.
22960         * tests/test-imaxdiv.c (main): Use == instead of =.
22961         Reported by Coverity.
22963 2017-07-06  Bruno Haible  <bruno@clisp.org>
22965         uninorm/filter: Fix use-after-free bug.
22966         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22967         sortbuf == filter->sortbuf invariant.
22968         Reported by Coverity.
22970 2017-07-06  Bruno Haible  <bruno@clisp.org>
22972         glob: Fix more memory leaks.
22973         * lib/glob.c (glob): Free dirname before returning.
22974         Reported by Coverity and Tim Rühsen.
22976 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22978         parse-datetime: fix uninit var bug
22979         Reported by Bruno Haible in:
22980         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22981         * lib/parse-datetime.y (parse_datetime2): Do not use
22982         uninitialized.
22984 2017-07-05  Bruno Haible  <bruno@clisp.org>
22986         doc: Update for MSVC 14.
22987         * doc/posix-headers/*.texi: Add info about MSVC 14.
22988         * doc/posix-functions/*.texi: Likewise.
22989         * doc/pastposix-functions/*.texi: Likewise.
22990         * doc/glibc-headers/*.texi: Likewise.
22991         * doc/glibc-functions/*.texi: Likewise.
22993 2017-07-05  Bruno Haible  <bruno@clisp.org>
22995         sched: Fix build failure on native Windows (regression from 2017-06-19).
22996         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22998 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23000         stdioext: Port to OpenVMS.
23001         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23002         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23003         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23004         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23005         * lib/fpurge.c (fpurge): Likewise.
23006         * lib/freadable.c (freadable): Likewise.
23007         * lib/freadahead.c (freadahead): Likewise.
23008         * lib/freading.c (freading): Likewise.
23009         * lib/freadptr.c (freadptr): Likewise.
23010         * lib/freadseek.c (freadseek): Likewise.
23011         * lib/fseeko.c (fseeko): Likewise.
23012         * lib/fseterr.c (fseterr): Likewise.
23013         * lib/fwritable.c (fwriteable): Likewise.
23014         * lib/fwriting.c (fwriting): Likewise.
23016 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23018         glob: Declare variables at the very start of their scope.
23019         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23020         its separate scope, so the functions will compile on Haiku.
23022 2017-07-01  Bruno Haible  <bruno@clisp.org>
23024         logbl: Work around a glibc bug on PowerPC64LE.
23025         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23026         numbers.
23027         * doc/posix-functions/logbl.texi: Update.
23029 2017-06-29  Bruno Haible  <bruno@clisp.org>
23031         stat, fstat: Compile stat-w32.c only on platforms that need it.
23032         Suggested by Paul Eggert.
23033         * modules/stat (configure.ac): Request stat-w32.o only on native
23034         Windows.
23035         * modules/fstat (configure.ac): Likewise.
23037 2017-06-25  Bruno Haible  <bruno@clisp.org>
23039         stat: Improve last change.
23040         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23042 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23044         stat: port to xlc 12.01
23045         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23046         12.01 complains "Compilation unit is empty."
23048 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23050         xalloc-oversized: port to icc
23051         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23052         __builtin_mul_overflow if ICC is defined, as this results in
23053         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23054         20170213.
23056 2017-06-19  Bruno Haible  <bruno@clisp.org>
23058         classpath: Avoid including config.h twice, as it produces warnings.
23059         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23060         * lib/classpath.h: Conditionalize the include of config.h.
23062 2017-06-19  Bruno Haible  <bruno@clisp.org>
23063             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23065         sched: Fix compilation failure on OpenVMS.
23066         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23067         test whether <pthread.h> exists and defines struct sched_param.
23068         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23070 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23072         diffseq: port to GCC 7 with --enable-gcc-warnings
23073         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23074         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23075         not complain about big_snake being defined but not used.
23077 2017-06-15  Bruno Haible  <bruno@clisp.org>
23079         gettext-h: Update theoretical condition for use of variable size arrays.
23080         Reported by Paul Eggert.
23081         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23082         to include the theoretical condition for availability of variable size
23083         arrays, if we could trust the value of __STDC_VERSION__.
23085 2017-06-12  Bruno Haible  <bruno@clisp.org>
23087         Relicense some modules under LGPLv2+.
23088         Daiki Ueno's approval is in
23089         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23090         * modules/uniwidth/base (License): Change to LGPLv2+.
23091         * modules/uniwidth/width (License): Likewise.
23093 2017-06-11  Bruno Haible  <bruno@clisp.org>
23095         localename: Fix test failure on DragonFly BSD.
23096         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23097         like FreeBSD.
23099 2017-06-11  Bruno Haible  <bruno@clisp.org>
23101         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23102         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23103         * lib/float.in.h: Likewise.
23104         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23106 2017-06-11  Bruno Haible  <bruno@clisp.org>
23108         gnulib-tool: Clean up after autotools.
23109         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23110         useless directory left over by the Autotools.
23112 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23114         getopt-posix: port to glibc 2.25.90
23115         Problem reported by Daniel P. Berrange in:
23116         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23117         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23118         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23119         #undef if __GETOPT_PREFIX is defined.
23121 2017-06-11  Bruno Haible  <bruno@clisp.org>
23123         strtod-obsolete: Fix license.
23124         * modules/strtod-obsolete (License): Change to LGPL.
23126 2017-06-10  Jim Meyering  <meyering@fb.com>
23128         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23129         * lib/savewd.c (FALLTHROUGH): Define.
23130         (savewd_save, savewd_restore): Use this, rather than a comment,
23131         whenever one switch case falls through into the next.
23133 2017-06-08  Bruno Haible  <bruno@clisp.org>
23135         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23136         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23137         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23138         case.
23140 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23142         doc: remove robots, add prereqs
23143         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23144         builds.  Simon's robot site does not seem to be up, so remove
23145         mentions of it for now.
23147 2017-06-08  Bruno Haible  <bruno@clisp.org>
23149         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23150         * gnulib-tool (func_symlink_target): New function, extracted from
23151         func_symlink.
23152         (func_symlink, func_symlink_if_changed): Use it.
23154 2017-06-08  Bruno Haible  <bruno@clisp.org>
23156         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23157         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23159 2017-06-07  Bruno Haible  <bruno@clisp.org>
23161         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23162         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23163         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23164         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23165         override, pass 2 arguments to getcwd, not 3.
23167 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23169         same-inode: port better to VMS 8.2 and later
23170         Problem reported by John E. Malmberg in:
23171         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23172         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23173         Use the usual POSIX definition.
23174         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23176 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23178         error: fix POSIX violation for va_end
23179         Problem reported by Bruno Haible in:
23180         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23181         * lib/error.c (error_tail): Do not call va_end here.
23182         (error, error_at_line): Call it here instead.
23184 2017-05-28  Bruno Haible  <bruno@clisp.org>
23186         c-strtod: Make it usable in C++ mode.
23187         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23189 2017-05-25  Jim Meyering  <meyering@fb.com>
23191         quotearg: fix compilation failure due to FALLTHROUGH misuse
23192         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23193         macro back to /* fall through */ comment.  The macro can apply only
23194         to a following case statement.  Reported by Assaf Gordon.
23196 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23198         intprops: port to recent icc
23199         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23200         but does not support __builtin_add_overflow etc.
23201         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23202         Define to 0.
23204 2017-05-23  Karl Berry  <karl@freefriends.org>
23206         * config/srclist.txt (iconv.m4): sync broken, comment out
23207         until (hopefully) the next gettext release.
23209 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23211         Remove repeated words in comments.
23213 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23215         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23216         quotearg.c: Reinstate this instance which is significant
23217         when the if branch is not taken.
23219 2017-05-21  Bruno Haible  <bruno@clisp.org>
23221         gnulib-tool: Add options to create hard links.
23222         * gnulib-tool (func_usage): Document options --hardlink,
23223         --local-hardlink, --more-hardlinks.
23224         (func_symlink): Renamed from func_ln.
23225         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23226         (func_hardlink): New function.
23227         (copymode, lcopymode): New variables.
23228         (symbolic, lsymbolic): Remove variables.
23229         (Options): Implement options --hardlink, --local-hardlink,
23230         --more-hardlinks.
23231         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23232         (func_add_file, func_update_file): Update invocation of
23233         func_should_link. Invoke func_hardlink when appropriate.
23234         (func_import): Update comments.
23235         (func_create_testdir): Update invocation of func_should_link. Invoke
23236         func_hardlink when appropriate.
23237         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23238         the hard links on git.
23240 2017-05-20  Bruno Haible  <bruno@clisp.org>
23242         argp: Simplify bit manipulation.
23243         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23244         on a signed integer type.
23246 2017-05-20  Bruno Haible  <bruno@clisp.org>
23248         Avoid wrong configure results with gcc -fsanitize=address.
23249         This completes the work done on 2016-02-06 on this topic.
23250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23251         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23253         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23254         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23255         returning.
23256         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23257         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23258         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23259         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23260         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23261         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23263         free allocated memory before returning.
23264         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23265         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23266         objects before returning.
23267         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23268         returning.
23270 2017-05-20  Bruno Haible  <bruno@clisp.org>
23272         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23273         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23275 2017-05-20  Bruno Haible  <bruno@clisp.org>
23277         argp, tsearch tests: Fix file list.
23278         * modules/argp-tests (Files): Add tests/macros.h.
23279         * modules/tsearch-tests (Files): Likewise.
23281 2017-05-20  Bruno Haible  <bruno@clisp.org>
23283         getopt-posix tests: Remove redundant include.
23284         * tests/test-getopt.h: Don't include "macros.h". It's already included
23285         by tests/test-getopt-main.h.
23287 2017-05-19  Jim Meyering  <meyering@fb.com>
23289         dfa: two small simplifications
23290         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23292 2017-05-18  Jim Meyering  <meyering@fb.com>
23294         fallthrough: update for GCC 7/8
23295         * lib/quotearg.c (FALLTHROUGH): New macro.
23296         Use it whenever one switch case falls through into the next,
23297         replacing "/* Fall through */" comments.  This exposed one
23298         instance of an unwarranted "fall through" comment: unwarranted
23299         because it preceded a "goto" label not a case statement.
23300         * lib/freopen-safer.c (freopen_safer): Likewise.
23301         * lib/fts.c (leaf_optimization_applies): Likewise.
23302         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23303         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23304         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23305         tests/macros.h for the definition.
23306         * tests/test-argp.c (group1_parser): Likewise.
23307         * tests/test-getopt.h (getopt_loop): Likewise.
23309 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23311         argp: fix shift bug
23312         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23313         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23315         argp: fix pointer-subtraction bug
23316         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23317         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23318         See the thread containing Bruno Haible’s report in:
23319         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23321 2017-05-19  Bruno Haible  <bruno@clisp.org>
23323         printf-posix tests: Avoid test failure with "gcc --coverage".
23324         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23325         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23326         than 5000000.
23327         * tests/test-fprintf-posix2.c (main): Likewise.
23329 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23331         closeout: don’t close stderr when sanitizing
23332         * NEWS: Document this.
23333         * lib/closeout.c (__has_feature): New macro, if not already defined.
23334         (SANITIZE_ADDRESS): New constant.
23335         (close_stdout): Don’t close stderr if sanitizing addresses.
23337 2017-05-19  Bruno Haible  <bruno@clisp.org>
23339         get-rusage-data tests: Avoid failure on Linux/glibc.
23340         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23341         on glibc systems.
23343 2017-05-18  Bruno Haible  <bruno@clisp.org>
23345         localename: Include necessary header files on Cygwin.
23346         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23347         where NL_LOCALE_NAME is defined.
23349 2017-05-18  Bruno Haible  <bruno@clisp.org>
23351         gettext: Update macros from gettext git.
23352         * m4/intldir.m4: Require Autoconf >= 2.60.
23353         * m4/progtest.m4: Fix typos in copyright notice.
23355 2017-05-18  Bruno Haible  <bruno@clisp.org>
23357         copy-file tests: Fix link error (regression from 2017-05-01).
23358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23359         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23360         $(LIB_CLOCK_GETTIME).
23362 2017-05-18  Bruno Haible  <bruno@clisp.org>
23364         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23365         (regression from 2017-02-13).
23366         * lib/unicase/special-casing.in.h: Renamed from
23367         lib/unicase/special-casing.h.
23368         * modules/unicase/special-casing (Files): Add
23369         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23370         (Makefile.am): Add rule for generating unicase/special-casing.h.
23371         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23372         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23373         not "special-casing.h".
23374         * lib/unicase/u*.c: Likewise.
23376 2017-05-17  Bruno Haible  <bruno@clisp.org>
23378         README: Don't ask people to read a TeXinfo file.
23379         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23380         * README: Tell people how to read the HTML formatted manual.
23382 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23384         parse-datetime: Fix memleak
23385         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23386         localtime_rz() failure.
23388 2017-05-16  Bruno Haible  <bruno@clisp.org>
23390         javacomp: Fix handle leak.
23391         Found by Coverity.
23392         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23394 2017-05-16  Bruno Haible  <bruno@clisp.org>
23396         relocate: Make it easier to reclaim allocated memory.
23397         * lib/relocatable.h (relocate2): New declaration/macro.
23398         * lib/relocatable.c (relocate2): New function.
23399         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23400         relocate2 function.
23401         * lib/localcharset.c (relocate2): Define fallback.
23402         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23403         allocated memory.
23404         * lib/javaversion.c (relocate2): Define fallback.
23405         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23406         allocated memory.
23408 2017-05-16  Bruno Haible  <bruno@clisp.org>
23410         relocate: Simplify EMX specific code.
23411         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23412         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23414 2017-05-16  Bruno Haible  <bruno@clisp.org>
23416         sigpipe tests: Fix file list.
23417         * modules/sigpipe-tests (Files): Add tests/macros.h.
23419 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23421         manywarnings: update for GCC 7
23422         * build-aux/gcc-warning.spec:
23423         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23424         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23425         requires a non-comment fallthrough attribute.  This is a bit
23426         cleaner than the comment versions.
23427         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23428         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23429         Use it whenever one switch case falls through into the next.
23430         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23431         Use FALLTHROUGH macro.
23433 2017-05-15  Bruno Haible  <bruno@clisp.org>
23435         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23436         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23437         @ALLOCA@, not @LTALLOCA@.
23439 2017-05-15  Bruno Haible  <bruno@clisp.org>
23441         sys_select: Avoid "was expanded before it was required" warning.
23442         * modules/sys_select (configure.ac): Require, not invoke,
23443         gl_HEADER_SYS_SELECT.
23445 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23447         gnulib-tool: improve GNU Make debugging
23448         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23449         Report autoconf diagnostics when it fails, in the output makefile.
23451 2017-05-14  Bruno Haible  <bruno@clisp.org>
23453         stat-time tests: Improve comment.
23454         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23456 2017-05-14  Bruno Haible  <bruno@clisp.org>
23458         same-inode: Adapt for windows-stat-inodes.
23459         * lib/same-inode.h: Include <sys/types.h>.
23460         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23461         * modules/same-inode (Depends-on): Add sys_types.
23463 2017-05-14  Bruno Haible  <bruno@clisp.org>
23465         windows-stat-inodes: New module.
23466         * m4/windows-stat-inodes.m4: New file.
23467         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23468         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23469         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23470         (_GL_WINDOWS_STAT_INODES): New macro.
23471         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23472         (GetFileInformationByHandleExFunc): New variable.
23473         (initialize): Initialize it.
23474         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23475         st_ino appropriately.
23476         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23477         a fallback, because it does not provide st_dev and st_ino values.
23478         * modules/fstat (Depends-on): Add 'verify'.
23479         * modules/windows-stat-inodes: New file.
23480         * doc/windows-stat-inodes.texi: New file.
23481         * doc/gnulib.texi: Include it.
23482         * doc/posix-headers/sys_stat.texi: Mention the new module.
23484 2017-05-14  Bruno Haible  <bruno@clisp.org>
23486         stat-time tests: Workaround for native Windows.
23487         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23488         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23489         New variables.
23490         (initialize_filenames): New function.
23491         (main): Invoke it.
23492         (cleanup, prepare_test): Update.
23494 2017-05-14  Bruno Haible  <bruno@clisp.org>
23496         stat-time: Adapt for windows-stat-timespec.
23497         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23498         entire st_ctim field.
23500 2017-05-13  Jim Meyering  <meyering@fb.com>
23502         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23503         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23504         file that uses the assume macro, claiming that verify.h is unused.
23506 2017-05-13  Bruno Haible  <bruno@clisp.org>
23508         Use symbolic values for _WIN32_WINNT.
23509         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23510         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23512 2017-05-13  Bruno Haible  <bruno@clisp.org>
23514         year2038: New module.
23515         * m4/year2038.m4: New file.
23516         * modules/year2038: New file.
23517         * doc/year2038.texi: New file.
23518         * doc/gnulib.texi: Include it.
23520 2017-05-13  Bruno Haible  <bruno@clisp.org>
23522         largefile: Simplify.
23523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
23524         of _GL_WINDOWS_64_BIT_ST_SIZE.
23526 2017-05-13  Bruno Haible  <bruno@clisp.org>
23528         largefile: Improve and document.
23529         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
23530         the mingw headers already define 'stat' appropriately.
23531         * modules/largefile (Description): Clarify.
23532         * doc/largefile.texi: New file.
23533         * doc/gnulib.texi: Include it.
23534         * doc/posix-headers/sys_types.texi: Update.
23536 2017-05-13  Bruno Haible  <bruno@clisp.org>
23538         truncate: New module.
23539         * lib/unistd.in.h (truncate): New declaration.
23540         * lib/truncate.c: New file.
23541         * m4/truncate.m4: New file.
23542         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
23543         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
23544         REPLACE_TRUNCATE.
23545         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
23546         HAVE_TRUNCATE, REPLACE_TRUNCATE.
23547         * modules/truncate: New file.
23548         * tests/test-unistd-c++.cc (truncate): Test signature.
23549         * doc/posix-functions/truncate.texi: Mention the new module.
23551         * tests/test-truncate.c: New file.
23552         * modules/truncate-tests: New file.
23554 2017-05-13  Bruno Haible  <bruno@clisp.org>
23556         windows-stat-timespec: New module.
23557         * modules/windows-stat-timespec: New file.
23558         * m4/windows-stat-timespec.m4: New file.
23559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
23560         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
23561         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
23562         fields st_atim, st_mtim, st_ctim.
23563         (st_atime, st_mtime, st_ctime): Define as macros.
23564         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
23565         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
23566         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
23567         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
23568         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
23569         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
23570         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23571         FILETIME to 'struct timespec', not 'time_t'.
23572         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23573         FILETIME to 'struct timespec', not 'time_t'.
23574         * lib/stat-time.h (STAT_TIMESPEC): Define also if
23575         _GL_WINDOWS_STAT_TIMESPEC.
23576         * doc/windows-stat-timespec.texi: New file.
23577         * doc/gnulib.texi: Include it.
23579 2017-05-13  Bruno Haible  <bruno@clisp.org>
23581         windows-stat-override: New module.
23582         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
23583         definition. Define GNULIB_defined_struct_stat.
23584         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
23585         link error if this symbol is used and the corresponding module is not
23586         in use.
23587         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
23588         GNULIB_OVERRIDES_STRUCT_STAT.
23589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23590         GNULIB_OVERRIDES_STRUCT_STAT.
23591         * modules/sys_stat (Makefile.am): Substitute
23592         GNULIB_OVERRIDES_STRUCT_STAT.
23593         * modules/windows-stat-override: New file.
23595 2017-05-13  Bruno Haible  <bruno@clisp.org>
23597         fstat: Fix module dependency conditions.
23598         * modules/fstat (Depends-on): Fix typo.
23600 2017-05-13  Bruno Haible  <bruno@clisp.org>
23602         stat, fstat: Complete removal of old native Windows code.
23603         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23604         * lib/fstat.c: Likewise.
23605         * lib/stat-w32.c: Likewise.
23607 2017-05-13  Bruno Haible  <bruno@clisp.org>
23609         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
23610         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23612 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23614         getopt-posix: port to mingw
23615         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23616         Problem reported by Daniel P. Berrage in:
23617         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23619 2017-05-11  Bruno Haible  <bruno@clisp.org>
23621         gettimeofday: Increase precision on mingw.
23622         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23623         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23624         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23625         GetSystemTimePreciseAsFileTime based implementation always.
23626         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23627         mingw.
23629 2017-05-11  Bruno Haible  <bruno@clisp.org>
23631         poll: Fix confusion between SOCKETs and FDs on native Windows.
23632         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23633         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23635 2017-05-11  Bruno Haible  <bruno@clisp.org>
23637         doc: Clarify doc about socket functions on native Windows.
23638         This reworks doc that was added on 2008-09-29.
23639         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23640         clearer wording.
23641         * doc/posix-functions/accept.texi: Use clearer wording.
23642         * doc/posix-functions/bind.texi: Likewise.
23643         * doc/posix-functions/connect.texi: Likewise.
23644         * doc/posix-functions/getpeername.texi: Likewise.
23645         * doc/posix-functions/getsockname.texi: Likewise.
23646         * doc/posix-functions/getsockopt.texi: Likewise.
23647         * doc/posix-functions/ioctl.texi: Likewise.
23648         * doc/posix-functions/listen.texi: Likewise.
23649         * doc/posix-functions/recv.texi: Likewise.
23650         * doc/posix-functions/recvfrom.texi: Likewise.
23651         * doc/posix-functions/send.texi: Likewise.
23652         * doc/posix-functions/sendto.texi: Likewise.
23653         * doc/posix-functions/setsockopt.texi: Likewise.
23654         * doc/posix-functions/shutdown.texi: Likewise.
23655         * doc/posix-functions/socket.texi: Likewise.
23657 2017-05-10  Bruno Haible  <bruno@clisp.org>
23659         poll: Fix link error on native Windows.
23660         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23662 2017-05-10  Bruno Haible  <bruno@clisp.org>
23664         time: Fix missing initialization of HAVE_TIMEZONE_T.
23665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23666         here...
23667         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23668         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23669         gl_HEADER_SYS_TIME_H_DEFAULTS.
23670         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23671         (configure.ac): Remove useless quoting.
23673 2017-05-10  Bruno Haible  <bruno@clisp.org>
23675         Implement a way to opt out from MSVC support, part 2.
23676         * modules/msvc-inval (Include): Document recommended idiom.
23677         * modules/msvc-nothrow (Include): Likewise.
23679         Implement a way to opt out from MSVC support.
23680         This is useful for Emacs.
23681         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23682         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23683         * lib/error.c: Likewise.
23684         * lib/fcntl.c: Likewise.
23685         * lib/flock.c: Likewise.
23686         * lib/fstat.c: Likewise.
23687         * lib/fsync.c: Likewise.
23688         * lib/ioctl.c: Likewise.
23689         * lib/isapipe.c: Likewise.
23690         * lib/lseek.c: Likewise.
23691         * lib/nonblocking.c: Likewise.
23692         * lib/poll.c: Likewise.
23693         * lib/select.c: Likewise.
23694         * lib/sockets.h: Likewise.
23695         * lib/sockets.c: Likewise.
23696         * lib/stdio-read.c: Likewise.
23697         * lib/stdio-write.c: Likewise.
23698         * lib/utimens.c: Likewise.
23699         * lib/w32sock.h: Likewise.
23700         * lib/w32spawn.h: Likewise.
23701         * tests/test-cloexec.c: Likewise.
23702         * tests/test-dup-safer.c: Likewise.
23703         * tests/test-dup2.c: Likewise.
23704         * tests/test-dup3.c: Likewise.
23705         * tests/test-fcntl.c: Likewise.
23706         * tests/test-pipe.c: Likewise.
23707         * tests/test-pipe2.c: Likewise.
23708         * lib/ftruncate.c: Likewise.
23709         (chsize_nothrow): Renamed from chsize.
23710         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23711         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23712         * lib/close.c: Likewise.
23713         * lib/dup.c: Likewise.
23714         * lib/fclose.c: Likewise.
23715         * lib/raise.c: Likewise.
23716         * tests/test-fgetc.c: Likewise.
23717         * tests/test-fputc.c: Likewise.
23718         * tests/test-fread.c: Likewise.
23719         * tests/test-fwrite.c: Likewise.
23720         * lib/getdtablesize.c: Likewise.
23721         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23722         * lib/isatty.c: Don't include msvc-inval.h if
23723         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23724         Include <io.h> as an alternative to msvc-nothrow.h.
23725         * lib/read.c: Likewise.
23726         * lib/write.c: Likewise.
23727         * lib/dup2.c: Likewise.
23728         (dup2_nothrow): New function.
23729         (ms_windows_dup2): Use it.
23730         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23731         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23732         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23733         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23734         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23735         * m4/read.m4 (gl_FUNC_READ): Likewise.
23736         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23737         * doc/windows-without-msvc.texi: New file.
23738         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23739         section.
23741 2017-05-10  Bruno Haible  <bruno@clisp.org>
23743         wait-process: Adjust native Windows support.
23744         * lib/wait-process.c: Use the usual condition for recognizing a native
23745         Windows platform.
23747 2017-05-10  Bruno Haible  <bruno@clisp.org>
23749         doc: New chapter "Native Windows Support".
23750         * doc/gnulib.texi (Native Windows Support): New chapter.
23751         * doc/windows-libtool.texi: Small wording changes.
23752         * doc/windows-sockets.texi: Small wording and formatting changes.
23754 2017-05-10  Bruno Haible  <bruno@clisp.org>
23756         doc: Move section "Library version handling".
23757         * doc/gnulib.texi: Move section "Library version handling"
23758         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23760 2017-05-10  Bruno Haible  <bruno@clisp.org>
23762         doc: Move section "Running self-tests under valgrind".
23763         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23764         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23766 2017-05-10  Bruno Haible  <bruno@clisp.org>
23768         doc: New chapter "Build Infrastructure Modules".
23769         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23771 2017-05-10  Bruno Haible  <bruno@clisp.org>
23773         Prepare for reordering sections in the manual.
23774         * doc/gnulib.texi: Move several sections to separate files. Include
23775         these files.
23776         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23777         * doc/obsolete.texi: Likewise.
23778         * doc/extra-tests.texi: Likewise.
23779         * doc/transversal.texi: Likewise.
23780         * doc/namespace.texi: Likewise.
23781         * doc/check-version.texi: Likewise.
23782         * doc/windows-sockets.texi: Likewise.
23783         * doc/windows-libtool.texi: Likewise.
23784         * doc/licenses-texi.texi: Likewise.
23785         * doc/build-automation.texi: Likewise.
23786         * doc/c-locale.texi: Likewise.
23788 2017-05-10  Bruno Haible  <bruno@clisp.org>
23790         Fix instructions how to update manual on www.gnu.org.
23791         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23793 2017-05-09  Bruno Haible  <bruno@clisp.org>
23795         tzset: Expand comment about TZ problem on native Windows.
23796         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23797         Paul Eggert.
23798         * lib/ctime.c (rpl_ctime): Likewise.
23799         * lib/localtime.c (rpl_localtime): Likewise.
23800         * lib/mktime.c (mktime): Likewise.
23801         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23802         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23804 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23806         intprops: don’t depend on ‘verify’
23807         Problem reported by Ævar Arnfjörð Bjarmason in:
23808         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23809         * lib/intprops.h: Do not include verify.h, and move compile-time
23810         checks from here ...
23811         * tests/test-intprops.c (main): ... to here, if they’re not here
23812         already.  Check widths of other standard integer types.
23813         * modules/intprops (Depends-on): Remove ‘verify’.
23815 2017-05-07  Bruno Haible  <bruno@clisp.org>
23817         utimens: On native Windows, support 100ns resolution also if fd < 0.
23818         * lib/utime.in.h: Include <time.h>.
23819         (_gl_utimens_windows): New declaration.
23820         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23821         (utime): Invoke it.
23822         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23823         instead of utime.
23824         * modules/utime (Depends-on): Add 'time'.
23826 2017-05-07  Bruno Haible  <bruno@clisp.org>
23828         utimens: Improve error code on native Windows.
23829         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23830         error code EACCES, not EINVAL.
23832 2017-05-07  Bruno Haible  <bruno@clisp.org>
23834         utime: Handle more Windows error codes.
23835         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23836         Based on explanations by Billy O'Neal.
23838 2017-05-05  Bruno Haible  <bruno@clisp.org>
23840         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23841         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23842         union.
23843         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23844         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23845         value of cipher->IV.
23847 2017-05-05  Bruno Haible  <bruno@clisp.org>
23849         wctype-h-c++-tests: Update.
23850         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23852 2017-05-05  Bruno Haible  <bruno@clisp.org>
23854         wchar-c++-tests: Update.
23855         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23857 2017-05-05  Bruno Haible  <bruno@clisp.org>
23859         utime-h-c++-tests: New module.
23860         * tests/test-utime-h-c++.cc: New file.
23861         (utime): Declare, missing since 2017-04-30.
23862         * modules/utime-h-c++-tests: New file.
23864 2017-05-05  Bruno Haible  <bruno@clisp.org>
23866         unistd-c++-tests: Update.
23867         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23868         (read): Declare, missing since 2011-04-15.
23869         (sethostname): Declare, missing since 2011-12-03.
23871 2017-05-05  Bruno Haible  <bruno@clisp.org>
23873         time-c++-tests: Update.
23874         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23875         (localtime, gmtime): Declare, missing since 2017-04-30.
23876         (ctime): Declare, missing since 2017-04-30.
23877         (strftime): Declare, missing since 2017-04-30.
23878         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23879         2015-07-24.
23881 2017-05-05  Bruno Haible  <bruno@clisp.org>
23883         sys_resource-c++-tests: New module.
23884         * tests/test-sys_resource-c++.cc: New file.
23885         (getrusage): Declare, missing since 2012-04-13.
23886         * modules/sys_resource-c++-tests: New file.
23888 2017-05-05  Bruno Haible  <bruno@clisp.org>
23890         strings-c++-tests: New module.
23891         * tests/test-strings-c++.cc: New file.
23892         (ffs): Declare, missing since 2011-07-12.
23893         * modules/strings-c++-tests: New file.
23895 2017-05-05  Bruno Haible  <bruno@clisp.org>
23897         string-c++-tests: Update.
23898         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23899         (ffsll): Declare, missing since 2011-07-15.
23901 2017-05-05  Bruno Haible  <bruno@clisp.org>
23903         stdlib-c++-tests: Update.
23904         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23905         2011-10-18.
23906         (ptsname_r): Declare, missing since 2011-11-07.
23907         (qsort_r): Declare, missing since 2014-08-29.
23908         (random, srandom, initstate, setstate): Declare, missing since
23909         2012-01-14.
23910         (secure_getenv): Declare, missing since 2013-02-05.
23912 2017-05-05  Bruno Haible  <bruno@clisp.org>
23914         stdio-c++-tests: Update.
23915         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23917 2017-05-05  Bruno Haible  <bruno@clisp.org>
23919         signal-h-c++-tests: Update.
23920         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23922 2017-05-05  Bruno Haible  <bruno@clisp.org>
23924         math-c++-tests: Update.
23925         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23926         (fma): Declare, missing since 2011-10-17.
23927         (fmal): Declare, missing since 2011-10-17.
23929 2017-05-05  Bruno Haible  <bruno@clisp.org>
23931         locale-c++-tests: Update.
23932         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23933         2012-03-25.
23935 2017-05-05  Bruno Haible  <bruno@clisp.org>
23937         inttypes-c++-tests: New module.
23938         * tests/test-inttypes-c++.cc: New file.
23939         (strtoimax): Declare, missing since 2012-01-05.
23940         (strtoumax): Declare, missing since 2012-01-05.
23941         * modules/inttypes-c++-tests: New file.
23943 2017-05-05  Bruno Haible  <bruno@clisp.org>
23945         dirent-c++-tests: Update.
23946         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23947         (rewinddir): Declare, missing since 2011-09-13.
23948         (dirfd): Declare, missing since 2010-03-08.
23950 2017-05-04  Bruno Haible  <bruno@clisp.org>
23952         argp: Fix mistake in 2017-04-23 commit.
23953         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23954         assume that strerror_r returns 'int', not 'char *'.
23956 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23958         argp: Fix typo.
23959         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23961 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23963         utimens: port to Emacs + MS-Windows
23964         Skip the new MS-Windows-specific code if Emacs.
23965         * lib/utimens.c [EMACS_CONFIGUATION]:
23966         Avoid new MS-Windows-specific code.
23967         (USE_SETFILETIME): New macro.
23968         (fdutimens): Use it.
23970 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23972         tzset: update doc for TZ problems on MS-Windows
23973         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23974         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23975         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23976         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23977         * doc/posix-functions/wcsftime.texi:
23978         Mention some issues with TZ under MS-Windows.
23980 2017-05-01  Bruno Haible  <bruno@clisp.org>
23982         copy-file: Fix build error on mingw.
23983         * modules/copy-file (Depends-on): Add 'close'.
23985 2017-05-01  Bruno Haible  <bruno@clisp.org>
23987         tzset: Work around TZ problem on native Windows.
23988         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23989         Windows, set REPLACE_TZSET to 1.
23990         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23991         invoke '_tzset' instead of 'tzset'.
23992         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23994         * modules/time_rz (Depends-on): Add tzset.
23995         * lib/time_rz.c (tzset): Remove fallback definition.
23996         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23998 2017-05-01  Bruno Haible  <bruno@clisp.org>
24000         mktime: Fix dependencies.
24001         * modules/mktime (Depends-on): Add 'time'.
24003 2017-05-01  Bruno Haible  <bruno@clisp.org>
24005         New module 'localtime-buffer', split off from module 'gettimeofday'.
24006         * lib/localtime-buffer.h: New file.
24007         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24008         * lib/time.in.h (tzset): New declaration.
24009         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24010         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24011         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24012         moved to lib/localtime-buffer.c or lib/tzset.c.
24013         * m4/localtime-buffer.m4: New file.
24014         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24015         HAVE_TZSET, REPLACE_TZSET.
24016         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24017         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24018         gl_LOCALTIME_BUFFER_NEEDED.
24019         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24020         since 2007-01-18.
24021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24022         tzset.
24023         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24024         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24025         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24026         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24027         * modules/localtime-buffer: New file.
24028         * modules/time (Depends-on): Remove 'gettimeofday'.
24029         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24030         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24031         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24032         (Files): Add lib/tzset.c.
24033         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24034         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24035         gl_TIME_MODULE_INDICATOR.
24036         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24038 2017-05-01  Bruno Haible  <bruno@clisp.org>
24040         copy-file: Preserve sub-second time stamps.
24041         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24042         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24043         transport the time stamps from the original file to the destination
24044         file.
24045         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24046         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24047         utime-h.
24049 2017-05-01  Bruno Haible  <bruno@clisp.org>
24051         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24052         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24053         also on MSVC.
24054         Reported by Eli Zaretskii <eliz@gnu.org>.
24056 2017-05-01  Bruno Haible  <bruno@clisp.org>
24058         wchar: Fix compilation error with the original mingw.org mingw.
24059         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24060         <stddef.h> instead.
24061         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24062         gl_WCTYPE_H.
24063         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24064         gl_TYPE_WINT_T_PREREQ instead.
24065         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24066         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24067         Reported by Eli Zaretskii <eliz@gnu.org>.
24069 2017-04-30  Bruno Haible  <bruno@clisp.org>
24071         utimecmp: Add support for native Windows.
24072         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24074 2017-04-30  Bruno Haible  <bruno@clisp.org>
24076         utimens: Add support for native Windows.
24077         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24078         (fdutimens): Provide a native Windows implementation, like utime.c with
24079         added tv_nsec support.
24080         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24081         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24083 2017-04-30  Bruno Haible  <bruno@clisp.org>
24085         wcsftime: New module.
24086         * lib/wchar.in.h (wcsftime): New declaration.
24087         * lib/wcsftime.c: New file.
24088         * m4/wcsftime.m4: New file.
24089         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24090         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24091         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24093         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24094         * modules/wcsftime: New file.
24095         * doc/posix-functions/wcsftime.texi: Mention the new module.
24097 2017-04-30  Bruno Haible  <bruno@clisp.org>
24099         strftime-fixes: New module.
24100         * lib/time.in.h (strftime): New declaration.
24101         * lib/strftime-fixes.c: New file.
24102         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24103         (gl_FUNC_STRFTIME): Remove macro.
24104         * m4/strftime-fixes.m4: New file.
24105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24106         REPLACE_STRFTIME.
24107         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24108         REPLACE_STRFTIME.
24109         * modules/strftime-fixes: New file.
24110         * doc/posix-functions/strftime.texi: Mention the new module.
24112 2017-04-30  Bruno Haible  <bruno@clisp.org>
24114         mktime: Work around TZ problem on native Windows.
24115         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24116         from the native Windows workaround.
24117         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24118         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24119         'guessing no'.
24120         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24121         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24122         NEED_MKTIME_WINDOWS.
24123         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24124         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24125         NEED_MKTIME_INTERNAL.
24126         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24127         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24128         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24129         not REPLACE_MKTIME.
24130         * doc/posix-functions/mktime.texi: Mention the native Windows
24131         workaround.
24133 2017-04-30  Bruno Haible  <bruno@clisp.org>
24135         localtime: New module.
24136         * lib/time.in.h (localtime): Declare also if requested by module
24137         'localtime'.
24138         * lib/localtime.c: New file.
24139         * m4/localtime.m4: New file.
24140         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24141         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24142         * modules/localtime: New file.
24143         * doc/posix-functions/localtime.texi: Mention the new module.
24145 2017-04-30  Bruno Haible  <bruno@clisp.org>
24147         ctime: New module.
24148         * lib/time.in.h (ctime): New declaration.
24149         * lib/ctime.c: New file.
24150         * m4/ctime.m4: New file.
24151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24152         REPLACE_CTIME.
24153         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24154         * modules/ctime: New file.
24155         * doc/posix-functions/ctime.texi: Mention the new module.
24157 2017-04-30  Bruno Haible  <bruno@clisp.org>
24159         gettimeofday: Provide higher resolution on native Windows.
24160         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24161         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24162         (initialize): Initialize it.
24163         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24164         'struct timeval'. Don't use _ftime().
24165         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24166         <sys/timeb.h> and _ftime.
24168 2017-04-30  Bruno Haible  <bruno@clisp.org>
24170         Document the problem with the Cygwin environment variable TZ.
24171         * doc/posix-functions/tzset.texi: Add note about TZ.
24172         * doc/posix-functions/ctime.texi: Likewise.
24173         * doc/posix-functions/localtime.texi: Likewise.
24174         * doc/posix-functions/mktime.texi: Likewise.
24175         * doc/posix-functions/strftime.texi: Likewise.
24176         * doc/posix-functions/wcsftime.texi: Likewise.
24177         * doc/pastposix-functions/ftime.texi: Likewise.
24179 2017-04-30  Bruno Haible  <bruno@clisp.org>
24181         utime-tests: New module.
24182         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24183         * tests/test-utimens-common.h: Include <sys/stat.h>.
24184         * modules/utime-tests: New file.
24186 2017-04-29  Bruno Haible  <bruno@clisp.org>
24188         utime: New module.
24189         * lib/utime.in.h: Add comment for snippets.
24190         (utime): New declaration.
24191         * lib/utime.c: New file.
24192         * m4/utime.m4: New file.
24193         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24194         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24195         REPLACE_UTIME.
24196         * modules/utime-h (Depends-on): Add snippets.
24197         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24198         Insert snippets.
24199         * modules/utime: New file.
24200         * doc/posix-functions/utime.texi: Mention the new module.
24202 2017-04-29  Bruno Haible  <bruno@clisp.org>
24204         utime-h: Modernize handling of 'struct utimbuf'.
24205         * lib/utime.in.h: Include next <utime.h> if it exists.
24206         (utimbuf): Define to _utimbuf on native Windows.
24207         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24208         Set UTIME_H on native Windows.
24209         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24210         * modules/utime-h (Depends-on): Add include_next.
24211         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24212         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24214         * lib/utimens.c (utimbuf): Remove fallback definition.
24215         * m4/utimens.m4 (gl_UTIMENS): Don't require
24216         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24217         * m4/utimbuf.m4: Remove file.
24218         * modules/utimens (Files): Remove m4/utimbuf.m4.
24220 2017-04-29  Bruno Haible  <bruno@clisp.org>
24222         Make use of module 'utime-h'.
24223         * modules/copy-file (Depends-on): Add utime-h.
24224         * lib/copy-file.c: Assume that <utime.h> exists.
24225         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24227         * modules/utimens (Depends-on): Add utime-h.
24228         * lib/utimens.c: Assume that <utime.h> exists.
24230 2017-04-29  Bruno Haible  <bruno@clisp.org>
24232         utime-h: New module.
24233         * m4/utime_h.m4: New file.
24234         * lib/utime.in.h: New file.
24235         * modules/utime-h: New file.
24236         * doc/posix-headers/utime.texi: Mention the new module.
24238         * tests/test-utime-h.c: New file.
24239         * modules/utime-h-tests: New file.
24241 2017-04-30  Bruno Haible  <bruno@clisp.org>
24243         Fix a few typos.
24244         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24245         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24246         * doc/posix-functions/fstat.texi: Fix a plural typo.
24247         * doc/posix-functions/stat.texi: Likewise.
24248         * m4/include_next.m4: Update comments.
24250 2017-04-29  Bruno Haible  <bruno@clisp.org>
24252         error: Fix mistake in 2017-04-23 commit.
24253         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24254         assume that strerror_r returns 'int', not 'char *'.
24256 2017-04-29  Bruno Haible  <bruno@clisp.org>
24258         stat: Fix time_t values and other problems on native Windows platforms.
24259         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24260         implementations of stat().
24261         * lib/stat.c: Include filename.h instead of dosname.h. Include
24262         malloca.h, stat-w32.h.
24263         (is_unc_root): New function.
24264         (rpl_stat): New implementation for native Windows. Remove
24265         REPLACE_FUNC_STAT_DIR code.
24266         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24267         Don't define REPLACE_FUNC_STAT_DIR.
24268         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24269         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24270         (Depends-on): Remove dosname. Add filename, malloca.
24271         (configure.ac): Also compile lib/stat-w32.c.
24273 2017-04-29  Bruno Haible  <bruno@clisp.org>
24275         fstat: Fix time_t values on native Windows platforms.
24276         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24277         * lib/stat-w32.h: New file.
24278         * lib/stat-w32.c: New file.
24279         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24280         stat-w32.h instead.
24281         (fstat_nothrow): Remove function.
24282         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24283         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24284         always.
24285         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24286         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24287         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24288         (configure.ac): Also compile lib/stat-w32.c.
24290 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24292         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24293         Problem reported by Assaf Gordon and Gavin Smith in:
24294         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24295         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24296         #define this, too.
24298 2017-04-29  Bruno Haible  <bruno@clisp.org>
24300         strerror_r-posix: Fixes for MSVC 14.
24301         * lib/strerror_r.c: Include <stdarg.h>.
24302         (strerror_r): Provide error messages for errno values 100...140.
24303         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24305 2017-04-28  Bruno Haible  <bruno@clisp.org>
24307         noreturn: New module.
24308         * lib/noreturn.h: New file.
24309         * modules/noreturn: New file.
24310         * tests/test-noreturn.c: New file.
24311         * modules/noreturn-tests: New file.
24312         * tests/test-noreturn-c++.cc: New file.
24313         * modules/noreturn-c++-tests: New file.
24315 2017-04-27  Bruno Haible  <bruno@clisp.org>
24317         wctype-h: Fix compilation error with the original mingw.org mingw.
24318         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24319         HAVE_CRTDEFS_H.
24320         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24321         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24322         <stddef.h> instead.
24323         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24325 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24327         nap.h: Fix compilation on non windows platforms
24328         * tests/nap.h: Move misplaced endif.
24330 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24331         and Paul Eggert  <eggert@cs.ucla.edu>
24333         time_rz: fix heap buffer overflow vulnerability
24334         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24335         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24336         whether there is enough buffer space available, thus avoiding
24337         the problematic promotion of signed to unsigned causing an invalid
24338         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24339         the start of the buffer.
24340         * tests/test-parse-datetime.c (main): Add a test case written by
24341         Paul Eggert, which overwrites enough of the heap so that
24342         standard glibc will fail with "free(): invalid pointer"
24343         without the patch applied.
24345 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24347         xalloc: add missing integer overflow check
24348         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24349         overflow when P is null.
24351 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24353         parse-datetime: make it standalone
24354         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24355         (_GL_ATTRIBUTE_FORMAT): New macro.
24356         These are needed to get './gnulib-tool --test parse-datetime' to work.
24358 2017-04-23  Bruno Haible  <bruno@clisp.org>
24360         nap.h: Port to native Windows.
24361         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24362         use nap_fd instead. On native Windows, close and reopen nap_fd.
24363         (nap_works): Don't compare the ctimes, because on native Windows, these
24364         are the creation times.
24365         (nap): Update.
24367 2017-04-23  Bruno Haible  <bruno@clisp.org>
24369         nap.h: Fix logic.
24370         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24372 2017-04-23  Bruno Haible  <bruno@clisp.org>
24374         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24375         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24376         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24377         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24378         * lib/argp-help.c (__argp_failure): Likewise.
24380 2017-04-23  Bruno Haible  <bruno@clisp.org>
24382         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24383         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24384         * lib/strerror_r.c: Likewise.
24386 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24388         Target a C99 subset, not a C89 subset
24389         For many years Gnulib has targeted C89 and has resisted using C99
24390         features, as some Gnulib-using programs still wanted to target
24391         C89.  As this no longer seems to be the case, relax the porting
24392         requirements to allow some C99 features.  This is merely a change
24393         to the documentation, to give other Gnulib developers a chance to
24394         weigh in on the topic.
24395         * doc/extern-inline.texi (extern inline):
24396         * doc/gnulib-readme.texi (Portability guidelines):
24397         * doc/gnulib-tool.texi (Initial import):
24398         * doc/gnulib.texi (Header files):
24399         Modernize to talk about C99 and C11 instead of C89 and C99.
24400         * doc/gnulib-readme.texi (Portability guidelines):
24401         Now a section, not merely a subsection, so that it
24402         can be split up.  Modernize a bit.
24403         (C language versions, C99 features assumed)
24404         (C99 features avoided):
24405         New sections.
24407 2017-04-23  Bruno Haible  <bruno@clisp.org>
24409         doc: New section "Modules that modify the way other modules work".
24410         * doc/gnulib.texi (Modules that modify the way other modules work): New
24411         section.
24413 2017-04-23  Bruno Haible  <bruno@clisp.org>
24415         stat-time: Update comments.
24416         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24417         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24418         Windows.
24420 2017-04-01  Bruno Haible  <bruno@clisp.org>
24422         glob: Fix more memory leaks.
24423         * lib/glob.c (glob): Free allocated memory before returning.
24424         Reported by Coverity via Tim Rühsen.
24426 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24428         poll: improve fast check for out-of-range NFD
24429         * lib/poll.c: Do not include intprops.h.
24430         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24431         * modules/poll (Depends-on): Remove intprops.
24433         ftoastr: cite a newer paper
24434         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24435         instead of Loitsch 2010.
24437 2017-04-22  Bruno Haible  <bruno@clisp.org>
24439         poll: Enable argument check also in the Windows implementation.
24440         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24441         Reported by Paul Eggert.
24443 2017-04-22  Bruno Haible  <bruno@clisp.org>
24445         getlogin_r: Work around bug in Mac OS X 10.12.
24446         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24447         bug.
24448         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24449         given size minus 1, call getlogin_r a second time, on a larger buffer.
24450         * modules/getlogin_r (Depends-on): Add malloca.
24451         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24453 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24455         parse-datetime: fix %z and prefer signed int
24456         %z problem reported by Pádraig Brady in:
24457         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24458         While fixing it, I decided to prefer signed ints to size_t, as
24459         they are less error-prone (e.g., ubsan catches overflow).
24460         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24461         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24462         counts, since signed integers make for better debugging.
24463         (date): Don’t assume %z works in printf formats.
24464         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24465         sizes of buffers known to be small, e.g., because we’re using snprintf.
24466         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24468 2017-04-22  Bruno Haible  <bruno@clisp.org>
24470         *printf: Work around rounding bug on Mac OS X.
24471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24472         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24473         Mac OS X and FreeBSD.
24474         * doc/glibc-functions/*printf.texi: Likewise.
24476 2017-04-22  Bruno Haible  <bruno@clisp.org>
24478         vasnprintf tests: Avoid warnings.
24479         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24480         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24481         test.
24483 2017-04-22  Bruno Haible  <bruno@clisp.org>
24485         sys_file tests: Avoid warning.
24486         * tests/test-sys_file.c (main): Add a default clause to the switch
24487         statement.
24489 2017-04-22  Bruno Haible  <bruno@clisp.org>
24491         sethostname: Update doc.
24492         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24493         Mac OS X.
24495 2017-04-22  Bruno Haible  <bruno@clisp.org>
24497         quotearg tests: Avoid warnings.
24498         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24499         false.
24501 2017-04-22  Bruno Haible  <bruno@clisp.org>
24503         poll: Enable argument check.
24504         * lib/poll.c: Include intprops.h.
24505         (poll): Check value of nfd correctly.
24506         * modules/poll (Depends-on): Add intprops.
24508 2017-04-22  Bruno Haible  <bruno@clisp.org>
24510         get-rusage-data: Avoid warnings on Mac OS X.
24511         * lib/get-rusage-data.c: On Mac OS X, don't define
24512         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24513         (get_rusage_data) [Mac OS X]: Just return 0.
24515 2017-04-22  Bruno Haible  <bruno@clisp.org>
24517         xbinary-io: Fix build error.
24518         * modules/xbinary-io (Depends-on): Add gettext-h.
24519         * lib/xbinary-io.c: Include gettext.h and define _().
24520         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
24521         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
24523 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24525         parse-datetime: overflow and debug cleanups
24526         This long patch was triggered by this bug report from Ruediger Meier:
24527         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
24528         I fixed the bug he noted, then found some others nearby, and then
24529         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
24530         up some of the code to follow GNU standards while I was at it.
24531         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
24532         use c_isdigit.
24533         (EPOCH_YEAR): Remove; unused.
24534         (TM_YEAR_BASE): Now an enum rather than a macro.
24535         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
24536         time zone offset, since timezones now are in terms of seconds and
24537         not minutes.
24538         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
24539         appropriate.  Verify that intmax_t is wide enough.
24540         (time_overflow, time_zone_str): New functions, used to deal
24541         more reliably with overflow.
24542         (dbg_printf): Add printf attribute, to help catch integer width errors.
24543         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
24544         (%union, to_hour, yylex, parse_datetime2):
24545         Use intmax_t instead of long int and/or long_time_t.
24546         All uses changed.
24547         (DBGBUFSIZE): Move earlier.
24548         (relative_time, set_hhmmss, parser_control):
24549         Just use int for nanoseconds and for time zones; that’s wide enough.
24550         (parser_control): Use bool for members like year_seen that can
24551         be booleans instead of counters.  All uses changed.
24552         Remove debug_default_input_timezone; no longer needed.
24553         All uses removed.
24554         (apply_relative_time): Return a bool overflow flag.
24555         All uses changed to check for overflow.
24556         (apply_relative_time, zone, date, relunit, relunit_snumber)
24557         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
24558         Check for integer overflow portably.
24559         (str_days): Use just int for N, as it’s wide enough.
24560         Prefer 2D char arrays to arrays of char * when it looks like
24561         2D is a win on typical platforms.
24562         Prefer snprintf to strncpy/strncat, for simplicity;
24563         all buffers are smaller than INT_MAX so this is safe.
24564         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
24565         (debug_print_current_time): Don’t assume tv_nsec is of type long,
24566         as this is not true on x32.  Output "." before any nanoseconds.
24567         (debug_print_current_time, parse_datetime2):
24568         Output local zones using a more-consistent format.
24569         (debug_print_current_time, date, parse_datetime2):
24570         (main) [TEST]:
24571         Don’t assume time_t is the same width as long.
24572         (print_rel_part): New function, replacing ...
24573         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
24574         (debug_print_relative_time): Use bool for boolean.
24575         (local_zone): dsts_seen now counts only tDST instances.
24576         (date): Fix printf of size_t to use %z.  Do not assume numeric
24577         tokens have negative values merely because the context suggests
24578         a syntax with "-" separating tokens.
24579         (time_zone_hhmm): Return bool success indicator, which checks for
24580         overflow.  Store result into PC->time_zone instead.  All callers
24581         changed.
24582         (tm_year_str): New function.  Return a bool success indicator and
24583         store the result into a buffer.  All callers changed.  Output the
24584         numerically correct string even if adding 1900 to the year would
24585         overflow.
24586         (to_tm_year): New function, replacing the old to_year.  All
24587         callers changed.
24588         (tm_diff): Sync with glibc.
24589         (lookup_word): Use to_uchar instead of doing it by hand.
24590         (TZBUFSIZE): Now local to the only function that needs it.
24591         (debug_strfdatetime): Simplify now that time zones are int seconds.
24592         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24593         (get_effective_timezone): Remove.  All uses removed.
24594         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24595         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24596         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24597         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24598         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24599         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24600         * modules/parse-datetime (Depends-on): Add inttypes.
24602 2017-04-21  Bruno Haible  <bruno@clisp.org>
24604         gettext-h: Avoid -Wundef warning.
24605         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24606         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24607         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
24609 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
24611         error: Avoid "function declaration isn't a prototype" warning.
24612         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24614 2017-04-21  Bruno Haible  <bruno@clisp.org>
24616         vasnprintf: Fix for MSVC 14.
24617         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24618         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24619         of !HAVE_SNPRINTF_RETVAL_C99.
24621 2017-04-21  Bruno Haible  <bruno@clisp.org>
24623         mbrtowc tests: Fix test failures on MSVC 14.
24624         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24625         behaviour for invalid input.
24627 2017-04-21  Bruno Haible  <bruno@clisp.org>
24629         mbsinit: Fix for MSVC 14.
24630         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24631         implementation that is in sync with mbrtowc.c. On other platforms, use
24632         an adequate ad-hoc implementation.
24634 2017-04-21  Bruno Haible  <bruno@clisp.org>
24636         Fix test-mbrtowc5.sh failure on native Windows.
24637         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24638         "C".
24640 2017-04-21  Bruno Haible  <bruno@clisp.org>
24642         Avoid accidental use of native Windows APIs on Cygwin.
24643         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24644         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24645         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24647 2017-04-20  Bruno Haible  <bruno@clisp.org>
24649         Remove red warnings from the generated MODULES.html.
24650         * modules/fcntl (Description): Disambiguate function references.
24651         * modules/getcwd-lgpl (Description): Likewise.
24652         * modules/hostent (Description): Likewise.
24653         * modules/servent (Description): Likewise.
24654         * modules/tempname (Description): Likewise.
24656 2017-04-20  Bruno Haible  <bruno@clisp.org>
24658         verify tests: Fix spurious failure with parallel make.
24659         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24660         EXTRA_PROGRAMS.
24661         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24662         * tests/test-verify-try.c: New file.
24663         * modules/verify-tests (Files): Add it.
24664         (EXTRA_PROGRAMS): Add test-verify-try.
24665         (MOSTLYCLEANFILES): Update accordingly.
24666         Reported by Adam James Stewart <ajstewart@anl.gov>.
24668 2017-04-18  Bruno Haible  <bruno@clisp.org>
24670         vma-iter: Fix compilation error on Solaris 7.
24671         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24672         like on IRIX, OSF/1.
24673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24675 2017-04-18  Bruno Haible  <bruno@clisp.org>
24677         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24678         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24679         included.
24680         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24681         <sys/procfs.h>.
24682         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24683         <sys/procfs.h> cannot be included.
24684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24686 2017-04-18  Bruno Haible  <bruno@clisp.org>
24688         getopt-gnu: Add comments.
24689         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24690         * modules/getopt-gnu (configure.ac): Likewise.
24692 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24694         regex: port better to Solaris 10
24695         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24696         gettext, and this causes a double #define.
24697         Problem reported by Gavin Smith in:
24698         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24699         * lib/regex_internal.h (gettext): #undef before #defining.
24701 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24703         intprops: improve comments
24704         * lib/intprops.h: Improve and shorten commentary.
24705         For the record, if we ever run into a pedantic compiler that
24706         behaves differently from GCC when converting an out-of-range value
24707         to a signed integer, we can work around the problem with something
24708         like the following code, where UCT is the signed counterpart of T
24709         (UCT is sometimes narrower than UT) and all callers are changed
24710         accordingly:
24711         #if __SUNPRO_C <= 0x5120
24712         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24713            ((t) ((ut) (a) op (ut) (b)))
24714         #else
24715         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24716            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24717             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24718                + TYPE_MINIMUM (t)) \
24719             : (t) (uct) ((ut) (a) op (ut) (b)))
24720         #endif
24722 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24724         intprops: try to avoid tickling similar bugs
24725         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24726         needs to be the same width as T; it can be wider.
24727         Change callers so that UT is at least as wide as unsigned int,
24728         as I suspect that this is less likely to run into compiler bugs.
24730         intprops: port to Oracle Studio 12.3 x86
24731         Problem reported by Gavin Smith in:
24732         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24733         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24734         Convert unsigned to signed via the usual rather than the standard way,
24735         to avoid a compiler bug in Oracle Studio 12.3 x86.
24737 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24739         getopt: prefer - to _ in new file names
24740         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24741         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24742         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24743         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24744         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24745         All uses changed.
24747         getopt: port recent getopt changes to macOS
24748         Problem reported by Harald Maier (Bug#26398).
24749         The macOS C compiler uses __nonnull for its own purposes and that
24750         clashes with glibc's __nonnull.
24751         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24752         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24753         * lib/getopt_core.h (getopt):
24754         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24755         Use _GL_ARG_NONNULL, not __nonnull.
24756         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24757         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24758         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24759         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24761 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24763         getopt-gnu: omit some duplicate code
24764         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24765         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24766         gnulib-tool already does this.
24767         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24768         getopt-posix, which we depend on.
24770         getopt-posix: use angle-bracket include
24771         * lib/getopt1.c: Include <config.h>, not "config.h".
24773 2017-04-06  Zack Weinberg  <zackw@panix.com>
24775         getopt: annotate files with relationship to glibc
24777         As the final act in this patchset, adjust the message at the top of
24778         each file to indicate which files are synced with glibc.  (This has
24779         already been done for most of the headers.)
24781         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24782         Mention in top-of-file boilerplate that these files are shared
24783         between glibc and gnulib.
24786         getopt: split up getopt.in.h and eliminate __need_getopt
24788         Over in glibc, all of the __need macros are being phased out in favor
24789         of small headers that declare only the necessary components, as this
24790         is much simpler and less prone to bugs.  As getopt is shared with
24791         glibc, gnulib needs to do the same for __need_getopt.
24793         __need_getopt is misnamed; what it really means is "we want only the
24794         getopt features specified in POSIX, not the GNU extensions".  glibc
24795         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24796         these files can be shared verbatim with gnulib.  The portability
24797         wrapper, on the other hand, they have renounced altogether; glibc's
24798         getopt.h will no longer be shared with gnulib at all.  In exchange,
24799         certain glibc-specific quirks (having to do with __posix_getopt) no
24800         longer need appear in gnulib's headers at all.
24802         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24803         splits up the current gnulib-side portability wrapper into three
24804         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24805         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24806         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24807         unistd.in.h just use them.  All new files are clearly marked with
24808         whether they are shared with glibc.
24810         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24811         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24812         with glibc, and ...
24813         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24814         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24815         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24816         instead of defining __need_getopt and including the full getopt.h.
24818         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24819         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24820         * modules/getopt-posix (Files): Add new headers and sort list.
24821         (Depends-on): No longer need snippet/arg-nonnull.
24822         (Makefile.am): Generate getopt_cdefs.h.
24825         getopt: better handling of ambiguous options
24827         glibc's getopt uses alloca to construct a linked list of possibilities
24828         for an "ambiguous" long option.  In gnulib, malloc should be used
24829         instead.  Providing for both cases complicates things a fair bit.
24831         This patch rewrites ambiguous-option handling to use a boolean vector
24832         instead of a linked list.  There is then only one allocation that
24833         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24834         and in gnulib we define __libc_use_alloca to always be false, so we
24835         don't need ifdefs in the middle of the function.  This should also be
24836         slightly more efficient in the normal case of long options being fully
24837         spelled out -- I think most people aren't even aware they _can_
24838         sometimes abbreviate long options.
24840         One interesting consequence is that the list of possibilities is now
24841         printed in exactly the order they appear in the list of long options,
24842         instead of the first possibility being shuffled to the end.
24844         (The patch looks bigger than it really is because there's a fair bit
24845         of reindentation and code rearrangement.)
24847         * lib/getopt.c: When used standalone, define __libc_use_alloca
24848         as always false and alloca to abort if called.
24849         (process_long_option): Rewrite handling of ambiguous long options
24850         to use a single boolean vector, not a linked list; use
24851         __libc_use_alloca to decide whether to allocate this using alloca.
24854         getopt: refactor long-option handling
24856         There were two copies of the bulk of the code to handle long options.
24857         Now there is only one.
24859         This change temporarily removes the logic to avoid using alloca when
24860         standalone; the next patch in the series will restore it.
24862         * lib/getopt.c (process_long_option): New function split out
24863         from _getopt_internal_r.
24864         (_getopt_internal_r): Replace both copies of the long-option
24865         processing code with calls to process_long_option.
24868         getopt: tidy up _getopt_initialize a bit
24870         _getopt_data.__posixly_correct is completely redundant to
24871         _getopt_data.__ordering, and some work that logically belongs in
24872         _getopt_initialize was being done by _getopt_internal_r, making the
24873         code harder to understand.
24875         As a side effect, getenv will no longer be called if the first
24876         character of the options string is '+' or '-', which is probably a
24877         Good Thing.  (Perhaps we should have a flag character that
24878         specifically asks for the permutation behavior?)
24880         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24881         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24882         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24885         getopt: merge from glibc: repetition reduction
24887         The definitions of the entry point functions 'getopt' and
24888         '__posix_getopt' can be made substantially less repetitive with a
24889         helper macro.
24891         While I was merging the const-correctness changes from gnulib into
24892         glibc I noticed there are still some unnecessary casts in
24893         _getopt_internal_r.
24895         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24896         a macro.  Consistently cast 'argv' to 'char **' when calling
24897         _getopt_internal.
24898         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24901         getopt: clean up error reporting
24903         getopt can print a whole bunch of error messages, and when used
24904         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24905         cancellation point and getopt isn't, and also applying fprintf to a
24906         stream in wide-character mode is not allowed.  So every single error
24907         reporting case has an #ifdef _LIBC block in which it calls internal
24908         libc functions instead.  The counterpart patch series in glibc makes
24909         it possible to simplify all of that down to a set of #defines at the
24910         top of the file; core code is written as if it is safe to just call
24911         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24912         call any *other* stdio functions.)
24914         * lib/getopt.c: When _LIBC is defined, define fprintf to
24915         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24916         to _IO_funlockfile.  When neither _LIBC nor
24917         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24918         funlockfile as no-ops.
24919         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24920         standalone error-printing code can now be used for libc as well.
24921         Add an flockfile/funlockfile pair around one case where the error
24922         message is printed in several chunks.  Don't use fputc.
24925         getopt: fix fencepost error in ambiguous-W-option handling
24927         getopt_long contains an undocumented (AFAICT) feature in which, if you
24928         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24929         treated as equivalent to '--foo'.  This is implemented with a partial
24930         second copy of the code for handling long options, and that code
24931         increments optind one too many times when recovering from an ambiguous
24932         abbreviated option, which can cause the main loop to walk past the end
24933         of argv and crash.
24935         I discovered this while writing a test case that tries to exercise all
24936         of getopt's error reporting paths; I wouldn't be surprised to learn
24937         that this feature is never used by real applications.
24939         * lib/getopt.c (_getopt_internal_r): Don't increment
24940         d->optind a second time when reporting ambiguous -W options.
24943         getopt: clean up getopt.c and getopt1.c file headers
24945         In getopt.c, there is no need to include wchar.h at all, and it is
24946         safe nowadays to assume that stdlib.h does declare getenv (several
24947         other gnulib modules make this assumption).
24949         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24950         by using "" inclusions consistently, and there is no actual need to
24951         include stdlib.h (except in the #ifdef TEST block, where it should be
24952         unconditional), nor to provide a backup definition of NULL at all.
24954         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24955         Move inclusion of stdlib.h to #ifdef TEST block and make
24956         unconditional.  Do not define NULL.
24957         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24958         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24959         * modules/getopt-gnu, modules/getopt-posix: Don't call
24960         gl_PREREQ_GETENV.
24963         getopt: harmonize comments with glibc
24965         The comments explaining how the behavior of 'getopt' varies depending
24966         on whether it's the standalone version and whether there are special
24967         characters at the beginning of the options string were inconsistent
24968         between gnulib and glibc, and also out of sync with the code.
24970         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24973         getopt: remove USE_NONOPTION_FLAGS
24975         getopt includes code to parse an environment variable named
24976         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24977         in decimal); but all of it has been #ifdefed out since 2001, with no
24978         official way to turn it back on.
24980         According to commentary in glibc's config.h.in, bash version 2.0
24981         set this environment variable to indicate argv elements that were
24982         the result of glob expansion and therefore should not be treated
24983         as options, but the feature was "disabled later" because "it
24984         caused problems".  According to bash's CHANGES file, "later" was
24985         release 2.01; it gives no more detail about what the problems
24986         were.
24988         Version 2.0 of bash was released on the last day of 1996, and version
24989         2.01 in June of 1997.  Twenty years later, I think it is safe to
24990         assume that this environment variable isn't coming back.
24992         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24993         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24994         __libc_argc and __libc_argv externs, which were only used by
24995         #ifdef USE_NONOPTION_FLAGS blocks.
24998         getopt: tabify, in preparation for merge with glibc
25000         glibc sticks to the GNU default of indenting with a mix of
25001         8-column tabs and spaces; make the gnulib copy match.
25003         getopt.h is not included because it is *not* going to be merged in its
25004         present form.
25006         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25008 2017-04-02  Bruno Haible  <bruno@clisp.org>
25010         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25011         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25012         like it was done in modules/relocatable-lib on 2011-05-21 and in
25013         modules/relocatable-prog on 2011-08-15.
25014         Reported by Reuben Thomas <rrt@sc3d.org>.
25016 2017-03-31  Bruno Haible  <bruno@clisp.org>
25018         glob: Fix invalid free() call.
25019         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25020         static storage to home_dir.
25021         Reported by Coverity via Tim Rühsen.
25023 2017-03-31  Bruno Haible  <bruno@clisp.org>
25025         glob: Fix memory leaks.
25026         * lib/glob.c (glob): Free allocated memory before returning.
25027         Reported by Coverity via Tim Rühsen.
25029 2017-03-31  Bruno Haible  <bruno@clisp.org>
25031         md5, sha1, sha256, sha512: Add comments regarding correctness.
25032         * lib/md5.h (buflen): Add comments regarding range.
25033         * lib/sha1.h (buflen): Likewise.
25034         * lib/sha256.h (buflen): Likewise.
25035         * lib/sha512.h (buflen): Likewise.
25036         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25037         * lib/sha1.c (sha1_process_bytes): Likewise.
25038         * lib/sha256.c (sha256_process_bytes): Likewise.
25039         * lib/sha512.c (sha512_process_bytes): Likewise.
25040         Reported by Coverity via Tim Rühsen.
25042 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25044         getopt: merge from glibc
25045         This does not change anything substantial; it merely simplifies
25046         hypothetical merges back to glibc.
25047         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25048         Change copyright notice to match what is in glibc.
25049         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25050         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25051         __open_memstream rather than open_memstream and __glibc_likely
25052         instead of __builtin_expect.
25053         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25055 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25057         dfa: make [0-9] faster in non-C locales
25058         Problem reported by John P. Linderman (Bug#26193).
25059         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25060         If both ends of the range are ASCII digits, do not worry about
25061         multi-character collating sequences and the like.  Be consistent
25062         about using isalpha as a precondition for setbit_case_fold_c.
25064 2017-03-19  Bruno Haible  <bruno@clisp.org>
25066         lock: Fix compilation error with HP-UX IA64 cc.
25067         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25068         weak on non-glibc platforms.
25070 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25072         stdalign: tweak version# and test for HP-UX IA64
25073         Problems reported by Bruno Haible in:
25074         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25075         * lib/stdalign.in.h (_Alignas):
25076         * m4/stdalign.m4 (gl_STDALIGN_H):
25077         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25078         used octal (as that is how they document it), but it is decimal in
25079         practice now and the ancient implementations no longer matter.
25080         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25082 2017-03-19  Bruno Haible  <bruno@clisp.org>
25084         vma-iter: Add support for Solaris.
25085         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25086         approach.
25087         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25088         * lib/get-rusage-as.c: Update comment about Solaris.
25089         * lib/get-rusage-data.c: Likewise.
25091 2017-03-19  Bruno Haible  <bruno@clisp.org>
25093         vma-iter: Prefer HP-UX specific API on HP-UX.
25094         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25095         * lib/vma-iter.h: Update.
25096         Just in case HP-UX ever implements mquery().
25098 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25100         stdalign: restore previous behavior for HP-UX IA64
25101         See Bruno Haible's email in:
25102         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25103         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25104         * lib/stdalign.in.h (_Alignas):
25105         Assume the '061200' applies to Itanium, not to PA-RISC.
25106         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25108 2017-03-17  Bruno Haible  <bruno@clisp.org>
25110         stat-time, timespec: Support use of the header files in C++ mode.
25111         * lib/stat-time.h: Add "C" linkage declaration.
25112         * lib/timespec.h: Likewise.
25114 2017-03-17  Bruno Haible  <bruno@clisp.org>
25116         stdalign: Make it work with HP-UX cc.
25117         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25118         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25119         for HP-UX cc.
25121 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25123         flexmember: try to detect HP-UX 11.31 cc bug
25124         Problem reported by Bruno Haible in:
25125         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25126         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25127         Attempt to detect bug in HP-UX 11.31 cc.
25129 2017-03-16  Bruno Haible  <bruno@clisp.org>
25131         stdint: Fix test compilation failure with HP-UX 11 cc.
25132         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25133         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25134         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25135         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25137 2017-03-14  Bruno Haible  <bruno@clisp.org>
25139         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25140         * gnulib-tool (func_modules_transitive_closure_separately): If
25141         testsrelated_modules ends up with no "real" modules, aside from
25142         modules with applicability 'all', set it to empty.
25144 2017-03-14  Bruno Haible  <bruno@clisp.org>
25146         vma-iter: Add support for HP-UX.
25147         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25148         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25149         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25150         * lib/get-rusage-as.c: Update comment about HP-UX.
25151         * lib/get-rusage-data.c: Likewise.
25152         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25154 2017-03-14  Bruno Haible  <bruno@clisp.org>
25156         limits-h: Make it work with HP-UX cc.
25157         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25158         defined.
25160 2017-03-14  Bruno Haible  <bruno@clisp.org>
25162         Fix test failures on DragonFlyBSD.
25163         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25164         * tests/test-select.h (test_bad_fd): Likewise.
25165         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25167 2017-03-14  Bruno Haible  <bruno@clisp.org>
25169         freadahead: Silence warning on DragonFlyBSD.
25170         * lib/freadahead.c (__sreadahead): Declare ourselves.
25172 2017-03-14  Bruno Haible  <bruno@clisp.org>
25174         vma-iter: Add comment about AIX.
25175         * lib/vma-iter.c: Add comment about why this module is not implemented
25176         on AIX.
25178 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25180         snippets: move unadjusted snippet sources to lib
25181         Problem reported by Michal Privoznik in:
25182         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25183         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25184         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25185         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25186         * lib/unused-parameter.h: Rename from
25187         build-aux/snippet/unused-parameter.h.
25188         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25189         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25190         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25191         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25192         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25193         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25194         Adjust to file renamings.
25196 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25198         gnulib-tool: don't automatically distribute files from top/
25199         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25200         not distribute top/README-release by default, don't distribute files
25201         from top/ unconditionally.
25202         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25203         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25205 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25207         gnulib-tool: fix typo in comment output
25208         * gnulib-tool (func_import): Fix typo with previous change.
25210         snippets: work around GNU Make 3.82 VPATH
25211         When using 'gnulib-tool --gnu-make' on Emacs, and building
25212         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25213         an out-of-source (VPATH) build failed because the sans-copyright
25214         snippet file was not built before the file that used it.
25215         Presumably this is some sort of VPATH thing.  Work around the
25216         problem by using the original snippet, i.e., don’t bother to
25217         remove its copyright notice.
25218         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25219         Don’t assume Automake in comments.  Omit long-incorrect comment.
25220         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25221         (MOSTLYCLEANFILES):
25222         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25223         (MOSTLYCLEANFILES):
25224         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25225         (MOSTLYCLEANFILES):
25226         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25227         (MOSTLYCLEANFILES):
25228         Remove.
25229         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25230         * modules/snippet/c++defs (CXXDEFS_H):
25231         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25232         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25233         Don’t bother to remove the copyright notice; just use the
25234         original snippet as-is.
25236 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25238         gnulib-tool: minor --gnu-make fixups
25239         * gnulib-tool (func_emit_lib_Makefile_am):
25240         Remove useless code that was a blind alley during implementation.
25241         Problem reported by Thien-Thi Nguyen in:
25242         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25243         (func_import): Note the "--gnu-make" option in the output comment.
25245 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25247         gnulib-tool: new option --gnu-make
25248         This is for applications like GNU Emacs that use GNU Make
25249         features instead of Automake.
25250         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25251         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25252         Do not assume Automake.
25253         * gnulib-tool (func_determine_path_separator)
25254         (func_modules_transitive_closure, func_update_file)
25255         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25256         (func_import): Add support for --gnu-make.
25258 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25260         gnulib-common.m4: avoid aclocal.m4 bloat
25261         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25262         Hide AM_PROG_AR from aclocal, so that aclocal does not
25263         install irrelevant macro definitions into aclocal.m4.
25265 2017-03-10  Bruno Haible  <bruno@clisp.org>
25267         vma-iter: Let callers know about error.
25268         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25269         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25271 2017-03-05  Bruno Haible  <bruno@clisp.org>
25273         Fix value of LD for 64-bit compilers on AIX.
25274         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25275         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25277 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25279         dtotimespec: simplify
25280         * lib/dtotimespec.c (dtotimespec): Simplify.
25282 2017-03-04  Bruno Haible  <bruno@clisp.org>
25284         test-calloc-gnu: Reenable test also for GCC 7.
25285         * tests/test-calloc-gnu.c (eight): New function.
25286         (main): Don't skip test; use eight() instead.
25288 2017-03-04  Jim Meyering  <meyering@fb.com>
25290         test-calloc-gnu: port to GCC7
25291         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25292         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25293         and newer would detect that at compilation time.
25295 2017-03-04  Bruno Haible  <bruno@clisp.org>
25297         tests: Avoid compiler warning about uses of null_ptr.
25298         * tests/null-ptr.h: New file.
25299         * tests/test-canonicalize.c: Include null-ptr.h.
25300         (null_ptr): Remove function.
25301         * tests/test-canonicalize-lgpl.c: Likewise.
25302         * tests/test-memmem.c: Likewise.
25303         * tests/test-ptsname_r.c: Likewise.
25304         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25305         * modules/canonicalize-lgpl-tests: Likewise.
25306         * modules/memmem-tests: Likewise.
25307         * modules/ptsname_r-tests: Likewise.
25308         Reported by Jim Meyering.
25310 2017-03-03  Bruno Haible  <bruno@clisp.org>
25312         doc: Mention Mac OS X deficiencies regarding semaphores.
25313         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25314         * doc/posix-functions/sem_destroy.texi: Likewise.
25315         * doc/posix-functions/sem_getvalue.texi: Likewise.
25317 2017-03-03  Bruno Haible  <bruno@clisp.org>
25319         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25320         Reported by Assaf Gordon <assafgordon@gmail.com> via
25321         Pádraig Brady <P@draigBrady.com>.
25322         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25323         semaphores.
25324         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25325         (atomic_int_semaphore): New macro.
25327 2017-02-28  Bruno Haible  <bruno@clisp.org>
25329         perror tests: Tweak for z/OS.
25330         Reported by Daniel Richard G. <skunk@iskunk.org>.
25331         * tests/test-perror.sh: Don't fail z/OS style perror output.
25333 2017-02-26  Bruno Haible  <bruno@clisp.org>
25335         nproc: Refactor large function.
25336         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25337         from num_processors.
25338         (num_processors): In this function, only deal with OMP.
25340 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25342         nproc: adjust handling of OpenMP environment variables
25343         to match the return value from omp_get_num_threads(), i.e.:
25344          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25345          - Treat 0 as an invalid value and ignore
25346         Also remove the call to omp_get_num_threads() because
25347         it's ineffective without the omp pragmas in place.
25348         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25349         so that it can be ignored.
25350         (num_processors): Honor OMP_THREAD_LIMIT even without
25351         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25352         variable being checked, from the previous recent commit.
25354 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25356         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25357         * lib/nproc.c (parse_omp_threads): A new function refactored
25358         from num_processors() to support parsing both of the
25359         above environment variables.
25360         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25361         to accurately reflect the current OpenMP nesting level.
25362         Also support the OMP_THREAD_LIMIT environment variable
25363         to limit the max value determined from OMP_NUM_THREADS.
25364         * modules/nproc: Depend on minmax header.
25365         Suggested by Oliver Heimlich.
25367 2017-02-25  Bruno Haible  <bruno@clisp.org>
25369         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25370         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25372 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25374         ftoastr: port to -Wdouble-promotion
25375         Work around -Wdouble-promotion false alarm in recent GCCs.
25376         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25377         (ftoastr_snprintf, FTOASTR): Use it.
25379 2017-02-21  Bruno Haible  <bruno@clisp.org>
25381         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25382         Reported by Rene Saavedra <rennes@openmailbox.org> in
25383         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25384         * lib/glthread/lock.h: On glibc systems without
25385         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25386         implementation of rwlocks.
25387         * lib/glthread/lock.c: Likewise.
25389 2017-02-20  Bruno Haible  <bruno@clisp.org>
25391         lock tests: Fix build failure on z/OS.
25392         Reported by Daniel Richard G. <skunk@iskunk.org>.
25393         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25394         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25395         exist.
25397 2017-02-19  Bruno Haible  <bruno@clisp.org>
25399         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25400         This helps when CC=clang.
25401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25402         of /usr/bin/gcc.
25404         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25405         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25407 2017-02-19  Bruno Haible  <bruno@clisp.org>
25409         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25410         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25411         --with-tests --single-configure is specified.
25413 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25415         users.txt: Update links, use HTTPS where possible
25416         * users.txt: Updated to HTTPS where possible,
25417         fixed some links to new locations.
25419 2017-02-16  Bruno Haible  <bruno@clisp.org>
25421         xbinary-io: Fix inlining.
25422         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25424 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25426         xbinary-io: rename from xsetmode
25427         This patch is taken from suggestions by Bruno Haible in:
25428         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25429         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25430         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25431         not ENOTTY, when it is an inappropriate device.
25432         * lib/binary-io.h (SET_BINARY): Resurrect.
25433         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25434         (xset_binary_mode_error): Rename from xsetmode_error.
25435         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25436         (xset_binary_mode): Rename from xsetmode.
25437         All uses changed.
25438         * modules/xbinary-io: Rename from modules/xsetmode.
25439         Update file names.
25440         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25441         * NEWS: Update to match revised behavior.
25443 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25445         tests: Adjust to recent SET_BINARY change
25446         * tests/test-binary-io.c (main):
25447         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25448         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25449         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25450         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25452         xsetmode: new module
25453         This is to fix a problem noted by Eric Blake.
25454         Code was using xfreopen to change files to binary mode, but this
25455         fails for stdout when in append mode.  Such code should use
25456         xsetmode instead.
25457         * NEWS: Document incompatible changes to binary-io module.
25458         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25459         New function.
25460         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25461         (set_binary_mode): New function, which also checks for tty.
25462         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25464 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25466         headers: fix begin-end typos
25467         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25468         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25470         selinux-h: port to PGI 16.10
25471         * lib/se-selinux.in.h: Don't assume that include_next skips over
25472         duplicate -I DIR options.
25474         argp: port to PGI 16.10
25475         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25477 2017-02-13  Darshit Shah  <darnir@gnu.org>
25479         unicase: Update function protoype to match definition.
25480         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25481         uses 'size_t' as the datatype for the 'len' parameter in the functions
25482         it generates. Update the prototype specified here to match the newly
25483         generated function.
25485 2017-02-12  Bruno Haible  <bruno@clisp.org>
25487         times test: Avoid gcc warnings on Linux/x32.
25488         * tests/test-times.c (main): Really cast printf arguments from clock_t
25489         to 'long int'.
25491 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25493         glob: port better to emscripten
25494         Problem reported by Bruno Haible in:
25495         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25496         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25498 2017-02-11  Bruno Haible  <bruno@clisp.org>
25500         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25501         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25502         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25503         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25504         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25505         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25506         Distinguish hppa64 from hppa.
25508 2017-02-10  Bruno Haible  <bruno@clisp.org>
25510         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25511         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25512         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25513         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
25515 2017-02-09  Bruno Haible  <bruno@clisp.org>
25517         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
25518         * doc/gnulib.texi (Libtool and Windows): Recommend
25519         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
25520         Reported by Reuben Thomas <rrt@sc3d.org>.
25522 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25524         stddef-tests: port to SIZE_MAX <= INT_MAX
25525         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
25526         Do not assume that INT_MAX < SIZE_MAX.
25528 2017-02-01  Bruno Haible  <bruno@clisp.org>
25530         lock tests: Fix link error.
25531         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
25532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25534 2017-01-31  Bruno Haible  <bruno@clisp.org>
25536         lock: Fix link error (regression from 2017-01-05).
25537         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
25538         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
25539         pthread_rwlockattr_destroy weak.
25540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25542 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25544         Port to PGI 16.10 x86-64
25545         This patch fixes one real bug in gl_anylinked_list2.h, along with
25546         some minor glitches that are not bugs.  It does not silence PGI’s
25547         thousands of bogus warnings when compiling test-intprops.c.
25548         Fortunately, the warnings do not cause a failure.
25549         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
25550         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
25551         My goodness, PGI goes back a long ways - this predates C89!
25552         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
25553         For example, ASYNCSAFE (const void *) should expand to
25554         ‘const void *volatile’, not to ‘volatile const void *’.
25555         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
25556         * lib/verify.h (verify) [!__GNUC__]:
25557         Use shorter albeit meaningless string to bypass silly compiler limits.
25558         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
25559         * tests/nan.h (NaNf, NaNd, NaNl):
25560         Use static functions to avoid misguided compiler diagnostics.
25561         Is there some reason we don’t use static functions on all platforms?
25563 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25565         parse-datetime: handle timezones reentrantly
25566         This API change was prompted by a report by Pádraig Brady in:
25567         https://bug.debian.org/851934#10
25568         To help fix the bug, make parse_datetime2 more reentrant.
25569         * NEWS: Document this incompatible change.
25570         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
25571         Add two arguments, the timezone and the timezone name.
25572         All callers changed.  If TZ="..." is specified, use it for
25573         calculating defaults.
25574         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
25575         this code should be usable in a library.
25576         (mktime_ok, get_effective_timezone):
25577         Accept timezone arg too.  All callers changed.
25578         (get_tz): Remove.
25579         (get_effective_timezone): Check for failures.
25581 2017-01-20  Eric Blake  <eblake@redhat.com>
25583         localename: port to cygwin 2.6
25584         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
25585         Cygwin.
25586         * modules/localename (Depends-on): Add extensions, since
25587         NL_LOCALE_NAME() is not visible without it.
25589 2017-01-17  Pádraig Brady  <P@draigBrady.com>
25591         parse-datetime: fix dependence on AC_PROG_SED
25592         * modules/parse-datetime: Use `sed` directly like all other modules.
25593         Reported by J William Piggott
25595 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25597         intprops: update doc URLs
25598         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25600 2017-01-16  Bruno Haible  <bruno@clisp.org>
25602         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25603         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25604         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25605         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25606         distinguish s390 and s390x.
25607         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25608         * NEWS: Mention the change regarding 'armel'.
25610 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25612         localeinfo: case_folded_counterparts and WEOF
25613         * NEWS: Document this.
25614         * lib/localeinfo.c (case_folded_counterparts):
25615         First arg is now wint_t, not wchar_t.  This generalizes the
25616         function to also work on WEOF, where it returns 0.
25618         dfa: port to gcc -fsanitize=undefined
25619         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25620         as this runs afoul of gcc -fsanitize=undefined.
25622 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25624         strftime: %z is -00 if unknown
25625         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25626         the caller's responsibility to set 'negative_number'.  All uses changed.
25627         (__strftime_internal): Put '-' before a zero UTC offset if the time
25628         zone abbreviation starts with "-", which is the recently-introduced
25629         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25630         * tests/test-strftime.c: Test for this.
25632 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25634         dfa: port to older GCC
25635         Problem reported by Assaf Gordon in:
25636         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25637         * modules/c99: New module.  This merely attempts to use the latest
25638         C version, which should be enough to solve this particular problem.
25639         The idea is to document which Gnulib modules assume C99 or later.
25640         * modules/dfa (Depends-on): Add it.
25642 2017-01-10  Bruno Haible  <bruno@clisp.org>
25644         Update DEPENDENCIES.
25645         * DEPENDENCIES: List only https URLs. Update recommended version for
25646         autoconf, automake, gperf.
25648 2017-01-10  Jim Meyering  <meyering@fb.com>
25650         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25651         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25652         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25654 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25656         dfa: minor simplification with emptyset
25657         * lib/dfa.c (build_state): Simplify by using emptyset.
25659 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25661         dfa: shrink constraints from 4 bits to 3
25662         * lib/dfa.c (newline_constraint, letter_constraint)
25663         (other_constraint, prev_newline_dependent)
25664         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25665         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25666         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25667         Constraints need only 3 bits, not 4.  Using smaller integers
25668         shrinks the code a bit and makes grep a tad faster on x86-64.
25670         dfa: omit unnecessary ptrdiff_t check
25671         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25672         overflow, since xnmalloc does that now.
25674         dfa: omit unnecessary allocation
25675         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25676         an all-zero follow set works just fine.
25678         dfa: omit unused local
25679         * lib/dfa.c (build_state): Fix up recent change.
25681         maint: remove stray .texi files
25682         Although these were superseded by other files like
25683         doc/posix-functions/ctime.texi, the old files were not removed.
25684         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25686 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25688         getprogname: fix port to IRIX
25689         * lib/getprogname.c (getprogname) [__sgi]:
25690         Don't dump core if malloc returns NULL.
25692         dfa: fix reallocation bug when matching newlines
25693         Problem reported for sed by S. Gilles (Bug#25390).
25694         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25695         (dfastate): Reallocate before moving any newline transition ...
25696         (build_state): ... instead of reallocating here, where it is too late.
25698 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25700         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25701         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25703 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25705         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25706         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25708 2017-01-07  Bruno Haible  <bruno@clisp.org>
25710         stdioext: Port to Minix 3.2 and newer.
25711         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25712         * lib/fseeko.c (fseeko): Likewise.
25713         Reported by Nelson Beebe via Paul Eggert.
25715 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25717         getprogname: port to IRIX
25718         * lib/getprogname.c (getprogname): Port to IRIX.
25719         Based on an idea by Bastien Roucariès at:
25720         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25721         via code from Bruno Haible at:
25722         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25724         localename-tests: port to NetBSD 7
25725         Problem reported by Nelson H. F. Beebe.
25726         * tests/test-localename.c:
25727         Test newlocale and uselocale only if both exist.
25729         glob, intprops, xalloc: work around Clang bug
25730         Work around LLVM bug 16404, which is still not fixed.
25731         https://llvm.org/bugs/show_bug.cgi?id=16404
25732         Problem reported by Nelson H. F. Beebe.
25733         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25734         Remove.
25735         * lib/glob.c (size_add_wrapv):
25736         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25737         * lib/xalloc-oversized.h (xalloc_oversized):
25738         Do not use overflow builtins if Clang.
25740         dfa: fix 'return' typo
25741         Problem reported by Nelson H. F. Beebe.
25742         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25744 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25746         parse-datetime: fix generated paths for coverage files
25747         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25748         within parse-datetime.c, so that gcc generates appropriate .gcno
25749         files, allowing lcov to proceed without error.  Previously it
25750         would error trying to find "lib/lib/parse-datetime.y".
25752 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25754         maint.mk: support parallel execution of coverage
25755         * top/maint.mk (coverage): Run dependencies serially,
25756         thus supporting parallel processing of each one,
25757         particularly build-coverage, which builds and runs tests.
25759 2017-01-05  Bruno Haible  <bruno@clisp.org>
25761         lock tests: Prefer semaphore over mutex.
25762         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25763         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25764         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25765         Suggested by Torvald Riegel <triegel@redhat.com>.
25767 2017-01-05  Bruno Haible  <bruno@clisp.org>
25769         lock: Provide guarantee to avoid writer starvation for rwlocks.
25770         The rationale is: 1) Read-preferring read-write locks are prone to
25771         writer starvation if the number of reader threads multiplied by the
25772         percentage of time they have the lock held is too high. 2) Write-
25773         preferring read-write locks are the only reliable way to avoid this.
25774         3) There have been reports of 'test-lock' hanging on glibc systems
25775         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25776         and glibc indeed implements read-preferring rwlocks by default, see
25777         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25778         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25779         * m4/pthread_rwlock_rdlock.m4: New file.
25780         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25781         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25782         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25783         of rwlock initialization on glibc systems without
25784         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25785         of rwlocks altogether on non-glibc systems without
25786         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25787         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25788         * lib/glthread/lock.c [USE_POSIX_THREADS]
25789         (glthread_rwlock_init_for_glibc): New function.
25790         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25791         comment.
25792         [USE_PTH_THREADS]: New implementation of rwlocks.
25793         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25794         readers.
25795         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25796         (Depends-on): Add 'extensions'.
25797         * tests/test-rwlock1.c: New file.
25798         * lock-tests (Files): Add it.
25799         (Depends-on): Add usleep.
25800         (Makefile.am): Add test-rwlock1 to the tests.
25802 2017-01-05  Bruno Haible  <bruno@clisp.org>
25804         thread: Fix pth port.
25805         * lib/glthread/thread.h (pth_init): Declare weak.
25806         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25807         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25808         function.
25810 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25812         parse-datetime: fix debug message on lone year number
25813         Input dates such as
25814           date -d "Apr 11 22:59:00 2011"
25815         are parsed as date (Apr 11, with default year 2016), then time, then a
25816         number (2011). Based on the combination of previously seen tokens,
25817         'digits_to_date_time' determines 2011 to be a year value.
25818         This fixes the debug messages to correctly show the updated year.
25819         Before:
25820             $ date --debug -d 'Apr 11 22:59:00 2011'
25821             date: parsed date part: (Y-M-D) 2016-04-11
25822             date: parsed time part: 22:59:00
25823             date: parsed number part: today/this/now
25824         After:
25825             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25826             date: parsed date part: (Y-M-D) 2016-04-11
25827             date: parsed time part: 22:59:00
25828             date: parsed number part: year: 2011
25829         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25830         'debug_year_seen' member fields.
25831         (digits_to_date_time): Update 'year_seen' as needed.
25832         (debug_print_current_time): Inform about year updates.
25833         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25835         parse-datetime: fix local timezone debug messages
25836         "Local timezones" are strings that affect only DST relative to the
25837         default timezone. The debug messages in parse-datetime.y printed
25838         wrong information when encountering local timezones.
25839         Examples:
25840         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25841              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25842              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25843         When the default timezone relates to the zone strings, EET/EEST are
25844         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25845         value (0/1, respectively):
25846              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25847              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25848         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25849         was seen, inform about DST change, don't print actual timezone.
25850         (debug_strfdatetime): If local timezone was seen, use default timezone
25851         (and adjust as needed) instead of using incorrect timezone.
25852         (parse_datetime2): Use correct time-zone source string, and adjust
25853         default timezone as needed.
25855         parse-datetime: add debug warning about DST changes
25856         Incorrect date arithmetic due to daylight saving time (DST) are a
25857         common (false) bug report in coreutils.
25858         Detect two such cases and print a warning:
25859         1. year/month/day adjustments (performed on 'struct tm'),
25860            where 'mktime' returns a different isdst value.
25861         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25862            where the result of 'localtime(3)' on the value will return a
25863            different isdst value.
25864         Note: DST changes could be harmless or unnoticeable.
25865         Examples (with 'TZ=America/New_York'):
25866         Unnoticeable: result is 2016-Dec-14
25867            $ date -d '2016-06-15 EDT + 6 months' +%b
25868            Dec
25869         Unnoticeable: result is 2016-Dec-15 11:00:00
25870            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25871            2016-12-15
25872         This is unexpected:
25873            $ date -d '2016-06-01 EDT + 6 months' +%F
25874            2016-11-30
25875         The new debug warnings will show:
25876            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25877            ...
25878            date: warning: daylight saving time changed after date adjustment
25879            ...
25880         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25881         print an appropriate warning message.
25883         parse-datetime: add debug warning about date arithmetic
25884         Date arithmetic are done directly on the fields of 'struct tm',
25885         which can result in invalid dates. Normalization with 'mktime(3)'
25886         will then produce a different date - which might cause unexpected
25887         results.
25888         Examples:
25889           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25890           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25891         Note that date normalization is not inherently wrong and not rejected,
25892         as it has legitimate uses:
25893           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25894         If the user asked to adjust months but 'mday' changed,
25895         or user asked to adjust years but 'month' changed - warn about it.
25896             $ ./src/date --debug -d '2016-10-31 - 1 month'
25897             ...
25898             date: warning: when adding relative months/years, \
25899                            it is recommended to specify the 15th of the month
25900             ...
25901             date: warning: month/year adjustment resulted in shifted dates:
25902             date:      adjusted Y M D: 2016 09 31
25903             date:    normalized Y M D: 2010 10 01
25904             ...
25905         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25906         a warning message. Improve recommendation of when to use 15 of the
25907         month or noon for date arithmetic.
25909         parse-datetime: fix debug message of relative part after timezone
25910         Relative part (e.g '+8 days') after a timezone string was not
25911         reported (was only reported after a timezone number). Due to the
25912         parser's structure, timezone strings with numbers were handled
25913         separately.
25914         before:
25915              # Timezone number + relative part: OK
25916              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25917              ...
25918              date: parsed relative part: -8 day(s)
25919              # Timezone string + relative part: missing
25920              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25921              [ missing message ]
25922         After: messages are printed in both cases.
25923         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25925         parse-datetime: fix incorrect debug message on lone number
25926         A lone number is an absolute value, not a relative time part.
25927         before:
25928            $ date --debug -d '20130101'
25929            date: parsed number part: today/this/now
25930         After:
25931            $ ./src/date --debug -d '20130101'
25932            date: parsed number part: (Y-M-D) 2013-01-01
25933         * lib/parse-datetime.y ('item'/'number' tokens): Call
25934         'debug_print_current_time' instead of 'debug_print_relative_time'.
25936 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25938         doc: modernize for C11 etc.
25939         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
25940         for C11, MinGW, etc.  This responds to Paul Smith's question in:
25941         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
25943         dfa: prefer functions to FETCH_WC macro
25944         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
25945         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
25946         wint_t result into DFA->lex.wctok instead of to a separate arg.
25947         All callers changed.  Move more local decls closer to where
25948         they're used.
25950         dfa: narrow more local var scopes
25951         * lib/dfa.c: Move more local decls to be more local.
25953         dfa: remove duplicate assignment
25954         Problem reported by Bruno Haible in:
25955         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25956         * lib/dfa.c (parse_bracket_exp): Simplify.
25958 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25960         dfa: simplify constraint-dependency checking
25961         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25962         (prev_other_constraint): Remove.
25963         (prev_newline_dependent, prev_letter_dependent):
25964         Simplify, to avoid an unnecessary bitwise AND operation.
25966         dfa: prefer functions and constants to macros
25967         * lib/dfa.c: Prefer constants to macros where either will do.
25968         (streq, isasciidigit, newline_constraint)
25969         (letter_constraint, other_constraint, succeeds_in_context)
25970         (prev_newline_constraint, prev_letter_constraint)
25971         (prev_other_constraint, prev_newline_dependent)
25972         (prev_letter_dependent, accepting, accepts_in_context):
25973         Now static functions instead of function-like macros.
25974         Use lower-case names accordingly.  All uses changed.
25976         dfa: narrow more local var scopes
25977         * lib/dfa.c: Move some more local decls down to nearer where
25978         they're needed.
25980 2016-12-31  Jim Meyering  <meyering@fb.com>
25982         dfa: narrow the scope of many local variables
25983         * lib/dfa.c: Now that we are no longer constrained to c89, move
25984         declarations of many variables (often indices) "down" into the
25985         scope(s) where used or to the point of definition.  This is a
25986         no-semantic-change diff.
25988 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25990         version-etc: new year
25991         * build-aux/gendocs.sh (version):
25992         * doc/gendocs_template:
25993         * doc/gendocs_template_min:
25994         * doc/gnulib.texi:
25995         * lib/version-etc.c (COPYRIGHT_YEAR):
25996         Update copyright dates by hand in templates and the like.
25997         * all files: Run 'make update-copyright'.
25999 2016-12-31  Eric Blake  <eblake@redhat.com>
26001         do-release-commit-and-tag: avoid shell syntax error
26002         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26003         contain spaces when rebasing.
26005         maint.mk: hoist gnulib_dir definition earlier
26006         * top/maint.mk (gnulib_dir): Move near top of file.
26008 2016-12-31  Jim Meyering  <meyering@fb.com>
26010         maint.mk: do not always evaluate intprops-related shell
26011         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26012         using gnulib_dir undefined (gnulib_dir is defined later in the
26013         file, which will be fixed separately), and besides, there is no
26014         need to incur the cost of this shell invocation for every single
26015         use of this .mk file.  Reported by Eric Blake in
26016         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26018 2016-12-30  Jim Meyering  <meyering@fb.com>
26020         maint.mk: improve sc_prohibit_intprops_without_use
26021         * top/maint.mk (_intprops_names): Don't hard-code the list of
26022         symbol names.  Instead, derive it on the fly.
26024 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26026         dfa: shorten sbit, success
26027         * lib/dfa.c (struct regex_syntax.sbit):
26028         (struct dfa.success): Use char, not int, for array elements, since
26029         they are all in the range 0..7.
26031         dfa: simplify multibyte_prop etc.
26032         This follows up on a change made when dfa.c was in grep, namely grep
26033         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26034         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26035         That earlier simplification allows for some more simplification
26036         and trimming down here.
26037         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26038         (struct lexer_state): New mamber brack.
26039         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26040         since they must be in the range 0..3 now.
26041         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26042         the brack member now supersedes them.
26043         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26044         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26045         (dfaparse): Remove unnecessary initializations of already-0 storage.
26046         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26047         (dfassbuild): No need to clear sup->mbcsets.
26049         dfa: minor performance tweak
26050         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26052         dfa: wrap charclass inside a struct
26053         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26054         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26055         about 5% faster, where list.txt is generated by 'aspell dump
26056         master | head -n 100000 >list.txt'.  See Bug#22239.
26057         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26058         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26059         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26060         Adjust to this, e.g., by using charclass * rather than charclass.
26061         All callers changed as needed.
26062         (copyset): Remove.  All uses changed to simple assignment.
26063         (parse_bracket_exp): Use zeroset instead of memset.
26065 2016-12-30  Jim Meyering  <meyering@fb.com>
26067         maint.mk: update list of intprops.h symbol names
26068         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26069         This avoids a false failure of the sc_prohibit_intprops_without_use
26070         rule in grep.
26072 2016-12-29  Eric Blake  <eblake@redhat.com>
26074         getopt: fix parallel test failure
26075         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26076         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26077         * tests/test-getopt-main.h (main): Use different file names
26078         in case test-getopt-gnu and test-getopt-posix run in parallel.
26080 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26082         xalloc: x2nrealloc check for ptrdiff_t overflow
26083         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26084         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26086 2016-12-24  Bruno Haible  <bruno@clisp.org>
26088         lock test: Fix performance problem on multi-core machines.
26089         * tests/test-lock.c (USE_VOLATILE): New macro.
26090         (struct atomic_int): New type.
26091         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26092         functions.
26093         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26094         as 'struct atomic_int'.
26095         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26096         reclock_checker_thread, test_recursive_lock): Use the new functions.
26097         Reported by Eric Blake in
26098         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26099         and by Pádraig Brady in
26100         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26102 2016-12-19  Bruno Haible  <bruno@clisp.org>
26104         vma-iter: Fix endless loop on 64-bit Windows.
26105         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26106         'unsigned long'.
26108 2016-12-19  Bruno Haible  <bruno@clisp.org>
26110         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26111         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26112         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26113         Invoke gt_TYPE_WINT_T instead.
26114         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26115         * modules/stdint (Files): Add m4/wint_t.m4.
26116         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26117         * modules/wctype-h (Makefile.am): Likewise.
26118         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26119         not only on MSVC.
26120         * lib/wctype.in.h (wint_t): Likewise.
26122 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26124         getopt-posix-tests: fix Makefile typo
26125         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26126         Fix typo: the last ‘_’ was missing in the name.
26127         I suspect that the typo explains this build failure:
26128         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26129         although I can’t reproduce the problem on Solaris 10 sparc.
26131 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26133         dfa: improve worst-case 'replace' performance
26134         See my note in Bug#22357#71.
26135         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26136         (merge_constrained): New function, which is like
26137         the old 'merge' function, except with a new argument C2.
26138         Simplify the body by avoiding the need for different sections
26139         of code depending on whether one input is exhausted.
26140         (merge): Use the new function.
26141         (delete): Return the constraint of the deleted position,
26142         not the entire position.  Caller changed.
26143         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26145 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26147         dfa: performance improvement for removal of epsilon closure
26148         See Bug#22357#32.
26149         * lib/dfa.c (delete): Use binary search to find deleted index.
26150         (replace): New function.  It replaces a position with the followed set.
26151         (epsclosure): Replace it with a new algorithm.  Update caller.
26153 2016-12-18  Bruno Haible  <bruno@clisp.org>
26155         Split tests for getopt-posix and getopt-gnu.
26156         * tests/test-getopt-posix.c: New file.
26157         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26158         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26159         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26160         GNULIB_TEST_GETOPT_GNU.
26161         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26162         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26163         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26164         * modules/getopt-gnu-tests: New file.
26165         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26167 2016-12-18  Bruno Haible  <bruno@clisp.org>
26169         posix-modules: Add options for specific platforms.
26170         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26171         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26172         Invoke func_tmpdir. Filter out the excludes.
26174 2016-12-18  Bruno Haible  <bruno@clisp.org>
26176         getopt: Fix link error for users of getopt() in <unistd.h>.
26177         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26178         __need_getopt is defined. Undefine all macros before defining them.
26179         * modules/getopt (Include): Clarify that including <unistd.h> is also
26180         OK.
26181         * tests/test-getopt.c: Add comment.
26183 2016-12-17  Bruno Haible  <bruno@clisp.org>
26185         getaddrinfo tests: Avoid compilation error on MSVC.
26186         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26187         getaddrinfo on native Windows.
26189 2016-12-17  Bruno Haible  <bruno@clisp.org>
26191         getlogin, getlogin_r: Fix link errors on MSVC.
26192         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26193         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26194         (Link): New section.
26195         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26196         (configure.ac): Require gl_LIB_GETLOGIN.
26197         (Link): New section.
26198         * NEWS: Mention the new link requirements.
26199         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26200         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26202 2016-12-17  Bruno Haible  <bruno@clisp.org>
26204         Un-deprecate the 'progname' module.
26205         * NEWS: Describe the appropriate use-cases of 'progname' versus
26206         'getprogname'. Based on discussion summary at
26207         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26209 2016-12-17  Bruno Haible  <bruno@clisp.org>
26211         Reorganize NEWS a bit.
26212         * NEWS: Move some not so important changes away from section
26213         "Important Notes".
26215 2016-12-17  Bruno Haible  <bruno@clisp.org>
26217         tanhf: Avoid redefinition error on MSVC.
26218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26219         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26220         may be defined as an inline function.
26221         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26222         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26224 2016-12-17  Bruno Haible  <bruno@clisp.org>
26226         tanf: Avoid redefinition error on MSVC.
26227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26228         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26229         may be defined as an inline function.
26230         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26231         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26233 2016-12-17  Bruno Haible  <bruno@clisp.org>
26235         sqrtf: Avoid redefinition error on MSVC.
26236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26237         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26238         may be defined as an inline function.
26239         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26240         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26242 2016-12-17  Bruno Haible  <bruno@clisp.org>
26244         sinhf: Avoid redefinition error on MSVC.
26245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26246         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26247         may be defined as an inline function.
26248         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26249         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26251 2016-12-17  Bruno Haible  <bruno@clisp.org>
26253         sinf: Avoid redefinition error on MSVC.
26254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26255         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26256         may be defined as an inline function.
26257         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26258         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26260 2016-12-17  Bruno Haible  <bruno@clisp.org>
26262         logf: Avoid redefinition error on MSVC.
26263         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26264         may be defined as an inline function.
26266 2016-12-17  Bruno Haible  <bruno@clisp.org>
26268         log10l: Avoid redefinition error on MSVC.
26269         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26270         may be defined as an inline function.
26272 2016-12-17  Bruno Haible  <bruno@clisp.org>
26274         log10f: Avoid redefinition error on MSVC.
26275         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26276         may be defined as an inline function.
26278 2016-12-17  Bruno Haible  <bruno@clisp.org>
26280         hypotl: Avoid redefinition error on MSVC.
26281         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26282         may be defined as an inline function.
26284 2016-12-17  Bruno Haible  <bruno@clisp.org>
26286         hypotf: Avoid redefinition error on MSVC.
26287         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26288         may be defined as an inline function.
26290 2016-12-17  Bruno Haible  <bruno@clisp.org>
26292         fmodl: Avoid redefinition error on MSVC.
26293         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26294         may be defined as an inline function.
26296 2016-12-17  Bruno Haible  <bruno@clisp.org>
26298         fmodf: Avoid redefinition error on MSVC.
26299         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26300         may be defined as an inline function.
26302 2016-12-17  Bruno Haible  <bruno@clisp.org>
26304         expf: Avoid redefinition error on MSVC.
26305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26306         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26307         may be defined as an inline function.
26308         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26309         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26311 2016-12-17  Bruno Haible  <bruno@clisp.org>
26313         coshf: Avoid redefinition error on MSVC.
26314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26315         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26316         may be defined as an inline function.
26317         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26318         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26320 2016-12-17  Bruno Haible  <bruno@clisp.org>
26322         cosf: Avoid redefinition error on MSVC.
26323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26324         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26325         may be defined as an inline function.
26326         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26327         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26329 2016-12-17  Bruno Haible  <bruno@clisp.org>
26331         atan2f: Avoid redefinition error on MSVC.
26332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26333         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26334         may be defined as an inline function.
26335         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26336         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26338 2016-12-17  Bruno Haible  <bruno@clisp.org>
26340         atanf: Avoid redefinition error on MSVC.
26341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26342         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26343         may be defined as an inline function.
26344         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26345         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26347 2016-12-17  Bruno Haible  <bruno@clisp.org>
26349         asinf: Avoid redefinition error on MSVC.
26350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26351         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26352         may be defined as an inline function.
26353         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26354         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26356 2016-12-17  Bruno Haible  <bruno@clisp.org>
26358         acosf: Avoid redefinition error on MSVC.
26359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26360         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26361         may be defined as an inline function.
26362         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26363         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26365 2016-12-17  Bruno Haible  <bruno@clisp.org>
26367         Avoid redefinition errors on MSVC.
26368         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26369         the function may be defined as an inline function.
26370         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26371         the function may be defined as an inline function.
26373 2016-12-17  Bruno Haible  <bruno@clisp.org>
26375         Avoid redefinition errors on MSVC.
26376         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26377         * lib/unistd.in.h: Include <stdio.h> when necessary.
26379 2016-12-17  Bruno Haible  <bruno@clisp.org>
26381         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26382         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26383         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26384         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26385         WINT_MAX.
26387 2016-12-17  Bruno Haible  <bruno@clisp.org>
26389         Avoid autoconf warning.
26390         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26391         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26393 2016-12-17  Bruno Haible  <bruno@clisp.org>
26395         fpending: Revert workaround against Emacs bug.
26396         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26397         The Emacs bug is fixed by Eli Zaretskii in
26398         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26400 2016-12-17  Bruno Haible  <bruno@clisp.org>
26402         getlogin_r tests: Port to mingw.
26403         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26404         regression introduced on 2014-05-19.
26406 2016-12-17  Bruno Haible  <bruno@clisp.org>
26408         getlogin: Port to newer mingw.
26409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26410         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26411         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26412         HAVE_GETLOGIN.
26413         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26414         HAVE_GETLOGIN.
26415         * doc/posix-functions/getlogin.texi: Mention the issue.
26416         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26417         regression introduced on 2014-05-14.
26419 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26421         builtin-expect: improve port to IBM XL C
26422         Problem reported for z/OS by Daniel Richard G. in:
26423         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26424         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26425         Test for <builtins.h> directly.
26427         builtin-expect: port to IBM XL C
26428         Problem reported for z/OS by Daniel Richard G. in:
26429         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26430         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26431         Also allow __builtin_expect defined via a standard include file.
26433         regex: fix dependency
26434         Problem reported by Bruno Haible in:
26435         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26436         * modules/regex: Depend on builtin-expect.
26438         builtin-expect: new module
26439         Fix fnmatch to use it.
26440         Problem reported for z/OS by Daniel Richard G.
26441         * lib/fnmatch.c (__builtin_expect):
26442         * lib/glob.c (__builtin_expect):
26443         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26444         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26445         * lib/scandir.c (__builtin_expect):
26446         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26447         Remove macro; config.h now does this.
26448         * lib/gl_anytreehash_list1.h (add_to_bucket):
26449         * lib/regex_internal.h (BE):
26450         Assume __builtin_expect.
26451         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26452         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26453         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26454         * modules/scandir, modules/strstr-simple:
26455         Depend on builtin-expect.
26457 2016-12-15  Bruno Haible  <bruno@clisp.org>
26459         init.sh: Add possibility to not delete temporary files.
26460         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26461         to yes, don't erase the temporary directory.
26463 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26465         regex: fix integer-overflow bug in never-used code
26466         Problem reported by Clément Pit–Claudel in:
26467         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26468         * lib/regex_internal.h: Include intprops.h.
26469         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26470         behavior on integer overflow.
26471         * modules/regex (Depends-on): Add intprops.
26473         fpending: fix port to MinGW on Emacs
26474         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26475         Problem reported by Eli Zaretskii in:
26476         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26477         Is Plan 9 still a valid porting target, anyway?
26479 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26481         safe-alloc: use xalloc-oversized
26482         * lib/safe-alloc.c: Include xalloc-oversized.h.
26483         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26484         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26486         xalloc: do not exceed PTRDIFF_MAX
26487         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26488         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26489         bytes have pointer-subtraction problems.
26491         malloca: do not exceed PTRDIFF_MAX
26492         * lib/malloca.h: Include xalloc-oversized.
26493         (nmalloca): Use xalloc_oversized instead of rolling our own.
26494         * modules/malloca (Depends-on):
26495         * modules/relocatable-prog-wrapper (Depends-on):
26496         Add xalloc-oversized.
26498         quotearg: pacify GCC better
26499         * modules/quotearg (Depends-on): Add minmax, stdint.
26500         * lib/quotearg.c: Include minmax.h, stdint.h.
26501         (nslots): Now int, as there seems little point to going to extra
26502         work merely to support the INT_MAX slot, which nobody ever uses.
26503         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26504         and to catch (mostly-theoretical) ptrdiff_t problems too.
26505         This can be done via one comparison.
26507 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26509         xalloc-oversized: check for PTRDIFF_MAX too
26510         This avoids undefined behavior when subtracting pointers to
26511         objects containing more than PTRDIFF_MAX bytes.
26512         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26513         Also return 1 if the result would exceed PTRDIFF_MAX>
26514         * modules/xalloc-oversized (Depends-on):
26515         Add stdint.
26517         dfa: fix glitches in previous commit
26518         Sorry, I don't know how I managed to commit the wrong version.
26519         * lib/dfa.c (MIN): Move up.
26520         (xpalloc): Now static.
26522         dfa: fix some unlikely integer overflows
26523         I found these while reviewing the recent Coverity-related fix.
26524         This patch changes part of dfa.c to prefer ptrdiff_t instead of
26525         size_t for object counts.  Using ptrdiff_t is the style typically
26526         used in Emacs; although it wastes a sign bit as sizes can never be
26527         negative, it makes -fsanitize=undefined more likely to catch
26528         integer overflows in index calculation, and nowadays the upside is
26529         typically more important than the downside.  Although perhaps the
26530         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
26531         of dfa.c already does, since it uses state_num which is signed),
26532         that is a bigger change and is not needed to fix the bugs I found.
26533         * lib/dfa.c: Include stdint.h and intprops.h.
26534         (TOKEN_MAX): New macro.
26535         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
26536         (charclass_index, parse_bracket_exp, addtok, insert, merge)
26537         (realloc_trans_if_necessary, free_mbdata):
26538         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
26539         This is safe because xpalloc checks that the sizes do not exceed
26540         either SIZE_MAX or PTRDIFF_MAX.
26541         (xpalloc): New function, mostly taken from Emacs.
26542         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
26543         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
26544         (charclass_index): Check for integer overflow in computing
26545         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
26546         added to it later.
26547         (alloc_position_set): Check for integer overflow.  On typical
26548         platforms this check has zero overhead, since the constant
26549         expression is false.
26550         (realloc_trans_if_necessary):
26551         Remove assertion, which I hope Coverity no longer needs.
26553         * modules/dfa (Depends-on): Add intprops, stdint.
26555 2016-12-12  Jim Meyering  <meyering@fb.com>
26557         dfa: add an assertion to avoid coverity false positive
26558         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
26559         warned that "newalloc1 - 2" could overflow.
26561 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
26563         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
26564         * dfa.h (DFA_CASE_FOLD): Remove.
26565         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
26567 2016-12-13  John W. Eaton  <gnu@jweaton.org>
26569         link: fix test to declare use of rename()
26570         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
26571         -Werror=implicit-function-declaration
26573 2016-12-12  Bruno Haible  <bruno@clisp.org>
26575         fpending: Port to native Windows with MSVC.
26576         * lib/fpending.c: Include stdio-impl.h.
26577         (__fpending): Include all known implementations. Err out if it's not
26578         ported.
26579         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
26580         * modules/fpending (Files): Add lib/stdio-impl.h.
26581         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
26583 2016-12-12  Bruno Haible  <bruno@clisp.org>
26585         stdioext: Port to native Windows with MSVC.
26586         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
26587         (struct _gl_real_FILE): New type.
26588         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
26589         Windows.
26590         * lib/fbufmode.c (fbufmode): Add code for native Windows.
26591         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26592         other SystemV derived implementations.
26593         * lib/fpurge.c (fpurge): Likewise.
26594         * lib/freadable.c (freadable): Likewise.
26595         * lib/freadahead.c (freadahead): Likewise.
26596         * lib/freading.c (freading): Likewise.
26597         * lib/freadptr.c (freadptr): Likewise.
26598         * lib/freadseek.c (freadptrinc): Likewise.
26599         * lib/fseeko.c (fseeko): Likewise.
26600         * lib/fseterr.c (fseterr): Likewise.
26601         * lib/fwritable.c (fwritable): Likewise.
26602         * lib/fwriting.c (fwriting): Likewise.
26603         Reported by Gisle Vanem <gvanem@yahoo.no>.
26605 2016-12-11  Jim Meyering  <meyering@fb.com>
26607         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26608         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
26609         to work with most shells, but not with the one provided by many
26610         Solaris 10 systems, so running configure with such a /bin/sh evokes
26611         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26612         Reported by Assaf Gordon in
26613         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26615 2016-12-10  Bruno Haible  <bruno@clisp.org>
26617         threadlib: Optimize out runtime test on Solaris >= 10.
26618         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26619         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26620         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26622 2016-12-10  Bruno Haible  <bruno@clisp.org>
26624         stdint: Update doc about Solaris 9.
26625         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26627 2016-12-09  Bruno Haible  <bruno@clisp.org>
26629         c-ctype tests: Fix link error on Solaris 9.
26630         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26631         Reported at <https://savannah.gnu.org/bugs/?46827>.
26633 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26635         dfa: fix performance bug that recomputes trans
26636         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26637         25 on-demand changes.  The bug caused build_state to reset all
26638         d->trans elements to -2 even when d->trans was already non-null.
26639         Use C99 style decls after statements in this function.
26641         same-inode: port to MinGW
26642         Here st_ino is always 0, so change the definition of SAME_INODE so
26643         that 1 means the two files are the same, 0 with st_ino != 0 means
26644         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26645         reported by Bruno Haible (Bug#25146).
26646         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26647         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26649 2016-12-04  Bruno Haible  <bruno@clisp.org>
26651         javacomp-script: Support Java 7 and 8.
26652         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26653         target-version 1.7, 1.8.
26655 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26657         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26658         GPLv2" rewriting.
26660 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26662         * gnulib-tool (func_import): Adhere to the license guideline when
26663         rewriting the license text to "LGPLv3+ or GPLv2":
26664         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26666 2016-12-02  Bruno Haible  <bruno@clisp.org>
26668         localcharset: Avoid theoretical buffer overrun.
26669         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26670         return value from setlocale if it would lead to a buffer overrun.
26672 2016-12-01  Bruno Haible  <bruno@clisp.org>
26674         Relicense some modules under LGPLv2+.
26675         Kevin Cernekee's approval is in
26676         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26677         * modules/fseterr (License): Change to LGPLv2+.
26678         * modules/mbchar (License): Likewise.
26679         * modules/mbiter (License): Likewise.
26680         * modules/mbsnlen (License): Likewise.
26681         * modules/wcwidth (License): Likewise.
26683 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26685         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26686         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26687         OS/2 kLIBC.
26689 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26691         alphasort, scandir: Port to OS/2 kLIBC
26692         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26693         declaration.
26694         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26696 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26698         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26699         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26700         with '/@unixroot'.
26702 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26704         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26705         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26706         OS/2 kLIBC unless TCPV40HDRS is defined.
26708 2016-11-29  Jim Meyering  <meyering@fb.com>
26710         dfa: avoid new infinite loop
26711         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26712         * lib/dfa.c (dfastate): When constructing a new state table, we could
26713         initially declare that we had found a match, and later find that
26714         constraints eliminate that possibility, yet continue to use the
26715         now stale "matched" indicator.  That would lead to an infinite loop.
26716         The solution is to update "matched" when necessary.
26717         Introduced by commit v0.1-983-g403adf1.
26719 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26721         dfa: avoid match middle in multibyte character
26722         * lib/dfa.c (transit_state): If fails in matching single byte characters
26723         on a state including period expression in non-UTF8 multibyte locales,
26724         skip trailing bytes.
26725         (dfa_supported): Revert previous change.
26727 2016-11-27  Jim Meyering  <meyering@fb.com>
26729         dfa: avoid false match in non-UTF8 multibyte locales
26730         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26731         as "not supported" so that callers will resort to using regex-based
26732         matcher.  This will surely hurt performance, but correctness trumps
26733         performance here, and the affected locales are less and less relevant,
26734         these days.  See grep's bug report https://bugs.gnu.org/24975.
26736 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26738         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26739         * lib/ptsname_r.c: Include the appropriate headers.
26740         [__sun]: Delete sys/sysmacros.h include.
26741         [_AIX || __osf__]: Likewise.
26742         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26744 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26746         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26747         * lib/md4.c (md4_process_bytes): The existing define is made internal
26748         in recent versions of glibc, so also use this new public define.
26749         * lib/md5.c (md5_process_bytes): Likewise.
26750         * lib/sha1.c (sha1_process_bytes): Likewise.
26751         * lib/sha256.c (sha256_process_bytes): Likewise.
26752         * lib/sha512.c (sha512_process_bytes): Likewise.
26754 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26756         maint: use a more standard return from mbrtowc test
26757         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26758         from the test program as this often indicates an
26759         unhandled case in the test program.
26760         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26761         (gl_MBRTOWC_SANITYCHECK): Likewise.
26762         (gl_MBRTOWC_NULL_ARG2): Likewise.
26763         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26765 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26767         freopen: work around glibc bug with closed fd
26768         Work around glibc bug#15589, where freopen mishandles the case
26769         where stdin etc. are already closed.
26770         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26771         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26772         instead of __need_FILE, as the latter does not work with glibc.
26773         Include <fcntl.h>, for open flags.
26774         (rpl_freopen): Work around glibc bug.
26775         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26776         * modules/freopen (Depends-on): Add fcntl-h.
26777         * tests/test-freopen.c (main): Test for bug.
26779 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26781         fnmatch: fix typo introduced on 2016-08-17
26782         This fixes the port to non-GCC compilers that lack __builtin_expect.
26783         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26785         dfa: simplify with new function fillset
26786         * lib/dfa.c (fillset): New function.
26787         Use it for clarity when applicable.
26789         dfa: fix glitches with on-demand states
26790         Also, adjust commentary to better match new code.
26791         Some of these glitches predate the recent change.
26792         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26793         only non-initial states.
26794         (dfastate): Rename locals to better match new roles.
26795         Move them into nested scopes if this is easy.
26796         Omit unnecessary calls to zeroset.
26797         Simplify test for whether to throw in the positions of state 0.
26798         Omit C99-ism (decl after statement) since Gawk still wants C89.
26799         (build_state): Omit unnecessary test and assignment.
26800         Fix some confusion that counted transition tables inaccurately
26801         and could cause a memory leak.
26802         (dfaexec_main): Redo to make it clearer to the compiler that
26803         -1 and -2 are the only negative state numbers here.
26805 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26807         dfa: addition of new state on demand
26808         * src/dfa.c (dfastate): Add argument UC, the current input character.
26809         Fill only a group including the character in transition table.
26810         (realloc_trans_if_necessary): Add the dummy state which means that a
26811         transition table is assigned but the next state is not assigned.
26812         (build_state): Return the next state.  All callers updated.
26813         (transit_state_singlebyte): If we get the dummy state,
26814         fill the transition table.
26815         (dfaexec_main): Handle the dummy state.
26816         (free_mbdata, dfafree): Consider the dummy state.
26818 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26820         srclist: sync with released gettext
26821         * config/srclist.txt: Set "release" option to the files under
26822         $GETTEXT.
26824 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26826         srclist: add "release" option
26827         * config/srclist.txt: Change the format so that the first column
26828         of each line points to the top-level directory of the source
26829         archive.
26830         * config/srclist-update: Accept "release" option that checks files
26831         from the most recently tagged revision in the source archive.
26833 2016-11-21  Bruno Haible  <bruno@clisp.org>
26835         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26836         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26837         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26838         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26839         Inline and remove member function 'rpl ()' of the wrapper struct.
26841 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26843         dfa: fix logic typo
26844         Problem reported by Stephane Chazelas (Bug#24973).
26845         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26846         non-simple locales like fr_FR to be treated as simple.
26848 2016-11-20  Jim Meyering  <meyering@fb.com>
26850         fix test driver leaks: exclude, malloc, realloc
26851         * tests/test-exclude.c (main): Fix trivial leak.
26852         * tests/test-malloc-gnu.c (main): Likewise.
26853         * tests/test-realloc-gnu.c (main): Likewise.
26854         With these changes, grep's tests are now leak free.
26855         I.e., running them with ASAN elicits no failure:
26856           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26857             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26859 2016-11-11  Bruno Haible  <bruno@clisp.org>
26861         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26862         * modules/libunistring: (License): Change from LGPL to
26863         "LGPLv3+ or GPLv2".
26864         * modules/libunistring-optional: Likewise.
26865         * modules/unicase/*: Likewise.
26866         * modules/uniconv/*: Likewise.
26867         * modules/unictype/*: Likewise.
26868         * modules/unigbrk/*: Likewise.
26869         * modules/unilbrk/*: Likewise.
26870         * modules/uniname/*: Likewise.
26871         * modules/uninorm/*: Likewise.
26872         * modules/unistdio/*: Likewise.
26873         * modules/unistr/*: Likewise.
26874         * modules/uniwbrk/*: Likewise.
26875         * modules/uniwidth/*: Likewise.
26877 2016-11-12  Bruno Haible  <bruno@clisp.org>
26879         Relicense some modules under LGPLv2+.
26880         Paul Eggert's approval is in
26881         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26882         Eric Blake's approval is in
26883         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26884         Ludovic Courtès's approval is in
26885         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26886         * modules/isnand-nolibm (License): Change to LGPLv2+.
26887         * modules/isnanf-nolibm (License): Likewise.
26888         * modules/isnanl-nolibm (License): Likewise.
26890 2016-11-19  Bruno Haible  <bruno@clisp.org>
26892         Relicense some modules under LGPLv2+.
26893         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26894         modules/vasnprintf.
26895         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26896         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26897         All other significant changes to the files in lib/ of these modules
26898         are from me.
26899         * modules/memcmp2 (License): Change to LGPLv2+.
26900         * modules/amemxfrm (License): Likewise.
26901         * modules/fpieee (License): Likewise.
26902         * modules/fpucw (License): Likewise.
26903         * modules/frexp-nolibm (License): Likewise.
26904         * modules/frexpl-nolibm (License): Likewise.
26905         * modules/printf-frexp (License): Likewise.
26906         * modules/printf-frexpl (License): Likewise.
26907         * modules/printf-safe (License): Likewise.
26908         * modules/signbit (License): Likewise.
26910 2016-11-17  Bruno Haible  <bruno@clisp.org>
26912         Enable Unicode decoder safety unconditionally.
26913         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26914         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26915         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26916         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26917         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26918         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26919         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26920         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26921         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26922         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26923         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26924         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26925         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26926         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26927         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26928         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26929         * lib/unistr/u32-next.c (u32_next): Likewise.
26930         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26931         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26932         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26933         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26934         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26935         CONFIG_UNICODE_SAFETY tests unconditionally.
26936         * tests/unistr/test-u32-mblen.c (main): Likewise.
26937         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
26938         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
26939         * tests/unistr/test-u32-next.c (main): Likewise.
26940         * tests/unistr/test-u32-strmblen.c (main): Likewise.
26941         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
26942         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
26943         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
26944         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
26945         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26946         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26947         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26948         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26949         * lib/unistr/u16-check.c (u16_check): Update comment.
26950         * NEWS: Mention the changes that callers should be aware of.
26952 2016-11-19  Bruno Haible  <bruno@clisp.org>
26954         relocatable-prog-wrapper: Fix breakage on Cygwin.
26955         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26956         (Depends-on): Remove intprops.
26957         * lib/relocwrapper.c: Update dependency tree.
26958         (strerror): Undefine.
26959         * build-aux/install-reloc (func_create_wrapper): Do not compile
26960         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26962 2016-11-19  Bruno Haible  <bruno@clisp.org>
26964         strerror: Make it compile in C++ mode.
26965         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26967 2016-11-15  Pedro Alves  <palves@redhat.com>
26969         sys_time: add gnulib::timeval for C++
26970         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26971         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26972         timeval macro.
26974 2016-11-14  Pedro Alves  <palves@redhat.com>
26976         snippet/c++defs: fix real-floating arg functions in C++ mode
26977         Also, define isfinite, isinf, isnan, signbit in the gnulib
26978         namespace instead of in the global namespace.
26979         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26980         (_GL_END_NAMESPACE): New.
26981         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26982         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26983         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26984         instead of in the global namespace.
26985         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26986         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26987         of in the global namespace.
26989 2016-11-13  Jim Meyering  <meyering@fb.com>
26991         strftime: don't use __THROW
26992         Each use of __THROW would provoke this from gcc-7-to-be:
26994           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26995             on unit local functions [-Wattributes]
26996           static int iso_week_days (int, int) __THROW;
26997           ^~~~~~
26998         * lib/strftime.c (__THROW): Don't define.
26999         Remove each use of __THROW.
27000         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27001         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27003 2016-11-14  Paul Eggert  <eggert@union>
27005         obstack: port to gcc -fcheck-pointer-bounds
27006         Problem found by 'make check' failure on bleeding-edge coreutils
27007         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27008         6.2.0-5ubuntu12), configured via "./configure
27009         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27010         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27011         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27012         New macro, copied from fts_.h.
27013         (struct _obstack_chunk.contents): Use it.
27015 2016-11-14  Eric Blake  <eblake@redhat.com>
27017         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27019         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27021 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27023         strptime: fix compile error in recent change
27024         * lib/strptime.c (__strptime_internal): Fix ported code.
27026 2016-11-11  Bruno Haible  <bruno@clisp.org>
27028         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27029         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27030         (func_import): Extend determination of license_incompatibilities.
27031         (func_create_testdir): Extend table of license compatibility. Handle
27032         also the licenses GPLv3+, GPL, LGPLv3+.
27034 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27036         strftime: tune %q
27037         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27039         Merge strftime.c changes from glibc
27040         This incorporates:
27041         2007-10-16 [BZ #5184] Add tzset_called argument
27042         2008-06-13 [BZ #6612] pass reference to tzset_called around
27043         2009-10-30 Implement Burmese language locale for Myanmar
27044         2010-01-09 Add support for XPG7 testing
27045         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27046         2015-10-20 Convert miscellaneous function definitions to prototype style
27047         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27048         it anyway and this lessens the difference between gnulib and glibc.
27049         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27050         (__THROW): Define if standard headers do not.
27051         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27052         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27053         Declare with __THROW.
27054         (__strftime_internal): Rename from strftime_case_. Add arg for
27055         whether tzset is called.  All uses changed.  Call tzset at most
27056         once.  Allow %OC, for Burmese.
27057         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27058         Don't assume values are in range.
27060 2016-11-12  Eric Blake  <eblake@redhat.com>
27062         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27063         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27064         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27065         different value.
27067 2006-11-12  Pedro Alves  <palves@redhat.com>
27069         Fix gnulib C++ namespace support and std::frexp
27070         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27071         _GL_CXXALIASWARN.
27073 2006-11-12  Pedro Alves  <palves@redhat.com>
27075         GNULIB_NAMESPACE::func need not pull in rpl_func
27076         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27077         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27078         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27079         struct instead of a function pointer.
27081 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27083         manywarnings: fix -Wno-missing-field-initializers detection
27084         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27085         to be independent of -Wunused-variable.  I.E. ensure the latter
27086         warning doesn't occur so that detection of the former is accurate.
27088 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27090         strftime,strptime: support %q to represent the quarter
27091         * lib/strftime.c (strftime_case_): Add %q case.
27092         * lib/strptime.c (__strptime_internal): Likewise.
27093         * tests/test-strftime.c (quarter_test): A new test case.
27095 2016-11-03  Eric Blake  <eblake@redhat.com>
27097         bootstrap: Fix get_version() for AIX 5.3
27098         * build-aux/bootstrap (get_version): Factor out sed script, since
27099         indented comments choke AIX 5.3 sed.
27100         Reported-by: Michael Felt <aixtools@gmail.com>
27102 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27104         intprops: port to older XL C
27105         Problem reported by Alexander Samoilov in:
27106         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27107         http://savannah.nongnu.org/bugs/?49448
27108         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27109         Define to 1 only for XL C 12.1 or later, since this bug
27110         occurs in XL C for AIX 6.0 but not in 12.1.
27112 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27114         backupfile: initialize default suffix within the implementation
27115         * lib/backupfile.c (find_backup_file_name): Initialize the
27116         global variable here, to simplify usage, and to only call
27117         getenv() when needed.
27119 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27121         futimens: remove FIXME for old Linux kernels
27122         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27123         this in 2012" FIXME, like that for utimensat.
27125         utimensat: remove FIXME for old Linux kernels
27126         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27127         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27128         this in 2012" FIXME, by assuming the file system bug is absent
27129         unless demonstrated to be present.  We no longer need to worry
27130         about Linux kernel 2.6.32 when building with newer kernels.
27132 2016-10-16  Bruno Haible  <bruno@clisp.org>
27134         qsort_r: Fix macrology for platforms that lack the function.
27135         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27136         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27137         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27138         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27139         not exist.
27140         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27141         the function exists.
27142         * modules/qsort_r: Add comments.
27144 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27146         sys_types: fix Texinfo typos
27147         * doc/glibc-functions/gnu_dev_major.texi:
27148         * doc/glibc-functions/gnu_dev_makedev.texi:
27149         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27151 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27153         getprogname: port to HP-UX
27154         See Bug#24805.
27155         * lib/getprogname.c (getprogname) [__hpux]: Port.
27156         * tests/test-getprogname.c (STREQ) [__hpux]:
27157         Special-case for HP-UX limitations on program name length.
27159 2016-10-20  Bruno Haible  <bruno@clisp.org>
27161         Update doc about target platforms.
27162         * doc/gnulib-intro.texi (Target Platforms): Update list.
27164 2016-10-15  Bruno Haible  <bruno@clisp.org>
27166         opendir, readdir, closedir: Relicense under LGPLv2+.
27167         * modules/opendir (License): Change to LGPLv2+.
27168         * modules/readdir (License): Likewise.
27169         * modules/closedir (License): Likewise.
27171 2016-10-16  Bruno Haible  <bruno@clisp.org>
27173         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27175         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27176         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27177         HAVE_DECL_STRERROR_R.
27179 2016-10-16  Bruno Haible  <bruno@clisp.org>
27181         Make the 'argp' module work without the 'error' module.
27182         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27184 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27186         diffseq: restore TOO_EXPENSIVE heuristic
27187         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27188         (Bug#24715).  The simplest solution is to restore the
27189         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27190         using a higher threshold to avoid Bug#16848 on smaller files.
27191         * lib/diffseq.h (struct context): Restore member too_expensive.
27192         (struct partition): Restore members lo_minimal, hi_minimal.
27193         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27194         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27195         1993 to make 'diff' run faster (but not as well) on large inputs,
27196         but use a threshold of 4096 instead of the old 256.
27197         * lib/fstrcmp.c (strcmp_bounded):
27198         * lib/git-merge-changelog.c (compute_differences):
27199         Adjust to diffseq.h changes.
27201 2016-10-22  Bruno Haible  <bruno@clisp.org>
27203         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27204         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27205         declaration yet, define ICONV_CONST to empty.
27207 2016-10-15  Bruno Haible  <bruno@clisp.org>
27209         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27210         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27211         module.
27213 2016-10-16  Bruno Haible  <bruno@clisp.org>
27215         system-quote tests: Avoid compiler warning on AIX.
27216         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27217         <stdio.h> does.
27219 2016-10-16  Bruno Haible  <bruno@clisp.org>
27221         Fix some "gcc -Wall" warnings.
27222         * tests/test-ffsl.c (main): Use variable x, not i.
27223         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27224         freopen.
27225         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27226         of sethostname.
27228 2016-10-16  Bruno Haible  <bruno@clisp.org>
27230         gnulib-tool: Make --create-testdir on all modules work again.
27231         * gnulib-tool (func_create_testdir): Don't include the
27232         non-recursive-gnulib-prefix-hack module.
27234 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27236         libunistring: change the maintainer to 'all'
27237         * modules/gen-uni-tables, modules/libunistring:
27238         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27239         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27240         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27241         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27242         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27243         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27244         * modules/uniwidth/*: Change the maintainer to 'all'.
27246 2016-10-16  Bruno Haible  <bruno@clisp.org>
27248         Simplify "configure: checking ..." messages.
27249         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27250         AC_MSG_NOTICE.
27251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27253 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27255         quotearg-tests: pacify gcc -Wall
27256         Problem reported by Bruno Haible in:
27257         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27258         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27259         * tests/test-quotearg.h: ... from here.
27261 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27263         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27264         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27265         Needed on Centos <= 4.
27267 2016-10-20  Jim Meyering  <meyering@fb.com>
27269         printf.m4: fix a bug in detecting printf %j support
27270         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27271         uintmax_t is defined in neither stdint.h nor inttypes.h.
27272         Before, this macro might have mistakenly set
27273         gl_cv_func_printf_sizes_c99=yes on such a system.
27274         Spotted by Zev Weiss.
27276 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27278         sched: substitute HAVE_SYS_CDEFS_H too
27279         Problem reported by Tom G. Christensen in:
27280         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27281         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27282         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27284 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27286         quotearg: never write beyond the returned length
27287         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27288         scan of the string when we initially encounter a single quote when
27289         shell quoting, so that if we then switch to a more concise quoting method
27290         we will not have written beyond that returned length.
27291         This is significant for sh-quote, which has separate routines
27292         to determine the length and do the actual quoting.
27293         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27294         now that we never write more than the returned length.
27296 2016-10-18  Bruno Haible  <bruno@clisp.org>
27298         getprogname tests: Avoid failure in packages that use libtool.
27299         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27300         Based on a patch by Jim Meyering.
27302 2016-10-16  Bruno Haible  <bruno@clisp.org>
27304         getprogname: Fix test failure on Cygwin. Comments.
27305         * lib/getprogname.h: Add comments.
27306         * lib/getprogname.c: Add comments. Fix #elif indentation.
27307         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27308         ".exe" suffix.
27310 2016-10-16  Bruno Haible  <bruno@clisp.org>
27312         Make sure the libunistring detection rejects older versions with a
27313         known bug.
27314         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27315         * modules/unistr/u16-strtok (configure.ac): Likewise.
27316         * modules/unistr/u32-strtok (configure.ac): Likewise.
27318 2016-10-18  Bruno Haible  <bruno@clisp.org>
27320         sh-quote, system-quote: revert regression of unit test.
27321         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27322         * tests/test-system-quote-main.c (check_one): Likewise.
27324 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27326         quotearg: fix stale tests
27327         * tests/test-quotearg.c [locale_results]: Add the missing str7
27328         entries to the expected results.
27329         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27330         don't write beyond the returned length, since that's no longer the
27331         case if we switch to a more concise quoting style.
27332         * tests/test-sh-quote.c (check_one): Likewise.
27333         (main): Adjust for the new more concise quoting style.
27334         Reported by Bruno Haible.
27336 2016-10-16  Jim Meyering  <meyering@fb.com>
27338         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27339         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27340         to "$1".  This macro is always invoked with $1 == lib.
27341         Spotted by Bruno Haible
27343 2016-10-16  Bruno Haible  <bruno@clisp.org>
27345         Fix a test crash.
27346         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27347         fails.
27349 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27351         test-limits-h: suppress -Woverlength-strings
27352         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27354 2016-10-15  Bruno Haible  <bruno@clisp.org>
27356         gettime, timespec, utimens: Relicense under LGPL.
27357         * modules/gettime (License): Change to LGPL.
27358         * modules/timespec (License): Likewise.
27359         * modules/utimens (License): Likewise.
27361 2016-10-14  Bruno Haible  <bruno@clisp.org>
27362             Pádraig Brady  <P@draigBrady.com>
27364         canonicalize-lgpl: Support the case path_max > INT_MAX.
27365         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27366         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27368 2016-10-13  Jim Meyering  <meyering@fb.com>
27370         getprogname: IBM z/OS: avoid NULL-dereference
27371         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27372         upon strdup failure.
27374 2016-10-12  Jim Meyering  <meyering@fb.com>
27376         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27377         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27378         and an abbreviated diagnostic rather than verify with the full one,
27379         because the full-length strings would evoke warnings from gcc with
27380         -Woverlength-strings.
27382 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27384         stdint: port SIZE_MAX to glibc s390
27385         Problem reported by Eric Blake in:
27386         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27387         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27388         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27389         correct type, if possible.
27391 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27393         getprogname: port to IBM z/OS
27394         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27396 2016-10-11  Jim Meyering  <meyering@fb.com>
27398         maint: remove stray space after "." in AC_DEFINE comment.
27399         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27400         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27402 2016-10-05  Jim Meyering  <meyering@fb.com>
27404         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27405         * lib/long-options.c (parse_long_options): Add a break statement
27406         to avoid this new warning/failure:
27407         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27408           --create-testdir --dir=/t/x --with-tests --test long-options
27409         ../../gllib/long-options.c: In function 'parse_long_options':
27410         ../../gllib/long-options.c:66:12: error: this statement may \
27411           fall through [-Werror=implicit-fallthrough]
27412                    (*usage_func) (EXIT_SUCCESS);
27413                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27415 2016-10-05  Jim Meyering  <meyering@fb.com>
27417         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27418         Testing this module would fail when using GCC 7 like this:
27419         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27420           --dir=/tmp/x --with-tests --test utimecmp
27421         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27422         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27423           [-Werror=bool-operation]
27424                          time_t s = src_s & ~ (res == 2 * BILLION);
27425                                             ^
27426         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27427           [-Werror=bool-operation]
27428                src_s &= ~ (res == 2 * BILLION);
27429                         ^
27430         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27431         Instead, make it explicit that we intend to apply it to 0 or 1.
27433 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27435         dfa: save memory for states
27436         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27437         states if dfa has a lot of caches.
27439 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27441         wchar, wctype-h: fix for MinGW 3.22.2
27442         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27443         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27444         when included from <string.h>.
27445         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27446         convention for MinGW 3.22.2, to solve issues with their
27447         wctype.h when included from <ctype.h>.
27449 2016-10-05  Jim Meyering  <meyering@fb.com>
27451         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27452         * lib/long-options.c (parse_long_options): Add a break statement
27453         to avoid this new warning/failure:
27454         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27455           --create-testdir --dir=/t/x --with-tests --test long-options
27456         ../../gllib/long-options.c: In function ‘parse_long_options’:
27457         ../../gllib/long-options.c:66:12: error: this statement may \
27458           fall through [-Werror=implicit-fallthrough]
27459                    (*usage_func) (EXIT_SUCCESS);
27460                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27462         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27463         Testing this module would fail when using GCC 7 like this:
27464         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27465           --dir=/tmp/x --with-tests --test utimecmp
27466         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27467         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27468           [-Werror=bool-operation]
27469                          time_t s = src_s & ~ (res == 2 * BILLION);
27470                                             ^
27471         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27472           [-Werror=bool-operation]
27473                src_s &= ~ (res == 2 * BILLION);
27474                         ^
27475         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27476         Instead, make it explicit that we intend to apply it to 0 or 1.
27478 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27480         quotearg: minimize shell quoting using double quotes
27481         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27482         quote in encountered then use double quotes (c style quoting)
27483         when possible, as it simplifies the quoting.
27484         * tests/test-quotearg-simple.c: Add test cases.
27485         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27486         for the fact we now may write beyond the returned length.
27488 2016-10-02  Jim Meyering  <meyering@fb.com>
27490         vasnprintf.c: avoid spurious warning from GCC 7
27491         The presence of cpp directives renders this "FALLTHROUGH" comment
27492         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27493         from GCC 7 built from git on 2016-10-02.
27494         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27495         directives, so that it takes effect once again.  This is clearly
27496         not a proper change, and I will revert it once this bug is fixed:
27497         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27499 2016-10-01  Jim Meyering  <meyering@fb.com>
27501         getprogname: correct the test for a __progname variable
27502         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27503         and AC_LINK_IFELSE to check for a global __progname.  If found,
27504         define HAVE_VAR___PROGNAME.
27505         * lib/getprogname.c (getprogname): Reflect the new name of the
27506         feature- checked preprocessor symbol:
27507         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27509 2016-09-28  Jim Meyering  <meyering@fb.com>
27511         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27512         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27513         fall-through case with a /* fallthrough */ comment.
27515         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
27516         * lib/dfa.c (dfassbuild): Mark the end of this case with a
27517         /* fallthrough */ comment.
27519         getprogname: avoid __progname vs program_invocation_short_name pitfall
27520         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
27521         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
27522         not with Fedora 24's glibc-2.23.1-10.
27523         * lib/getprogname.c (__progname): Move this declaration down...
27524         (getprogname): ... into the #elif block where used, and make it
27525         explicitly "extern".
27527         getprogname: port to OpenBSD 5.1
27528         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
27529         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
27530         * modules/getprogname (configure.ac): Move most of this code...
27531         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
27532         increment serial number, and add a test for __progname.
27533         https://bugs.gnu.org/24562
27534         Reported by Nelson H. F. Beebe.
27536 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27538         sched: port to GCC 6.2.1 on macOS Sierra
27539         Problem reported by Denis Davydov in:
27540         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
27541         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
27542         Include <sys/cdefs.h> before <sched.h>.
27543         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
27544         so that we needn’t worry about the sched.h include bug here.
27545         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
27546         and include it before <sched.h> if it exists, when
27547         checking for <sched.h>.
27549         tests/init.sh: port Alpine fix to AIX 7.1
27550         * tests/init.sh (compare_): When attempting to use diff -U3,
27551         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
27552         diff -u not outputting a space after leading '+', as the users
27553         of 'compare' should not be that picky about its output format.
27554         In the AIX 7.1 case, return with diff exit status (or with 2 if
27555         trouble), instead of some random nonzero exit status.
27556         * tests/test-init.sh (test_compare): Remove space after leading
27557         '+', so that AIX 7.1 'diff' passes the test.
27559 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27561         nl_langinfo: pacify GCC
27562         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
27563         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
27565         stdint: also set GL_GENERATE_LIMITS_H
27566         Problem reported by Jim Meyering in:
27567         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
27568         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
27570         limits-h, stdint: Don't assume extensions, fix typo
27571         * m4/limits-h.m4 (gl_LIMITS_H):
27572         * m4/stdint.m4 (gl_STDINT_H):
27573         Don't assume AC_USE_SYSTEM_EXTENSIONS.
27574         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
27575         reported by Jim Meyering in:
27576         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
27578 2016-09-21  Jim Meyering  <meyering@fb.com>
27580         getprogname: port to AIX
27581         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
27582         and strdup to obtain a short program name string.  Using code from
27583         Bruno Haible and an idea from Bastien ROUCARIÈS, in
27584         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
27585         Assaf Gordon reported that this new file would fail to compile on
27586         AIX-7.1 32bit.
27588 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27590         extensions: fix typo in comment
27591         * m4/extensions.m4: Sync from Autoconf master.
27593         stdint: support new _WIDTH macros
27594         * doc/posix-headers/stdint.texi: Document this.
27595         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27596         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27597         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27598         * modules/stdint (Depends-on): Add limits-h.
27599         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27600         * modules/stdint-tests (Depends-on): Add extensions, so that
27601         INTMAX_MAX etc. are defined.
27602         * tests/test-stdint.c: Verify the new macros.
27604         limits-h: new module
27605         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27606         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27607         * doc/posix-headers/limits.texi: Document new module.
27608         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
27609         * modules/limit-h-tests, tests/test-limits-h.c: New files.
27611         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27612         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27613         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27614         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27616 2016-09-15  Eric Blake  <eblake@redhat.com>
27618         sys_types: avoid glibc 2.25 warnings about major()
27619         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27620         older autoconf.
27621         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27622         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27623         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27624         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27626         mountlist: include sysmacros.h for glibc
27627         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27628         AC_HEADER_MAJOR.
27629         * lib/mountlist.c (includes): Use correct headers.
27631 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27633         extensions: port to more ISO C TSes
27634         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27635         master, to add support for more recent ISO C TRs and TSes.
27637 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27639         intprops: new macro TYPE_WIDTH
27640         * lib/intprops.h (TYPE_WIDTH): New macro.
27641         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27642         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27643         * lib/parse-datetime.y (parse_datetime2):
27644         Use it.
27646         extensions: port to recent ISO C TRs
27647         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27648         Sync from Autoconf master, to add support for recent ISO C TRs.
27649         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27650         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27651         the MinGW option is not an extension.
27653 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27655         dfa: port to Solaris 9
27656         Problems reported by Tom G. Christensen in:
27657         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27658         * modules/dfa (Depends-on): Add isblank.
27659         * modules/dfa-tests (dfa_match_aux_LDADD):
27660         Rename from test_stat_LDADD, to fix typo.
27661         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27663 2016-09-10  Jim Meyering  <meyering@fb.com>
27665         strverscmp: avoid link failure on OS X
27666         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27667         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27669 2016-08-16  Jim Meyering  <meyering@fb.com>
27671         dfa: new module, importing grep's DFA matcher
27672         Since grep's DFA matcher is now being used by two gnulib-enabled
27673         projects, grep and sed, it makes sense to version-control its
27674         sources and unit tests in one place: here.
27675         * modules/dfa: New module.
27676         * modules/dfa-tests: New file.
27677         * lib/dfa.c: New file, from grep.
27678         * lib/dfa.h: Likewise.
27679         * lib/localeinfo.c: Likewise.
27680         * lib/localeinfo.h: Likewise.
27681         * tests/dfa-match-aux.c: Likewise.
27682         * tests/dfa-invalid-char-class.sh: Likewise.
27683         * tests/dfa-match.sh: Likewise, with minor changes.
27684         * MODULES.html.sh (Misc): Add "dfa" to this list.
27686 2016-09-09  Jim Meyering  <meyering@fb.com>
27688         getprogname-tests: don't depend on assert-h
27689         * modules/getprogname-tests (Depends-on): Remove assert-h.
27690         It was not needed, and in fact would cause build failure for
27691         coreutils on some systems.  Reported by Assaf Gordon in https:
27692         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27694 2016-09-07  Jim Meyering  <meyering@fb.com>
27696         getprogname-tests: work also when EXEEXT is nonempty
27697         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27698         * tests/test-getprogname.c (main): Use it.
27699         Suggested by Gisle Vanem.
27701 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27703         getprogname: fix errors in previous change
27704         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27705         s/program_invocation_name/base/
27706         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27708 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27710         parse-datetime: restrict debug output to input string
27711         * lib/parse-datetime.y (parse_datetime2): If we parse
27712         all of the input but determine it's invalid, ensure
27713         we don't output the now invalid input pointer.
27714         This issue was seen with `date -d 'now +1'`.
27716 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27718         flexmember: new macro FLEXALIGNOF
27719         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27720         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27721         this macro.  Update comments.
27723 2016-09-07  Jim Meyering  <meyering@fb.com>
27725         getprogname: port to systems with __argv (mingw, msvc)
27726         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27727         last_component: more general than open coding it with hard-coded "/".
27728         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27729         * modules/getprogname (Depends-on): Add dirname-lgpl.
27730         (configure.ac): Check for __argv in <stdlib.h>.
27731         * modules/getprogname-tests: New file.
27732         * tests/test-getprogname.c: New file.
27733         Suggested by Gisle Vanem in
27734         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27736 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27738         flexmember: port better to GCC + valgrind
27739         With a char[] flexible array member in a struct with nontrivial
27740         alignment, GCC-generated code can access past the end of the
27741         array, because GCC assumes there are padding bytes to get the
27742         struct aligned.  So the common idiom of malloc (offsetof (struct
27743         s, m), n) does not properly allocate an n-byte trailing member, as
27744         malloc’s argument should be the next multiple of alignof (struct s).
27745         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27746         Although C11 apparently permits this GCC optimization (i.e., there
27747         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27748         See the thread containing:
27749         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27750         * lib/flexmember.h: New file.
27751         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27752         * lib/localename.c, lib/time_rz.c:
27753         Include flexmember.h.
27754         * lib/fnmatch_loop.c (struct patternlist):
27755         * lib/localename.c (struct hash_node):
27756         Use FLEXIBLE_ARRAY_MEMBER.
27757         * lib/fnmatch_loop.c (EXT):
27758         * lib/fts.c (fts_alloc):
27759         * lib/glob.c (glob_in_dir):
27760         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27761         * lib/localename.c (gl_lock_define_initialized):
27762         * lib/time_rz.c (tzalloc):
27763         Use FLEXSIZEOF instead of offsetof.
27764         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27765         Check that the size of the struct can be taken.
27766         * modules/flexmember (Files): Add lib/flexmember.h.
27767         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27768         Add flexmember.
27770 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27772         getprogname: port to Solaris 10
27773         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27774         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27775         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27777         stdalign: correct mistake in alignof doc
27778         Problem reported by Joseph Myers in:
27779         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27780         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27781         alignof(S) where S is a structure containing a flexible array
27782         member.  The Gnulib substitute does not support this, but C11 does.
27784 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27786         main.mk: remove sc_program_name, since there is no more need to
27787         use set_program_name in tools (getprogname is enough for most
27788         of the cases).
27789         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27790         * top/maint.mk (sc_program_name): Remove.
27792 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27794         Port tests away from progname, since modules that need the
27795         program name already depend on getprogname.
27796         * modules/acl-tests (Depends-on): Remove progname.
27797         * modules/argmatch (Depends-on): Likewise.
27798         * modules/argmatch-tests (Depends-on): Likewise.
27799         * modules/argp-tests (Depends-on): Likewise.
27800         * modules/argp-version-etc-tests (Depends-on): Likewise.
27801         * modules/array-list-tests (Depends-on): Likewise.
27802         * modules/array-oset-tests (Depends-on): Likewise.
27803         * modules/avltree-list-tests (Depends-on): Likewise.
27804         * modules/avltree-oset-tests (Depends-on): Likewise.
27805         * modules/avltreehash-list-tests (Depends-on): Likewise.
27806         * modules/carray-list-tests (Depends-on): Likewise.
27807         * modules/copy-file-tests (Depends-on): Likewise.
27808         * modules/exclude-tests (Depends-on): Likewise.
27809         * modules/fchownat-tests (Depends-on): Likewise.
27810         * modules/fdopendir-tests (Depends-on): Likewise.
27811         * modules/filenamecat-tests (Depends-on): Likewise.
27812         * modules/fstatat-tests (Depends-on): Likewise.
27813         * modules/fstrcmp-tests (Depends-on): Likewise.
27814         * modules/linked-list-tests (Depends-on): Likewise.
27815         * modules/linkedhash-list-tests (Depends-on): Likewise.
27816         * modules/mkdirat-tests (Depends-on): Likewise.
27817         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27818         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27819         * modules/obstack-printf-tests (Depends-on): Likewise.
27820         * modules/openat-tests (Depends-on): Likewise.
27821         * modules/parse-datetime-tests (Depends-on): Likewise.
27822         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27823         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27824         * modules/quotearg-simple-tests (Depends-on): Likewise.
27825         * modules/quotearg-tests (Depends-on): Likewise.
27826         * modules/rbtree-list-tests (Depends-on): Likewise.
27827         * modules/rbtree-oset-tests (Depends-on): Likewise.
27828         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27829         * modules/spawn-pipe-tests (Depends-on): Likewise.
27830         * modules/system-quote-tests (Depends-on): Likewise.
27831         * modules/uniname/uniname-tests (Depends-on): Likewise.
27832         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27833         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27834         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27835         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27836         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27837         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27838         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27839         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27840         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27841         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27842         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27843         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27844         * modules/unlinkat-tests (Depends-on): Likewise.
27845         * modules/version-etc-tests (Depends-on): Likewise.
27846         * modules/xalloc-die-tests (Depends-on): Likewise.
27847         * modules/xmemdup0-tests (Depends-on): Likewise.
27848         * modules/xprintf-posix-tests (Depends-on): Likewise.
27849         * modules/xvasprintf-tests (Depends-on): Likewise.
27850         * tests/test-argmatch.c: Do not include progname.h.
27851         (main) Stop calling set_program_name.
27852         * tests/test-argp-version-etc.c: Likewise.
27853         * tests/test-argp.c: Likewise.
27854         * tests/test-argv-iter.c: Likewise.
27855         * tests/test-array_list.c: Likewise.
27856         * tests/test-array_oset.c: Likewise.
27857         * tests/test-avltree_list.c: Likewise.
27858         * tests/test-avltree_oset.c: Likewise.
27859         * tests/test-avltreehash_list.c: Likewise.
27860         * tests/test-carray_list.c: Likewise.
27861         * tests/test-copy-acl.c: Likewise.
27862         * tests/test-copy-file.c: Likewise.
27863         * tests/test-exclude.c: Likewise.
27864         * tests/test-fchownat.c: Likewise.
27865         * tests/test-fdopendir.c: Likewise.
27866         * tests/test-filenamecat.c: Likewise.
27867         * tests/test-fstatat.c: Likewise.
27868         * tests/test-fstrcmp.c: Likewise.
27869         * tests/test-linked_list.c: Likewise.
27870         * tests/test-linkedhash_list.c: Likewise.
27871         * tests/test-mkdirat.c: Likewise.
27872         * tests/test-nonblocking-pipe-main.c: Likewise.
27873         * tests/test-nonblocking-socket-main.c: Likewise.
27874         * tests/test-obstack-printf.c: Likewise.
27875         * tests/test-openat.c: Likewise.
27876         * tests/test-parse-datetime.c: Likewise.
27877         * tests/test-pipe-filter-gi1.c: Likewise.
27878         * tests/test-pipe-filter-gi2-main.c: Likewise.
27879         * tests/test-pipe-filter-ii1.c: Likewise.
27880         * tests/test-pipe-filter-ii2-main.c: Likewise.
27881         * tests/test-quotearg-simple.c: Likewise.
27882         * tests/test-quotearg.c: Likewise.
27883         * tests/test-rbtree_list.c: Likewise.
27884         * tests/test-rbtree_oset.c: Likewise.
27885         * tests/test-rbtreehash_list.c: Likewise.
27886         * tests/test-sameacls.c: Likewise.
27887         * tests/test-set-mode-acl.c: Likewise.
27888         * tests/test-spawn-pipe-main.c: Likewise.
27889         * tests/test-system-quote-main.c: Likewise.
27890         * tests/test-unlinkat.c: Likewise.
27891         * tests/test-version-etc.c: Likewise.
27892         * tests/test-xalloc-die.c: Likewise.
27893         * tests/test-xfprintf-posix.c: Likewise.
27894         * tests/test-xmemdup0.c: Likewise.
27895         * tests/test-xprintf-posix.c: Likewise.
27896         * tests/test-xvasprintf.c: Likewise.
27897         * tests/uniname/test-uninames.c: Likewise.
27898         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27899         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27900         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27901         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27902         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27903         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27904         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27905         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27906         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27907         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27908         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27909         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27910         * tests/test-c-stack.c: (program_name): Do not define.
27911         (main): Do not set program_name.
27912         * tests/test-closein.c: Likewise.
27913         * tests/test-xstrtol.c: Likewise.
27914         * tests/test-yesno.c: Likewise.
27916 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27918         Port modules to use getprogname explicitly, instead of requiring
27919         progname to be used (or program_name to be provided).
27920         * lib/argmatch.c: Do not include progname.h.
27921         [TEST] (program_name): Do not define.
27922         [TEST] (main): Call getprogname instead of using program_name.
27923         * lib/c-stack.c: Do not include progname.h.
27924         (program_name): Do not define.
27925         (die): Call getprogname instead of using program_name.
27926         * lib/chdir-long.c: Do not include progname.h.
27927         [TEST_CHDIR] (main): Do not set program_name.
27928         * lib/error.c [!_LIBC]: Include progname.h.
27929         [!_LIBC] (program_name): Define using getprogname.
27930         * lib/euidaccess.c: Do not include progname.h.
27931         [TEST] (main): Do not set program_name.
27932         * lib/git-merge-changelog.c: Include getprogname.h instead of
27933         progname.h.
27934         (usage): Call getprogname instead of using program_name.
27935         (main): Likewise.  Stop calling set_program_name.
27936         * lib/group-member.c: Do not include progname.h.
27937         [TEST] (main): Do not set program_name.
27938         * modules/argmatch (Depends-on): Add getprogname.
27939         * modules/c-stack (Depends-on): Likewise.
27940         * modules/error (Depends-on): Likewise.
27941         * modules/git-merge-changelog (Depends-on): Likewise.
27942         Also remove progname.
27944 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
27946         * NEWS: Document the deprecation of the 'progname' module.
27948 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27950         getprogname: new module
27951         This provides a LGPL module for getting the name of the current
27952         program, using the same API found on *BSD systems.
27953         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27954         * modules/getprogname: New files.
27955         * MODULES.html.sh (Misc): Add getprogname.
27957 2016-09-02  Jim Meyering  <meyering@fb.com>
27959         manywarnings: add -fno-common
27960         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27961         to the list.  Quoting the manual, "Compiling with -fno-common is
27962         useful on targets for which it provides better performance, or if
27963         you wish to verify that the program will work on other systems that
27964         always treat uninitialized variable declarations this way [putting
27965         it in the data section]."  If diffutils had been using this sooner,
27966         it would have prevented this duplicate declaration issue:
27967         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27969 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27971         parse-datetime: Fix typo.
27972         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27974 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27976         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27977         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27978         GCC 5 and 6 that have __builtin_sub_overflow but not
27979         __builtin_sub_overflow_p.  With the recent changes, these
27980         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27981         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27982         since the former needs just one runtime comparison whereas the
27983         latter needs two.
27985         strverscmp: sync with glibc
27986         Although this doesn't exactly synchronize with glibc
27987         byte-for-byte, it makes the code behave the same as glibc.
27988         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27989         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27990         difference shouldn't matter in practical use.  All uses changed
27991         back to isdigit.
27992         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27993         (next_state): Now unsigned char array; redo elements.
27994         (result_type): Now signed char array; redo elements.
27995         (__strverscmp): Fix glibc bug 9913 by using new states.
27996         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27998 2016-08-29  Jim Meyering  <meyering@fb.com>
28000         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28001         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28002         similarly to how it was done to intprops.h.
28004 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28006         intprops.h: port recent changes to GCC 6.2.0
28007         * lib/intprops.h (__has_builtin): Move earlier.
28008         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28009         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28010         the last argument can be null.  All uses changed.
28011         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28012         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28013         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28014         and it's not clear which GCC versions it works for.
28015         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28016         its definiens.
28018         intprops.h: use __typeof__ with GCC 7
28019         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28020         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28021         This avoids computing the expression's value (which might overflow!).
28023 2016-08-29  Jim Meyering  <meyering@fb.com>
28025         intprops.h, xalloc-oversized.h: work with gcc 7
28026         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28027         __builtin_mul_overflow each accept a NULL pointer as the third
28028         argument.  However in gcc 7, that is no longer accepted.
28029         Instead, one must use the "_p"-suffixed names, with which, the
28030         third parameter is no longer a pointer.
28031         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28032         the definition: not true for gcc 7 and subsequent.
28033         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28034         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28035         Provide new definitions for gcc 7 and subsequent.
28036         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28037         that works with gcc-7.
28039         intprops.h: fix missing-backslash problems
28040         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28041         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28043 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28045         intprops: fix paren typo on old platforms
28046         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28047         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28048         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28049         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28050         && !defined LLONG_MAX]:
28051         Remove stray paren.
28053         intprops: port to OpenVMS
28054         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28055         * doc/posix-headers/limits.texi: Document the problem.
28056         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28057         Define if not already defined.
28059 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28061         parse-datetime: improve debug implementation
28062         Follow-up to commit 12ad79069 ("add optional debug printing").
28063         Improve parse-datetime's debug implementation: remove macros,
28064         replace global debug flag variable with a function parameter,
28065         use nstrftime for formatting.
28066         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28067         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28068         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28069         debug flag. Existing interface 'parse_datetime' left unmodified.
28070         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28071         (struct parser_control): add 'parse_datetime_debug' member variable.
28072         (parse_datetime): Call new function 'parse_datetime2' without debug.
28073         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28074         pc.parse_datetime_debug variable as needed.
28075         (to_year): Accept new flags parameter, instead of using global variable.
28076         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28077         use struct 'debug' variable instead of global variable.
28078         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28079         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28080         correspnding functions directly instead of using macros.
28081         * modules/parse-datetime: Add gnulib's strftime module.
28083 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28085         c-strcase-tests: port to EBCDIC
28086         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28087         which assume ASCII encoding semantics to run only in ASCII
28088         mode, as they fail in EBCDIC.
28090         sigpipe-tests: fix typo
28091         * tests/test-sigpipe.sh: C, not B.
28093 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28095         canonicalize-lgpl: fix errno after malloca fails
28096         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28097         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28098         * lib/canonicalize-lgpl.c (__realpath):
28099         Don't assume malloca sets errno on failure.
28101 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28103         strtod: port errno handling to z/OS
28104         * lib/strtod.c (strtod): Save and restore errno more reliably.
28106 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28108         strtod: port to z/OS
28109         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28110         implementation.
28112 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28114         strtod: port to z/OS
28115         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28116         implementation.
28118         regex, string: rename to avoid '__string'
28119         * lib/regex.h, lib/string.in.h: Do not use the identifier
28120         '__string', as it is effectively reserved by string.h on z/OS.
28122         c-strcase-tests, wcwidth-tests: depend on c-ctype
28123         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28124         Add c-ctype.
28126 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28128         thread: port to z/OS
28129         * lib/glthread/thread.c, lib/glthread/thread.h:
28130         Rudimentary gl_thread support for z/OS.
28132         maint: port tests to z/OS errno behavior
28133         * tests/test-nonblocking-reader.h:
28134         * tests/test-nonblocking-writer.h:
28135         Accommodate z/OS errno code preferences. (I believe this should
28136         still be within spec; IBM is good at following the letter if not
28137         the spirit of such things.)
28139         maint: preprocessor changes to support z/OS
28140         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28141         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28142         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28143         * tests/test-nonblocking-pipe.h:
28145         fclose, strstr-simple, wchar: port to z/OS
28146         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28147         Changes to the Autoconf M4 code to support z/OS.  Note that
28148         fclose() is broken in a different way on z/OS than it is on other
28149         systems, thus the special-case in fclose.m4.
28151         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28152         * tests/test-iconv-utf.c, tests/test-iconv.c:
28153         Added appropriately conditional #pragmas so that the test strings
28154         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28155         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28156         addressed in a more portable way by simply rewriting all the ASCII
28157         literal characters as octal escapes, but then you would lose the
28158         partial readability that the strings have now. Also, iconv_open()
28159         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28161         c-strcase-tests, wcwidth-tests: port to EBCDIC
28162         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28163         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28164         * tests/test-wcwidth.c: Likewise.
28166 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28168         stdbool: don't require _Bool for C++
28169         Problem reported by David Seifert in:
28170         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28171         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28172         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28173         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28174         stricter about checking that bool and _Bool are compatible in C.
28176 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28178         getdelim: remove dependency on realloc-posix
28179         * lib/canonicalize-lgpl.c (alloc_failed)
28180         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28181         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28182         Use __set_errno where needed, for consistency.
28183         * lib/getdelim.c (alloc_failed): New function.
28184         (getdelim): Use it.
28186 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28188         parse-datetime: add optional debug printing
28189         Print parsing information, warnings, and errors to stderr.
28190         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28191         * lib/parse-datetime.y:
28192         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28193         (PROGRESS*): Same as DEBUG, for progress reporting.
28194         (dbg_printf): Print message to stderr, with 'date' prefix.
28195         (struct parser_control): Add 'debug_*_seen' variables.
28196         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28197         (debug_print_current_time, debug_print_relateive_time): Prints the
28198         current/relative date/time value of parser_control.
28199         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28200         (to_year): Warn about 2-digit year parsing.
28201         (yylex):   Warn about unrecognized words.
28202         (get_effective_timezone): Returns current timezone in minutes.
28203         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28204         clearly and unambigiously as possible.
28205         (debug_mktime_not_ok): Print detailed information about failed
28206         date/time values.
28207         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28208         PROGRESS messages for status messages.
28209         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28211 2016-08-06  Jim Meyering  <meyering@fb.com>
28213         tests/init.sh: exclude dash with bad "local" semantics
28214         * tests/init.sh (gl_shell_test_script_): Add a function to
28215         eliminate a shell like "dash" (unlike bash, zsh) that has
28216         surprising/risky "local var='...'" semantics.  Inspired by
28217         the problem and discussion in https://bugs.gnu.org/24116#11.
28219 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28221         maint.mk: expand the prohibit_doubled_word regex
28222         This check has a static list of words that are checked for
28223         repetitions.  Expand it before running the perl script to
28224         avoid using expensive captures.  This decreases the cost
28225         for libvirt from 1.66s to 0.66s.
28226         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28227         (sc_prohibit_doubled_word): Use it.
28229 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28231         useless-if-before-free: skip non-matching lines early
28232         * build-aux/useless-if-before-free: First match each line with the
28233         simple/quick /\bif\b/ and reject if there is no match. This often
28234         saves the cost of the much more involved regular expression.
28235         For libvirt, this decreases the cost from 1.44s to 1.02s.
28237 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28239         maint.mk: speed up sc_po_check
28240         sc_po_check would skip files based on their names, or on the
28241         existence of files with derived names. Rewrite it to use perl
28242         instead of shell to make the check faster.
28243         * top/maint.mk (perl_translatable_files_list_): Define.
28244         (sc_po_check): Use it.
28246 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28248         maint.mk: speed up require_config_h_first
28249         Instead of spawning three processes per file,
28250         rewrite the check in perl and run it once for all the files.
28251         * top/maint.mk (perl_config_h_first_): Define.
28252         (sc_require_config_h_first): Use it in place of shell code.
28254 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28256         maint.mk: speed up sc_po_check
28257         sc_po_check would skip files based on their names, or on the
28258         existence of files with derived names. Rewrite it to use perl
28259         instead of shell to make the check faster.
28260         * top/maint.mk (perl_translatable_files_list_): Define.
28261         (sc_po_check): Use it.
28263 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28265         obstack: pacify GCC 6 with -Wnull-dereference
28266         Problem reported by Assaf Gordon in:
28267         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28268         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28269         Declare with __attribute_noreturn__.
28270         * lib/obstack.h (__attribute_noreturn__): New macro.
28272 2016-07-13  Eric Blake  <eblake@redhat.com>
28274         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28275         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28276         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28278 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28280         doc: mention glibc SSIZE_MAX buglet
28281         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28283 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28285         printf-posix: Fix mingw build
28286         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28287         expression for detecting C symbol prefixes but forgot to qoute square
28288         brackets in the command line arguments for grep.  That way when
28289         building with mingw the condition was false although it ought to be
28290         true instead.  In particular scenarios this led to the following
28291         compile error:
28293             Cannot export rpl_printf: symbol not found
28294             Cannot export rpl_scanf: symbol not found
28295             collect2: error: ld returned 1 exit status
28297         Fix this by properly quoting square brackets.
28299 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28301         mktime: call tzset as per POSIX
28302         Problem reported by Ludovic Courtès in:
28303         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28304         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28305         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28307 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28309         fts: handle readdir() errors
28310         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28311         but also upon error when it will also set errno.  Therefore
28312         flag the error case from readdir().  We treat the case where
28313         no items are read the same as if the dir can't be accessed,
28314         i.e. by setting fts_errno to FTS_DNR.
28316 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28318         intprops: port better to GCC 7
28319         GCC 7 __builtin_add_overflow supports a new usage form, where the
28320         last argument is a null pointer, and which merely returns 1 if an
28321         overflow would occur.  This is a constant expression if all
28322         arguments are constants, and should generate faster code when code
28323         needs to be generated.
28324         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28325         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28326         Use builtin operations if available.
28327         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28328         operations are available, as it's almost surely faster.
28330 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28332         intprops-test: port to GCC 6
28333         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28334         since the bug is not fixed in GCC 6.1.
28336 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28338         xalloc-oversized: port to GCC 7; fewer warnings
28339         GCC 7 will have a better way to deal with integer overflow.
28340         Plus, fix a warnings problem reported by Tim Ruehsen in:
28341         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28342         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28343         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28344         For GCC 5, use __xalloc_oversized if both args are constants,
28345         or if pedantic.
28347 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28349         regex: port to Sun C
28350         Reported by Daiki Ueno.
28351         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28352         __restrict, in prototype.  This fixes a problem I introduced in
28353         the 2016-02-19 merge from glibc.
28355 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28357         stdbool: Restore __bool_true_false_are_defined check
28358         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28359         __bool_true_false_are_defined is still defined, even with C++11.
28361 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28363         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28364         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28366 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28368         Use GCC_LINT, not lint
28369         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28370         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28371         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28372         Document problem with lint and _Noreturn.
28373         * lib/diffseq.h (IF_LINT, IF_LINT2):
28374         * lib/fts.c (sccsid):
28375         * lib/getndelim2.c (IF_LINT):
28376         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28377         (gl_linked_iterator_from_to):
28378         * lib/gl_anytree_list2.h (gl_tree_iterator)
28379         (gl_tree_iterator_from_to):
28380         * lib/gl_anytree_oset.h (gl_tree_iterator):
28381         * lib/gl_array_list.c (gl_array_iterator)
28382         (gl_array_iterator_from_to):
28383         * lib/gl_array_oset.c (gl_array_iterator):
28384         * lib/gl_carray_list.c (gl_carray_iterator)
28385         (gl_carray_iterator_from_to):
28386         * lib/idcache.c:
28387         * lib/inet_ntop.c (IF_LINT):
28388         * lib/regcomp.c (build_charclass_op, create_tree):
28389         * lib/regex_internal.c (re_acquire_state)
28390         (re_acquire_state_context):
28391         * lib/trigl.c (rcsid):
28392         * lib/trim.c (IF_LINT):
28393         * lib/vasnprintf.c (IF_LINT):
28394         * lib/verify.h (assume):
28395         Treat GCC_LINT like lint.
28397 2016-05-29  Bruno Haible  <bruno@clisp.org>
28399         secure_getenv: Port to many more platforms.
28400         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28401         functions.
28402         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28403         for non-BSD Unix platforms and for native Windows.
28404         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28405         Prompted by a request from Nikos Mavrogiannopoulos.
28407 2016-05-27  Eric Blake  <eblake@redhat.com>
28409         canonicalize: Fix broken probe for realpath.
28410         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28411         in logic introduced in 54615b95.
28413 2016-05-26  Eric Blake  <eblake@redhat.com>
28415         unsetenv: relax to LGPLv2+
28416         * modules/unsetenv (License): Match setenv license.
28418 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28420         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28421         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28422         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28423         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28424         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28425         (generate_html, generate_info, generate_tex, outdir)
28426         (source_extra, split, srcfile, texarg): Move above 'version'.
28427         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28429 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28431         manywarnings: update for GCC 6.1
28432         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28433         Add GCC 6.1 options that apply to C.
28434         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28435         do not apply to C, are obsolescent, etc.
28437 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28439         glob: size_t overflow checks
28440         * lib/glob.c (__has_builtin): New macro.
28441         (size_add_wrapv, glob_use_alloca): New static functions.
28442         (glob, glob_in_dir): Check for size_t overflow in several places,
28443         and fix some size_t checks that were not quite right.
28445         glob: don't assume INT_MAX < SIZE_MAX
28446         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28447         latter is not portable to (probably theoretical) hosts where
28448         SIZE_MAX <= INT_MAX.
28450 2016-05-09  Bruno Haible  <bruno@clisp.org>
28452         Fix undefined behaviour in gettext.h.
28453         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28454         pointer's value after the storage it points to has been freed.
28455         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28456         Spotted by Coverity.
28458 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28460         git-version-gen: avoid undefined shift
28461         Problem reported by Mosè Giordano in:
28462         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28463         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28464         with --prefix or --fallback but without a later argument.  While
28465         we're at it, omit unnecessary quotes.
28467 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28469         glob: merge glibc changes into lib/glob.c
28470         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28471         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28472         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28473           struct dirent [BZ #19779]
28474         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28475           callback gl_readdir
28476         2015-10-20 Convert miscellaneous function definitions to prototype style
28477         2015-10-20 Convert 113 more function definitions to prototype style
28478           (files with assertions)
28479         2015-06-12 Fix getlogin_r namespace (bug 18527).
28480         2014-02-10 Use glibc_likely instead __builtin_expect.
28481         2013-10-20 When glob pattern contains a trailing slash match only
28482           directories. Fixes bug 10278.
28483         2013-09-04 glob: silence -Wattribute warnings
28484         2013-06-07 Avoid use of "register" as optimization hint.
28485         2012-09-25 Use size_t instead of int for internal variables in glob
28486           (bug 14621)
28487         2011-07-20 Check for overflows in expressions
28488         2011-05-28 Remove unused variable
28489         2011-05-22 Add a few more alloca size checks
28490         2010-03-27 Whitespace fixes
28491         2010-03-27 Fix one more issue with the glob patch
28492         2010-03-24 Fix glob with empty pattern
28493         2008-05-27 Remove useless more "if" tests before "free"
28494         * modules/glob (Depends-on): Add stdint.
28496 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28498         mktime: port to stricter signed overflow checking
28499         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28500         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28501         instead of merely for INT_MAX * 2.  In practice platforms that
28502         do the latter also do the former.
28503         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28504         (shr): New static function, replacing SHR.  All uses changed.
28505         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28506         and TIME_T_MAX.  All uses changed.
28507         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28508         Use long_int, not time_t.
28509         (long_int_avg): New static function, replacing time_t_avg.
28510         All uses changed.  Round toward positive infinity, as that
28511         generates slightly better code.
28512         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28513         by INT_ADD_WRAPV.
28514         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
28515         (convert_time): New static function.
28516         (ranged_convert): Use it
28517         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
28518         Use simpler test for loop exit.
28519         (__mktime_internal): Store negative of guessed offset, to simplify
28520         overflow checking.  Remove no-longer-needed test for small time_t
28521         overflows.
28523         mktime: speed up DEBUG_MKTIME benchmarks
28524         Call tzset just once, at the start, rather than for every test
28525         case.  This lets us measure the CPU cost of mktime as opposed to
28526         that of tzset.  This is relevant when TZ is not set and glibc is
28527         being used.  This speeds up tests by a factor of 40 on my Fedora
28528         23 x86-64 platform.
28529         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
28530         to call tzset and as a sanity check.  Later on, use localtime_r
28531         instead of localtime.
28533         mktime: resurrect DEBUG_MKTIME testing
28534         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
28535         Include <string.h>, for strcmp.
28537         mktime: simplify DEBUG_MKTIME
28538         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
28539         Simplify later usage accordingly.
28541         Port mktime_internal offset to unsigned time_t
28542         This avoids some assumptions about wraparound arithmetic on
28543         signed integer overflow.
28544         * lib/mktime-internal.h (mktime_offset_t): New type.
28545         (mktime_internal): Use it in decl.
28546         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
28548         * lib/mktime.c (__mktime_internal, localtime_offset):
28549         * lib/timegm.c (timegm): Use it.
28550         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
28551         (gl_FUNC_MKTIME): Require it.
28553 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28555         xstrtol: prohibit monstrosities like "1bB"
28556         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
28557         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
28558         "B" only if the first suffix needs a base.
28559         * tests/test-xstrtol.sh: Test this.
28561 2016-04-21  Pádraig Brady  <P@draigBrady.com>
28563         xstrtod: reinstate setting of *result upon ERANGE
28564         * lib/xstrtod.c (XSTRTOD): The user may decide to use
28565         the returned limits upon ERANGE, so allow and document that.
28567 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
28569         xstrtod: modify *result only if no errors
28570         * lib/xstrtod.c (XSTRTOD).
28572 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
28574         btowc: document problems in C locale
28575         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
28576         with mbrtowc.  See: http://bugs.gnu.org/23269#32
28578 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28580         mktime: improve integer overflow checking
28581         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
28582         (WRAPV): Remove; no longer needed.
28583         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
28584         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28585         Remove.  Use intprops.h defns instead.
28586         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
28587         Use bool for Boolean, for clarity.
28588         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
28589         detect integer overflow.
28590         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28592         intprops: check two's complement assumption
28593         Suggested by Eric Blake in:
28594         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28595         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28596         short, int, long, and (if available) long long are two's complement.
28597         * modules/intprops (Depends-on): Add 'verify'.
28599         intprops, mktime, strtol: assume two's complement
28600         These macros were not portable to every conforming C11 ones'
28601         complement platform.  It's not worth the hassle of porting to some
28602         platforms that use ones' complement or signed magnitude, as such
28603         platforms are almost purely theoretical nowadays and porting even
28604         to some of them makes the code harder to review for little
28605         practical benefit.  Problem reported by Florian Weimer in:
28606         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28607         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28608         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
28609         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
28610         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28611         (TYPE_SIGNED_MAGNITUDE):
28612         Remove.  All uses rewritten to assume two's complement, which is
28613         all we can reasonably test nowadays anyway.
28614         * top/maint.mk (_intprops_names): Remove the removed macros.
28616 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28618         stdint: port to strict C11 left shift
28619         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28620         Pacify clang -Wshift-negative-value, which should be an issue only
28621         on clang setups where stdint.h does not conform to C11 or to C++11.
28622         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28624 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28626         mbrtowc: work around glibc bug#19932
28627         Fix mbrtowc so that it never returns -1 in the C locale,
28628         as this conflicts with a future version of POSIX
28629         http://austingroupbugs.net/view.php?id=663#c2738
28630         and causes problems with GNU grep: http://bugs.gnu.org/23234
28631         See glibc bug 19932:
28632         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28633         * doc/posix-functions/mbrlen.texi (mbrlen):
28634         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28635         Document the glibc bug.
28636         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28637         Include hard-locale.h, locale.h.
28638         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28639         if the bug is possible.
28640         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28641         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28642         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28643         * modules/mbrtowc (Depends-on): Add hard-locale.
28644         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28645         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28646         * tests/test-mbrtowc5.sh: New file.
28648 2016-04-03  Pedro Alves  <palves@redhat.com>
28650         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28651         When gnulib is configured in C++ mode for a system with a working C99
28652         implementation of stdint.h that predates C++11, gnulib ends up
28653         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28654         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28655         MinGW is LLP64.  Instead of trying to detect the right types, detect
28656         good-enough-pre-C++11 stdint.h and in such case define
28657         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28658         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28659         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28660         conforms to C99.  If it does, check whether it hides symbols
28661         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28662         does, define those macros in config.h.
28664 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28666         argp: merge changes from glibc
28667         Among other things, this should fix problems found by a Coverity
28668         scan and reported by Andrei Borzenkov:
28669         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28670         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28671         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28672         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28673         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28674         * lib/argp.h:
28675         Merge changes from glibc.
28676         * tests/test-argp-2.sh: Adjust to match new behavior.
28678 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28680         stddef: support configuring with g++
28681         Problem reported by Ángel González in:
28682         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28683         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28684         Do not define if _GCC_MAX_ALIGN_T is defined.
28686 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28688         test-framework-sh: minor cleanups
28689         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28690         since strictly speaking POSIX requires this.
28691         (setup_): Do not use the variable 'fail', as that makes the
28692         trace output harder to read ('fail' is typically used by
28693         tests to mean the test failed).  Treat // portably.
28694         Check that new directory is not merely a sibling of the tmp dir.
28695         Avoid unnecessary invocation of tr.
28697         test-framework-sh: revert port to NetBSD 7.0
28698         It was a false alarm; I misinterpreted Assaf Gordon's report.
28699         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28700         Restore.
28701         (test_dir_): Adjust to mktempd_ change.
28702         (mktempd_): Restore 2nd arg.  Use -t again.
28703         (base_template_, template_, nx_): Resurrect old code.
28705         Port better to Alpine Linux
28706         Its diff implementation does not support -c, but does support -U3.
28707         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28708         * tests/init.sh (diff_opt_): New var.
28709         (compare_): Prefer diff -U3 to diff -c to plain diff.
28711 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28713         test-framework-sh: port to NetBSD 7.0
28714         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28715         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28716         Remove.  All uses removed.
28717         (test_dir_): Adjust to mktempd_ change.
28718         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28719         (base_template_, template_, nx_): Simplify by hardcoding.
28721 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28723         gitlog-to-changelog: suppress ignored chatter
28724         * build-aux/gitlog-to-changelog: Do not warn about skipping
28725         an SHA if it would have been ignored anyway.
28727 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28729         setlocale: add "sv" to Windows language table
28730         * lib/setlocale.c (language_table) [W32]: Add "sv".
28731         Reported in <https://savannah.gnu.org/bugs/?44588>.
28733 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28735         sys_select: port to new Cygwin
28736         Problem reported by Ken Brown in:
28737         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28738         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28739         diagnostics.
28741 2016-03-17  Jim Meyering  <meyering@fb.com>
28743         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28744         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28745         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28746           test-userspec.c:176:9: error: statement is indented as if it were \
28747             guarded by... [-Werror=misleading-indentation]
28748                    {
28749                    ^
28750           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28751                  if (!diag && !T[i].result)
28752                  ^~
28754 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28756         time_rz: port to clang -Wunused-const-variable
28757         * lib/time_rz.c (TZ): Remove.  All uses removed.
28759         std-gnu11: improve clang support
28760         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28761         2016-03-15 Also try clang
28762         2016-03-15 Port C11 and C++11 testing to clang
28764         select: port more to Intel 2016.1.150 compiler
28765         Problem reported by Balázs Hajgató in:
28766         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28767         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28769 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28771         select: try to port to 2016.1.150 compiler
28772         Problem reported by Balázs Hajgató in:
28773         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28774         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28775         POSIX specifies 'restrict'.
28777 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28779         localename-tests: memory allocation fixes
28780         * tests/test-localename.c (test_locale_name)
28781         (test_locale_name_thread): Don't call freelocale on a locale
28782         that was the base of a successful newlocale, as that
28783         results in a double free.  Problem reported by Assaf Gordon.
28784         (test_locale_name_thread): Free saved names after use, to pacify
28785         gcc -fsanitize=address.
28787 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28789         intprops: make .h file license match module
28790         * lib/intprops.h: Change the license wording to match glibc format.
28791         This is what is in modules/intprops anyway.  See:
28792         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28794 2016-03-08  Eric Blake  <eblake@redhat.com>
28796         acl: fix missing return on Cygwin
28797         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28798         fall off end of function. Fixes http://bugs.gnu.org/22949
28800 2016-03-05  Bruno Haible  <bruno@clisp.org>
28802         extern-inline: port to PGI CC
28803         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28804         keyword 'inline'.
28805         Reported by Adam James Stewart in:
28806         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28808 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28810         signbit: port back to pre-C++11 GCC
28811         * lib/math.in.h (signbit): Do previous change only if
28812         __cplusplus < 201103.  See Jonathan Wakely in:
28813         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28815 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28817         mountlist: recognize autofs-mounted remote file systems, too
28818         Originally reported at: https://bugzilla.redhat.com/1309247
28819         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28820         "-hosts" because it is used by autofs to mount remote file systems.
28822 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28824         signbit: port to C++ with GCC 6
28825         * lib/math.in.h (signbit) [__cplusplus]:
28826         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28827         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28829         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28831         regex: make it closer to libc
28832         Make Idx a signed type, rather than possibly unsigned.
28833         The unsignedness was not really buying us anything, since the code
28834         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28835         it signed allows us to use -1 and -2 with abandon, like libc does,
28836         thus lessening the number of differences between gnulib and libc.
28837         Also, it should help avoid gratuitous warnings like the one
28838         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28839         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28842         regex: merge patches from libc
28844         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28845         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28846         Convert miscellaneous function definitions to prototype style.
28847         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28848         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28849         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28850         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28851         (re_search_internal):
28852         Convert to prototype-style function definition.
28853         Use internal_function for internal functions.
28855 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28857         stdalign: port to older HP and IBM cc
28858         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28859         C compilers, by checking their version numbers.  These version
28860         numbers appear in MariaDB and in Qt code that dates way back and
28861         that conditiionally uses the 'aligned' attribute.
28863 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28865         stdalign: port to clang 3.7.0
28866         Problem reported by Herbert J. Skuhra in:
28867         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28868         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28869         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28870         https://llvm.org/bugs/show_bug.cgi?id=26547
28872 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28874         readdir_r: now obsolescent
28875         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28876         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28878 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28880         misc: port better to gcc -fsanitize=address
28881         Without these patches, ./configure CFLAGS='-fsanitize=address'
28882         would compute incorrect values.  This patch fixes some (but not all)
28883         test failures with recent glibc, with this configuration.
28884         * m4/acl.m4 (gl_ACL_GET_FILE):
28885         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28886         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28887         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28888         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28889         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28890         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28891         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28892         * m4/getline.m4 (gl_FUNC_GETLINE):
28893         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28894         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28895         * m4/regex.m4 (gl_REGEX):
28896         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28897         * tests/test-calloc-gnu.c (main):
28898         * tests/test-duplocale.c (main):
28899         * tests/test-getgroups.c (main):
28900         * tests/test-getline.c (main):
28901         * tests/test-inttostr.c (main):
28902         * tests/test-localename.c (test_locale_name)
28903         (test_locale_name_thread, test_locale_name_environ)
28904         (test_locale_name_default):
28905         * tests/test-regex.c (main):
28906         * tests/test-setlocale1.c (main):
28907         * tests/test-stat.h (test_stat_func):
28908         Free heap-allocated storage before exiting.
28909         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28910         Don't match *_foo symbols inserted by AddressSanitizer.
28911         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28913 2016-02-02  Jim Meyering  <meyering@fb.com>
28915         verify-tests: also remove stray test-verify.Tpo
28916         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28917         to remove the test-verify.Tpo file that is left behind by
28918         the automake-generated rule upon compilation failure.
28919         Otherwise, that .Tpo file would cause a failed "make distcheck"
28920         at least for grep.
28922 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28924         std-gnu11: new module
28925         This makes it easier for applications to prefer C11 and C++11
28926         to older variants, when compiling C and C++ code.
28927         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28928         a nontrivial chunk of GPLed Autoconf source code.
28929         * COPYING: Mention the m4/*.m4 copyright situation.
28930         * MODULES.html.sh (std-gnu11): New module.
28931         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28933 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28935         get-permissions, strftime: fix grammar in comments
28936         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
28937         some grammar fixes Alan Mackenzie made to GNU Emacs.
28939 2016-01-25  Daiki Ueno  <ueno@gnu.org>
28941         gettext: mark as obsolete
28942         Suggested by Paul Eggert in:
28943         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
28944         * modules/gettext (Status): Mark as obsolete.
28945         (Notice): Suggest to use 'gettext-h' instead.
28946         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28947         the 'gettext' module.
28949 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28951         gnulib-tool: don't give up on ln -s so easily
28952         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28953         because an earlier one failed.  The targets could be on different
28954         file systems.  Problem reported by KO Myung-Hun in:
28955         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28957         closedir: fix OS/2-related typos
28958         Problem reported by KO Myung-Hun in:
28959         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28960         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28961         in the last couple of changes.
28963 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28965         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28966         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28967         copying a directory.
28969 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28971         regex: treat [x] as x if x is a unibyte encoding error
28972         Problem reported by Aharon Robbins in:
28973         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28974         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28975         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28977         closedir, dirfd, opendir: port to OpenSolaris 5.10
28978         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28979         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28980         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28981         Don't use ${word##pat} substitution, as it doesn't work in
28982         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28983         http://bugs.gnu.org/22443#11
28985 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28987         bootstrap: use American spelling
28988         * build-aux/bootstrap: Honor American spelling.
28990 2016-01-22  Karl Berry  <karl@freefriends.org>
28992         * doc/posix-functions/localtime.texi,
28993         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28995 2016-01-21  Bruno Haible  <bruno@clisp.org>
28997         hash-pjw-bare: fix comment
28998         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29000         wcwidth: Replace also on OpenBSD 5.8
29001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29002         * doc/posix-functions/wcwidth.texi: Update.
29004 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29006         gnu-web-doc-update: fix addition of new files
29007         If there were already added (emnpty) dirs,
29008         then cvs aborts the add with the message:
29009           cvs [add aborted]: there is a version in <./dirname> already
29010         * build-aux/gnu-web-doc-update: Add directories separately
29011         to the addition of files, to avoid the above issue
29012         impacting the addition of files.
29014 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29016         utimens-tests: avoid pulling gettext .m4 files
29017         Although this is not the right fix to the original problem:
29018         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29019         it makes it possible again for consumer projects to use arbitrary
29020         version of gettext, through the steps described at:
29021         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29022         See here for details:
29023         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29024         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29025         'gettext'.
29026         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29027         'gettext'.
29029 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29031         regex: pacify static checkers
29032         Problem and draft fix reported by Aharon Robbins in:
29033         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29034         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29035         Clear memory to pacify static checkers.
29037         regex: fix [ diagnostic
29038         Problem and fix reported by Aharon Robbins in:
29039         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29040         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29042         regex: fix memory leaks
29043         Problem and draft fix reported by Aharon Robbins in:
29044         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29045         * lib/regcomp.c (build_range_exp, build_charclass_op)
29046         * lib/regex_internal.c (re_dfa_add_node):
29047         Fix memory leak on failure.
29049 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29051         fts: don't unconditionally use leaf optimization for NFS
29052         NFS st_nlink are not accurate on all implementations,
29053         leading to aborts() if that assumption is made.
29054         See <https://bugzilla.redhat.com/1299169>
29055         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29056         the white list, and document the issue.
29058 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29059             KO Myung-Hun  <komh@chollian.net>
29061         gnulib-tool: don't assume ln -s works
29062         * gnulib-tool (func_ln_s): New function.
29063         (func_ln): Use it.
29065 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29067         utimes: detect utimes() correctly on OS/2 kLIBC
29068         utimes() of OS/2 kLIBC has some limitations.
29069         1. OS/2 itself supports a file date since 1980 year in local time.
29070         2. OS/2 itself supports only even seconds for a file time.
29071         3. utimes() of OS/2 kLIBC does not work on an opened file.
29072         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29073         * doc/posix-functions/utimes.texi: Document the above limitations of
29074         utimes() on OS/2 kLIBC.
29076 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29077             KO Myung-Hun  <komh@chollian.net>
29079         openat_proc_name: port to OS/2 kLIBC
29080         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29081         instead of /proc/self/fd.
29082         * lib/openat-proc.c (openat_proc_name):
29083         Don't assume file name length is less than INT_MAX.
29084         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29086 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29088         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29089         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29090         definitions of intptr_t and uintptr_t (which use int and unsigned)
29091         to avoid clashes with declarations of system functions like sbrk.
29092         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29093         _INTPTR_T_DECLARED before defining them.
29095         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29096         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29097         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29098         Declare on kLIBC.
29099         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29100         fd associated with dirp.
29101         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29102         dirp_fd_list.
29103         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29104         (dirfd): Implemented for kLIBC.
29105         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29106         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29107         succeeds.
29108         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29109         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29110         (REPLACE_DIRFD): Define to 1 if replaced.
29111         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29112         * modules/closedir (Depends-on): Add dirfd.
29113         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29114         condition.
29115         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29116         * modules/opendir (Depends-on): Add dirfd.
29118         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29119         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29120         * lib/dup.c (dup_nothrow): New.
29121         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29122         (klibc_dup2): New.
29123         * lib/fcntl.c (klibc_fcntl): New.
29124         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29125         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29126         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29127         fd.
29129         pipe_filter_ii_execute: port to OS/2 kLIBC
29130         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29131         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29132         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29133         Reuse Win32 code on OS/2 kLIBC.
29134         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29135         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29137         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29138         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29139         static inline function.  The implementation of wcwidth in wcwidth.c
29140         causes a "conflicting types" error.
29141         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29143         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29144         spawn() on OS/2 kLIBC is not silly like one on Windows
29145         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29146         empty string on OS/2 kLIBC.
29148         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29149         On OS/2 kLIBC, select() works only on sockets.
29150         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29152         binary-io: don't put fd in binary mode if it is a console on EMX
29153         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29154         a console on EMX.
29156 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29158         doc: mention unfixed issues with unsupported localtime() values
29159         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29160         returns nonsense for localtime(2^56).
29161         * doc/posix-functions/localtime_r.texi: Likewise.
29163 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29165         doc: mention setlocale() issues on OpenBSD
29166         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29167         never fails, and the need to check categories individually.
29169 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29171         sig2str: list all signals on FreeBSD >= 7
29172         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29173         to the maximal statically defined signal value.
29174         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29175         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29176         where available, even when NSIG is defined.
29178 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29180         acl-permissions: port to USE_ACL==0 platforms
29181         I ran into this problem when building bleeding-edge GNU Emacs
29182         with gcc -fsanitize=address on Fedora 23.  On this platform
29183         the ACL library does not pass the 'configure' test and Emacs
29184         then does not build due in part to what appear to be typos in the
29185         ACL part of Gnulib.
29186         * lib/acl-internal.c (free_permission_context):
29187         * lib/acl-internal.h (struct permission_context):
29188         Test whether USE_ACL is nonzero, not whether it is defined.
29190 2016-01-12  Martin Sebor  <msebor@redhat.com>
29192         mktime: rename macro to avoid glibc clash
29193         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29194         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29196 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29198         Port "$@" to OpenIndiana ksh93
29199         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29200         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29201         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29202         bug long-dead shells, so remove the workaround.
29203         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29204         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29205         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29206         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29207         Use "$@" instead of ${1+"$@"}.
29209         Port Universal Time settings to strict POSIX
29210         * build-aux/announce-gen, build-aux/bootstrap:
29211         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29212         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29213         * build-aux/gnupload, build-aux/mkinstalldirs:
29214         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29215         * build-aux/update-copyright, build-aux/useless-if-before-free:
29216         * build-aux/vc-list-files, tests/test-strftime.c:
29217         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29218         but POSIX says the behavior of TZ="UTC" is undefined.
29220 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29222         msvc-inval: fix problem with unset shell var
29223         Problem reported by Karl Berry in:
29224         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29225         * modules/msvc-inval (Depends-on):
29226         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29227         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29229 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29231         tests: for compare_(), use cmp -s where available
29232         * tests/init.sh (compare_): Only fall back to cmp without
29233         the POSIX defined -s option, where this is not available.
29235 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29237         version-etc: new year
29238         * build-aux/gendocs.sh (version):
29239         * doc/gendocs_template:
29240         * doc/gendocs_template_min:
29241         * doc/gnulib.texi:
29242         * lib/version-etc.c (COPYRIGHT_YEAR):
29243         Update copyright dates by hand in templates and the like.
29244         * all files: Run 'make update-copyright'.
29246 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29248         human: fix output buffer overrun by 1
29249         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29250         calculation that could lead to a one-byte buffer overrun.
29252 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29254         maint: fix operator precedence in mbrtowc test
29255         This is a fix for test breakage introduced by commit 45228d96; the
29256         equality expression must be parenthesized when negated with '!',
29257         otherwise we always get:
29259           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29261         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29262         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29264 2015-12-23  James Youngman  <jay@gnu.org>
29266         regexprops-generic: update from regex.h
29267         * doc/regexprops-generic.texi: update by running the regexprops binary
29268         from findutils (the command line is 'regexprops "Regular Expressions"
29269         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29270         gnulib with GNU grep had made this document out-of-date.
29272 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29274         strftime-tests: avoid false failure on OS X
29275         * tests/test-strftime.c (struct localtime_rz_test): Add an
29276         ahistorical member which is used to warn rather than fail
29277         when tm_isdst isn't set for such entries.  This is the case for
29278         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29280 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29282         fts: ensure leaf optimization is used for NFS
29283         NFS provides usable dirent.d_type but not necessarily for all entries
29284         of large directories.  See <https://bugzilla.redhat.com/1252549>
29285         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29287 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29289         fts: enable leaf optimization for XFS
29290         XFS provides usable dirent.d_type only for DT_DIR,
29291         but the noleaf optimization still applies.
29292         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29294 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29296         intprops: comment fix
29297         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29298         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29300         intprops-test: work around GCC bug 68971
29301         Problem reported by Pádraig Brady in:
29302         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29303         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29304         (main): Add a case that better tests 64-bit long in this area.
29306 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29308         gnulib-tool: allow multiple --local-dir usage
29309         * gnulib-tool: Use --local-dir to construct compound
29310         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29311         PATH_SEPARATOR early.
29312         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29313         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29314         func_determine_path_separator because that needs to be detected
29315         earlier now.
29316         (func_determine_path_separator): New function.
29317         (func_path_foreach, func_path_foreach_inner): New functions.
29318         (func_path_prepend, func_path_append): Likewise.
29319         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29320         (func_lookup_file, func_all_modules): Use new functions to work
29321         with local_gnulib_path.
29322         (func_modules_in_dir, func_exists_module): New callbacks for
29323         func_path_foreach.
29324         (func_exists_module, func_get_tests_module): Likewise.
29325         (func_is_local_file, func_should_symlink): New helper methods.
29326         (func_add_file, func_update_file): Use new func_should_symlink
29327         instead, DRY.
29328         (func_reconstruct_cached_local_gnulib_path): New helper.
29329         (func_reconstruct_cached_dir): New callback.
29330         (func_import): The cached_local_gnulib_dir renamed to
29331         cached_local_gnulib_path similarly to local_gnulib_dir.
29332         Use new func_reconstruct_cached_local_gnulib_path.
29333         (func_count_relative_local_gnulib_path): New sub-method.
29334         (func_create_testdir): Use func_should_symlink, DRY.
29335         (func_create_megatestdir): Use new functions to work with
29336         local_gnulib_path correctly.
29337         (func_append_local_dir): New helper.
29339 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29341         fix freadptr to work with ungetc on all uClibc configs
29342         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29343         where GNU coreutils cut(1) generates invalid output on uClibc
29344         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29345         * lib/freadptr.c (freadptr): Return NULL if there are
29346         ungotten chars.  In this case freadseek() will iterate
29347         again to process the ungotten character.
29349 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29351         xalloc-oversized: improve performance with GCC 5
29352         * lib/xalloc-oversized.h (xalloc_oversized):
29353         Improve performance with GCC 5 by using __builtin_mul_overflow.
29355 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29357         intprops: new public macro EXPR_SIGNED
29358         Emacs can use this macro, so make it public.
29359         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29360         'Integer Type Determination', since some of these macros apply
29361         to non-integer types.  Clarify what kinds of constant expressions
29362         these macros return.  Say when the arguments can be non-integers.
29363         Mention newly published macro EXPR_SIGNED.
29364         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29365         make it public.  All uses changed.
29367         intprops: fix typo in clang port
29368         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29369         '__builtin_add_overflow' that is not caught by compiler.
29371 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29373         test-timespec: fix typo in previous change
29374         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29376         timespec-sub: fix overflow bug; add tests
29377         * lib/timespec-add.c (timespec_add):
29378         * lib/timespec-sub.c (timespec_sub):
29379         Work even if time_t is narrower than int (a theoretical
29380         possibility).  Redo code for a bit more clarity.
29381         * lib/timespec-sub.c (timespec_sub):
29382         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29383         * modules/timespec-tests, tests/test-timespec.c: New files.
29385         intprops-test: suppress -Woverlength-strings
29386         Problem reported by Pádraig Brady in:
29387         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29388         It is not worth the hassle to port this test to compilers that
29389         cannot handle long strings in diagnostics.
29390         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29392 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29394         quotearg: add quotearg_n_style_colon()
29395         This quotes with default options of the specified style,
29396         but with quoting enabled for instances of ':'.
29397         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29398         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29400 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29402         intprops: revise _WRAPV macros, revert _OVERFLOW
29403         The incompatible changes to the _OVERFLOW macros were too much of
29404         a hassle in practice, so revert them.  Instead, change the new
29405         _WRAPV macros to make them closer in behavior to GCC 5's new
29406         builtin_add_overflow etc. functions.  No other software was using
29407         these newly-added macros yet, so this should be OK.
29408         * NEWS: Revert previous change, since the incompatible change
29409         has been reverted, and nobody used the incompatible version.
29410         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29411         Document revised behavior.
29412         (Integer Range Overflow): Adjust example to match above revisions.
29413         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29414         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29415         these can be used in integer constant expressions again.
29416         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29417         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29418         needed.
29419         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29420         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29421         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29422         Remove, as they did not seem that useful.
29423         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29424         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29425         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29426         Support new semantics.
29427         (__has_builtin): New macro, if not alreay defined.
29428         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29429         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29430         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29431         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29432         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29433         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29434         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29435         New macros.
29436         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29438 2015-11-03  Jim Meyering  <meyering@fb.com>
29440         intprops: add parentheses for when OP has precedence lower than "-"
29441         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29442         "a OP b" must be parenthesized for when OP is like "<<", which has
29443         lower precedence than the following "-". Reported by Pádraig Brady.
29445 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29447         quotearg: constify get_quoting_style parameters
29448         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29449         * lib/quotearg.c (get_quoting_style): Likewise.
29451 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29453         quotearg: add support for $'' shell escaping
29454         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29455         items and descriptions.
29456         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29457         above types by quoting like "shell", but using $'...' syntax
29458         for non printable characters, which should provide unambiguous
29459         printable output for any input.
29460         * tests/test-quotearg-simple.c: Update accordingly.
29462 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29464         maint: use a more standard return from mbrtowc test
29465         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29466         from the test program as this is non standard and often
29467         indicates an unhandled case in the test program.
29468         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29470 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29472         intprops: add WRAPV and const flavors for GCC 5
29473         If available, use GCC 5's builtin functions for efficient integer
29474         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29475         and safely compute the low-order bits of the correct answer.
29476         A downside of these efficient functions is that they cannot be
29477         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29478         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29479         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29480         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29481         Document the changes.
29482         (Wraparound Arithmetic): New section.
29483         (Integer Range Overflow):
29484         Put this subsection last, since it's least useful.
29485         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29486         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29487         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29488         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29489         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29490         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29491         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29492         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29493         New macros.
29494         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29495         Generate calls to GCC builtins if available, for speed.
29496         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29497         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29498         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29499         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29500         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29501         (CHECK_QUOTIENT, CHECK_REMAINDER):
29502         Test WRAPV and CONST flavors (when available) too.
29504 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29506         doc: use extended timezone format in iso-8601 example
29507         * doc/parse-datetime.texi: The standard states that extended format
29508         is to be used consistently throughout.
29509         Note that lib/parse-datetime.y can handle either tz format.
29511 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29513         stdalign: port to Sun C 5.9
29514         * doc/posix-headers/stdalign.texi: Document this.
29515         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
29516         __attribute__ ((__aligned__ (...))).
29518 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
29520         time_rz: fix comment about tzalloc
29521         * lib/time_rz.c (tzalloc): Fix comment.
29523 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29525         stdalign: work around pre-4.9 GCC x86 bug
29526         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
29527         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
29528         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
29530 2015-10-18  Pádraig Brady  <P@draigBrady.com>
29532         maint.mk: sc_tight_scope: remove extraneous expressions
29533         * top/maint.mk (tight_scope): This is not really required since
29534         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
29535         that matches all nm entries.  But it does remove extraneous entries
29536         that may be confusing or cause issue in future maintenance.
29538 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29540         time_rz: return NULL if localtime_r fails
29541         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
29542         while still attempting to pacify bleeding-edge GCC.
29544         fts: port to C11 alignof
29545         * doc/posix-headers/stdalign.texi (stdalign.h):
29546         Document the C11 restriction.
29547         * lib/fts.c: Include stddef.h, for max_align_t.
29548         (fts_alloc): Align using max_align_t, not FTSENT.
29549         * modules/fts (Depends-on): Add stddef.
29551 2015-10-18  Jim Meyering  <meyering@fb.com>
29553         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
29554         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
29555         would see this:
29557         lib/time_rz.c: In function 'localtime_rz':
29558         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
29559           [-Werror=nonnull]
29560                    if (tm && !save_abbr (tz, tm))
29561                        ^
29563         That was complaining about "tm" because it is a parameter that was
29564         declared with the __nonnull__ attribute.
29565         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
29566         result of localtime_r.
29568 2015-10-17  Jim Meyering  <meyering@fb.com>
29570         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
29571         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
29572         name-extraction regexp mistakenly used \S+, and would mistakenly
29573         extract "*F" from "extern int *F()" rather than the desired "F".
29574         Use \w+ instead.
29576 2015-10-17  Jim Meyering  <meyering@fb.com>
29578         maint.mk: sc_tight_scope: factor and support OS X
29579         * top/maint.mk (_gl_tight_scope): Address three issues:
29580         - factor out four instances of code that wraps a string in "^...$"
29581         - allow nm-reported symbol names to have an optional leading "_"
29582         - add "main" to the list of ignored variable names, because on os x,
29583         "main" has nm-reported type "S" in the variable-checking section.
29585 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
29587         safe-alloc-tests: fix typo in license header
29588         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
29590 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29592         copy-file: fix mem leak in error case
29593         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29594         upon error opening or performing I/O to the src and dest files.
29596 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29598         localename: control langinfo.h inclusion
29599         This header is only used to work around buggy behavior in old
29600         versions of glibc, so do not include it all the time.  Otherwise
29601         we get build failures on systems that do not provide langinfo.h.
29602         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29603         in the source later on.
29604         The patch was originally submitted to gettext as:
29605         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29607 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29609         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
29610         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
29611         * lib/u64.c, lib/unistd.c:
29612         Append 'typedef int dummy;', to pacify compilers that are picky
29613         about empty translation units.
29615 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29617         accept4-tests: fix to avoid non portable flags
29618         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29619         as they are the only documented ones, and passing others may trigger
29620         EINVAL (seen on FreeBSD 10.1-RELEASE).
29621         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29622         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29624 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29626         gnulib-tool: fix tests of 'extensions' module
29627         This complements f8fe25fab60e3c687a124 commit.
29628         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29629         emitting of initial gl_EARLY macros.
29630         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29631         replaced with func_emit_pre_early_macros call.
29633 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29635         unicase/locale-language: fix typo in utf-8 cookie
29636         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29637         Problem reported by Zbigniew Jędrzejewski-Szmek.
29639 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29641         xalloc: do not worry about GCC 5 warning on 32 bit
29642         * lib/xalloc.h: Revert previous change.
29643         I found a better way to fix this in coreutils.
29645 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29647         xalloc: avoid GCC 5.1 warning on 32 bit
29648         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29649         xalloc_oversized(), which was seen to give this warning
29650         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29651         when simplifying conditional".
29653 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29655         uniname/uniname-tests: avoid compiler warnings
29656         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29657         unused local variables.
29658         (test_alias_lookup): Fix alias name display in failure cases.
29660 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29662         c-ctype: do not worry about EBCDIC + char signed
29663         Drop support for EBCDIC with char being signed, as this breaks too
29664         many programs.  Problem reported by Ben Pfaff in:
29665         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29666         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29667         char being signed.
29668         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29669         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29670         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29671         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29672         * tests/test-c-ctype.c (test_all):
29673         Simplify by assuming standard char values cannot be negative.
29674         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29676 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29678         c-ctype: port better to z/OS EBCDIC
29679         Problems reported by Daniel Richard G. in:
29680         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29681         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29682         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29683         (_C_CTYPE_OTHER_CNTRL): New macro.
29684         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29685         from SCHAR_MIN, as the functions are defined only from values
29686         promoted from char or from unsigned char, not necessarily from
29687         signed char.
29689 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29691         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29693         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29694         and ARFLAGS variables.  Doing this unconditionally could break
29695         later Automake's AM_PROG_AR invocation (at least it's
29696         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29698         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29699         Amsterdam Compiler Kit, so make the previous code to have effects
29700         only on ACK, and rather automatically call the Automake's
29701         AM_PROG_AR as soon as possible to decide other cases.
29703         References:
29704         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29706         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29707         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29708         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29709         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29710         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29711         'extensions' module is used.
29712         * modules/extensions (configure.ac-early): Remove as this snippet
29713         is added to gnulib-comp.m4 earlier anyway.
29715 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29717         sockets: MS Windows initalization fixes
29718         Problem reported by Test User in:
29719         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29720         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29721         Correct the endianness.
29722         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29723         number mismatch, not just on <.  Cleanup before any such failure.
29725 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29727         gc: fix detection of installed libgcrypt version
29728         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29729         at least as recent as 1.4.4.  The previously used macro is not
29730         available now, since modules were removed in version 1.6.0.
29732 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29734         c-ctype: rewrite to use inline functions
29735         This simplifies maintenance, since it makes for just one
29736         implementation of each function, letting the compiler have the fun
29737         of optimization.  In practice this works well nowadays with GCC.
29738         E.g., c_isascii might need only three instructions even though the
29739         source code lists every ASCII character individually in a large
29740         switch statement.
29741         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29742         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29743         * NEWS: Document the API change.
29744         * lib/c-ctype.c: Drastically simplify, since this now just expands
29745         inline functions.
29746         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29747         (C_CTYPE_INLINE): New macro.
29748         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29749         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29750         Verify that either ASCII or EBCDIC is being used.
29751         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29752         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29753         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29754         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29755         New private macros.
29756         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29757         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29758         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29759         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29760         (c_tolower, c_toupper): When converting, return the unsigned char,
29761         as that is what z/OS does.
29762         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29763         of some c-ctype.h macros.
29764         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29765         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29766         c_tolower promotion to be compatible with z/OS.
29768 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29770         gitlog-to-changelog: trim only trailing whitespaces
29771         This is fix for --format regression introduced by commit
29772         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29773         doubled %n string) had no effect anymore.  This format
29774         specification has been used e.g. by GNU paxuitils (commit
29775         edfd8bcc3).
29777         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29778         newlines in commmit messages.
29780 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29782         Test that c_iscntrl agrees with iscntrl, etc.
29783         Suggested by Daniel Richard G. in:
29784         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29785         * modules/c-ctype-tests (Depends-on): Add ctype.
29786         * tests/test-c-ctype.c: Include <ctype.h>.
29787         (NCHARS): New constant.
29788         (test_agree_with_C_locale): New function.
29789         (main): Use it.
29790         (test_all): Use named constants.
29792         c-ctype: improve c_isascii testing
29793         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29794         Add a test to count the number of ASCII characters.
29796 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29798         savewd: remove SAVEWD_CHDIR_READABLE
29799         It was problematic in the light of file systems that ignore umask.
29800         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29801         * NEWS: Document this.
29802         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29803         successful, -1 (setting errno) on failure, rather than something
29804         more complicated than that.
29805         * lib/mkdir-p.c (make_dir_parents):
29806         Do not use SAVEWD_CHDIR_READABLE.
29807         * lib/savewd.c (savewd_chdir):
29808         Remove support for SAVEWD_CHDIR_READABLE.
29809         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29811         c-ctype: port better to EBCDIC
29812         Problems reported by Daniel Richard G. in
29813         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29814         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29815         Include "verify.h".
29816         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29817         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29818         Define as enum constants with value false, if not defined, so that
29819         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29820         code more portable, as both branches of the 'if' are compiled on
29821         all platforms.
29822         (C_CTYPE_EBCDIC): New constant.
29823         Verify that the character set is either ASCII or EBCDIC.
29824         (to_char): New static function.
29825         (c_isascii, c_iscntrl):
29826         Assume standard control-character assignments for EBCDIC.
29827         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29828         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29829         Rewrite to use 'if' instead of 'ifdef'.
29830         Use to_char if non-ASCII.  Prefer <= to >=.
29831         Prefer true and false to 1 and 0, for booleans.
29832         (c_iscntrl): Use 'if', not 'ifdef'.
29833         * modules/c-ctype (Depends-on): Add verify.
29834         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29835         (to_char): New function.
29836         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29838 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29840         nanosleep: fix return code for interrupted replacement
29841         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29842         that we return -1 in the case the call is interrupted by a signal,
29843         rather than the current value of 1.
29844         Diagnosed and tested by Daniel Richard G.
29846 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29848         Diagnose ERE '()|\1'
29849         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29850         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29851         track of the set of previously-completed subexpressions available
29852         before the first alternative, and restore this set just before
29853         parsing each subsequent alternative.  This lets us diagnose the
29854         invalid back-reference in the ERE '()|\1'.
29856         regex: merge patches from libc
29858         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29859         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29860         * lib/regex_internal.h:
29861         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29863         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29864         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29865         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29866         wcscoll.
29867         * lib/regexec.c (check_node_accept_bytes): Likewise.
29869         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29870         Fix regex wcrtomb namespace (bug 18496).
29871         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29872         instead of wcrtomb.
29874         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29875         Fix regex wctype namespace (bug 18495).
29876         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29877         instead of towlower.
29878         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29879         instead of iswlower.  Call __towupper instead of towupper.
29880         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29881         instead of iswalnum.
29883         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29884         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29885         COLL_SYM in a couple of places to avoid uninitialized variable
29886         wanings on tilegx gcc 4.8.2.
29888         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29889         * lib/regex_internal.h: Remove NOT_IN_libc.
29891         2014-11-17  Andreas Schwab  <schwab@suse.de>
29892         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29894         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29895         Move findidx nested functions to top-level.
29896         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29897         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29898         Pass new arguments to findidx.
29899         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29900         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29901         Don't #include it inside the function.  Pass new arguments to findidx.
29902         * lib/regex_internal.h:
29903         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29904         (re_string_elem_size_at): Don't #include it inside the function.
29905         Pass new arguments to findidx.
29907         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29908         Check if DEBUG is defined in regex_internal.c
29909         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29911 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29913         ceill: detect buggy OpenBSD implementation
29914         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29915         which returns zero for small values.  Discussed here:
29916         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29918 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29920         mountlist: add me_mntroot field on Linux machines
29921         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29922         mount_entry so Linux machines based on /proc/self/mountinfo can
29923         distinguish between bind mounts and original mounts.  In reality bind
29924         mounts aren't treated differently than mountroot=/ mounts by the
29925         kernel, but the user often wants these bind mounts distinguished.
29926         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29927         More details at https://pad.lv/1432871
29929 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29931         doc: Describe to use multiple instances of gnulib
29932         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29933         instances of gnulib with different modules can be used, for example one
29934         for a lib and another one for associated tools.
29936 2015-09-01  Pádraig Brady  <P@draigBrady.com>
29938         base32: mark function as __attribute__ const
29939         * lib/base32.h (isbase32): Mark __attribute__ const as
29940         suggested by GCC, and consistent with the base64 module.
29942 2015-08-20  Daiki Ueno  <ueno@gnu.org>
29944         gnulib-tool: don't transform binary files with sed
29945         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
29946         .mo and .class files.
29947         Reported by Denis Denisov.
29949 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29951         gperf: respect silent rules
29952         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29953         V_GPERF_0 for silent rules.
29954         * modules/iconv_open (Makefile.am): Use V_GPERF.
29955         * modules/unicase/locale-language (Makefile.am): Likewise.
29956         * modules/unicase/special-casing (Makefile.am): Likewise.
29957         * modules/unictype/category-byname (Makefile.am): Likewise.
29958         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29959         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29960         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29961         * modules/unictype/property-byname (Makefile.am): Likewise.
29962         * modules/unictype/scripts (Makefile.am): Likewise.
29963         * modules/uninorm/composition (Makefile.am): Likewise.
29965 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29967         Improve port of stdalign to C++11
29968         Problem reported by Sundaram in:
29969         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29970         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29971         (__alignas_is_defined): Define if C++11 or newer.
29973 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29975         pmccabe2html: fix gawk regex escaping
29976         * build-aux/pmccabe2html: Add one more backslash to properly
29977         escape the gsub replacement value.  Fixes this error:
29978         gawk: ./build-aux/pmccabe2html:425: \
29979         warning: escape sequence `\&' treated as plain `&'
29981 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29983         time_rz: port to pedantic memcpy
29984         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29985         that reject memcpy (..., NULL, 0).
29987 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29989         time_rz: port better to MinGW
29990         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29991         Instead, store the tzname copy in the struct tm_zone object.
29992         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29993         * lib/strftime.c [!_LIBC]:
29994         * lib/time_rz.c: Include time-internal.h.
29995         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29996         name from *TZ rather than from TZNAME, doable because *TZ now has
29997         a tzname_copy member.
29998         * lib/time-internal.h: New file, with contents taken from
29999         lib/time_rz.c.  It's separate because strftime.c now accesses
30000         struct tm_zone members.
30001         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30002         New member tzname_copy.
30003         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30004         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30005         Initialize tzname_copy member.
30006         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30007         in tzname_copy member.
30008         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30009         (restore_tzname): Remove; no longer needed.  All calls removed.
30010         * modules/time_rz (Files): Add lib/time-internal.h.
30012         time: port __need_time_t to MinGW
30013         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30014         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30016 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30018         strftime: fix newly-introduced bug on Solaris
30019         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30020         consistently at the start, rather than doing some of the setup at
30021         the start and some in the %Z format spec.  This is cleaner, and
30022         works better with time_rz on platforms like Solaris where struct
30023         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30024         mktime_z and localtime_rz can mess up the tzname cache.
30026         test-strftime: test for Solaris bug
30027         * modules/strftime-tests (Depends-on): Add strerror.
30028         * tests/test-strftime.c: Include <errno.h>.
30029         (posixtm_test): New function, containing the old 'main'.
30030         (struct tzalloc_test, struct localtime_rz_test): New types.
30031         (TZ, LT): New static vars.
30032         (tzalloc_test): New function.
30033         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30035         time_rz: port to Solaris etc.
30036         Works around a tzname problem on platforms like Solaris that have
30037         tzname but not tm_zone, by setting tzname at the appropriate time
30038         and restoring it later.
30039         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30040         New static vars.
30041         (save_abbr) [HAVE_TZNAME]: Set them.
30042         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30043         (restore_tzname): New function.
30044         (localtime_rz, mktime_z): Use it.
30046         time_rz: now LGPL
30047         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30049         time_rz: make a constant 'const'
30050         * lib/time_rz.c (local_tz): Now const.
30052         time_rz: fix off-by-one typo
30053         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30055 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30057         fprintftime, strftime: use timezone_t args
30058         * NEWS: Document the change.
30059         * lib/fprintftime.h (fprintftime):
30060         * lib/strftime.c (extra_args) [my_strftime]:
30061         * lib/strftime.h (nstrftime):
30062         Time zone arg is now of type timezone_t, not int.
30063         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30064         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30065         (my_strftime) [emacs && !my_strftime]:
30066         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30067         Remove; Emacs doesn't need this any more.
30068         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30069         fprintftime and nstrftime to call tzset.
30070         (ut) [!my_strftime]: Remove, replacing with ...
30071         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30072         (strftime_case_): Use localtime_rz and mktime_z instead
30073         of localtime_r and mktime.
30074         * modules/fprintftime (Depends-on): Add time_rz.
30075         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30076         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30078         time_rz: new module
30079         * MODULES.html.sh: Add time_rz.
30080         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30081         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30082         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30083         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30084         New var HAVE_TIMEZONE_T (default 0).
30085         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30086         New var GNULIB_TIME_RZ (default 0).
30087         * modules/time (time.h): Substitute the new vars.
30089         flexmember: license is now unlimited
30090         * modules/flexmember (License): Change to unlimited,
30091         since its only source file gives an unlimited license.
30093 2015-07-15  Eric Blake  <eblake@redhat.com>
30095         maint: update copyright paper procedures
30096         * config/srclist.txt: Drop outdated files.
30097         * doc/Copyright/conditions.txt: Update to latest.
30098         * doc/Copyright/assign.changes.manual: Delete.
30099         * doc/Copyright/assign.future.manual: Likewise.
30100         * doc/Copyright/assign.manual: Likewise.
30101         * doc/Copyright/assign.translation.manual: Likewise.
30102         * doc/Copyright/disclaim.changes.manual: Likewise.
30103         * doc/Copyright/disclaim.manual: Likewise.
30104         * doc/Copyright/disclaim.program: Likewise.
30106 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30108         localename: fix link error on Illumos
30109         Illumos defines __sun, but does not have getlocalename_l nor the
30110         equivalent.  This partially reverts commit 387c214.
30111         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30112         available, as well as uselocale.
30113         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30114         use getlocalename_l if it is not available.
30116 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30118         unistr/uN-strtok-tests: avoid a trivial leak
30119         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30120         input and delim after the multibyte delimiter tests.
30122 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30124         file-has-acl, acl-permissions: fix HP-UX typos
30125         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30126         * lib/file-has-acl.c (file_has_acl):
30127         * lib/set-permissions.c (context_acl_from_mode)
30128         (context_aclv_from_mode, set_acls):
30129         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30130         They were introduced by the recent ACL changes.
30132         regex: match current GNU grep behavior
30133         These symbols have not matched GNU grep behavior for quite some time.
30134         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30135         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30136         Change to match current GNU behavior.
30137         Simplify by expressing it as differences from POSIX BREs and EREs.
30138         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30140 2015-07-03  Jim Meyering  <meyering@fb.com>
30142         set-permissions.c: adjust acl_from_mode's cpp guard
30143         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30144         directives identical to those guarding the sole use.
30145         Otherwise, on some systems, we'd get a warning about
30146         the function being defined but not used.
30147         Also, filter through cppi to correct misleading indentation
30148         of cpp directives.
30150 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30152         tests: restrict shells to those that support 'local'
30153         The local keyword is very widely supported and used
30154         in tests in coreutils and grep at least.  Therefore
30155         restrict to testing with shells that support it.
30156         This mainly excludes /bin/sh on Solaris.
30157         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30159 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30160         and Daiki Ueno  <ueno@gnu.org>
30162         unistr/uN-strtok: handle multibyte delimiters
30163         Previously, uN_strtok moved PTR to the next unit to the token end.
30164         When DELIM contained a multibyte character, the new position could
30165         be a middle of a multibyte character.
30166         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30167         after the token.
30168         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30169         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30170         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30171         * modules/unistr/u8-strtok (Depends-on): Depend on
30172         unistr/u8-strmblen.
30173         * modules/unistr/u16-strtok (Depends-on): Depend on
30174         unistr/u16-strmblen.
30175         * modules/unistr/u32-strtok (Depends-on): Depend on
30176         unistr/u32-strmblen.
30177         * tests/unistr/test-u-strtok.h: New file.
30178         * tests/unistr/test-u8-strtok.c: New file.
30179         * tests/unistr/test-u16-strtok.c: New file.
30180         * tests/unistr/test-u32-strtok.c: New file.
30181         * modules/unistr/u8-strtok-tests: New file.
30182         * modules/unistr/u32-strtok-tests: New file.
30183         * modules/unistr/u16-strtok-tests: New file.
30185 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30187         update-copyright: fix test failure with perl >= 5.22 (trivial)
30188         * build-aux/update-copyright: Escape a literal left curly bracket,
30189         required with perl >= 5.22
30191 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30193         u{16,32}-strstr-tests: relax timeout condition
30194         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30195         tests can take longer than 5 seconds to complete.
30196         Reported by Dagobert Michelsen in:
30197         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30198         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30199         seconds to 10 seconds.
30200         * tests/unistr/test-u32-strstr.c (main): Likewise.
30202 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30204         gnulib-common.m4: change the ARFLAGS default to 'cr'
30205         In some GNU/Linux distributions people started to compile 'ar'
30206         binary with --enable-deterministic-archives (binutils project).
30207         That, however, in combination with previous autotools long time
30208         working default AR{_,}FLAGS=cru causes warnings on such
30209         installations:
30210         ar: `u' modifier ignored since `D' is the default (see `U')
30211         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30212         set already.
30214 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30216         selinux-h: avoid double free after *getfilecon()
30217         Originally reported by Ben Shelton on bug-tar:
30218         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30219         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30220         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30221         param should be freed by freecon(3) (regardless the return value).
30223 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30225         fix pty related tests issues on Windows (trivial)
30226         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30227         however it's still present in tests/ subdirectory of the final project.
30228         Therefore avoid it to pass `make check`.
30229         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30230         will just return -ENOSYS, so avoid this non applicable test allowing
30231         the build to proceed.
30233 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30235         acl: fix definition of acl_from_mode on FreeBSD
30236         This was causing basic coreutils copy operations to fail
30237         with ENOTSUP or ENOENT error messages.
30238         * lib/acl-internal.h (acl_from_mode): Only define when
30239         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30240         of acl_from_mode() defined in lib/set-permissions.c to
30241         be used on FreeBSD at least.
30242         * lib/set-permissions.c: Fix up comment spelling,
30243         and a redundant variable assignment; noticed in passing.
30245 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30247         readutmp: port to FreeBSD >= 9
30248         * lib/readutmp.h: Map utmpxname() to setutxdb().
30249         With that coreutils who(1) and pinky(1) tests pass.
30251 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30253         mgetgroups: port to strict OS X
30254         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30255         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30256         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30257         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30259 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30261         mgetgroups: port to strict OS X
30262         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30263         Document the getgrouplist problem.
30264         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30265         New macro.
30266         (mgetgroups): Use it.
30267         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30268         Check for OS X signature for getgrouplist.
30270 2015-06-29  Jim Meyering  <meyering@fb.com>
30272         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30273         It started like this when building coreutils' latest on OS X,
30274         invoking ./configure with a nonempty --cache=.cache:
30276           lib/linkat.c:46:42: error: operator '||' has no right operand
30277           lib/linkat.c: In function 'rpl_linkat':
30278           lib/linkat.c:330:27: error: #if with no expression
30280         Here's linkat.c's line 46:
30282           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30284         Here's some context:
30286           $ grep linkat_nofoll .cache
30287           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30288           $ grep LINKAT_SYM lib/config.h
30289           #define LINKAT_SYMLINK_NOTSUP
30291         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30292         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30293         but that violates a tenet of AC_CACHE_CHECK: it must
30294         have no side effect other than setting its cache variable.
30296         What happens is that when the cache is set, we'd skip the
30297         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30298         defined to whatever value it happened to have in configure's
30299         environment.  In my case, it was not defined, so this later code:
30301           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30302             [Define to 1 if linkat can create hardlinks to symlinks])
30304         would emit code with an empty RHS.
30306         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30307         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30309 2015-06-28  Jim Meyering  <meyering@fb.com>
30311         mountlist: avoid an unused-label warning on OS X
30312         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30313         Building on OS X, I saw a warning about the "free_then_fail" label
30314         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30316         error.c: correct printf-style format: %d -> %u
30317         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30318         rather than %d, to match the type of "line_number", unsigned int.
30320 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30322         fts: avoid reading beyond the heap allocation
30323         GCC 5.1.1 with -O2 and -fsanitize=address reports
30324         a read of size 4 from a heap object of size 3 is indeed invalid,
30325         though this may be due to incorrect padding assumptions by GCC, see:
30326         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30327         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30328         * modules/fts: Depend on stdalign.
30330 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30332         savedir: avoid undefined behavior in qsort call
30333         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30334         "runtime error: null pointer passed as argument 1,
30335          which is declared to never be null"
30336         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30338 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30340         userspec: avoid undefined behavior in gettext call
30341         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30342         "runtime error: null pointer passed as argument 2,
30343          which is declared to never be null"
30344         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30346 2015-06-20  Glenn Morris  <rgm@gnu.org>
30348         gitlog-to-changelog: improve gitmerge.el commits
30349         Let the Emacs ChangeLog generation process exclude "skipped"
30350         messages from merge commits (Bug#20717).
30351         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30353 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30355         wchar: fix MinGW compilation warnings
30356         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30357         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30358         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30360 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30362         uniname/uniname-tests: use pristine data files
30363         For copyright and maintenance reasons, use the data files from UCD
30364         without modification.
30365         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30366         (getfield): Remove.
30367         (aliases_count): New global variable.
30368         (fill_names): Skip comments and empty lines in the input.  Don't
30369         use getfield.
30370         (fill_aliases): Likewise.
30371         (main): Change the expected command line arguments to:
30372         NAMES... ["--" ALIASES...].
30373         * tests/uniname/test-uninames.sh: Adjust to the change in
30374         test-uninames.c.
30375         * tests/uniname/UnicodeDataNames.txt: Remove.
30376         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30377         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30378         file from Unicode 8.0.0.
30380 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30382         linked-list, linkedhash-list: avoid compiler warnings
30383         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30384         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30386 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30388         libunistring: bump minimum version to 0.9.6
30389         * all modules depending on updated Unicode data: Regenerate.
30390         The modules are listed by a script that does:
30391         - for each file listed by: git show --oneline --name-only 705f4efc
30392           - deduce the containing modules, based on "Files:"
30393         - deduce the modules which depend on the containing modules, based
30394           on "Depends-on:"
30396 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30398         uniname/uniname: update to Unicode 8.0.0
30399         * lib/uniname/uninames.h: Regenerate.
30400         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30401         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30403 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30405         libunistring: update to Unicode 8.0.0
30406         * lib/gen-uni-tables.c (SIZEOF): New macro.
30407         (output_numeric): Increase the maximum number of fractions from
30408         128 to 160.  Increase the level3 value width from 7 bits to 8
30409         bits.  Use SIZEOF instead of a hard-coded integer.
30410         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30411         0x28000.
30412         (fill_blocks): Increase the maximum number of blocks from 256 to
30413         384.  Use SIZEOF instead of a hard-coded integer.
30414         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30415         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30416         value width.
30417         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30418         a new case added to LBP22.
30419         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30420         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30421         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30422         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30423         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30424         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30425         lib/uniwidth/width.c.
30426         * all generated files under lib/uni* and tests/uni*: Regenerate.
30428 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30430         gnu-web-doc-update: add --mirror to remove stale files
30431         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30432         out of date files from the CVS server.  Since this is usually
30433         appropriate, a prompt is given when the option is not specified,
30434         along with the `cvs remove` command that would be run.
30436 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30438         acl-permissions: pacify -Wsuggest-attribute=const
30439         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30440         * lib/acl-internal.h (free_permission_context):
30441         Declare with attribute const if ! (defined USE_ACL &&
30442         (HAVE_ACL_GET_FILE || defined GETACL)).
30444         fsync: document AIX misbehavior
30445         * doc/posix-functions/fsync.texi (fsync):
30446         Document failure on AIX with read-only file descriptor.
30448 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30450         stdio: Don't redefine gets when using C++
30451         * lib/stdio.in.h (gets): Disable warning on C++.
30453 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30455         acl-permissions: port to AIX, C89 HP-UX
30456         Problems reported by Michael Felt.
30457         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30458         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30459         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30460         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30461         Add cast for AIX, whose system calls are declared to accept
30462         char * even though the arguments are really char const *.
30463         * lib/get-permissions.c (get_permissions):
30464         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30465         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30466         that broke a build.
30467         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30468         Rework types to pacify xlc.
30470 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30472         vasprintf-posix: avoid compiling vasnprintf where possible
30473         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30474         module where not required.  For example on a GNU/Linux system
30475         when gnulib-tool is run with the --conditional-dependencies option.
30477 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30479         file-has-acl: fix build on Mac OS X 10
30480         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30481         which has an incompatible 6 parameter getxattr() call.
30482         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30483         call on Mac OS X >= 10.4.
30484         * doc/glibc-functions/fgetxattr.texi: Likewise.
30485         * lib/file-has-acl.c: Revert to more complete combined check.
30486         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30487         Reported by Jack Howarth.
30489 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30491         prefix-gnulib-mk: remove no longer needed special case
30492         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30493         continued lib_SOURCES lines are no longer present,
30494         so special case handling of such entries is not required.
30496 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30498         acl: don't depend on the deprecated qacl module
30499         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30501 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30503         gnulib-tool: concatenate lib_SOURCES to a single line
30504         * gnulib-tool: Refactor the line merging sed logic,
30505         and use that to output a single lib_SOURCES line for each module.
30506         gnulib using projects often postprocess this output to prepend
30507         subdir paths to each item, and having a single line simplifies this
30508         processing allowing better decoupling from the gnulib-tool output.
30510 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30512         pthread_sigmask: discount system version if a simple macro (trivial)
30513         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30514         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
30515         function to ensure it's available.
30517 2015-05-31  Pádraig Brady  <P@draigBrady.com>
30519         readlinkat: avoid OS X 10.10 trailing slash bug
30520         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
30521         has this bug.
30522         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
30523         that OS X 10.10 has this function.
30524         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
30525         as done for readlink().
30526         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
30527         trailing slash bug, and assume readlinkat() has the same issue.
30528         Also fix a typo where $gl_cv_decl_readlink_works was tested,
30529         rather than the correct $gl_cv_decl_readlinkat_works.
30531 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30533         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
30534         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
30535         module rewrite.
30537         acl-permissions: Fix build on Solaris and Cygwin
30538         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
30539         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
30540         ace_entries variables have moved into struct permission_context but
30541         they were still accessed as local variables here.
30543 2015-05-29  Pádraig Brady  <P@draigBrady.com>
30545         linkat: avoid OS X 10.10 trailing slash with symlink bug
30546         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
30547         causes the symlink to be dereferenced, and if it points
30548         to a non existent file, that file will be created as
30549         a hard link to "path1".
30550         This fixes a test failure in test-linkat.c.
30551         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
30552         this case.  The existing workaround in linkat.c for
30553         trailing slash issues, suffices for this case.
30554         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
30555         the list of platforms with trailing slash issues.
30557 2015-05-28  Pádraig Brady  <P@draigBrady.com>
30559         unlinkat: handle ignoring of ".." on Darwin 14
30560         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
30561         on Mac OS X 10.10, where it ignores paths with a trailing "..",
30562         so handle in the same manner.
30563         * m4/unlinkat.m4: Comment on this Darwin issue.
30564         * doc/posix-functions/unlink.texi: Update the latest version
30565         where the issue was seen.
30566         * doc/posix-functions/unlinkat.texi: Mention this issue.
30567         Fixes a test failure in test-unlinkat.c.
30569 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30571         qacl: split into qcopy-acl and qset-acl
30572         Emacs needs the former, but not the latter.
30573         * modules/acl-permissions: New file, containing most of the old qacl.
30574         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
30575         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
30576         * modules/qcopy-acl, modules/qset-acl: New files.
30577         * MODULES.html.sh (File system functions):
30578         Mention the new modules, and mention qacl while we're at it.
30580 2015-05-27  Glenn Morris  <rgm@gnu.org>
30582         gitlog-to-changelog: new option --ignore-line
30583         (This patch is imported from the GNU Emacs master.)
30584         This option ignores individual commit lines matching a pattern.
30585         * build-aux/gitlog-to-changelog: Add --ignore-line option.
30587 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
30589         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
30590         Implement get_permissions and set_permissions primitives for getting all
30591         the permissions of a file, storing them, and later setting them. (In the
30592         minimal case, the permissions consist only of a file mode.) Reimplement
30593         qset_acl and qcopy_acl based on these new primitives: this avoids code
30594         duplication and makes error handling more consistent.
30595         The Solaris and Cygwin code still uses duplicate code paths for setting
30596         a file mode while making sure that no acls exist and setting an explicit
30597         acl; this is no worse than before, but could be cleaned up.  The AIX
30598         code still doesn't read ACLs, it only makes sure that acls don't get in
30599         the way when setting a file mode.
30600         * lib/acl-internal.h (struct permission_context): New data structure.
30601         (get_permissions, set_permissions, free_permission_context): Declare.
30602         * lib/acl-internal.c (free_permission_context): New helper function.
30603         * lib/get-permissions.c (get_permissions): New helper function split off
30604         from qcopy_acl.
30605         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30606         AIX, set a file's permissions based only on a file mode.
30607         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30608         other platforms construct a temporary acl from the file mode and set
30609         that acl in the same way as setting an acl read from the source file.
30610         This should help avoid code duplication and inconsistent / buggy
30611         behavior.
30612         (set_acls): New helper function Split off from qcopy_acl.
30613         (chmod_or_fchmod): Moved here from qset-acl.c.
30614         (set_permissions): New helper function.
30615         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30616         set_permissions.
30617         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30618         * modules/qacl: Add get-permissions.c and set-permissions.c.
30620         file-has-acl: Split feature tests again (Bug#20667)
30621         * lib/file-has-acl.c: Instead of testing for
30622         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30623         define them when needed.
30624         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30625         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30627 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30629         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30630         This avoids a conflict with "FORTIFY_SOURCE" variants
30631         of the string functions when they're replaced on NetBSD-6.0.1
30632         and Darwin-14.3.0 at least.
30633         * lib/string.in.h: Avoid including our "lib/string.h" while
30634         including the system <string.h>.
30636 2015-05-26  Eric Blake  <eblake@redhat.com>
30638         stdio: limit __gnu_printf__ witness to gcc 4.4+
30639         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30640         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30642         error: use correct printf attributes on mingw
30643         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30645         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30646         * modules/inttypes (Depends-on): Require extensions, so that mingw
30647         always uses GNU style inttypes.
30648         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30650         stdio: fix probe on mingw under gcc 5.1
30651         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30652         around new gcc preprocessor rules.
30654 2015-05-07  Glenn Morris  <rgm@gnu.org>
30656         gitlog-to-changelog: parse "Tiny-change"
30657         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30658         "Copyright-paperwork-exempt".  (Bug#20324)
30660 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30662         doc: document glibc posix_fallocate() issues
30663         * doc/posix-functions/posix_fallocate.texi: Mention the
30664         glibc efficiency problems and issues with NFS.
30666 2015-05-05  Karl Berry  <karl@freefriends.org>
30668         * build-aux/gendocs.sh (usage): document new css default
30669         for HTML (--htmlarg).
30671 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30673         extern-inline: no need for workaround in GCC 5.1
30674         * doc/extern-inline.texi (extern inline):
30675         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30676         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30677         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30678         two we can remove these workarounds.
30680 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30682         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30683         Avoid [-Wunknown-attributes] warnings like:
30684         warning: unknown attribute '__alloc_size__' ignored
30685         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30686         with clang, as support has been fully removed as of clang 3.5:
30687         https://github.com/llvm-mirror/clang/commit/c047507a
30688         * lib/eealloc.h: Likewise.
30689         * lib/pagealign_alloc.h: Likewise.
30691 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30693         tests: pacify GCC 5.1's stricter printf checking
30694         * tests/test-dirname.c (main):
30695         * tests/test-getaddrinfo.c (simple):
30696         * tests/test-getlogin.c (main):
30697         * tests/test-getndelim2.c (main):
30698         * tests/test-inttostr.c (CK):
30699         * tests/test-md5.c (main):
30700         * tests/test-read-file.c (main):
30701         * tests/test-sha1.c (main):
30702         Fix mismatches between printf format and value signedness.
30703         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30704         Remove, as CAST_VAL always returned a value of type uintmax_t.
30706         fts: port to GCC 5.1 with --enable-gcc-warnings
30707         Without this fix, GCC 5.1 (correctly) warns about a subscript
30708         error on the fts_name component of FTSENT.  It's actually a
30709         flexible member, so define it that way on C99 or later hosts.
30710         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30711         structure that now has a flexible array member.
30712         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30713         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30714         * modules/fts (Depends-on): Add flexmember.
30716 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30718         file-has-acl: port to CentOS 6
30719         Problem reported by Tom G. Christensen in:
30720         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30721         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30722         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30723         HAVE_GETXATTR.
30724         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30725         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30726         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30727         file-has-acl.c actually needs.
30729 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30731         file-has-acl: always return false when ACLs aren't supported
30732         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30733         change the GNU/Linux getxattr path, to transform "not supported"
30734         errors to a false return rather than an error.  This is handled
30735         within file_has_acl() due to the platform specific tests to
30736         determine if ACLs are not supported.
30738 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30740         gettext: propagate po/Makefile.in.in too
30741         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30742         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30743         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30744         between Makefile.in.in and the gettext-runtime m4 files.
30746 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30748         file-has-acl: new module, split from acl
30749         And add a new module file-has-acl-tests to match.
30750         I ran into a problem with the recent changes to the acl module,
30751         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30752         When using the fixed version with Emacs, I discovered that
30753         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30754         had multiple libraries, but needed only one), so I fixed that too.
30755         * NEWS: Document this incompatible change.
30756         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30757         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30758         Initialize gl_need_lib_has_acl.
30759         (gl_FUNC_ACL): Require it.
30760         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30761         Move the file-has-acl.c-relevant stuff to ...
30762         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30763         use_xattrs = 0' typo, and omit some needless work.  Set
30764         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30765         when gl_FUNC_ACL is called.
30766         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30767         (Link): Remove $(LIB_HAS_ACL).
30768         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30769         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30770         modules/file-has-acl-tests.
30771         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30773         manywarnings: add GCC 5.1 warnings
30774         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30775         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30776         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30777         -Wsuggest-override, -Wuse-without-only.  Change
30778         -Wnormalized=... operands to match 5.1.
30779         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30780         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30781         -Wdiscarded-qualifiers, -Wformat-signedness,
30782         -Wincompatible-pointer-types, -Wint-conversion,
30783         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30784         -Wshift-count-negative, -Wshift-count-overflow,
30785         -Wsizeof-array-argument, -Wsuggest-final-methods,
30786         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30787         and add -Warray-bounds=2 as a special case.
30789 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30791         doc: update FDL template to match FDL examples.
30792         * doc/alloca-opt.texi:
30793         * doc/alloca.texi:
30794         * doc/c-ctype.texi:
30795         * doc/c-strcase.texi:
30796         * doc/c-strcaseeq.texi:
30797         * doc/c-strcasestr.texi:
30798         * doc/c-strstr.texi:
30799         * doc/c-strtod.texi:
30800         * doc/c-strtold.texi:
30801         * doc/ctime.texi:
30802         * doc/error.texi:
30803         * doc/gcd.texi:
30804         * doc/gnulib-tool.texi:
30805         * doc/inet_ntoa.texi:
30806         * doc/intprops.texi:
30807         * doc/lib-symbol-visibility.texi:
30808         * doc/maintain.texi:
30809         * doc/parse-datetime.texi:
30810         * doc/quote.texi:
30811         * doc/regexprops-generic.texi:
30812         * doc/standards.texi: Remove spurious 'with' in FDL license
30813         template.
30815 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30817         lstat: fix cross-compilation 'ln -s' problem
30818         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30819         Have the test program call 'symlink' rather than a separate
30820         script run 'ln -s'; this is more likely to work in
30821         cross-compilation environments.  Reported by Pavel Fedin in:
30822         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30824 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30826         gendocs.sh: default to a common CSS style sheet for HTML output
30827         * build-aux/gendocs.sh (htmlarg): Change default value.
30829 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30831         gnulib-tool: output bold attribute more portably
30832         * gnulib-tool (func_show_module_list): Change hexadecimal
30833         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30834         encoded numbers as arguments to `printf' is not portable,
30835         and is not claimed by POSIX.  This is the case with FreeBSD.
30837 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30839         qacl: Simplify HP-UX acl_nontrivial check
30840         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30841         acl_nontrivial. Check if the acl has at most three entries instead (it must
30842         have exactly three entries according to the HP-UX documentation). Ignore
30843         uids and gids as long as an entry is either for a user (i.e., the owner),
30844         a group (i.e., the owning group), or others.
30845         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30846         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30848 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30850         acl: On Linux, check for acls without libacl
30851         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30852         library function to check for the presence of acls, avoiding a library.
30853         * lib/file-has-acl.c: Include xattr headers if we have them.
30854         (file_has_acl): On Linux, use getxattr().
30855         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30856         file_has_acl(). Check for xattr headers and getxattr().
30858 2015-04-14  Ángel González  <keisial@gmail.com>
30860         tempname: avoid unused parameter warnings (trivial)
30861         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30862         (try_nocreate): Likewise.
30864 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30866         fseeko: fix build failure on NetBSD >= 6 (trivial)
30867         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30868         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30870 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30872         gitlog-to-changelog: port to MS-Windows
30873         * build-aux/gitlog-to-changelog (git_dir_option):
30874         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30875         MS-Windows Perl.  Reported by Eli Zaretskii in:
30876         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30878 2015-04-07  Karl Berry  <karl@gnu.org>
30880         gendocs: new option --tex for passing args to texi2dvi.
30881         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30882         (TEXI2DVI): cut to just command name.
30883         (usage): mention new option, and update copyright.
30884         <generate_tex>: use it.
30886 2015-04-07  Karl Berry  <karl@gnu.org>
30888         * config/srclistvars.sh (GETTEXT): new definition.
30889         * config/srclist.txt: use it for gettext .m4 files.
30890         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30891         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30892         and continuing into April.
30894 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30896         uniname/uniname-tests: fix failure due to alias
30897         Reported by Jack Howarth in:
30898         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30899         * tests/uniname/test-uninames.c (name_has_alias): New function.
30900         (test_inverse_lookup): Exclude character name with valid alias,
30901         from randomly generated character names.
30902         (main): Fill unicode_aliases before calling test functions.
30904 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30906         hash: remove deprecated hash_insert0 function
30907         * lib/hash.h (hash_insert0): Remove deprecated function.
30908         * lib/hash.c (hash_insert0): Likewise.
30910 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30912         mountlist: remove dependency on libmount
30913         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30914         directly, rather than depending on libmount, which has many
30915         dependencies due to its dependence on libselinux, as detailed at:
30916         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30917         Note we restrict this to __linux__ as that's probably where this
30918         interface will remain.  If ever porting, it would be best
30919         to first pull the makedev() wrapper from coreutils to a gnulib module.
30920         Note also we don't add a getline dependency to the mountlist module,
30921         as all Linux versions are sufficient.
30923 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30925         stddef: port to pre-C11 GCC on x86
30926         On this platform, max_align_t should have an alignment of 8 even
30927         though the storage alignments of double, long, etc. max out at 4.
30928         Inspired by a comment of Andreas Schwab's here:
30929         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30930         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30931         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30932         * tests/test-stddef.c: Test __alignof__ too, if available.
30934 2015-03-24  Pádraig Brady  <P@draigBrady.com>
30936         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
30937         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
30939 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
30941         yesno: make EOL optional in ENABLE_NLS case also (trival)
30942         * lib/yesno.c (yesno): Check for EOL before replacing.
30943         * tests/test-yesno.sh: Add a test case (test along with gettext).
30945 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30947         fdopendir-tests: test it does not close its arg
30948         * tests/test-fdopendir.c (main): Test that fdopendir does not
30949         close its argument.  From a suggestion by David Grayson in:
30950         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30952 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30954         gitlog-to-changelog: trim trailing white space
30955         * build-aux/gitlog-to-changelog (main):
30956         Trim trailing white space from commit message lines.
30957         This is helpful for processing the GNU Emacs repository,
30958         which dates back to 1985 and contains a lot of such lines.
30960         gitlog-to-changelog: new option --ignore-matching
30961         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30962         Support new option --ignore-matching=PAT, which ignores all
30963         commit messages whose first line matches PAT.
30965 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30967         fdopendir: port better to MinGW
30968         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30969         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30970         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30971         * modules/fdopendir (Depends-on): Add dirfd.
30973 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30975         fdopendir: fix typo in comment
30976         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30978 2015-03-09  Eric Blake  <eblake@redhat.com>
30980         error: document all entry points provided
30981         * doc/glibc-functions/error_print_progname.texi
30982         (error_print_progname): Mention the error module.
30983         * doc/glibc-functions/error_at_line.texi (error_at_line):
30984         Likewise.
30985         * doc/glibc-functions/error_message_count.texi
30986         (error_message_count): Likewise.
30987         * doc/glibc-functions/error_one_per_line.texi
30988         (error_one_per_line): Likewise.
30990 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30992         vasnprintf: pacify clang 3.5.0
30993         Problem reported by Werner Lemberg in:
30994         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30995         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30996         The casts aren't needed, since the characters in question are ASCII.
30998 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31000         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31001         * lib/dirent--.h (GNULIB_defined_opendir):
31002         * lib/dirent.in.h (GNULIB_defined_opendir)
31003         (GNULIB_defined_closedir):
31004         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31005         #undef only if Gnulib defined it.
31007         poll: port to MSVC v18 on MS-Windows 8.1
31008         Problem reported by Gisle Vanem in:
31009         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31010         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31011         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31012         Add sys_socket.
31014 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31016         tests: support stderr verification with returns_()
31017         * tests/init.sh (returns_): Disable tracing for this wrapper
31018         function, so that stderr of the wrapped command is unchanged,
31019         allowing for verification of the contents.
31021 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31023         passfd: avoid valgrind uninitalised data warning
31024         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31025         to include just the fd we've initialized, rather than including
31026         the extra space used for alignment.
31028 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31030         uniwbrk/u32-wordbreaks-tests: fix copyright
31031         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31033         dup2: doc and test for Android bug
31034         Reported by Kevin Cernekee in:
31035         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31036         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31037         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31039 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31041         Replace dup2() on Android
31042         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31043         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31044         fails.  Using rpl_dup2() fixes this because it has an explicit test
31045         for this condition.
31047 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31049         Android doesn't define RLIM_SAVED_*
31050         Portability problem reported by Kevin Cernekee in:
31051         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31052         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31053         Mention the portability problem.
31054         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31055         Define if not defined.
31056         * m4/dup2.m4 (gl_FUNC_DUP2):
31057         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31058         Likewise.
31060 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31062         vasnprintf-posix-tests: use consistent test
31063         * tests/test-vasnprintf-posix.c (test_function):
31064         Use "<" in assert instead of "<=", for consistency with other tests.
31066 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31068         printf, isinf, etc.: noncanonical != NaN
31069         Do not require that isinf, printf, etc. treat noncanonical
31070         values as NaNs.  Instead, require only that they do not crash.
31071         Problem reported by Joseph Myers in:
31072         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31073         * doc/posix-functions/dprintf.texi (dprintf):
31074         * doc/posix-functions/fprintf.texi (fprintf):
31075         * doc/posix-functions/isfinite.texi (isfinite):
31076         * doc/posix-functions/isinf.texi (isinf):
31077         * doc/posix-functions/isnan.texi (isnan):
31078         * doc/posix-functions/printf.texi (printf):
31079         * doc/posix-functions/snprintf.texi (snprintf):
31080         * doc/posix-functions/sprintf.texi (sprintf):
31081         * doc/posix-functions/vdprintf.texi (vdprintf):
31082         * doc/posix-functions/vfprintf.texi (vfprintf):
31083         * doc/posix-functions/vprintf.texi (vprintf):
31084         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31085         * doc/posix-functions/vsprintf.texi (vsprintf):
31086         Document this.
31087         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31088         * m4/isinf.m4 (gl_ISINFL_WORKS):
31089         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31090         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31091         * tests/test-isfinite.c (test_isfinitel):
31092         * tests/test-isinf.c (test_isinfl):
31093         * tests/test-isnan.c (test_long_double):
31094         * tests/test-isnanl.h (main):
31095         * tests/test-snprintf-posix.h (test_function):
31096         * tests/test-sprintf-posix.h (test_function):
31097         * tests/test-vasnprintf-posix.c (test_function):
31098         * tests/test-vasprintf-posix.c (test_function):
31099         Test only that noncanonical values do not cause crashes, not that
31100         they are treated as NaNs.  In some cases this means a larger
31101         output buffer is needed.
31103 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31105         fts: remove redundant close() (trivial)
31106         * lib/fts.c (fts_read): Remove redundant call to close().
31107         Spotted by coverity.
31109 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31111         getdtablesize: port better for Android
31112         Problem reported by Kevin Cernekee in:
31113         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31114         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31115         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31116         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31118         poll: fixes for large fds
31119         * lib/poll.c (poll): Don't check directly for NFD too large.
31120         Don't rely on undefined behavior in FD_SET when an arg exceeds
31121         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31122         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31123         as that makes the test a bit stricter.
31125 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31127         fcntl: Fix cross compiling
31128         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31129         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31131 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31133         dup2, fcntl: cross-compile better for Android
31134         Problem reported by Kevin Cernekee in:
31135         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31136         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31137         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31138         there's little need to cross-compile for older kernels nowadays.
31139         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31140         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31142 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31144         getopt: don't crash on memory exhaustion
31145         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31146         memory exhaustion.  In the _LIBC case we use alloca() as is
31147         already done in glibc, so we don't need to consider the separate
31148         error path in that awkward case.  Also fix a memory leak when
31149         ambiguous options are present.
31150         Reported by Tobias Stoeckmann
31152 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31154         tempname: allow compilation with C++ (trivial)
31155         * lib/tempname.h [C++]: Specify extern "C" linkage.
31156         * lib/tempname.h (try_tempname):
31157         * lib/tempname.c (__try_tempname, __gen_tempname):
31158         Rename 'try' to 'tryfunc'.
31160 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31162         dup2, fcntl: port to AIX
31163         * m4/dup2.m4 (gl_FUNC_DUP2):
31164         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31165         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31166         The former works on AIX 7.1 but the latter does not.
31167         Also, this may work better with Android; see:
31168         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31170 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31172         getdtablesize, dup2, fcntl: port to Android
31173         Problem reported by Kevin Cernekee in:
31174         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31175         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31176         Mention that getdtablesize doesn't work on Android.
31177         * lib/getdtablesize.c: Use getrlimit substitute only if
31178         getdtablesize is declared.  This should suffice for Cygwin
31179         while not breaking Android.
31180         * m4/dup2.m4 (gl_FUNC_DUP2):
31181         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31182         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31183         standardized but the latter is not, and sysconf works on Android.
31184         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31185         Also check that getdtablesize is declared.
31186         This removes the need for a special case for Android.
31188 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31190         localename: Implement gl_locale_name_thread_unsafe for Android
31191         * lib/localename.c: Android API level >= 21 supports two hardcoded
31192         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31193         the internal __locale_t struct.
31195 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31197         fts: avoid crash when a cycle is added while traversing
31198         This could be triggered by auto-mounting a recursive bind mount.
31199         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31200         * lib/fts.c (fts_read): Avoid removing the original hash table item
31201         when leaving a directory that caused a cycle, and preserve the FTS_DC
31202         flag.
31204 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31206         uniname/uniname: support character alias
31207         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31208         Generate one-way mapping from aliases to codepoints in the
31209         generated tables.  Special case variation selectors to reduce
31210         table size.
31211         * lib/uniname/uniname.c (unicode_character_name): Special case
31212         variation selectors.
31213         (unicode_name_character): Special case variation selectors and
31214         their aliases.
31215         * lib/uniname/uninames.h: Regenerate.
31216         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31217         * modules/uniname/uniname-tests (Files): Add
31218         tests/uniname/NameAliases.txt.
31219         * tests/uniname/test-uninames.c: Mark as static.
31220         (ALIASLEN): Define.
31221         (struct unicode_alias): New struct.
31222         (unicode_aliases): New variable.
31223         (fill_aliases): New function.
31224         (test_alias_lookup): New test function.
31225         (main): Run the 'test_alias_lookup' test if the second argument is
31226         given.
31227         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31228         second argument.
31230 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31232         Fix FILE struct compatibility with Android API level >= 21
31233         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31234         __sferror.  Recent versions of Bionic's stdio.h no longer define
31235         __sferror.
31236         * lib/fbufmode.c: Likewise.
31237         * lib/fflush.c: Likewise.
31238         * lib/fpurge.c: Likewise.
31239         * lib/freadable.c: Likewise.
31240         * lib/freadahead.c: Likewise.
31241         * lib/freading.c: Likewise.
31242         * lib/freadptr.c: Likewise.
31243         * lib/freadseek.c: Likewise.
31244         * lib/fseeko.c: Likewise.
31245         * lib/fseterr.c: Likewise.
31246         * lib/fwritable.c: Likewise.
31248         Assume unbroken ungetc() on Android
31249         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31250         test case passed when running on an Android host, and the code
31251         hasn't really changed since 2009.
31253         getdtablesize: Fix Android build
31254         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31255         versions have this symbol in the .so library (at least 32-bit
31256         platforms) but are missing the declaration in the header file,
31257         causing the m4 logic to guess incorrectly.
31259         localename: Fix Android build
31260         * modules/localename (Depends-on): Add langinfo.
31262         getugroups: Fix Android build
31263         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31264         functions.
31266         euidaccess: Fix Android build
31267         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31268         AT_EACCESS gets declared.
31270         linkat_nofollow: Add fallback case for cross compiling
31271         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31273         net_if: Handle content-free <net/if.h> system headers
31274         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31275         struct if_nameindex.  If not, enable the replacement header.
31277         signal_h: Fix Android build
31278         * lib/signal.in.h: Add Android to the list of platforms that declare
31279         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31281         duplocale: Fix Android build of duplocale-tests
31282         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31283         is included by test-duplocale.c (but not by duplocale.c).
31284         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31285         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31286         * doc/posix-headers/monetary.texi: Add Android to the list of
31287         platforms missing monetary.h.
31289 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31291         tests: avoid recent -Werror=unused-variable regression in test-locale
31292         * tests/test-locale.c (main): Reference the variable to avoid the
31293         "unused variable" warning.
31295 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31297         maint: various whitespace cleanups in tempname
31298         * lib/tempname.c: Normalize spacing and line length.
31299         * lib/tempname.h: Likewise.
31300         * modules/tempname: Likewise.
31302 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31304         tests: provide returns_() to simplify exit status checking
31305         * tests/init.sh (returns_): A new function for use in tests,
31306         to allow for easier checking of return values, where you expect
31307         a command to exit with failure status.  By checking for a particular
31308         exit code, you don't hide any crashes for example.
31310 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31312         mountlist: only use libmount when specified
31313         There are currently many shared libs dependencies introduced by
31314         libmount with associated runtime and virt mem overhead.
31315         Therefore don't enable by default.
31316         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31318 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31320         uniname/unimame-tests: don't link with -lunistring
31321         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31322         $(LIBUNISTRING).  Document the rationale why we need to
31323         conditionalize the test.
31325 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31327         fstrcmp: don't assume strlen < INT_MAX
31328         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31329         (uintptr_t): Remove, as we're now assuming stdint.
31330         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31331         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31332         if the input string is long.
31333         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31334         uintptr_t to size_t when the underlying value is a pointer casted
31335         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31336         * modules/fstrcmp (Depends-on): Add stdint.
31338         diffseq: prefer ptrdiff_t to ssize_t
31339         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31340         ptrdiff_t is the natural type for signed indexes.
31341         On a few older platforms, ssize_t is narrower than size_t.
31343         xalloc: fix typo that suppressed warnings
31344         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31345         This typo, introduced a couple of years ago, mistakenly suppressed
31346         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31347         -Wmissing-declarations warnings.
31349         full-read: fix license notice typo
31350         * lib/full-read.h: Remove a stray line in the license notice.
31351         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31353         crypto/gc: fix a -Wswitch warning
31354         Reported by Bruce Korb in:
31355         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31356         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31358 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31360         gnulib-tool: fix handling of patch(1) diagnostics
31361         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31362         as otherwise gnulib-tool will reparse that output and attempt
31363         to lookup modules.
31365 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31367         bootstrap: exit immediately upon gnulib-tool failure
31368         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31369         This was noticed when gnulib-tool exited early due to failure
31370         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31371         but various confusing errors were then given as the build proceeded.
31373 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31375         symlinkat: include all required header files
31376         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31377         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31378         Reported at https://savannah.gnu.org/bugs/index.php?44151
31379         and by Jack Howarth.
31381 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31383         localename: support Solaris 12 and illumos
31384         * lib/localename.c (gl_locale_name_thread_unsafe): call
31385         getlocalename_l() on newer __sun platforms.
31386         Reported by Alexander Pyhalov.
31387         Fix suggested by Rich Burridge.
31389 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31391         locale: fix tests on illumos (trivial)
31392         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31393         so move from global scope to main().
31395 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31397         unictype: avoid undefined left-shift behavior
31398         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31399         gcc's -fsanitize=shift and running its tests triggered:
31400           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31401             places cannot be represented in type 'int'
31402         Cast LHS to 'unsigned int' after integer promotion.
31403         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31404         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31406 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31408         libunistring: bump version of unitypes dependants
31409         Due to the header file search order, all the headers which depend
31410         on unitypes.h need to be generated, when the preinstalled
31411         libunistring is older.
31412         * modules/unicase/base (configure.ac): Bump minimum version to
31413         0.9.4.
31414         * modules/uniconv/base (configure.ac): Likewise.
31415         * modules/unilbrk/base (configure.ac): Likewise.
31416         * modules/uninorm/base (configure.ac): Likewise.
31417         * modules/unistdio/base (configure.ac): Likewise.
31418         * modules/unistr/base (configure.ac): Likewise.
31419         * modules/uniwbrk/base (configure.ac): Likewise.
31420         * modules/uniwidth/base (configure.ac): Likewise.
31422 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31424         unictype/category-none: fix link with libunistring
31425         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31426         prefixed with "libstring_" when compiled as part of libunistring.
31427         To avoid undefined symbol at link time, increase the minimum
31428         version when the dependant modules are updated.
31429         * modules/unictype/category-none (configure.ac): Bump minimum
31430         version to 0.9.5.
31432 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31434         unitypes: fix build with installed libunistring
31435         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31436         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31437         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31439 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31441         time: port to MinGW32 3.21
31442         Problem reported by Eli Zaretskii in:
31443         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31444         * lib/time.in.h:
31445         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31446         * modules/time (Depends-on):
31447         Fall back on unistd.h if the other include files don't define
31448         struct timespec.
31450         update-copyright: apply to self
31451         * build-aux/update-copyright: Fix copyright date.  How ironic!
31453 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31455         libunistring: update to Unicode 7.0.0
31456         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31457         Manichaean names.
31458         * lib/unictype/joininggroup_name.h: Likewise.
31459         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31460         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31461         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31462         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31463         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31464         enum values.
31465         (is_property_alphabetic): Accept newly added characters to
31466         cuneiform numeric signs.
31467         (is_property_default_ignorable_code_point): Reject U+0605.
31468         (FIELDLEN): Increase from 120 to 160.
31469         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31470         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31471         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31472         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31473         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31474         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31475         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31476         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31477         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31478         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31479         U+1E8D0..U+1E8D6.
31480         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31481         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31482         lib/uniwidth/width.c.
31483         * all generated files under lib/uni* and tests/uni*: Regenerate.
31485 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31487         libunistring: update to Unicode 6.3.0
31488         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31489         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31490         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31491         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31492         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31493         Update WB5, WB9, WB10, WB13a, and WB13b.
31494         * tests/uniwbrk/test-uc-wordbreaks.c
31495         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31496         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31497         (UC_BIDI_PDI): New enumeration values.
31498         (bidi_category_byname): Support those enum values.
31499         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31500         dedicated property assigned.
31501         (is_property_case_ignorable): Check 0x0027.
31502         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31503         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31504         (output_wbp): Support those enum values.
31505         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31506         (UC_BIDI_PDI): New enumeration values.
31507         * lib/unictype/bidi_byname.gperf: Add those property names.
31508         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31509         U+180E, U+1A1B, and U+2066..U+2069.
31510         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31511         lib/uniwidth/width.c.
31512         * all generated files under lib/uni* and tests/uni*: Regenerate.
31514 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31516         libunistring: update to Unicode 6.2.0
31517         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
31518         (unilbrk_table): Adjust table size.
31519         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31520         for LBP_RI.
31521         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
31522         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
31523         Normalize table index skipping ignored properties.
31524         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
31525         WBP_EXTEND and WBP_FORMAT, which are now computed without using
31526         the table.
31527         * lib/uniwbrk/wbrktable.h: Adjust table size.
31528         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
31529         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
31530         Support rule GB8a.
31531         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
31532         * tests/unigbrk/test-uc-is-grapheme-break.c
31533         (graphemebreakproperty_to_string): Support GBP_RI.
31534         * tests/uniwbrk/test-uc-wordbreaks.c
31535         (wordbreakproperty_to_string): Support WBP_RI.
31536         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
31537         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
31538         (output_lbp): Support LBP_RI.  Adjust some characters changed from
31539         LBP_AL to LBP_ID.
31540         (output_lbp): Support LBP_RI.
31541         (WBP_RI): New enumeration value.
31542         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31543         (output_wbp): Support WBP_RI.
31544         (GBP_RI): New enumeration value.
31545         (output_gbp_test, fill_org_gbp): Support GBP_RI.
31546         * all generated files under lib/uni* and tests/uni*: Regenerate.
31548 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31550         libunistring: update to Unicode 6.1.0
31551         * lib/gen-uni-tables.c (output_joining_group): Switch to
31552         3-level table to accommodate joining groups defined with higher
31553         codepoint value.  Since there are only 88 groups defined in
31554         Unicode 7.0.0, use 7-bit packed format for level3 entries.
31555         (get_lbp): Update for Unicode 6.1.0.
31556         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
31557         3-level table.
31558         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
31559         joining group name.
31560         * lib/unictype/joininggroup_name.h: Likewise.
31561         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
31562         (unilbrk_table): Adjust table size.
31563         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31564         for LBP_HL.
31565         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
31566         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
31567         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
31568         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
31569         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
31570         U+302E..U+302F.
31571         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31572         lib/uniwidth/width.c.
31573         * all generated files under lib/uni* and tests/uni*: Regenerate.
31574         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
31576 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31578         uniwbrk/u32-wordbreaks-tests: add conformance test
31579         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
31580         tests/uniwbrk/test-uc-wordbreaks.c,
31581         tests/uniwbrk/test-uc-wordbreaks.sh, and
31582         tests/uniwbrk/WordBreakTest.txt.
31583         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
31584         test-uc-wordbreaks to $(check_PROGRAMS), and define
31585         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
31586         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
31587         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
31589 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31591         uniwbrk: ignore Extended/Format characters at BOL not BOS
31592         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31593         characters if the previous character property is one of
31594         WBP_NEWLINE, WBP_CR, and WBP_LF.
31596 2015-01-11  Jim Meyering  <meyering@fb.com>
31598         test-strstr.c: avoid a trivial leak
31599         * tests/test-strstr.c (main): Free haystack.
31601         update-copyright: recognize groff's \(co marker
31602         * build-aux/update-copyright (circle_c_re): Also accept
31603         uses of \(co, as found in gzip.1.
31605 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31607         maint.mk: fix compatibility with OS X nm
31608         * top/maint.mk (_gl_tight_scope): Use the -g option to
31609         show exported items rather than the -e option which is
31610         ignored on all platforms except OS X where it gives an error.
31611         Reported by Assaf Gordon.
31613 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31615         localcharset: improve charset detection on OS/2
31616         Use system codepage when appropriate.  Map OS/2 codepages to
31617         GNU canonical charset names if possible.
31618         * lib/config.charset: Don't output aliases if "$os" is os2*.
31619         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31620         result for OS/2.
31621         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31622         from the locale name which is neither "C" nor "POSIX".
31624 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31626         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31627         This reverts the last patch but one, as it shouldn't be needed now
31628         that the typo is fixed.
31629         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31630         * lib/count-trailing-zeros.h:
31631         * lib/count-one-bits.h:
31632         Go back to using 64-bit intrinsics.
31634         count-leading-zeros: fix pragma typos
31635         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31636         Fix typos in declaration of intrinsics when _MSC_VER.
31638 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31640         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31641         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31642         intrinsics in this case.
31643         * lib/count-trailing-zeros.h: Likewise.
31644         * lib/count-one-bits.h: Likewise.
31646 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31648         uniname/uniname: update to Unicode 7.0.0
31649         To accommodate new characters added since Unicode 5.1.0, this
31650         changes the internal representation of codepoint ranges.
31651         Previously, we grouped codepoint ranges by manually assigned 4-bit
31652         tag, which only allowed 16 groups.  This removes the limitation by
31653         switching to binary search on a table.  For the detail rationale
31654         and the benchmark results, see:
31655         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31656         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31657         to INDEX, as it no longer represents a codepoint.
31658         (range): New struct.
31659         (main): Switch to intervals list from a bit-pattern based
31660         classification.
31661         * lib/uniname/uninames.h: Regenerate.
31662         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31663         * modules/uniname/base (configure.ac): Bump minimum version to
31664         0.9.5.
31665         * modules/uniname/uniname (configure.ac): Bump minimum version to
31666         0.9.5.
31668 2015-01-05  Eric Blake  <eblake@redhat.com>
31670         doc: update INSTALL from autoconf
31671         * doc/install.texi: Resync from autoconf.
31672         * doc/INSTALL: Reflect recent autoconf update.
31673         * doc/INSTALL.ISO: Likewise.
31674         * doc/INSTALL.UTF-8: Likewise.
31676         stdio: fix use of PRIdMAX on modern mingw
31677         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31678         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31679         to work with modern mingw.
31681 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31683         pthread: detect git mingw builds with only partial pollution
31684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31685         pollution, as seen temporarily in Fedora 21.
31687 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31689         lib-symbol-versions: cache script check
31690         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31691         Cache the check for linker version scripts.
31692         From a suggestion by Christophe Curis in:
31693         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31695 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31697         maint: fix grammar nits in propername (trivial change)
31698         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31699         and use an adequate verb and tense.
31701 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31703         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31704         * module/gendocs: Add 'doc/gendocs_template_min'.
31706         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31707         from to Gnulib's.
31708         (scripturl, templateurl): Adjust accordingly.
31710 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31712         gendocs: copyright date and version fix
31713         Reported by Karl Berry in:
31714         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31715         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31716         Fix copyright date.
31717         * build-aux/gendocs.sh (scriptversion): Update.
31719 2015-01-01  Karl Berry  <karl@gnu.org>
31721         * doc/install.texi,
31722         * build-aux/mdate-sh,
31723         * build-aux/depcomp,
31724         * build-aux/config.guess,
31725         * build-aux/config.sub,
31726         * build-aux/ar-lib,
31727         * build-aux/compile: revert copyright updates (some from last
31728         year) in slaved files.
31730 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31732         version-etc: new year
31733         * doc/gnulib.texi:
31734         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31735         * all files: Run 'make update-copyright'.
31737 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31739         xstrtol: ensure errno is reset
31740         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31741         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31743         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31745 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31747         utimens: fix dependency typo
31748         * modules/utimens (Depends-on): Remove 'assure'.
31749         This bug was introduced in the recent 'assure' patch.
31751 2014-12-22  Eric Blake  <eblake@redhat.com>
31753         docs: mention why libgen.h is bad
31754         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31756 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31758         assure: new module
31759         This works better than 'assert' when compiling with -DNDEBUG,
31760         as it avoids some compiler diagnostics in that case.
31761         Reported by Norihiro Tanaka in:
31762         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31763         * MODULES.html.sh (func_all_modules): Add 'assure'.
31764         * lib/assure.h, modules/assure: New files.
31765         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31766         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31767         Prefer 'assure' to 'assert'.
31768         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31769         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31770         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31771         Depend on 'assure'.
31773 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31775         stdalign: port better to HP compilers
31776         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31777         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31779         stdalign: work around Apple GCC 4.0 bug
31780         Reported by David Fang in:
31781         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31782         * lib/stdalign.in.h (_Alignas):
31783         * m4/stdalign.m4 (gl_STDALIGN_H):
31784         Do not use aligned attribute with GCC 4.0 on Apple.
31786 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31788         getcwd: fix test failure on OS X 10.9
31789         * m4/getcwd-path-max.m4: Avoid the replacement if it
31790         won't be effective due to the PATH_MAX limitation of lstat().
31791         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31792         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31793         for this case for use in tests, and also exclude this
31794         case when setting REPLACE_GETCWD.
31795         * tests/test-getcwd.c (test_long_name): Restrict the
31796         tested path length so that lstat() will not be passed
31797         a path greater than PATH_MAX.
31798         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31799         than AT_FDCWD, since the latter is set unconditionally
31800         since Sep 2009 in commit 52c658e9.
31802 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31804         parse-datetime: avoid a compiler warning with byacc (trivial)
31805         * lib/parse-datetime.y (yylex): Use the same prototype in the
31806         function definition as the declaration, to avoid a -Wstrict-prototypes
31807         warning seen when using byacc.
31809 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31811         unicase/locale-language-tests: fix LOCALE_FR test
31812         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31813         a French locale with traditional encoding.
31814         Reported by umerqayam in:
31815         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31817 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31819         stddef: support C11's max_align_t
31820         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31821         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31822         Do not undef, as that might cause max_align_t to be defined twice.
31823         Instead, change use to check for _GL_STDDEF_WINT_T too.
31824         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31825         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31826         Check for max_align_t.
31827         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31828         * modules/stddef-tests (Depends-on): Add stdalign.
31829         * tests/test-stddef.c: Test max_align_t.
31831 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31833         unistd: fix iOS check conditional
31834         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31835         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31836         yielded true on non-iOS environment.
31837         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31838         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31839         they are defined.
31841 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31843         posixtm: avoid compiler warning in a better way
31844         * lib/posixtm.c (IF_LINT): Remove.
31845         (year, posix_time_parse):
31846         Return true (not 0) if successful.  All callers changed.
31847         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31849 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31851         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31852         started with '/' on EMX.
31854 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31856         freopen: workaround freopen() on OS/2 kLIBC
31857         * lib/freopen.c (rpl_freopen): Workaround.
31858         * m4/freopen.m4: Add os2* case.
31860         get_shared_library_fullname: port to EMX
31861         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31862         on EMX, respectively.
31863         (_DLL_InitTerm): New on EMX.
31864         (get_shared_library_fullname): Implement on EMX.
31866         find_executable: port to EMX
31867         * lib/progreloc.c (find_executable): Implement on EMX.
31869         sched: check struct sched_param in spawn.h as well
31870         * lib/sched.in.h: Include spawn.h on kLIBC.
31871         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31873 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31875         bootstrap: Allow perl modules in $buildreq
31876         * build-aux/bootstrap: Add case for perl modules.
31878 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31880         apply _GL_ATTRIBUTE_PURE to some inline functions
31881         clang 3.4.2 flagged these inline functions as pure
31882         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31883         * lib/sig-handler.h (get_handler): Likewise.
31884         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31885         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31887 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31889         vasnprintf: fix potential use after free
31890         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31891         flagged by clang-analyzer 3.4.2.
31893 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31895         filevercmp, posixtm: avoid compiler warnings with -O3
31896         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31897         * lib/posixtm.c: (IF_LINT): Define.
31898         (posix_time_parse): Use it to void a "may be used uninitialized"
31899         warning, seen only with -O3.
31901 2014-12-05  Bruno Haible  <bruno@clisp.org>
31903         Fix LDBL80_WORDS macro on big endian platforms.
31904         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31905         LDBL80_WORDS macro.
31906         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31907         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31908         * tests/test-isfinite.c (test_isfinitel): Likewise.
31909         * tests/test-isinf.c (test_isinfl): Likewise.
31910         * tests/test-isnan.c (test_long_double): Likewise.
31911         * tests/test-isnanl.h (main): Likewise.
31912         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31913         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31914         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31915         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31916         Reported by Pádraig Brady.
31918 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31920         git-version-gen: do not print new line characters
31921         * build-aux/git-version-gen: Use printf instead of echo and tr.
31923         gnulib-tool: recognize x:* as an absolute path
31924         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31925         (func_relconcat): Likewise.
31927 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31929         argp: avoid extraneous translation and mem leak with empty pre doc
31930         * lib/argp-help.c (argp_doc): Never translate the empty string,
31931         when "\v" is the first or last character of the string, as that
31932         has a reserved meaning to return the header info from a po file.
31933         This also fixes a small memory leak in the !post case.
31934         The issue can be seen with this command for example:
31935         LC_MESSAGES=en_US grub2-mknetdir --help
31937 2014-11-27  Daiki Ueno  <ueno@gnu.org>
31939         uniname/uniname-tests: skip if system's libunistring is used
31940         * modules/uniname/uniname-tests (Makefile.am): Skip test if
31941         uniname/uniname module is not compiled.
31943 2014-11-27  Pádraig Brady  <P@draigBrady.com>
31945         printf: fix configure check on big endian systems
31946         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31948 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31950         pipe-filter-gi, pipe-filter-ii: port to AIX
31951         On AIX 7.1, 'select' is defined as static and cannot be referred
31952         to from inline function.
31953         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31954         the definition...
31955         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31956         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31958 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31960         gitlog-to-changelog: add --until
31961         * build-aux/gitlog-to-changelog: Support new --until option.
31962         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31964 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31966         extern-inline: update commentary about GCC bugs
31967         * m4/extern-inline.m4: Add another GCC bug number to comments.
31969 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31971         gen-uni-tables: untabify
31972         * lib/gen-uni-tables.c: Untabify.
31974 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31976         gen-uni-tables: check out-of-range values added to 3-level tables
31977         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31978         (output_joining_type, output_ident_category): Check out-of-range
31979         values added to 3-level tables.
31981 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31983         gen-uni-tables: utilize 'assert'
31984         * lib/gen-uni-tables.c: Include <assert.h>.
31985         (output_category, output_combclass, output_decimal_digit_test)
31986         (output_decimal_digit, output_digit_test, output_digit)
31987         (output_numeric, get_mirror_value, fill_properties)
31988         (fill_property30, is_property_alphabetic)
31989         (is_property_default_ignorable_code_point)
31990         (is_property_uppercase, is_property_lowercase)
31991         (is_property_cased, is_property_case_ignorable)
31992         (is_property_changes_when_lowercased, is_property_iso_control)
31993         (is_property_math, fill_arabicshaping, output_joining_group)
31994         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31995         (output_wbp, fill_org_gbp, get_decomposition)
31996         (output_decomposition, fill_composition_exclusions)
31997         (debug_output_composition_tables, output_composition_tables)
31998         (redistribute_casefolding_rules, output_casing_rules): Use
31999         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32000         reporting.
32002 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32004         gen-uni-tables: cosmetic improvements
32005         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32006         variables specification.
32007         (is_outdigit): Remove unused function.
32009 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32011         fcntl-h-tests: port to PA-RISC GNU/Linux
32012         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32014 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32016         fts: port to C89
32017         Problem reported for MSVC 16 by Gisle Vanem in:
32018         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32019         * lib/fts.c (fts_build): Avoid declaration before statement.
32021 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32023         unistd: port to iOS
32024         Problem reported by André Klitzing in:
32025         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32026         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32028 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32030         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32031         Problem reported by Alan Modra in:
32032         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32033         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32034         Always cast the function arg, reverting this part of the previous
32035         change.
32037 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32039         obstack: avoid potentially-nonportable function casts
32040         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32041         Remove, replacing with ...
32042         (call_chunkfun, call_freefun): New static functions.
32043         All uses changed.  Avoid potentially-nonportable casts.
32044         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32045         (_obstack_begin_worker): Omit last two args, since they
32046         rely on potentially-nonportable casts.  All callers changed.
32047         * lib/obstack.h (_OBSTACK_CAST): New macro.
32048         Use it everywhere the old API used a potentially-nonportable cast.
32049         The new API doesn't cast.
32050         (struct obstack): Use unions rather than requiring
32051         potentially-nonportable casts.
32052         (obstack_chunkfun, obstack_freefun): Return void.
32054 2014-11-03  Alan Modra  <amodra@gmail.com>
32056         obstack: fix macro return values
32057         * lib/obstack.h (obstack_next_free): Return void *.
32058         (obstack_1grow_fast, obstack_blank_fast): Return void.
32059         For __GNUC__ macros:
32060         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32061         For !__GNUC__ macros:
32062         (obstack_make_room, obstack_grow, obstack_grow0)
32063         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32065 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32067         obstack: do not assume system-supplied obstack is size_t safe
32068         * m4/obstack.m4: New file.
32069         * modules/obstack (Files): Add it.
32071         obstack: port to platforms that #define __alignof__
32072         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32073         not if !_LIBC.  We don't know of any platforms that #define
32074         __alignof__, but it might be useful in tests.  Conversely,
32075         glibc assumes GCC.
32077 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32079         linkat: don't unconditionally replace on GNU/Linux
32080         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32081         was redundant for a few reasons.  It was present to support compiling
32082         on new systems but running on the old narrow window of Linux 2.6.1[67].
32083         It setup and cleaned up test files which weren't actually used.
32084         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32085         implicit in the following check.
32087 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32089         linkat: wrap to handle symlinks on OS X 10.10
32090         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32091         but not usable because it doesn't support creating hardlinks
32092         to symlinks.  Therefore add a generic test for this capability
32093         and fallback to our emulation if linkat() fails with ENOTSUP.
32095 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32097         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32098         * doc/posix-functions/open.texi (open):
32099         * doc/posix-functions/openat.texi (openat):
32100         Document that these functions do not set errno to ELOOP when
32101         a symlink is opened with O_NOFOLLOW.
32103 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32105         obstack: add NEWS entry for recent incompatible changes
32106         * NEWS: Describe recent changes.
32108 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32110         mountlist: don't use libmount to decide on dummy/remote
32111         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32112         routines to determine whether a file system is dummy or remote,
32113         as they're not currently compatible.  For example the remoteness
32114         is determined on file system type (for which the list seems incomplete),
32115         rather than simply checking for a ':' in the device name.
32116         Also libmount currently determines that 'tmpfs' is a dummy file system
32117         even though it has associated storage.
32119 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32121         obstack: prefer __alignof__ to alignof
32122         This is for portability to pre-4.7 GCC when compiling glibc.
32123         See Joseph S. Myers in:
32124         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32125         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32126         New macro, defined by including and using <alignof.h>.
32127         (MAX): New macro.
32128         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32129         Do not use enums as they are not portable to some broken compilers.
32130         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32132         obstack: prefer alignof to calculating alignments by hand
32133         * lib/obstack.c: Include <stdalign.h>.
32134         (struct fooalign): Remove.
32135         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32136         * modules/obstack (Depends-on): Add stdalign.
32138 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32140         obstack: use size_t alignments and check for overflow
32141         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32142         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32143         * lib/obstack.h (struct obstack.alignment_mask):
32144         Use _OBSTACK_SIZE_T, not int, for alignments.
32145         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32146         overflows, e.g., when adding the alignment.
32148 2014-10-29  Alan Modra  <amodra@gmail.com>
32150         obstack: 64-bit obstack support, part 3
32151         This finally enables full 64-bit obstack support.  The glibc
32152         shared library specific code is removed from obstack.c too, and
32153         the error handling code conditionally compiled under control of
32154         another macro, _OBSTACK_NO_ERROR_HANDLER.
32155         * lib/obstack.h: Include string.h earlier.
32156         (_OBSTACK_INTERFACE_VERSION): Define.
32157         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32158         * lib/obstack.c: Don't include shlib-compat.h.
32159         (OBSTACK_INTERFACE_VERSION): Delete.
32160         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32161         glibc code is compatible with version 2.  Don't include stdio.h for
32162         __GNU_LIBRARY.
32163         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32164         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32165         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32166         glibc shared library specific source.
32168         obstack: 64-bit obstack support, part 2
32169         This gets us 4G obstack support, without changing ABI
32170         compatibility, apart from possibly introducing some
32171         signed/unsigned comparison warnings in code that uses obstack.h.
32172         a) Replace "int" size parameters, return values, and macro local vars
32173            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32174         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32175         c) Make all obstack macros checking available room use obstack_room.
32176            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32177            allocated near the top of memory.
32178         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32179         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32180         in place of "int" size parameters, return values and local vars.
32181         (_CHUNK_SIZE_T): Define.
32182         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32183         union use an _OBSTACK_SIZE_T integer type.
32184         For __GNUC__ versions of the following macros...
32185         (obstack_room): Rename local var.
32186         (obstack_make_room): Use obstack_room.
32187         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32188         obstack_int_grow, obstack_blank): Likewise.
32189         (obstack_finish): Use unsigned comparison when comparing aligned
32190         next_free against chunk_limit.
32191         (obstack_free): Cast OBJ to remove possible const qualifier.
32192         For !__GNUC__ versions of the following macros...
32193         (obstack_make_room): Use obstack_room.
32194         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32195         obstack_int_grow, obstack_blank): Likewise.
32196         (obstack_finish): Use unsigned comparision when comparing aligned
32197         next_free against chunk_limit.
32198         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32199         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32200         _OBSTACK_SIZE_T.
32201         (_obstack_begin, _obstack_begin_1): Likewise.
32202         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32203         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32205         obstack: 64-bit obstack support, part 1
32206         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32207            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32208            and "size_t" 64 bits.
32209         b) Consolidate _obstack_begin and _obstack_begin1 code.
32210         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32211         use "size_t" rather than "long".
32212         (_obstack_begin, _obstack_begin1): Likewise.
32213         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32214         obstack_chunkfun): Update alloc function casts.
32215         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32216         (chunkfun_type, freefun_type): New typdefs.
32217         (_obstack_begin_worker): Split out from ..
32218         (_obstack_begin, _obstack_begin_1): ..here.
32220         obstack: tidy part 2
32221         a) Don't be concerned about "not polluting the namespace with stddef.h
32222            symbols" in obstack.h, since gnulib string.h includes stddef.h
32223            anyway, and it seems unlikely that anyone would care.
32224         b) Don't roll our own slow memcpy in _obstack_newchunk.
32225         c) Rename obstack_free to _obstack_free.  This makes the naming
32226            consistent with other obstack functions and obviates the need for
32227            __obstack_free.  Ancient obstack.c defined both obstack_free and
32228            _obstack_free.  We continue to do that for _LIBC via an alias.
32229         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32230            is clever, but nowadays gcc warns on undefined macros.  You'll get
32231            an undefined macro warning if simulating an old gcc with -U__GNUC__
32232            -U__GNUC_MINOR__ -D__GNUC__=1.
32233         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32234         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32235         (__obstack_free): Delete, update refs.
32236         (_obstack_free): Rename from obstack_free.
32237         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32238         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32239         * lib/obstack.c: Don't include stddef.h.
32240         (COPYING_UNIT): Delete.
32241         (_obstack_begin): Formatting fix.
32242         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32243         (_obstack_free): Rename from __obstack_free, update alias.  Move
32244         undef of obstack_free to where it is needed.
32246         obstack: tidy part 1
32247         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32248            to me, and result in overlong lines after later patches.
32249         b) Move error handling code, to avoid a forward declaration and to
32250            simplify later patches in this series.
32251         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32252         and update all uses.
32253         * lib/obstack.c: Include stdlib.h earlier.
32254         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32255         in file.
32256         (print_and_abort): Remove now redundant forward declaration.
32258 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32260         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32261         Without this change, in bleeding-edge fileutils Autoconf complains
32262         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32263         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32264         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32265         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32267 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32269         iconv: avoid false detection of non-working iconv
32270         The INBUF arguments of iconv can be either 'const char **'
32271         or 'char **'.  If CC is g++, the difference causes a compile error
32272         and thus leads to a false detection of non-working iconv.
32273         Reported by Eli Zaretskii and Werner LEMBERG in:
32274         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32275         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32276         iconv.  Bump serial number.
32278 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32280         bootstrap: print more diagnostics for missing programs
32281         * build-aux/bootstrap: only suppress stderr when checking for
32282         alternative program names.  This supports programs issuing non
32283         standard error messages.
32285 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32287         bootstrap: only update the gnulib submodule
32288         * build-aux/bootstrap: Restrict the "submodule update" command
32289         to the gnulib path.
32291 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32293         symlinkat: port to AIX 7.1
32294         * doc/posix-functions/symlinkat.texi (symlinkat):
32295         Mention AIX porting problem.
32296         * lib/symlinkat.c: Always include errno.h.
32297         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32298         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32299         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32301         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32302         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32303         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32305         readlinkat: port to AIX 7.1
32306         * doc/posix-functions/readlink.texi (readlink):
32307         * doc/posix-functions/readlinkat.texi (readlinkat):
32308         Mention AIX porting problem.
32309         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32310         New function.
32311         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32312         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32314         * modules/readlinkat (configure.ac): Also compile replacement
32315         if REPLACE_READLINKAT.
32316         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32318 2014-10-12  Karl Berry  <karl@gnu.org>
32320         * doc/posix-functions/dirname.texi: remove spurious {.
32322 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32324         basename, dirname: Improve documentation.
32325         * doc/posix-functions/basename.texi: Mention dirname module and
32326         base_name() function.
32327         * doc/posix-functions/dirname.texi: Mention dir_name() and
32328         mdir_name() functions.
32329         Suggested by Werner LEMBERG <wl@gnu.org>.
32331 2014-09-24  Jim Meyering  <meyering@fb.com>
32333         exclude: declare exclude_patopts static
32334         * lib/exclude.c (exclude_patopts): Declare static,
32335         to avoid triggering a -Wmissing-prototypes warning.
32336         The alternative (declaring it in the .h file) would
32337         require publicizing the private "struct patopts".
32339 2014-09-21  Werner Lemberg  <wl@gnu.org>
32341         dirname: support compilation with C++
32342         * lib/dirname.h: Add necessary C linkage declarations.
32344 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32346         qsort_r: include <config.h>
32347         Problem reported by Tom G. Christensen in:
32348         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32349         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32351 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32353         avltree-list: avoid compiler warnings (trivial)
32354         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32355         -Werror=suggest-attribute=pure.
32356         * lib/gl_array_list.c: Likewise.
32357         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32358         declaration to avoid -Werror=missing-prototypes.  This is not added
32359         to a header as only exported for tests.  Add (void) to the
32360         check_invariants() call to indicate we're discarding the result
32361         in this context which avoids -Werror=unused-value.  Note we don't
32362         use ignore_value here to avoid a dependency as we know we'll not
32363         be adding __attribute__((warn_unused_result)) to check_invariants().
32364         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32366 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32368         qsort_r: new module, for GNU-style qsort_r
32369         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32371 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32373         strerror_r-posix: support compilation with C++
32374         * lib/strerror_r.c: Add necessary C linkage declarations.
32376 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32378         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32379         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32381 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32383         mountlist: use /proc/self/mountinfo when available
32384         Use libmount to propagate device IDs provided by Linux in
32385         /proc/self/mountinfo.  This will give more accurate output when
32386         using df in chroot'ed environments as the device IDs are not
32387         determined by stat() which may be inaccurate within the chroot.
32388         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32389         from util-linux to parse "/proc/self/mountinfo" or fall back to
32390         standard getmntent() processing.
32391         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32392         getmntent() is used, as is the case on GNU/Linux.
32394 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32396         users.txt: add cmogstored
32397         cmogstored has used gnulib since the beginning in 2012 to support
32398         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32400 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32402         Trivial change.
32403         * gnulib-tool: Use same options as build-aux/bootstrap to download
32404         PO files.
32406 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32408         Trivial change.
32409         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32411 2014-09-04  Eric Blake  <eblake@redhat.com>
32413         maintainer-makefile: add syntax check for useless ';;'
32414         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32416 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32418         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32419         Problem reported by Assaf Gordon in:
32420         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32421         Apparently Ubuntu is doing some fancy link-time optimization
32422         that doesn't work with -lpthread but does work with -pthread.
32423         Work around the bug by preferring -pthread to -lpthread.
32424         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32425         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32426         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32427         Treat -pthread like -lpthread.
32429 2014-09-04  Eric Blake  <eblake@redhat.com>
32431         error: drop spurious semicolon
32432         * lib/error.c (__error_at_line): Fix ';;'.
32434 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32436         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32437         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32438         Override AC_C_RESTRICT unconditionally.
32439         Update from autoconf, incorporating:
32440         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32441         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32443 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32445         manywarnings: add GCC 4.9 warnings
32446         Also, make it easier to maintain this in the future.
32447         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32448         -Wconditionally-supported, -Wdelete-incomplete,
32449         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32450         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32451         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32452         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32453         only for older GCC versions that need them.  Handle
32454         -Wnormalized=nfc specially, so that the 'comm' command used
32455         for maintenance doesn't get confused.
32457 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32459         vasnprintf: fix bugs in width computation
32460         * lib/vasnprintf.c (VASNPRINTF):
32461         Rework previous change, which introduced a bug,
32462         to avoid the warning in a different way.
32463         Avoid undefined behavior if the width arg is less than -INT_MAX.
32464         Avoid unnecessary use of HAS_WIDTH local.
32466 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32468         vasnprintf: Avoid signed/unsigned comparison warning.
32469         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32470         compare end addr of generated string w/ maximum end addr.
32472 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32474         parse-datetime: Avoid pointer difference.
32475         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32476         instead of calculating difference of pointers.  This removes an
32477         annoying warning, devoid of any use.
32479 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32481         qsort_r: new module, for GNU-style qsort_r
32482         This works even on FreeBSD, which has an incompatible qsort_r API.
32483         * MODULES.html.sh: Add it.
32484         * doc/glibc-functions/qsort_r.texi: It's now supported.
32485         * lib/qsort.c: New file, taken from glibc with minor changes
32486         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32487         removed.
32488         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32489         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32491         * modules/qsort_r, modules/qsort_r-tests: New files.
32492         * modules/stdlib (Makefile): Set up its defaults.
32493         * tests/test-qsort_r.c: New file.
32495 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32497         vla: new module
32498         GNU RCS can use this, mostly for documentation I expect.  See:
32499         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32500         * MODULES.html.sh: Add vla.
32501         * lib/vla.h, modules/vla: New files.
32503 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32505         localename: make gl_locale_name_thread really thread-safe on Windows
32506         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32507         "glthread/lock.h".
32508         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32509         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32511 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32513         getpass: don't assume struct termios
32514         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
32515         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
32516         * lib/getpass.c (getpass): Port to systems lacking struct termios.
32518         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
32519         Problem reported by Jonas 'Sortie' Termansen in:
32520         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
32521         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
32522         Implement via sysconf for platforms that lack getdtablesize.
32524         vararrays: modernize AC_C_VARARRAYS for C11
32525         This backports a change I recently made to Autoconf.
32526         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
32527         VLAs are not supported, as this is what C11 does.  The old macro
32528         HAVE_C_VARARRAYS is still defined if they are supported, but is
32529         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
32531 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
32533         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
32534         * build-aux/install-reloc (func_create_wrapper): Also wrap
32535         strerror-override, stat, stat.
32537 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32539         sys_select: fix FD_ZERO problem on Solaris 10
32540         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
32541         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
32542         to expand to an expression that invoked memset without necessarily
32543         including <string.h>.  The problem was that the first include
32544         defined _SYS_TIME_H, causing the second include to short-circuit.
32545         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
32546         Also, fix what appears to be a cut-and-paste typo, by replacing
32547         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
32548         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
32550         accept: document Solaris 10 type glitch
32551         * doc/posix-functions/accept.texi (accept): Mention that
32552         Solaris 10 'accept' takes void * last arg, not socklen_t *.
32554 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
32556         extern-inline: port to FreeBSD, DragonFly
32557         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
32558         is present if either __DragonFly__ or __FreeBSD__ is defined.
32559         FreeBSD problem reported by Andrey Borzenkov in:
32560         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
32561         Also, worry about __APPLE__ only if __MACH__ is also defined,
32562         as this is more consistent with the rest of gnulib.
32563         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
32564         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
32566 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32568         regex: Make #if/#ifdef usage consistent for DEBUG
32569         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
32570         of the inconsistent usage of #if and #ifdef as that works with
32571         both Glibc and Gnulib's style.
32573 2014-07-31  Eric Blake  <eblake@redhat.com>
32575         openat-die: use _Noreturn markup
32576         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
32577         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
32578         _Noreturn.
32580 2014-07-30  Eric Blake  <eblake@redhat.com>
32582         test-open: port to cygwin, which lacks Fortify
32583         * tests/test-open.h (ALWAYS_INLINE): New macro.
32584         (__always_inline): Don't abuse internal symbol on non-glibc.
32586 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
32588         localename: Enforce declarations before statements.
32589         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
32590         first statement.
32592 2014-07-18  Jim Meyering  <meyering@fb.com>
32594         test-userspec: don't look up numeric user names
32595         * tests/test-userspec.c: I found a system for which getpwnam("0")
32596         returned a pointer to a non-root user's entry, and that made the
32597         test fail.
32598         (T): Prefix each numeric input with "+", to inhibit lookup.
32600 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32602         localcharset, localename: MS-Windows support for non-default locales
32603         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32604         falling back on the default system codepage, try extracting
32605         the codepage from what 'setlocale' returns.  This allows to
32606         take into account changes of the codeset due to non-default
32607         locale set by a previous call to 'setlocale'.
32608         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
32609         Define if not already defined.
32610         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
32611         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32612         current locale by calling 'setlocale', then converting the
32613         locale name into LCID by calling 'get_lcid'.  This allows to
32614         take into account changes in the current locale from the
32615         default one, in contrast to GetThreadLocale.
32617 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32619         announce-gen: avoid failure when Digest::SHA is installed
32620         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32621         Digest::SHA1->new in print_checksums fails.
32622         * build-aux/announce-gen (digest_classes): New associative array
32623         for available message digest implementations.
32624         (print_locations): Use it.
32626 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32628         gettext: revert "update macros to version 0.19"
32629         This reverts commit 9b9370ca, as it currently requires that
32630         developers of any project that explicitly uses the gettext module
32631         or implicitly uses it through the utimens-tests or
32632         futimens-tests modules, use gettext >= 0.19.
32633         However there are some stability and availablity issues with
32634         that version at present.  We can reinstate this soon, when stability
32635         is addressed and packages are more readily available.
32637 2014-07-12  Jim Meyering  <meyering@fb.com>
32639         regex: don't deref NULL upon heap allocation failure
32640         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32641         failure in one more place.
32642         To trigger the segfault, configure grep -with-included-regex,
32643         build it, and run these commands:
32644         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32645         I discovered this while replying to a private report from
32646         Jens Schleusener about excessive memory consumption by grep
32647         when using a regular expression like the one above.
32649 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32651         regex: fix memory leak in compiler
32652         Fix by Andreas Schwab in:
32653         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32654         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32655         constructed tree before returning error.
32657 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32659         announce-gen: avoid perl warnings
32660         * build-aux/announce-gen: add two minor checks to avoid
32661         "use of uninitialized value" warnings when command-line parameters are
32662         missing.
32664 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32666         localename: avoid -Wsuggest-attribute={const,pure} warnings
32667         * lib/localename.c (string_has): Tag internal function as pure.
32668         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32669         as const when appropriate.
32671 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32673         nl_langinfo: Fix last change.
32674         * lib/nl_langinfo.c (includes): Drop redundant include.
32676 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32678         error: Fix -Wundef warnings in glibc
32679         * lib/error.c [_LIBC]: Define default macros for
32680         glibc.
32681         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32682         Check _LIBC before STRERROR_R_CHAR_P.
32684         error: Sync from glibc master
32685         * lib/error.c [_LIBC]: Remove INTUSE usage.
32686         (error_tail): Remove unused macro ALLOCA_LIMIT.
32687         Fix potential buffer overflow.  Fix potential NULL dereference
32688         in strcmp.
32690 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32692         nl_langinfo: fix build under mingw
32693         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32695 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32697         mountlist: do not classify a bind-mounted dir entry as "dummy"
32698         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32699         1-argument getmntent() (instead of assuming absence).
32701 2014-07-08  Eric Blake  <eblake@redhat.com>
32703         maint.mk: less syntax-check noise when SIGPIPE is ignored
32704         * top/maint.mk (_sc_header_without_use)
32705         (sc_require_config_h_first): Parse full list.
32707 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32708             Paul Eggert  <eggert@cs.ucla.edu>
32710         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32711         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32712         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32713         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32714         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32715         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32716         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32717         Include <stdio.h> if Microsoft Windows.
32718         Include <time.h> if !REPLACE_NL_LANGINFO.
32719         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32720         and with improvements for Microsoft Windows.
32721         (rpl_nl_langinfo): Use it.
32722         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32723         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32724         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32725         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32726         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32727         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32728         corresponding values returned by 'localeconv'.  Compute the values
32729         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32730         'strftime' with a suitable struct tm value.
32732 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32734         Bruno Haible has stepped down as maintainer.
32735         See Karl Berry in:
32736         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32737         Daiki Ueno has volunteered to maintain libunistring; see:
32738         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32739         * modules/gen-uni-tables, modules/libunistring:
32740         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32741         * modules/unicase/base, modules/unicase/cased:
32742         * modules/unicase/empty-prefix-context:
32743         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32744         * modules/unicase/locale-language, modules/unicase/special-casing:
32745         * modules/unicase/tocasefold, modules/unicase/tolower:
32746         * modules/unicase/totitle, modules/unicase/toupper:
32747         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32748         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32749         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32750         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32751         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32752         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32753         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32754         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32755         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32756         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32757         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32758         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32759         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32760         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32761         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32762         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32763         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32764         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32765         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32766         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32767         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32768         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32769         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32770         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32771         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32772         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32773         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32774         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32775         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32776         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32777         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32778         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32779         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32780         * modules/uniconv/u16-conv-to-enc:
32781         * modules/uniconv/u16-strconv-from-enc:
32782         * modules/uniconv/u16-strconv-from-locale:
32783         * modules/uniconv/u16-strconv-to-enc:
32784         * modules/uniconv/u16-strconv-to-locale:
32785         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32786         * modules/uniconv/u32-strconv-from-enc:
32787         * modules/uniconv/u32-strconv-from-locale:
32788         * modules/uniconv/u32-strconv-to-enc:
32789         * modules/uniconv/u32-strconv-to-locale:
32790         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32791         * modules/uniconv/u8-strconv-from-enc:
32792         * modules/uniconv/u8-strconv-from-locale:
32793         * modules/uniconv/u8-strconv-to-enc:
32794         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32795         * modules/unictype/bidicategory-all:
32796         * modules/unictype/bidicategory-byname:
32797         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32798         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32799         * modules/unictype/bidiclass-byname:
32800         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32801         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32802         * modules/unictype/block-all, modules/unictype/block-list:
32803         * modules/unictype/block-of, modules/unictype/block-test:
32804         * modules/unictype/category-C, modules/unictype/category-Cc:
32805         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32806         * modules/unictype/category-Co, modules/unictype/category-Cs:
32807         * modules/unictype/category-L, modules/unictype/category-LC:
32808         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32809         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32810         * modules/unictype/category-Lu, modules/unictype/category-M:
32811         * modules/unictype/category-Mc, modules/unictype/category-Me:
32812         * modules/unictype/category-Mn, modules/unictype/category-N:
32813         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32814         * modules/unictype/category-No, modules/unictype/category-P:
32815         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32816         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32817         * modules/unictype/category-Pi, modules/unictype/category-Po:
32818         * modules/unictype/category-Ps, modules/unictype/category-S:
32819         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32820         * modules/unictype/category-Sm, modules/unictype/category-So:
32821         * modules/unictype/category-Z, modules/unictype/category-Zl:
32822         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32823         * modules/unictype/category-all, modules/unictype/category-and:
32824         * modules/unictype/category-and-not, modules/unictype/category-byname:
32825         * modules/unictype/category-longname, modules/unictype/category-name:
32826         * modules/unictype/category-none, modules/unictype/category-of:
32827         * modules/unictype/category-or, modules/unictype/category-test:
32828         * modules/unictype/category-test-withtable:
32829         * modules/unictype/combining-class:
32830         * modules/unictype/combining-class-all:
32831         * modules/unictype/combining-class-byname:
32832         * modules/unictype/combining-class-longname:
32833         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32834         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32835         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32836         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32837         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32838         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32839         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32840         * modules/unictype/digit, modules/unictype/joininggroup-all:
32841         * modules/unictype/joininggroup-byname:
32842         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32843         * modules/unictype/joiningtype-all:
32844         * modules/unictype/joiningtype-byname:
32845         * modules/unictype/joiningtype-longname:
32846         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32847         * modules/unictype/mirror, modules/unictype/numeric:
32848         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32849         * modules/unictype/property-ascii-hex-digit:
32850         * modules/unictype/property-bidi-arabic-digit:
32851         * modules/unictype/property-bidi-arabic-right-to-left:
32852         * modules/unictype/property-bidi-block-separator:
32853         * modules/unictype/property-bidi-boundary-neutral:
32854         * modules/unictype/property-bidi-common-separator:
32855         * modules/unictype/property-bidi-control:
32856         * modules/unictype/property-bidi-embedding-or-override:
32857         * modules/unictype/property-bidi-eur-num-separator:
32858         * modules/unictype/property-bidi-eur-num-terminator:
32859         * modules/unictype/property-bidi-european-digit:
32860         * modules/unictype/property-bidi-hebrew-right-to-left:
32861         * modules/unictype/property-bidi-left-to-right:
32862         * modules/unictype/property-bidi-non-spacing-mark:
32863         * modules/unictype/property-bidi-other-neutral:
32864         * modules/unictype/property-bidi-pdf:
32865         * modules/unictype/property-bidi-segment-separator:
32866         * modules/unictype/property-bidi-whitespace:
32867         * modules/unictype/property-byname:
32868         * modules/unictype/property-case-ignorable:
32869         * modules/unictype/property-cased:
32870         * modules/unictype/property-changes-when-casefolded:
32871         * modules/unictype/property-changes-when-casemapped:
32872         * modules/unictype/property-changes-when-lowercased:
32873         * modules/unictype/property-changes-when-titlecased:
32874         * modules/unictype/property-changes-when-uppercased:
32875         * modules/unictype/property-combining:
32876         * modules/unictype/property-composite:
32877         * modules/unictype/property-currency-symbol:
32878         * modules/unictype/property-dash:
32879         * modules/unictype/property-decimal-digit:
32880         * modules/unictype/property-default-ignorable-code-point:
32881         * modules/unictype/property-deprecated:
32882         * modules/unictype/property-diacritic:
32883         * modules/unictype/property-extender:
32884         * modules/unictype/property-format-control:
32885         * modules/unictype/property-grapheme-base:
32886         * modules/unictype/property-grapheme-extend:
32887         * modules/unictype/property-grapheme-link:
32888         * modules/unictype/property-hex-digit:
32889         * modules/unictype/property-hyphen:
32890         * modules/unictype/property-id-continue:
32891         * modules/unictype/property-id-start:
32892         * modules/unictype/property-ideographic:
32893         * modules/unictype/property-ids-binary-operator:
32894         * modules/unictype/property-ids-trinary-operator:
32895         * modules/unictype/property-ignorable-control:
32896         * modules/unictype/property-iso-control:
32897         * modules/unictype/property-join-control:
32898         * modules/unictype/property-left-of-pair:
32899         * modules/unictype/property-line-separator:
32900         * modules/unictype/property-logical-order-exception:
32901         * modules/unictype/property-lowercase, modules/unictype/property-math:
32902         * modules/unictype/property-non-break:
32903         * modules/unictype/property-not-a-character:
32904         * modules/unictype/property-numeric:
32905         * modules/unictype/property-other-alphabetic:
32906         * modules/unictype/property-other-default-ignorable-code-point:
32907         * modules/unictype/property-other-grapheme-extend:
32908         * modules/unictype/property-other-id-continue:
32909         * modules/unictype/property-other-id-start:
32910         * modules/unictype/property-other-lowercase:
32911         * modules/unictype/property-other-math:
32912         * modules/unictype/property-other-uppercase:
32913         * modules/unictype/property-paired-punctuation:
32914         * modules/unictype/property-paragraph-separator:
32915         * modules/unictype/property-pattern-syntax:
32916         * modules/unictype/property-pattern-white-space:
32917         * modules/unictype/property-private-use:
32918         * modules/unictype/property-punctuation:
32919         * modules/unictype/property-quotation-mark:
32920         * modules/unictype/property-radical:
32921         * modules/unictype/property-sentence-terminal:
32922         * modules/unictype/property-soft-dotted:
32923         * modules/unictype/property-space:
32924         * modules/unictype/property-terminal-punctuation:
32925         * modules/unictype/property-test, modules/unictype/property-titlecase:
32926         * modules/unictype/property-unassigned-code-value:
32927         * modules/unictype/property-unified-ideograph:
32928         * modules/unictype/property-uppercase:
32929         * modules/unictype/property-variation-selector:
32930         * modules/unictype/property-white-space:
32931         * modules/unictype/property-xid-continue:
32932         * modules/unictype/property-xid-start:
32933         * modules/unictype/property-zero-width, modules/unictype/scripts:
32934         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32935         * modules/unictype/syntax-c-whitespace:
32936         * modules/unictype/syntax-java-ident:
32937         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
32938         * modules/unigbrk/u16-grapheme-breaks:
32939         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
32940         * modules/unigbrk/u32-grapheme-breaks:
32941         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
32942         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
32943         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
32944         * modules/unigbrk/uc-is-grapheme-break:
32945         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
32946         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32947         * modules/unilbrk/u16-width-linebreaks:
32948         * modules/unilbrk/u32-possible-linebreaks:
32949         * modules/unilbrk/u32-width-linebreaks:
32950         * modules/unilbrk/u8-possible-linebreaks:
32951         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32952         * modules/unilbrk/ulc-possible-linebreaks:
32953         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32954         * modules/uniname/uniname, modules/uninorm/base:
32955         * modules/uninorm/canonical-decomposition:
32956         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32957         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32958         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32959         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32960         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32961         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32962         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32963         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32964         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32965         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32966         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32967         * modules/unistdio/base, modules/unistdio/u-printf-args:
32968         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32969         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32970         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32971         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32972         * modules/unistdio/u16-u16-sprintf:
32973         * modules/unistdio/u16-u16-vasnprintf:
32974         * modules/unistdio/u16-u16-vasprintf:
32975         * modules/unistdio/u16-u16-vsnprintf:
32976         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32977         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32978         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32979         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32980         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32981         * modules/unistdio/u32-u32-asnprintf:
32982         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32983         * modules/unistdio/u32-u32-sprintf:
32984         * modules/unistdio/u32-u32-vasnprintf:
32985         * modules/unistdio/u32-u32-vasprintf:
32986         * modules/unistdio/u32-u32-vsnprintf:
32987         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32988         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32989         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32990         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32991         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32992         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32993         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32994         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32995         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32996         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32997         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32998         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32999         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33000         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33001         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33002         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33003         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33004         * modules/unistr/u16-check, modules/unistr/u16-chr:
33005         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33006         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33007         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33008         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33009         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33010         * modules/unistr/u16-move, modules/unistr/u16-next:
33011         * modules/unistr/u16-prev, modules/unistr/u16-set:
33012         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33013         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33014         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33015         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33016         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33017         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33018         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33019         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33020         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33021         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33022         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33023         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33024         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33025         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33026         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33027         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33028         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33029         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33030         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33031         * modules/unistr/u32-next, modules/unistr/u32-prev:
33032         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33033         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33034         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33035         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33036         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33037         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33038         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33039         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33040         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33041         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33042         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33043         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33044         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33045         * modules/unistr/u8-check, modules/unistr/u8-chr:
33046         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33047         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33048         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33049         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33050         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33051         * modules/unistr/u8-next, modules/unistr/u8-prev:
33052         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33053         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33054         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33055         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33056         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33057         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33058         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33059         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33060         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33061         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33062         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33063         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33064         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33065         * modules/uniwbrk/base, modules/uniwbrk/table:
33066         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33067         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33068         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33069         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33070         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33071         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33072         * modules/uniwidth/width, modules/utf16-ucs4:
33073         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33074         * modules/utf8-ucs4-unsafe:
33075         Change maintainer from Bruno Haible to Daiki Ueno.
33076         This is my guess at the libunistring modules; please feel free
33077         to fix if I guessed incorrectly.
33078         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33079         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33080         * modules/areadlink, modules/array-list, modules/array-mergesort:
33081         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33082         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33083         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33084         * modules/binary-io, modules/bison-i18n, modules/btowc:
33085         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33086         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33087         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33088         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33089         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33090         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33091         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33092         * modules/closedir, modules/concat-filename, modules/copy-file:
33093         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33094         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33095         * modules/csharpcomp-script, modules/csharpexec:
33096         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33097         * modules/dprintf, modules/dprintf-posix, modules/dup:
33098         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33099         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33100         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33101         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33102         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33103         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33104         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33105         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33106         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33107         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33108         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33109         * modules/findprog, modules/findprog-lgpl, modules/floor:
33110         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33111         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33112         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33113         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33114         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33115         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33116         * modules/freadable, modules/freadahead, modules/freadptr:
33117         * modules/freadseek, modules/freopen, modules/frexp:
33118         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33119         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33120         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33121         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33122         * modules/ftello, modules/full-read, modules/full-write:
33123         * modules/fwritable, modules/fwriteerror, modules/gcd:
33124         * modules/get-rusage-as, modules/get-rusage-data:
33125         * modules/getdtablesize, modules/getrusage, modules/gettext:
33126         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33127         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33128         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33129         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33130         * modules/iconv, modules/iconv-h, modules/iconv_open:
33131         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33132         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33133         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33134         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33135         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33136         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33137         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33138         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33139         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33140         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33141         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33142         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33143         * modules/lib-symbol-visibility, modules/libsigsegv:
33144         * modules/linked-list, modules/linkedhash-list, modules/list:
33145         * modules/localcharset, modules/locale, modules/localeconv:
33146         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33147         * modules/log10, modules/log10-ieee, modules/log10f:
33148         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33149         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33150         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33151         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33152         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33153         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33154         * modules/logf, modules/logf-ieee, modules/login_tty:
33155         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33156         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33157         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33158         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33159         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33160         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33161         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33162         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33163         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33164         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33165         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33166         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33167         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33168         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33169         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33170         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33171         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33172         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33173         * modules/posix_spawn, modules/posix_spawn-internal:
33174         * modules/posix_spawn_file_actions_addclose:
33175         * modules/posix_spawn_file_actions_adddup2:
33176         * modules/posix_spawn_file_actions_addopen:
33177         * modules/posix_spawn_file_actions_destroy:
33178         * modules/posix_spawn_file_actions_init:
33179         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33180         * modules/posix_spawnattr_getpgroup:
33181         * modules/posix_spawnattr_getschedparam:
33182         * modules/posix_spawnattr_getschedpolicy:
33183         * modules/posix_spawnattr_getsigdefault:
33184         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33185         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33186         * modules/posix_spawnattr_setschedparam:
33187         * modules/posix_spawnattr_setschedpolicy:
33188         * modules/posix_spawnattr_setsigdefault:
33189         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33190         * modules/pow, modules/powf, modules/printf-frexp:
33191         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33192         * modules/progname, modules/propername, modules/pselect:
33193         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33194         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33195         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33196         * modules/read, modules/readdir, modules/readlink:
33197         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33198         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33199         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33200         * modules/relocatable-script, modules/remainder:
33201         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33202         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33203         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33204         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33205         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33206         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33207         * modules/setlocale, modules/sh-quote, modules/shutdown:
33208         * modules/signal, modules/signbit, modules/sigpipe:
33209         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33210         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33211         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33212         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33213         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33214         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33215         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33216         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33217         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33218         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33219         * modules/streq, modules/strerror_r-posix, modules/striconv:
33220         * modules/striconveh, modules/striconveha, modules/strncat:
33221         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33222         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33223         * modules/sys_wait, modules/system-posix, modules/system-quote:
33224         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33225         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33226         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33227         * modules/truncf, modules/truncf-ieee, modules/truncl:
33228         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33229         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33230         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33231         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33232         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33233         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33234         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33235         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33236         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33237         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33238         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33239         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33240         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33241         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33242         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33243         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33244         * modules/write, modules/xconcat-filename, modules/xlist:
33245         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33246         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33247         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33248         * modules/y0, modules/y1, modules/yn:
33249         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33250         change the maintainer to 'all'.  Let's hope someone volunteers.
33252 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33254         mktime: merge #if/#ifdef usage from glibc
33255         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33256         as that works with both Glibc's and Gnulib's style.
33257         See thread starting at Siddhesh Poyarekar's bug report at:
33258         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33260 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33262         git-version-gen: improve option descriptions
33263         * build-aux/git-version-gen: Mention that --prefix and --fallback
33264         have a mandatory argument.
33266 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33268         regex: fix memory leak in compiler
33269         Fix by Andreas Schwab in:
33270         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33271         * lib/regcomp.c (parse_expression): Deallocate partially
33272         constructed tree before returning error.
33274         regex: merge patch from libc
33275         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33276         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33277         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33279 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33281         acl: port to gcc -Wredundant-decls
33282         From a request by Dmitry Antipov in:
33283         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33284         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33285         "#ifndef _GL_ACL_H".
33287 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33288         Jim Meyering  <meyering@fb.com>
33290         parse-duration: eliminate 68-year duration limit
33291         * lib/parse-duration.c: Include "intprops.h".
33292         (TIME_MAX): Rename to MAX_DURATION and define to
33293         TYPE_MAXIMUM(time_t).
33294         * modules/parse-duration (Depends-on): Add intprops.
33295         Reported by Jonas 'Sortie' Termansen.
33297 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33299         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33300         * modules/pthread (Depends-on): Add 'extensions', as it defines
33301         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33302         (configure.ac-early): New section.
33303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33304         it is no longer needed.
33306 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33308         pthread: define thread-safe macros on some platforms
33309         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33310         for thread-safe operation on some platforms.
33312 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33314         regex: don't be multithreaded if USE_UNLOCKED_IO.
33315         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33316         * lib/regex_internal.h: Do not use multithreaded version if
33317         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33318         around a porting bug with coreutils 8.22 on AIX 7.1.
33320 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33322         gettext: update macros to version 0.19
33323         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33324         depend on gl_EXTERN_INLINE and drop support for older Bison
33325         versions.
33327 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33329         select,poll: fix console handle check on windows 8
33330         lib/poll.c (IsConsoleHandle): Change from testing the lower
33331         2 bits of the handle to the more expensive but accurate syscall.
33332         lib/select.c: Likewise.
33334 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33336         select: fix waiting on anonymous pipes on MS-Windows
33337         * lib/select.c (rpl_select): Fall back to polling when select()
33338         indicates there is nothing to check, while due to the timeout not
33339         expiring, activity is indicated on one of the handles.
33340         Also clear the TIMEOUT argument if the timer does expire.
33342 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33344         times: fix to return non constant value on MS-Windows
33345         * lib/times.c (times): Don't use the process creation time,
33346         rather clock() which on windows returns the number of
33347         clock ticks since the process started.
33349 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33351         isatty: fix to work on windows 8
33352         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33353         2 bits of the handle to the more expensive but accurate syscall.
33355 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33357         maint: fix typo in fdl.texi
33358         * doc/fdl.texi: Fix typo (missing '@').
33359         Somehow this was in fdl.texi but not fdl-1.3.texi.
33361 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33363         mountlist: avoid hasmntopt const type warning on solaris
33364         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33365         with char * instead of const char *.  Passing the constant string
33366         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33367         to avoid the warning.
33369 2014-06-04  Eric Blake  <eblake@redhat.com>
33371         maintainer-makefile: delete obsolete code
33372         * top/maint.mk (build_aux): Drop old code, as threatened.
33374         maintainer-makefile: avoid spurious error messages
33375         * top/maint.mk (syntax-check): Guard definition and use of
33376         $(shell) by whether Makefile is present.
33378 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33380         rename: avoid unused-but-set-variable compiler warning
33381         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33382         it is possible that dst_exists may be set but not used.  Mark it with
33383         the unused attribute to avoid compiler warnings.
33385 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33387         rename: mark a label as potentially unused
33388         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33389         by marking the out label as potentially unused.
33390         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33392 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33394         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33395         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33397 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33399         acl: apply pure attribute to two functions
33400         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33401         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33403 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33405         gnulib-common.m4: add _GL_UNUSED_LABEL
33406         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33407         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33409 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33411         dup2, fcntl, fcntl-h: port to AIX 7.1
33412         This fixes some porting problems discovered when testing the latest
33413         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33414         in grep but it could be important for other applications.
33415         * doc/posix-functions/dup2.texi:
33416         * doc/posix-functions/fcntl.texi:
33417         * doc/posix-headers/fcntl.texi:
33418         Document AIX bugs.
33419         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33420         Define to 0 if outside 'int' range.
33421         * m4/dup2.m4 (gl_FUNC_DUP2):
33422         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33423         Check for getdtablesize.  If it's available, test a value just
33424         outside its range instead of testing 1000000.  When cross-compiling,
33425         guess that AIX will fail this improved test.
33427 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33429         printf, config.rpath: Port to FreeBSD 10.
33430         Problem reported by Tijl Coosemans in:
33431         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33432         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33433         (hardcode_direct): Simplify FreeBSD configuration.
33434         (library_names_spec): Don't mishandle FreeBSD 10+.
33435         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33436         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33437         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33438         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33439         Don't mishandle FreeBSD 10+ when cross-compiling.
33441         ftoastr: work around compiler bug in IBM xlc 12.1
33442         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33443         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33444         around a compiler bug in IBM xlc 12.1.0.0: it complains
33445         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33446         _GL_FLT_PREC_BOUND.'
33448 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33450         valgrind-tests: fixed misleading help message
33451         * m4/valgrind-tests.m4: The help message generated by configure
33452         implied that valgrind was disabled by default, which it wasn't.
33453         Adjusted the help message using s/enable/disable/ to clarify.
33455 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33457         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33458         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33459         first double of a PowerPC "double double" pair.
33460         * tests/test-isinf.c (test_isinfl): Likewise.
33461         * tests/test-isnan.c (test_long_double): Likewise.
33462         * tests/test-isnanl.h (main): Likewise.
33463         * tests/test-signbit.c (test_signbitl): Likewise.
33465 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33467         exclude-tests: port to AIX 7.1
33468         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33469         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33470         the regex code uses locks.
33472 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33474         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33475         Without this fix, Emacs would sometimes call sigprocmask instead
33476         of pthread_sigmask, which is a no-no in multithreaded applications.
33477         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33478         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33479         Suppress check for pthread_sigmask working without -lpthread if
33480         the application always links with -lpthread.  Do not link with
33481         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33482         * m4/timer_time.m4 (gl_TIMER_TIME):
33483         Require gl_THREADLIB only if it is defined.  Do not append
33484         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33486 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33488         gnulib-tool: wget translations using --no-verbose rather than --quiet
33489         This allows the user to see error messages if any (--quiet hides them)
33490         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33492 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33494         gnulib-tool: adjust translation wget to avoid a https redirection
33495         Context: http://translationproject.org/latest/gnulib redirects to
33496            https://translationproject.org/latest/gnulib/
33497         Rationale: if the user falls back to wget, she doesn't have rsync and
33498         is probably in a minimal build environment, where packages such as
33499         'ca-certificates' are missing as well, resulting in a failed (and
33500         difficult to detect since ignored) translation initial fetch.
33501         Consequently let's avoid https if possible, and add the missing
33502         trailing slash.  This also avoids an unnecessary 302 redirection.
33503         * gnulib-tool: Add trailing slash to gnulib URL.
33505 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33507         getlogin_r-tests: check return value rather than errno
33508         * tests/test-getlogin_r.c (main): As per POSIX we should be
33509         verifying the return value from getlogin_r() rather than errno.
33511 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33513         getlogin_r-tests: fix various issues in recent change
33514         * tests/test-getlogin_r.c: Include required headers that were
33515         missed in recent commit eec20b4e.
33516         Also consistently check the errno rather than the return value from
33517         getlogin_r as POSIX only specifies that non zero is returned on error.
33518         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
33520 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33522         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
33523         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
33524         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
33525         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
33526         * lib/spawn-pipe.c:
33527         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
33528         and then 'int open64(const char *, int, ...);', which means the
33529         declaration for 'open' gets lost if we later '#undef open'.
33530         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
33531         where the compilation reported the non-fatal error "In function
33532         'openat_proc_name' ... warning: implicit declaration of function
33533         'open'".  In this case the error is relatively harmless, but in
33534         other cases it might not be so minor.
33536 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33538         xalloc: don't potentially generate invalid code for xmemdup calls
33539         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
33540         this function can initialize the newly-allocated storage with new
33541         pointers, which means this function is not malloc-like.  See:
33542         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
33544 2014-05-19  Pádraig Brady  <P@draigBrady.com>
33546         getlogin_r-tests: avoid false failure under sudo/ssh etc.
33547         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
33548         changes from commit 97249cf29 to not depend on environment variables.
33550 2014-05-18  Pádraig Brady  <P@draigBrady.com>
33552         getlogin-tests: avoid false failure under cron
33553         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
33554         since that's not what's under test.  Centos 6 was seen to return
33555         EINVAL for ttyname() when run from cron.
33557 2014-05-16  Jim Meyering  <meyering@fb.com>
33559         mbrtowc.m4: fix a comment typo
33560         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
33561         emitted documentation string.
33563 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33565         mbrlen, mbrtowc: fix bug with empty input
33566         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
33567         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
33568         so this is mainly for documentation.
33569         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
33570         (gl_FUNC_MBRTOWC): Use it.
33571         * tests/test-mbrtowc.c (main): Test for the bug.
33573 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33575         doc: document mbrtowc and mbrlen problem with empty input
33576         * doc/posix-functions/mbrlen.texi (mbrlen):
33577         * doc/posix-functions/mbrtowc.texi (mbrtowc):
33578         Document portability problem when the input string is empty.  See:
33579         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
33581         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
33582         Problem reported by Eli Zaretskii in:
33583         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
33584         * doc/posix-functions/execl.texi (execl):
33585         * doc/posix-functions/execle.texi (execle):
33586         * doc/posix-functions/execlp.texi (execlp):
33587         * doc/posix-functions/execv.texi (execv):
33588         * doc/posix-functions/execve.texi (execve):
33589         * doc/posix-functions/execvp.texi (execvp):
33590         Mention spawn+exit problem on non-Cygwin Windows platforms.
33592 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33594         getlogin-tests: avoid false failure under sudo/ssh etc.
33595         * modules/getlogin-tests (configure.ac): Check for ttyname().
33596         * tests/test-getlogin.c (main): Don't depend on environment variables
33597         to correlate with getlogin(), since sudo and ssh etc. can tamper
33598         with the LOGNAME and USER env vars.  Instead lookup the name from
33599         the uid associated with the stdin tty.
33601 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33603         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33604         These were found when building the latest grep snapshot on IRIX 6.5.
33605         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33606         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33607         never used later.
33608         * lib/quotearg.c (quoting_options_from_style):
33609         * lib/xstrtol.c (__xstrtol):
33610         Use enum instead of 0, to pacify IRIX 6.5 cc.
33612 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33614         gitlog-to-changelog: revert inclusion of git-log-fix file
33615         * build-aux/git-log-fix: Delete dummy file.
33616         * modules/gitlog-to-changelog: Don't reference (overwrite)
33617         the project specific git-log-fix file.
33619 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33621         maint.mk: Relax the copyright check to cater for non FSF projects
33622         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33623         to not require the "Free" suffix after the copyright years.
33625 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33627         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33628         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33629         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33630         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33631         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33633 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33635         exclude: port to strict C99
33636         Strict C does not allow converting a function pointer to void *
33637         and vice versa.  Pass a pointer to a function pointer instead.
33638         * lib/exclude.c (add_exclude_file):
33639         Pass the address of the function pointer.
33640         (call_addfn): And deference the address here, to match.
33642 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33644         regex: do not depend on malloc-gnu
33645         * modules/regex (Depends-on): Remove malloc-gnu.
33646         It's no longer needed, because of the 2012-12-29 patch
33647         "regex: port to hosts where malloc (0) == NULL".
33648         Reported by Nathan Kennedy in:
33649         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33651 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33653         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33654         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33655         * doc/posix-functions/expl.texi: Mention the workaround.
33657 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33659         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33660         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33661         size to be zero even when the pointer is nonnull.  This
33662         accommodates the use case where P is malloc (0) and *PN is 0 on a
33663         host where malloc (0) yields nonnull.
33665 2014-04-09  Eric Blake  <eblake@redhat.com>
33667         fts: avoid unnecessary strlen calls
33668         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33670 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33672         fts: avoid unnecessary strlen calls
33673         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33674         when that can be faster than strlen.
33676 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33678         fts: avoid unnecessary strlen calls
33679         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33680         (fts_build): Store the length of the dp->d_name entry in a local variable
33681         instead of calling strlen() several times via the above, removed macro.
33682         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33683         run by ~4%, yet this reduces the execution time by about a third if run
33684         via "ltrace -c rm -rf some-dir".
33686 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33688         obstack: Remove ancient NeXTSTEP gcc support conditional
33689         This change will ease merging with glibc.  The "#if ... __NEXT__"
33690         causes a warning with -Wundef which glibc now enables by default.
33691         Problem reported by Will Newton in
33692         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33693         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33694         so go with that.
33695         * lib/obstack.h (__extension__):
33697 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33699         obstack: merge with glibc changes
33700         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33701         This is mostly indenting and commentary changes.
33702         Instances of 'register' have been removed.
33704 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33706         strftime: wrap macros in "do {...} while(0)"
33707         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33708         this macro in "do {...} while(0)" to prevent false use as a
33709         single statement, e.g., in an un-braced "{}" else-block.
33710         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33711         (strftime_case_): Remove 'else' after 'goto' - which was the
33712         only non-fatal, un-braced use of one of the above macros.
33713         Spotted by coverity (NESTING_INDENT_MISMATCH).
33715 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33717         modechange: avoid memory leaks for invalid octal modes
33718         * lib/modechange.c (mode_compile): During the parsing of
33719         notations like +40, free the 'mc' buffer for invalid mode
33720         strings like +17777 (greater than the maximum octal mode),
33721         =18 (bad octal mode characters) or u=1 ('affected' with
33722         octal modes).
33723         Reproducer, e.g.:
33724             $ valgrind --leak-check=full chmod +17777 file
33725         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33726         add notations +40, 00440, etc.".
33727         Spotted by coverity (RESOURCE_LEAK).
33729 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33731         gitlog-to-changelog: include a dummy git-log-fix file
33732         Problem reported by Nathan Stratton Treadway in:
33733         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33734         * build-aux/git-log-fix: New file.
33736 2014-03-13  Jim Meyering  <meyering@fb.com>
33738         gitlog-to-changelog: also include the file, git-log-fix
33739         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33740         Reported by Assaf Gordon.
33742 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33744         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33745         This fixes a bug when ignoring case and when comparing the
33746         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33747         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33748         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33749         titlecase letter is neither lowercase nor uppercase, but
33750         uppercasing the titlecase letter (via towupper) yields the
33751         uppercase letter, so the two letters should match when ignoring case.
33752         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33753         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33754         Don't test whether a character is lowercase before uppercasing it.
33756 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33758         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33759         This is basically one of the options Bruno Haible proposed in:
33760         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33761         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33762         * lib/stdint.in.h: Use it.
33763         * modules/stdint (Depends-on): Add sys_types.
33765 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33767         parse-datetime: fix crash or infloop in TZ="" parsing
33768         * lib/parse-datetime.y (parse_datetime): Break out of the
33769         TZ="" parsing loop once the second significant " is found.
33770         Also skip over any subsequent whitespace to be consistent
33771         with the non TZ= case.
33772         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33774 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33776         savedir: new symbol for fast-read version
33777         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33778         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33779         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33780         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33782 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33784         unistd: port readlink to Mac OS X 10.3.9
33785         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33786         around self-include problem in Mac OS X 10.3.9 when combined with
33787         readlink module.  Problem reported by Klaus Zietler in
33788         <http://bugs.gnu.org/16825>.
33790 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33792         diffseq: remove TOO_EXPENSIVE heuristic
33793         Problem with diffutils reported by Vincent Lefevre in
33794         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33795         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33796         Although appropriate for circa-1993 hardware, these days the heuristic
33797         seems to be more trouble than it's worth.
33798         * lib/diffseq.h: Modernize citations.
33799         (struct context): Remove member too_expensive.
33800         All uses changed.
33801         (struct partition): Remove members lo_minimal, hi_minimal.
33802         All uses changed.
33803         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33804         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33805         1993 to make 'diff' run faster (but not as well) on large inputs.
33806         These days, computers are fast enough that it's typically better
33807         to run slower but more accurately.
33808         * lib/fstrcmp.c: Remove duplicate comment.
33809         * lib/fstrcmp.c (strcmp_bounded):
33810         * lib/git-merge-changelog.c (compute_differences):
33811         Adjust to diffseq.h changes.
33812         * NEWS: Document the change.
33814         savedir: simplify by using stpcpy
33815         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33816         (streamsavedir): Use stpcpy instead.
33817         * modules/savedir (Depends-on): Add stpcpy.
33819 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33821         spawn: fix link error on uclibc
33822         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33823         to incorporate -lrt if needed (on uclibc for example).
33824         * modules/posix_spawn: Reference the substituted LIB.
33826 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33827         timer: fix uClibc detection of threading
33828         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33829         enabled in uClibc.
33831 2014-02-21  Eric Blake  <eblake@redhat.com>
33833         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33834         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33836 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33838         exclude: add support for posix regexps
33840         This commit adds support for POSIX extended regular expressions
33841         and fixes a long-standing memory leak (pattern buffer was never
33842         freed).  It also implements a new interface function to read
33843         exclude patterns from a FILE, which passes an additional parameter
33844         to its callback function, thereby allowing to preserve its state
33845         between invocations.
33847         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33848         (pattern_buffer): New struct.
33849         (exclude): New member patbuf.
33850         (exclude_add_pattern_buffer): New function.
33851         (free_exclude_segment): Free regexps.
33852         (free_exclude): Free allocated pattern buffers.
33853         (exclude_patopts): New function.
33854         (file_pattern_matches): Use exclude_patopts.
33855         (add_exclude): support regexps.
33856         (add_exclude_fp): New function.
33857         (add_exclude_file): Rewrite using add_exclude_fp.
33858         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33859         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33860         (add_exclude_fp)
33861         (add_exclude_file): Rewrite using add_exclude_fp.
33862         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33863         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33864         (add_exclude_fp)
33865         (exclude_add_pattern_buffer): New prototypes.
33866         * modules/exclude: Depends on regex and filename.
33868 2014-02-20  Eric Blake  <eblake@redhat.com>
33870         maintainer-makefiles: use $(SED) for syntax check
33871         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33872         * top/maint.mk: Change sed to $(SED).
33874 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33875             Paul Eggert  <eggert@cs.ucla.edu>
33877         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33878         Patch based on an idea by Dick Streefland in
33879         <https://savannah.gnu.org/patch/?7892>.
33880         * NEWS: Document this.
33881         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33882         (direntry_t, comparison_function): New types.
33883         (direntry_cmp_name): New function.
33884         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33885         (streamsavedir, savedir): New arg OPTION.
33886         (streamsavedir): Simplify memory allocation.
33887         (fdsavedir): Remove.
33888         * lib/savedir.h (enum savedir_option): New type.
33889         (streamsavedir, savedir): New arg OPTION.
33890         (fdsavedir): Remove.
33892 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33894         file-type: add support for doors and other less-common file types
33895         Problem with S_ISDOOR reported by Rich Burridge.
33896         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33897         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33898         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33900 2014-01-23  Eric Blake  <eblake@redhat.com>
33902         pthread: work around winpthread header pollution on mingw
33903         * lib/time.in.h: Move pthread workarounds...
33904         * lib/pthread.in.h: ...here.
33905         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33906         detect macro pollution on mingw.
33907         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33909 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33911         qacl: check for fchmod
33912         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33913         and qset-acl.c both use HAVE_FCHMOD.
33915 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33917         fdopen-tests: port to Tru64
33918         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33919         descriptor that is not open, as POSIX doesn't specify the
33920         resulting behavior and the test does not work on Tru64.
33921         Problem reported by Steven M. Schweda in:
33922         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33924         stdalign: port to HP-UX compilers
33925         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33926         if __HP_cc or __HP_aCC are nonzero.
33928 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33930         strtoimax: port to platforms lacking 'long long'
33931         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33932         check whether strtoll is declared, which causes the C file to
33933         wrongly report an error.  Problem reported by Steven M. Schweda in:
33934         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33935         * lib/strtoimax.c (strtoull):
33936         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
33937         (strtoll): Declare only if HAVE_LONG_LONG_INT.
33939 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
33941         relocatable-perl: fix texi syntax
33942         * doc/relocatable-maint.texi: Escape braces.
33944 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
33946         relocatable-perl: like relocatable-script, but for Perl scripts
33947         * build-aux/relocatable.pl.in: Add.
33948         * doc/relocatable-maint.texi: Add documentation.
33949         * modules/relocatable-perl: Add.
33951 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33953         tests: fix export bug in previous patch
33954         Problem reported by Jim Meyering.
33955         * tests/init.sh (re_shell): New var, which is exported instead of
33956         re_shell_.
33958         tests: simplify porting to Solaris 10 /bin/sh
33959         Some test cases in 'grep' need a shell that groks '$(';
33960         export re_shell_ for their benefit.  Problem reported for 'grep'
33961         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33962         * tests/init.sh (re_shell_): Export if it's used.
33964 2014-01-06  Eric Blake  <eblake@redhat.com>
33966         md5, sha1, sha256, sha512: support older autoconf
33967         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33968         for autoconf < 2.63b.
33970         include_next: port to autoconf 2.63
33971         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33973 2014-01-04  Jim Meyering  <meyering@fb.com>
33975         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33976         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33977         so that "make sc_maint" will ding anyone who puts non-ascii
33978         in any of gnulib's .texi files.
33980 2014-01-03  Jim Meyering  <meyering@fb.com>
33982         freadable, fwritable, fwriting: declare with the "pure" attribute
33983         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33984         * lib/fwritable.h (fwritable): Likewise.
33985         * lib/fwriting.h (fwriting): Likewise.
33986         Suggested by Bruno Haible.
33988         maint.mk: adapt openat.h-include-without-use test
33989         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33990         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33991         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33992         With this change, running "make sc_maint" in gnulib's top-level
33993         directory now passes for me.
33995 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33997         doc: use ASCII in .texi files where UTF-8 isn't needed
33998         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33999         * doc/posix-functions/setkey.texi, doc/regex.texi:
34000         Use ASCII input, not UTF-8.
34002 2014-01-02  Jim Meyering  <meyering@fb.com>
34004         freading: declare with the "pure" attribute
34005         * lib/freading.h (freading): Declare with the "pure" attribute.
34007         manywarnings: remove -Wmudflap
34008         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34009         it is no longer supported in gcc-4.9-to-be.
34011 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34013         relocatable-script: remove unused code
34014         Problem reported by Reuben Thomas in:
34015         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34016         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34018 2014-01-01  Jim Meyering  <meyering@fb.com>
34020         maint: fix public-submodule-commit to work with newer git
34021         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34022         We were over-quoting the test arguments, and somewhere prior to
34023         version 1.8.5.2.229, git stopped removing those excess quotes,
34024         which made the test fail, since the unexpanded strings would
34025         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34026         command wasn't even being run.
34028 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34030         doc: update main copyright year
34031         * doc/gnulib.texi: Update copyright date.
34033 2014-01-01  Eric Blake  <eblake@redhat.com>
34035         version-etc: new year
34036         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34037         * all files: run 'make update-copyright'
34039 2013-12-24  Eric Blake  <eblake@redhat.com>
34041         passfd: give nicer error for recvfd at eof
34042         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34043         * tests/test-passfd.c (main): Enhance test to cover this.
34045 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34047         gettimeofday: port recent C++ fix to Emacs
34048         Without this further patch, Emacs won't build due to
34049         the portcheck failing.  Also, this simplifies the patch a bit.
34050         * lib/time.in.h (localtime, gmtime): Don't replace unless
34051         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34052         * lib/time.in.h (localtime, gmtime):
34053         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34054         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34055         * modules/time (time.h):
34056         Don't worry about the possibility of localtime and gmtime
34057         being absent; they're present in all C libraries we know about.
34058         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34059         Don't assume sys_time is present and has been initialized.
34060         Instead, use a hack that should work even if it hasn't been.
34061         Don't use a portcheck for gmtime or localtime; this supports
34062         the hack.
34063         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34065 2013-12-17  John W. Eaton  <jwe@gnu.org>
34067         gettimeofday: fix C++ crosscompilation
34069         Never replace gmtime and localtime by macros when compiling with
34070         C++, this prevents <ctime> from being included.
34072         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34073         define gmtime and localtime as preprocessor macros.  Instead
34074         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34075         REPLACE_LOCALTIME substitutions.
34076         * lib/time.in.h: Declare gmtime and localtime when needed.
34077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34078         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34079         * modules/time: Depend on gettimeofday, and substitute the above
34080         variables in time.h.
34082 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34084         qacl: port to Windows better
34085         See Eli Zaretskii in
34086         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34087         * lib/file-has-acl.c (acl_access_nontrivial):
34088         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34089         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34091 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34093         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34094         * lib/gl_openssl.h: Cast void pointers to a specific type.
34096 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34098         open-tests: fix build failure with -Werror=old-style-declaration
34099         * tests/test-open.h: Reorder the inline to avoid the issue.
34101 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34103         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34104         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34105         init time, so that if early checks find crypto routines,
34106         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34107         avoiding link failures.
34109 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34111         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34112         This provides a new way to specify the default for
34113         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34114         Emacs uses this, as well as the old way.
34115         This attempts to implement a suggestion by Pádraig Brady in
34116         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34117         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34118         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34120         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34121         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34122         Add support for a new option, --with-openssl=auto, which causes
34123         the library to be used if available and silently ignored if not.
34124         Add support to allow configure.ac to specify its own
34125         default, by setting with_openssl_default before invoking gl_INIT.
34127 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34129         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34130         Problem reported by Daiki Ueno in:
34131         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34132         * tests/test-open.h (__always_inline):
34133         New macro, if not already defined.
34134         (test_open): Use it.
34136 2013-12-04  Eric Blake  <eblake@redhat.com>
34138         include_next: minimize code duplication
34139         * modules/include_next (Depends-on): Add absolute-header.
34140         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34141         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34143 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34145         getcwd: fix compile error in configure check
34146         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34148 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34150         regex: suppress core dumps from detection code
34151         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34152         to suppress core dumps that may well occur on glibc systems.
34153         These core dumps might not be cleaned up automatically, or could
34154         trigger some system core dump handling logic.
34156 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34158         md5, sha1, sha256, sha512: support mandating use of openssl
34159         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34160         description, to list the now 3 separate options.  also don't
34161         mention the default=no, since this is implicit given the option
34162         is described as --with-openssl rather than --without-openssl.
34163         If projects change the default they're free to document that.
34164         with --with-openssl[=yes] we now error out when the specified
34165         hash algorithm is not available in libcrypto.
34167 2013-12-03  Ivailo  <xakepa10@gmail.com>
34169         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34170         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34171         -Wformat-nonliteral checks, as these edge cases are part of the test.
34173 2013-12-03  Eric Blake  <eblake@redhat.com>
34175         regex: avoid glibc deadlock during configure
34176         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34177         glibc bug 15078 in turn triggers bug 16159.
34178         Reported by Michal Privoznik.
34180 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34182         md5, sha1, sha256, sha512: use openssl routines if available.
34183         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34184         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34185         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34186         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34187         in the standard system location.
34188         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34189         * m4/sha256.m4: Likewise with SHA256.
34190         * m4/sha512.m4: Likewise with SHA512.
34191         * m4/md5.m4: Likewise with MD5.
34192         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34193         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34194         * lib/sha256.h: Likewise with SHA256.
34195         * lib/sha512.h: Likewise with SHA512.
34196         * lib/md5.h: Likewise with MD5.
34197         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34198         * lib/sha256.c: Likewise with SHA256.
34199         * lib/sha512.c: Likewise with SHA512.
34200         * lib/md5.c: Likewise with MD5.
34201         * modules/crypto/sha1 (Link:): Add the new optional lib.
34202         (Depends-on:): Add dependency on extern-inline.
34203         * modules/crypto/sha256: Likewise.
34204         * modules/crypto/sha512: Likewise.
34205         * modules/crypto/md5: Likewise.
34206         * modules/crypto/sha1-tests: Reference the lib here too.
34207         * modules/crypto/md5-tests: Likewise.
34208         * modules/crypto/gc-des-tests: Likewise.
34209         * modules/crypto/gc-hmac-md5-tests: Likewise.
34210         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34211         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34212         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34213         * modules/crypto/gc-md5-tests: Likewise.
34214         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34215         * modules/crypto/gc-sha1-tests: Likewise.
34216         * modules/crypto/gc-tests: Likewise.
34217         * modules/crypto/hmac-md5-tests: Likewise.
34218         * modules/crypto/hmac-sha1-tests: Likewise.
34219         * modules/crypto/hmac-sha256-tests: Likewise.
34220         * modules/crypto/hmac-sha512-tests: Likewise.
34222 2013-11-29  RV1971  <rv1971@web.de>
34224         base64: (trivial) fix compilation regression on some compilers
34225         * lib/base64.c: Don't return the void function,
34226         instead split to a separate return statement.
34228 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34230         ignore-value: revert previous code change
34231         * lib/ignore-value.h (ignore_value): Use __extension__ and
34232         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34233         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34234         Change the comment to try to explain this better.
34236 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34238         selinux-h: improve stub types and add more stub functions
34240         * lib/se-selinux.in.h: Change security_context_t to a typedef
34241         rather than a define, as it's a pointer type and so is better
34242         as a typedef to avoid issues declaring multiple variables
34243         with the comma operator.  Also add stub for string_to_security_class().
34244         * lib/se-context.in.h: Add stub functions for
34245         context_{type,range,role,user}_get().
34247 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34249         ignore-value: prefer GCC version back through 2.0
34250         The code didn't match the comments, so I did a bit of software
34251         archaeology.  GCC 2.0 seems to support __extension__ and
34252         __typeof__, so fix both code and comments to use 2.0.
34253         * lib/ignore-value.h (ignore_value): Use __extension__ and
34254         __typeof__ for GCC 2.0 through 3.3, too.
34256 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34258         pty: Activate the signature wrapper of forkpty.
34259         The intended preprocessor macro HAVE_FORKPTY is
34260         never defined, yet `lib/forkpty.c' depends on it.
34262         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34263         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34264         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34266 2013-11-18  Jim Meyering  <meyering@fb.com>
34267         and Paul Eggert  <eggert@cs.ucla.edu>
34269         quotearg: don't attempt to store 1 << 31 into an "int"
34270         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34271         gcc's new -fsanitize=undefined and running its tests triggered some
34272         new test failures due to undefined behavior, all with this diagnostic:
34273           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34274             cannot be represented in type int
34275         Rather than shifting "1" left to form a mask, shift the bits right and
34276         simply use "1" as the mask.
34278 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34280         error: depend on stdio
34281         Problem reported by Nikos Mavrogiannopoulos in
34282         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34283         * modules/error (Depends-on): Add stdio.
34285 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34287         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34288         wording.
34289         Reported by Reuben Thomas <rrt@sc3d.org>.
34291 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34293         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34294         New function and macro, to work around _DARWIN_C_SOURCE problem.
34295         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34297 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34299         base64: provide a fast path for encoding well sized buffers
34300         Avoid conditionals in the base64 encoding loop,
34301         which was seen to give 60% better throughput.
34302         * lib/base64.c (base64_encode_fast): A new function to be called
34303         when we don't want to NUL terminate, and we have enough space
34304         in the output to encode the given input.
34305         (base64_encode): Call the _fast() version when appropriate.
34306         Also remove a redundant mask with 0x3F on the first encoded byte.
34308 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34310         extern-inline: port better to OS X 10.9
34311         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34312         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34313         OS X 10.9, except for g++ where the bug is still present.
34314         See <http://trac.macports.org/ticket/41033>.
34316 2013-11-08  Eric Blake  <eblake@redhat.com>
34318         fpending: fix regression on DragonFly BSD
34319         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34320         * lib/fpending.h (__fpending): Don't declare twice.
34321         Reported by GW in
34322         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34324 2013-11-05  Jim Meyering  <meyering@fb.com>
34326         hash: relax license to LGPLv2+, for libguestfs
34327         * modules/hash (License): Change from GPL to LGPLv2+.
34329 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34331         intprops: port to Oracle Studio c99
34332         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34333         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34335 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34337         obstack: pacify HP C
34338         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34339         warning "conversion from pointer to smaller integer" from HP
34340         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34341         C89 or later nowadays, so cast to void instead of int.  Privately
34342         reported by H.Merijn Brand.  Also, change header to match glibc's,
34343         to make checking against glibc easier.
34345 2013-10-29  Jim Meyering  <meyering@fb.com>
34347         maint.mk: prefer gpgv2 over gpgv
34348         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34349         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34350         Reported by Gary Vaughan.
34352 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34354         isnan: port to VAX
34355         Reported by John Klos for NetBSD-5/VAX in
34356         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34357         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34358         (FUNC): Use it.
34360 2013-10-28  Jim Meyering  <meyering@fb.com>
34362         gnulib-tool: protect against CDPATH
34363         * gnulib-tool: Many "cd" built-in functions print a directory name
34364         to stdout when CDPATH is set, e.g.,
34365           $ bash -c 'CDPATH=/; cd tmp'
34366           /tmp
34367         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34369         maint.mk: restore functionality removed by recent change...
34370         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34371         the context of a shallow-cloned gnulib repository: "git describe"
34372         would fail in such a directory.  However, that change made it so
34373         the reported gnulib revision no longer includes the version number
34374         or a commit count, even when run from a full clone.
34375         * top/maint.mk (gnulib-version): Use the full "git describe"
34376         output when possible, e.g., the form above, rather than the
34377         abbreviated, no-tag, no-commit-count string, and fall back to
34378         using a 10-byte hash, rather than the default minimal-length
34379         hash prefix, since while the minimal-length one may be fine today,
34380         it is likely not to be unique for very long.
34382 2013-10-26  Jim Meyering  <meyering@fb.com>
34384         maint.mk: fix "release" target to build _version
34385         This fixes a bug in README-release whereby following the outlined
34386         steps, one would publish a tarball whose programs would report
34387         --version output not consistent with the package version number.
34388         This bug caused grep-2.15 to produce a grep program whose
34389         --version option made it print 2.14.56-1e3d rather than 2.15.
34390         * top/maint.mk (release): Making this target build "_version"
34391         ensures that the new version number is reflected in configure.
34393 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34395         install-reloc: Support multi-binary installation.
34396         * build-aux/install-reloc: Support installing multiple programs in
34397         one invocation, as done by Automake starting with commit
34398         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34399         Haible <bruno@clisp.org>, archived at
34400         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34401         Reported by Sylvain <beuc@gnu.org>.
34403 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34405         selinux-h: Really build without selinux when library is missing.
34406         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34407         continue without selinux, as already told in the warning message.
34409 2013-10-21  Jim Meyering  <meyering@fb.com>
34411         regex: also remove dependency on HAVE_WCSCOLL
34412         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34414 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34416         xfreopen: Fix typo. s/frepoen/freopen/
34417         * lib/xfreopen.c: Fix description.
34418         * modules/xfreopen: Likewise.
34420 2013-10-21  Jim Meyering  <meyering@fb.com>
34422         regex: don't depend on wcscoll
34423         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34424         It is no longer used.
34426 2013-10-20  Jim Meyering  <meyering@fb.com>
34428         error: add the printf attribute to a static function
34429         * lib/error.c (error_tail): Add the printf attribute, to placate
34430         gcc's -Werror=suggest-attribute=format option.
34432 2013-09-30  Jim Meyering  <meyering@fb.com>
34434         fpending, obstack, strerror-override: use pure+const function attrs
34435         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34436         * lib/obstack.c (_obstack_allocated_p): Likewise.
34437         * lib/obstack.h (_obstack_memory_used): Likewise.
34438         (_obstack_memory_used): Likewise.
34439         * lib/strerror-override.h (strerror_override): Declare with
34440         the "const" attribute.
34442 2013-10-18  Eric Blake  <eblake@redhat.com>
34444         extern-inline: make safe for -Wundef usage
34445         Reported by Vladimir 'phcoder' Serbinenko in
34446         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34447         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34449 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34451         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34452         Problem reported by Daniel Richard G. in
34453         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34454         * doc/posix-functions/mkfifo.texi (mkfifo):
34455         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34456         * doc/posix-functions/mknod.texi (mknod):
34457         * doc/posix-functions/mknodat.texi (mknodat):
34458         Document the HP-UX 11.11 bug.
34459         * tests/test-mkfifo.h (test_mkfifo):
34460         Allow the HP-UX 11.11 bug.
34462 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34464         acl: allow cross-compilation to Gentoo
34465         Problem reported by Gabriel Marcano in
34466         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34467         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34468         test only whether it links.
34470 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34472         mgetgroups: remove dependency on realloc-gnu
34473         The dependency violates the comment in realloc-gnu, which
34474         says that tests can't depend on realloc-gnu; some tests depend
34475         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34476         Problem reported by Daniel Richard G. in
34477         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34478         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34479         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34480         not realloc-gnu.
34482 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34484         regex-tests: port to HP-UX 11.11
34485         Problem reported by Daniel Richard G. in
34486         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34487         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34489 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34491         verify: document some 'assume' pitfalls
34492         * doc/verify.texi (Compile-time Assertions):
34493         Mention that 'assume (E)' can sometimes slow things down.
34494         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34496 2013-10-10  Eric Blake  <eblake@redhat.com>
34498         strtoumax: fix typo in previous commit.
34499         * modules/strtoumax (Depends-on): Fix typo.
34500         * modules/strtoimax (Depends-on): Likewise.
34502 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34504         strtoumax: port to Solaris 8
34505         This problem was introduced in the recent HP-UX patch.
34506         Reported by Tom G. Christensen in
34507         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34508         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34509         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34511 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34513         strtoimax, strtoumax: port to HP-UX 11.11
34514         Problem reported by Daniel Richard G. in
34515         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
34516         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
34517         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
34518         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
34519         REPLACE_STRTOUMAX.
34520         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
34521         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
34522         Replace the function if defined as a macro but not as a function.
34523         * modules/inttypes-incomplete (inttypes.h): Substitute
34524         REPLACE_STRTOUMAX.
34525         * modules/strtoumax (configure.ac): Replace strtoumax if
34526         REPLACE_STRTOUMAX.
34528 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34530         strtoimax: port to HP-UX 11.11
34531         Problem reported by Daniel Richard G.
34532         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
34533         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
34534         they might clash with inttypes.h.
34536 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34538         New module 'count-trailing-zeros'.
34539         * MODULES.html.sh: Mention it.
34540         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
34541         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
34542         * modules/count-trailing-zeros-tests:
34543         * tests/test-count-trailing-zeros.c:
34544         New files.
34546         count-leading-zeros: port to MSC; support types wider than 64 bits
34547         The ideas behind the MSC port are stolen from Emacs.
34548         * lib/count-leading-zeros.h:
34549         Don't include verify.h: it's no longer needed, as types wider than
34550         64 bits are now supported.
34551         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
34552         performance with MSC.  All uses changed.  Do not assume that TYPE
34553         has at most 64 bits.
34554         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
34555         All uses changed.  Fold the subtraction from 31 into the table.
34557         count-one-bits: port to MSC; support types wider than 64 bits
34558         The ideas behind the MSC port are stolen from Emacs.
34559         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
34560         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34561         Don't include verify.h: it's no longer needed, as types wider than
34562         64 bits are now supported.
34563         (COUNT_ONE_BITS_GENERIC): New macro.
34564         (popcount_supported) [_MSC_VER]: New inline function.
34565         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
34566         performance with MSC.  All uses changed.  Do not assume that TYPE
34567         has at most 64 bits.
34568         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
34570 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
34572         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
34573         * lib/mountlist.c (read_file_system_list): fix leak of directory
34574         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
34576 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34578         tests: improve diagnostic when an assertion fails
34579         * tests/macros.h (ASSERT): Report the assertion that failed.
34581 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34583         verify: new macro 'assume'
34584         This is taken from Emacs, and should be generally useful.
34585         * doc/verify.texi (assume): Document it.
34586         * lib/verify.h (assume): New macro.
34587         (__has_builtin): Expand to 0 if not defined.
34589 2013-09-26  Eric Blake  <eblake@redhat.com>
34591         dup2, dup3: work around another cygwin crasher
34592         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34593         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34594         * tests/test-dup2.c (main): Likewise.
34595         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34596         * lib/dup3.c (dup3): Likewise.
34597         * doc/posix-functions/dup2.texi (dup2): Document it.
34598         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34600         getdtablesize: work around cygwin issue
34601         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34602         * modules/getdtablesize (configure.ac): Build replacement.
34603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34604         * modules/unistd (Makefile.am): Expose the witness.
34605         * lib/unistd.in.h (getdtablesize): Declare replacement.
34606         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34607         * tests/test-getdtablesize.c (main): Test it.
34608         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
34610 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34612         pmccabe2html: escaping of special characters
34613         Escape all '<', '>', and '&' in HTML output.
34614         * build-aux/pmccabe2html (html_fnc): Call gsub()
34615         instead of sub() to capture all '<', '>', and '&'.
34616         Neither of '<' and '>' is special in a regexp,
34617         so first arguments to gsub() are corrected. Also,
34618         in replacement strings, ampersand must be escaped.
34619         Finally, '&' must be handled first, then '<' and '>'.
34621 2013-09-24  Eric Blake  <eblake@redhat.com>
34623         manywarnings: enable nicer gcc warning messages
34624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34625         some -f options for optimal warnings.
34627 2013-09-21  Jim Meyering  <meyering@fb.com>
34629         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34630         * lib/timespec-add.c (timespec_add): Also replace 999999999
34631         with TIMESPEC_RESOLUTION - 1.
34632         * lib/timespec-sub.c (timespec_sub): Likewise.
34634 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34636         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34637         Problem reported by Dagobert Michelsen via Eric Blake in
34638         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34639         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34640         not AC_COMPILE_IFELSE.
34642 2013-09-23  Eric Blake  <eblake@redhat.com>
34644         configmake: support new --runstatedir option
34645         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34646         even if autoconf was too old to provide the command line option.
34647         * modules/configmake (Makefile.am): Propagate it to .h file.
34649 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34651         ctype, string: depend on extern-inline
34652         This is needed to complete the recent OS X fixes.
34653         Also, fix related documentation as suggested by Eric Blake.
34654         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34655         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34656         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34657         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34658         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34659         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34660         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34661         * doc/posix-functions/toupper.texi:
34662         List the 'ctype' gnulib module.
34663         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34664         * doc/posix-functions/strncpy.texi:
34665         List the 'string' gnulib module.
34666         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34667         Add string.
34668         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34670 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34672         userspec: support optional parameters to parse_user_spec()
34673         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34674         then avoid group processing and treat the full spec as a user.
34675         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34676         be optional params (NULL), in which case they're ignored.
34678 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34680         timespec: new function make_timespec, and new constants
34681         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34682         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34683         (make_timespec): New function.
34684         * lib/dtotimespec.c (dtotimespec):
34685         * lib/timespec-add.c (timespec_add):
34686         * lib/timespec-sub.c (timespec_sub):
34687         * lib/utimens.c (validate_timespec):
34688         * lib/utimensat.c (rpl_utimensat):
34689         Use these new constants and functions.
34691         stdio: OS X port of putc_unlocked + extern inline
34692         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34693         * doc/posix-functions/putc_unlocked.texi:
34694         * doc/posix-functions/putchar_unlocked.texi:
34695         Document this portability problem.
34697         signal: OS X port of sigaddset etc. + extern inline
34698         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34699         (sigismember): #undef on problematic Apple platforms.
34700         * doc/posix-functions/sigaddset.texi:
34701         * doc/posix-functions/sigdelset.texi:
34702         * doc/posix-functions/sigemptyset.texi:
34703         * doc/posix-functions/sigfillset.texi:
34704         * doc/posix-functions/sigismember.texi:
34705         Document this portability problem.
34707         extern-inline: do not always suppress extern inline on OS X
34708         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34709         extern inline on Apple only if the particular compile-time
34710         configuration is known to have the problem.
34711         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34712         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34713         other Gnulib modules.
34715         extern-inline: document fixes for ctype and wctype macros
34716         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34717         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34718         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34719         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34720         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34721         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34722         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34723         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34724         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34725         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34726         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34727         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34728         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34729         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34730         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34731         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34732         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34733         * doc/posix-functions/strncpy.texi:
34734         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34735         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34736         Document that Gnulib fixes portability problems with these
34737         functions on OS X 10.8 and earlier when called from plain inline
34738         or extern inline functions.
34740 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34742         fflush, freadahead, fseeko: Fix for Android
34743         Suggested by Bruno Haible in:
34744         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34745         * lib/stdio-impl.h: Use local __sfileext definition.
34747 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34749         pmccabe2html: Portability to other awk versions.
34750         The functions systime() and strftime() are available
34751         in Gawk only.  Properly close two HTML-tags 'style'
34752         and 'span'.
34753         * build-aux/pmccabe2html (BEGIN): Store timing
34754         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34755         systime() in HTML_COMMENT.
34756         (html_header): Correctly close tag 'style'.
34757         (END): Replace strftime() by CHRONOS_TIME.  Close
34758         tag 'span' correctly, not as 'div'.
34760 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34762         getgroups: statement without effect
34763         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34764         Change equality conditional to expected assignment.
34766 2013-09-09  Eric Blake  <eblake@redhat.com>
34768         glob: fix compilation
34769         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34771 2013-09-07  Eric Blake  <eblake@redhat.com>
34773         glob: fix build for platforms without __THROW
34774         * lib/glob.in.h (__THROW): Add definition again.
34776 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34778         regex-quote: fix buffer access out of bounds
34779         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34780         * lib/regex-quote.c (regex_quote_spec_pcre):
34781         Fix typo that resulted in an out-of-bounds read.
34783 2013-09-04  Eric Blake  <eblake@redhat.com>
34785         glob: avoid -Wattribute warnings on glibc
34786         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34787         __THROWNL, not __THROW, on static functions.
34788         * lib/glob.in.h (__THROW): Adjust...
34789         (__THROWNL): ...accordingly.
34791 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34793         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34794         Suggested by Bruce Korb in:
34795         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34796         * doc/extern-inline.texi (extern inline):
34797         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34798         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34799         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34800         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34801         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34802         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34803         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34804         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34805         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34806         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34807         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34808         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34809         * lib/xtime.h:
34810         Check that _GL_INLINE_HEADER_BEGIN is defined.
34812 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34814         bootstrap: remove the --version requirement from ancillary tools
34815         * build-aux/bootstrap (check_exists): A new refactored function to
34816         determine if a command exists.
34817         (find_tool): Use the new function which does not require the
34818         --version option to be supported.
34819         (check_versions): Use the new function.
34821 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34823         gc: support HMAC-SHA256 and HMAC-SHA512.
34824         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34825         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34826         functions.
34827         (gc_hmac_md5): Use symbolic constant.
34828         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34829         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34830         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34831         * m4/sha256.m4: Protect against empty expansion.
34832         * m4/sha512.m4: Likewise.
34833         * lib/hmac-sha256.c: New file.
34834         * lib/hmac-sha512.c: Likewise.
34835         * m4/gc-hmac-sha256.m4: Likewise.
34836         * m4/gc-hmac-sha512.m4: Likewise.
34837         * m4/gc-sha256.m4: Likewise.
34838         * m4/gc-sha512.m4: Likewise.
34839         * modules/crypto/gc-hmac-sha256: Likewise.
34840         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34841         * modules/crypto/gc-hmac-sha512: Likewise.
34842         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34843         * modules/crypto/hmac-sha256: Likewise.
34844         * modules/crypto/hmac-sha256-tests: Likewise.
34845         * modules/crypto/hmac-sha512: Likewise.
34846         * modules/crypto/hmac-sha512-tests: Likewise.
34847         * tests/test-gc-hmac-sha256.c: Likewise.
34848         * tests/test-gc-hmac-sha512.c: Likewise
34849         * tests/test-hmac-sha256.c: Likewise.
34850         * tests/test-hmac-sha512.c: Likewise
34852 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34854         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34855         of AC_CHECK_DECLS.
34857 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34859         selinux-at: omit unnecessary include
34860         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34861         this source file doesn't use its macros, and subsidiary files that
34862         use the macros already include it.
34864 2013-08-21  Eric Blake  <eblake@redhat.com>
34866         d-ino: avoid false negative on symlink
34867         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34868         Reported by Stephane Chazelas.
34870 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34872         bootstrap: port to OpenBSD sed
34873         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34874         does not interpret `-' as a file argument to mean stdin.
34876 2013-08-15  Eric Blake  <eblake@redhat.com>
34878         warnings: minor optimization
34879         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34881         warnings: check -Wfoo rather than -Wno-foo
34882         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34883         -Wno-, test if the compiler recognizes the positive form instead.
34885 2013-08-15  Karl Berry  <karl@gnu.org>
34887         * config/srclist-update: add option "doclicense" to placate
34888         pulling *.texi files from Emacs.  Write terse usage
34889         documentation at the top.
34891 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34893         xvasprintf-tests: port to GCC with hardening flags
34894         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34895         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34896         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34898 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34900         fpending: port to recent Cygwin change to stdio_ext.h
34901         Reported by LRN in
34902         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34903         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34904         just declare __fpending unless it's a macro.
34905         A duplicate decl shouldn't hurt.
34906         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34907         call compiles and links, instead of separately checking for
34908         decl and lib function.
34909         * modules/fpending (configure-ac):
34910         Adjust to fpending.m4's renaming of shell variable.
34912 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34914         sys_time: port to OpenBSD
34915         * lib/sys_time.in.h: Simply delegate to the system's header
34916         in the BSDish cases as well.  Problem reported by Mike Miller in
34917         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34918         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34919         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34920         wider than time_t.
34922 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34924         bootstrap: support checksum utils having -c but not --status
34925         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34926         Add sha1 to the list of supported checksum utils since it's now
34927         supported through adjustments below.
34928         (update_po_files): Remove the use of --status
34929         in a way that will suppress all error messages, but since this is
34930         only used to minimize updates, it shouldn't cause an issue.
34931         Exit early if there is a problem updating the po file checksums.
34932         (find_tool): Remove the check for --version support as this
34933         is optional as per commit 86186b17.  Don't even check for the
34934         presence of the command as if that is needed, it's supported
34935         through configuring prerequisites in bootstrap.conf.
34936         Prompt that when a tool isn't found, one can define an environment
34937         variable to add to the hardcoded search list.
34939 2013-08-05  Jim Meyering  <meyering@fb.com>
34941         regex: port to non-glibc/lock-using systems
34942         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
34943         system with GNULIB_LOCK would fail due to absence of the
34944         included "glthread/lock.h".  This would affect any package
34945         for which the "lock" module is used only by the regex module,
34946         and not explicitly used.
34947         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34948         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34949         Add a dependency on the "lock" module.
34951 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34953         localecharset: make locale_charset thread-safe on Mac OS X
34954         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34955         instead of MB_CUR_MAX.
34957 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34959         gettext: update to version 0.18.3
34960         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34961         require AC_PROG_SED to allow user to specify custom sed command when
34962         generating en@quot PO file.
34964 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34966         bootstrap: use correct source when copying build-aux files
34967         * build-aux/bootstrap (gnulib_extra_files): This variable is
34968         relative to upstream gnulib layout, not downstream.
34970 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34972         tmpdir: fix bug in VMS port
34973         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34974         See Steven M. Schweda in
34975         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34977 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34979         tmpdir: port to VMS, to // != /, and to long dirs
34980         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34981         __secure_getenv, so that we're more like the glibc version.
34982         All uses changed.
34983         (path_search): Don't put slash after directory if __VMS.
34984         Problem reported by Steven M. Schweda in
34985         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34986         Simplify code to add slash; no need for a loop.
34987         Do not remove trailing slash from "//".
34988         Do not assume dlen <= INT_MAX.
34990 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34992         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34993         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34994         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34995         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34997         accept4, dup3, pipe2: port to Cygwin
34998         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34999         * lib/accept4.c (accept4) [O_BINARY]:
35000         * lib/dup3.c (dup3) [O_BINARY]:
35001         * lib/pipe2.c (pipe2) [O_BINARY]:
35002         Use set_binary_mode, not setmode.
35003         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35004         * modules/binary-io (Depends-on): Remove module indicator.
35005         These last two bits undo the previous change to pipe2 and binary-io.
35007 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35009         mountlist: add support for deallocating returned list entries
35010         * lib/mountlist.c (free_mount_entry): A new exported function
35011         to deallocate a mount list entry.
35012         (read_file_system_list): Refactor to use the new deallocation function.
35013         Suggested by Anton Ovchinnikov.
35015 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35017         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35018         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35019         * lib/stdalign.in.h (_Alignas, _Alignof):
35020         Port to FreeBSD 9.1, and to C11 and C++11.
35021         (_Alignas): Also support ICC.
35022         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35023         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35025 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35027         fnmatch: don't goto over declaration
35028         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35029         undefined behavior for goto over a declaration.
35030         Problem reported by Charlie Brown in
35031         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35033         pipe2: decouple from binary-io a bit
35034         This is for Emacs, which needs pipe2 but not binary-io.
35035         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35036         * modules/binary-io (Depends-on): Add module indicator.
35038 2013-07-03  Eric Blake  <eblake@redhat.com>
35040         mgetgroups: relax license to LGPLv2+
35041         * modules/getugroups (License): Change from GPLv3+.
35042         * modules/mgetgroups (License): Likewise.
35043         * modules/getgroups (License): Change from LGPLv3+.
35045         xalloc-oversized: relax license to LGPLv2+
35046         * modules/xalloc-oversized (License): Change from GPLv3+.
35048         nproc: relax license to LGPLv2+
35049         * modules/nproc (License): Change from LGPLv3+.
35051         bootstrap: honor --no-git
35052         * build-aux/bootstrap: Don't even try to use git when user is
35053         pointing to a static checkout.
35055 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35057         ignore-value: port to gcc -pedantic
35058         * lib/ignore-value.h (ignore_value):
35059         Port to gcc -pedantic, by using __extension__.
35060         Reindent as per usual gnulib style nowadays.
35061         Simplify GCC version check.
35063 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35065         extern-inline: port to gcc -std=c89
35066         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35067         Do not use __gnu_inline__ if pedantic and pre-C99.
35069 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35071         doc: document extern-inline
35072         * doc/extern-inline.texi: New file.
35073         * doc/gnulib.texi (alloca-opt): Include it.
35074         * m4/extern-inline.m4: Move some comments to documentation,
35075         and others closer to what they describe.
35077         doc: chatter less
35078         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35079         (updated-stamp): Use it.  This causes 'make' to output just
35080         one file name rather than zillions.
35082         fflush, fseeko: port to musl cross-compiles
35083         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35084         on some implementation that (1) is not known to be buggy,
35085         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35086         cross-compiled to so we can't easily check for lack of
35087         conformance.  This is for cross-compiling to musl.
35088         Reported by Rich Felker in
35089         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35090         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35091         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35092         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35093         Adjust to above change.
35094         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35095         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35096         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35097         known not to work, or unknown.
35099 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35101         msvc-inval: port to mingw-w64
35102         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35103         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35104         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35106 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35108         getcwd-lgpl: port to Tru64
35109         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35110         Problem reported by Steven M. Schweda in
35111         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35113         tests: port large-fd POSIX spawn tests to OS X
35114         Problem reported by Daiki Ueno in
35115         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35116         * tests/test-posix_spawn_file_actions_addclose.c:
35117         * tests/test-posix_spawn_file_actions_adddup2.c:
35118         * tests/test-posix_spawn_file_actions_addopen.c:
35119         Include <limits.h>, for OPEN_MAX, if available.
35120         (big_fd): New static function.
35121         (main): Use it.
35123 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35125         tests/nap.h: use an adaptive delay to avoid ctime update issues
35126         The recent change in nap.h (5191133e) decreased the probability of lost
35127         races to about a third, however such problems could still be observed
35128         in virtual machines and openSUSE's OBS.
35129         Before, nap() detected the needed time once empirically and then used
35130         that delay (together with a small correction multiplier) in further
35131         calls.  This problem has been reported and discussed several times,
35132         including guesses about possible kernel issues:
35133         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35134         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35135         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35136         http://bugs.gnu.org/12820
35137         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35138         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35139         Now, nap() avoids the race alltogether by verifying on a reference
35140         file whether a timestamp difference has happened.
35141         * tests/nap.h (nap_fd): Define file descriptor variable for the
35142         witness file.
35143         (nap_works): Change return value to bool.  Change passing
35144         the old file's status by value instead of by reference as this function
35145         does no longer update that timestamp; rename the function argument from
35146         st to old_st.  Remove the local variables cdiff and mdiff because that
35147         function now returns true/false instead of the precise delay.
35148         (guess_delay): Remove function.
35149         (clear_tmp_file): Add new function to close and unlink the witness file.
35150         (nap): Instead of re-using the delay which has been calculated during
35151         the first call, avoid the race by actually verifying that a timestamp
35152         difference can be observed on the current file system.  Use an adaptive
35153         approach for the delay to minimize execution time.  Assert that the
35154         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35155         = 2^31 - 1 = 2.1s.
35156         Use atexit to call clear_tmp_file when the process terminates.
35158 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35160         sig2str: port to C++
35161         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35162         Reported by Daniel J Sebald in
35163         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35165 2013-05-30  Eric Blake  <eblake@redhat.com>
35167         docs: mention cygwin shortcoming in <sys/un.h>
35168         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35170         vasnprintf: silence mingw compiler warning
35171         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35173 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35175         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35176         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35177         This fixes a porting bug I recently reintroduced in regex, and
35178         some other instances that I discovered while testing the fix.
35179         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35180         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35181         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35182         with an empty argument if this is a pedantic pre-C99 GCC.
35183         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35184         pre-C11 GCC.
35186         regex: adapt to locking regime instead of depending on pthread
35187         Instead of depending on pthread, adapt to whatever thread
35188         modules are in use.  Problem reported by Ludovic Courtès in
35189         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35190         and by Mats Erik Andersson in
35191         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35192         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35193         Support either the 'lock' module, or the 'pthread' module, or
35194         no module.
35195         (lock_lock, lock_unlock): New macros.
35196         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35197         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35198         * modules/regex (Depends-on): Remove pthread.
35200 2013-05-22  Eric Blake  <eblake@redhat.com>
35202         getgroups: document portability issues
35203         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35204         multithread safety.
35205         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35206         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35207         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35208         getugroups.
35209         * doc/posix-functions/getgroups.texi (getgroups): Mention
35210         multithread safety and mgetgroups.
35212 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35214         test-lchown, test-chown: also skip test if chown fails with EPERM
35215         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35216         skip this test, to handle FAT file systems.
35217         * tests/test-chown.h (test_chown): Likewise.
35219 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35221         regex: fix dfa race in multithreaded uses
35222         Problem reported by Ludovic Courtès in
35223         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35224         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35225         New macros.  All uses of __libc_lock_define, __libc_lock_init
35226         changed to use the first two of these.
35227         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35228         non-glibc platforms.
35229         (struct re_dfa_t): Define the lock unconditionally.
35230         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35231         '#ifdef _LIBC"s.
35232         * modules/regex (Depends-on): Add pthread, if we use the
35233         included regex.
35235         * lib/regcomp.c: Do actions that are not needed for glibc,
35236         but may be needed elsewhere.
35237         (regfree, re_compile_internal): Destroy the lock.
35238         (re_compile_internal): Check for lock-initialization failure.
35240         malloca: port to compilers that reject size-zero arrays
35241         This fixes a bug introduced in my previous patch.
35242         * lib/malloca.c (struct preliminary_header): Use an int
35243         rather than a character array of size int; that's simpler.
35244         (struct header): Remove, replacing with ...
35245         (union header): New type.  This avoids the need for declaring a
35246         character array of size zero, which is not allowed on some platforms.
35247         All uses changed.
35249 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35251         parse-datetime, tests: don't use "string" + int
35252         Recent versions of 'clang' complain about C source code that
35253         uses expressions of the form '"string literal" + integer',
35254         I guess on the theory that it's confusing for readers who are
35255         used to C++.  On those grounds I suppose it's OK to make this
35256         minor style change.
35257         * lib/parse-datetime.y (parse_datetime):
35258         * tests/test-fchdir.c (main):
35259         * tests/test-snprintf-posix.h (test_function):
35260         * tests/test-snprintf.c (main):
35261         * tests/test-vasnprintf-posix.c (test_function):
35262         * tests/test-vasnprintf.c (test_function):
35263         * tests/test-vsnprintf.c (main):
35264         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35265         Rewrite '"str" + E' to '&"str"[E]'.
35267 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35269         argmatch: port to C++
35270         * lib/argmatch.h [__cplusplus]: Add extern "C".
35272         argp: typo fix
35273         * lib/argp-help.c: Typo in comment.
35275 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35277         manywarnings: update for GCC 4.8.0
35278         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35279         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35280         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35281         -Wmissing-noreturn, as they are duplicates of other warnings.
35282         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35283         was documented to be flaky in earlier versions of GCC.
35285         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35286         * tests/test-spawn.c (main):
35287         * tests/test-sys_socket.c (main):
35288         * tests/test-sys_wait.c (main):
35289         Don't have a switch value that isn't covered by a case.
35291         getaddrinfo-tests: port --enable-gcc-warnings to clang
35292         * tests/test-getaddrinfo.c (simple):
35293         Avoid casts from looser to stricter-aligned pointers.
35295         thread: port --enable-gcc-warnings to clang
35296         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35297         Include <signal.h>, to pacify a warning about pthread_sigmask.
35299         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35300         * lib/stdio.in.h (fwrite):
35301         When working around bug 11959, use __REDIRECT rather than '#define
35302         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35303         fix the -Wunused-value issue with clang, and it works with GCC too.
35304         Problem with targeting reported by Eric Blake in
35305         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35306         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35307         debugging the fwrite issue.
35309         stdio: port --enable-gcc-warnings to clang
35310         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35311         since the GCC workaround for fwrite does not pacify clang.
35313         sig2str: port --enable-gcc-warnings to clang
35314         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35316         obstack: port --enable-gcc-warnings to clang
35317         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35318         Avoid casts from looser to stricter-aligned pointers.
35320         memchr2: port --enable-gcc-warnings to clang
35321         * lib/memchr2.c (memchr2):
35322         Avoid casts from looser to stricter-aligned pointers.
35324         mbsstr: port --enable-gcc-warnings to clang
35325         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35326         Avoid casts from looser to stricter-aligned pointers.
35328         malloca: port --enable-gcc-warnings to clang
35329         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35330         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35332         inttostr: port --enable-gcc-warnings to clang
35333         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35335         warnings: port to clang
35336         Problem reported by Daniel P. Berrange via Eric Blake in
35337         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35338         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35339         (gl_WARN_ADD): Use it.
35341 2013-05-11  Jim Meyering  <meyering@fb.com>
35343         quotearg: do not read beyond end of buffer
35344         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35345         end of an ARG for which no length was specified.  With an N-byte
35346         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35347         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35348         via coreutils' misc/sort-debug-keys.sh test and detected by running
35349         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35350         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35351         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35352         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35353         characters correctly."
35355 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35357         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35358         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35359         compilation target is Mac OS X 10.6.
35360         Problem reported by parafin and Andoni Morales in
35361         <http://savannah.gnu.org/bugs/?37844> and
35362         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35364 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35366         mkdir-p: remove assumptions about umask and mode
35367         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35368         umask is 0, or that MODE is a subset of MODE_BITS.
35370 2013-05-10  Eric Blake  <eblake@redhat.com>
35372         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35373         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35375 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35377         deps: require Automake >= 1.9.6 in generated Makefile fragments
35379         That is the same minimal version required in the DEPENDENCIES file.
35380         Moreover, the old code generated a requirement of Automake >= 1.5,
35381         and that is an insanely outdated version.
35383         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35384         * tests/havelib/rpathlx/Makefile.am: Likewise.
35385         * tests/havelib/rpathly/Makefile.am: Likewise.
35386         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35387         * tests/havelib/rpathlz/Makefile.am: Likewise.
35388         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35389         * tests/havelib/rpathx/Makefile.am: Likewise.
35390         * tests/havelib/rpathy/Makefile.am: Likewise.
35391         * tests/havelib/rpathz/Makefile.am: Likewise.
35393 2013-05-08  Eric Blake  <eblake@redhat.com>
35395         bootstrap: AC_INIT may have more than four parameters
35396         * build-aux/bootstrap (extract_package_name): Correctly extract
35397         non-empty tarname field.  Avoid range in regex.
35398         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35400 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35402         qacl: port to MS-Windows port of GNU Emacs
35403         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35404         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35405         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35406         <http://bugs.gnu.org/14295#14>.
35408 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35410         acl: include quote.h
35411         * lib/copy-acl.c: Include quote.h.
35412         * lib/set-acl.c: Likewise.
35414 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35416         fchownat, renameat, unlinkat: update statat dependencies
35417         These modules use statat and lstatat, not fstatat; so depend on
35418         the statat module, which was split out recently from fstatat.
35419         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35420         * modules/renameat: Likewise.  Also delete fstat.
35421         URL: http://bugs.gentoo.org/468790
35423 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35425         Assume gnulib is checked out from Git, not CVS
35427         In fact, access to the gnulib repository through CVS has been
35428         disabled, or more precisely, got broken and was never restored; see:
35429         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35431         Note that support for CVS is not removed completely and unthinkingly
35432         by this change: only support for CVS checkouts of gnulib itself is
35433         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35434         files and CVS directories, for the benefit of those poor gnulib clients
35435         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35437         * gnulib-tool: Simplify accordingly.
35438         * posix-modules: Likewise.
35439         * MODULES.html.sh: Likewise.
35440         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35441         repository.
35442         * doc/gnulib-intro.texi: Likewise.
35443         * doc/gnulib-readme.texi: Likewise.
35444         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35445         sample '.gitignore' file rather than a sample '.cvsignore'.
35446         * NEWS: Update.
35447         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35448         to "CVS Autoconf" rather than "git Autoconf".
35450 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35452         utimensat-tests, etc.: try to fix some races
35453         Problem reported by Bernhard Voelker in
35454         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35455         I don't know whether this patch fixes that race condition, but it
35456         fixes *some* race conditions, so it should be a win.
35457         * modules/chown-tests (Depends-on):
35458         * modules/fchownat-tests (Depends-on):
35459         * modules/fdutimensat-tests (Depends-on):
35460         * modules/futimens-tests (Depends-on):
35461         * modules/lchown-tests (Depends-on):
35462         * modules/stat-time-tests (Depends-on):
35463         * modules/utimens-tests (Depends-on):
35464         * modules/utimensat-tests (Depends-on):
35465         Depend on nanosleep, not usleep.
35466         * modules/chown-tests (test_chown_LDADD):
35467         * modules/lchown-tests (test_lchown_LDADD):
35468         * modules/stat-time-tests (test_stat_time_LDADD):
35469         New macro.
35470         * modules/fchownat-tests (test_fchownat_LDADD):
35471         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35472         * modules/futimens-tests (test_futimens_LDADD):
35473         * modules/utimens-tests (test_utimens_LDADD):
35474         * modules/utimensat-tests (test_utimensat_LDADD):
35475         Add $(LIB_NANOSLEEP).
35476         * modules/stat-time-tests (Files): Add tests/nap.h.
35477         * tests/nap.h: Include <limits.h>, for INT_MAX.
35478         (lt_mtime): Remove.
35479         (diff_timespec): New function.
35480         (get_stat): Rename from get_mtime.  All callers changed.
35481         (nap_works): Determine the needed delay by inspecting the
35482         file system's timestamp jumps; this should be more reliable.
35483         Look at both mtime and ctime, and take the maximum of the two jumps.
35484         (nap_works, guess_delay):
35485         Return a nanosecond count, not a microsecond count.
35486         All callers changed.
35487         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35488         failure.
35489         (nap): Multiply the guess by 1.125, to accommodate the case where
35490         the file system's clock is a bit slower than nanosleep's clock.
35491         * tests/test-stat-time.c (BASE): New macro.
35492         Include nap.h.
35493         (nap): Remove; nap.h now defines this.  This removes a duplicate
35494         implementation of 'nap'.
35496         utimens, utimensat: work around Solaris UTIME_OMIT bug
35497         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35498         Linux kernel 2.6.32 does.  Work around it in the same way.
35499         * doc/posix-functions/futimens.texi (futimens):
35500         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35501         * lib/utimens.c (fdutimens, lutimens):
35502         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35504         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35505         Formerly, it was your responsibility to do this for all Makefile.ams
35506         other than Gnulib's.  Now it's your responsibility to do it for
35507         Gnulib's Makefile.am, too.
35508         * NEWS: Document this.
35509         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35511         acl: include errno.h to get errno
35512         Reported by Daiki Ueno in
35513         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35514         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
35516 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35518         tests: don't assume getdtablesize () <= 10000000
35519         * modules/cloexec-tests:
35520         * modules/dup2-tests:
35521         * modules/dup3-tests:
35522         * modules/nonblocking-tests:
35523         * modules/posix_spawn_file_actions_addclose-tests:
35524         * modules/posix_spawn_file_actions_adddup2-tests:
35525         * modules/posix_spawn_file_actions_addopen-tests:
35526         * modules/unistd-safer-tests:
35527         Depend on the getdtablesize module.
35528         * tests/test-cloexec.c:
35529         * tests/test-dup-safer.c:
35530         * tests/test-dup2.c:
35531         * tests/test-dup3.c:
35532         * tests/test-fcntl.c:
35533         * tests/test-nonblocking.c:
35534         * tests/test-posix_spawn_file_actions_addclose.c:
35535         * tests/test-posix_spawn_file_actions_adddup2.c:
35536         * tests/test-posix_spawn_file_actions_addopen.c:
35537         Don't assume getdtablesize () <= 10000000.
35539 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
35541         extern-inline: work around bug in Sun c99
35542         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35543         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
35545 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
35547         qacl: new module, broken out from the acl module
35548         This is for GNU Emacs, which wants the acl functions but does
35549         not want 'error' invoked when they fail.
35550         * lib/acl-internal.h: Do not include error.h, quote.h.
35551         (ENOSYS, ENOTSUP): Remove; no longer needed.
35552         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
35553         * lib/acl.h: Include <stdbool.h>.
35554         (acl_errno_valid): New function.
35555         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
35556         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
35557         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
35558         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
35559         (ACL_INTERNAL_INLINE): Remove; no longer needed.
35560         * lib/file-has-acl.c (file_has_acl):
35561         * lib/qcopy-acl.c (qcopy_acl):
35562         * lib/qset-acl.c (qset_acl):
35563         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
35564         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
35565         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
35566         lib/file-has-acl.c, m4/acl.m4 to qacl module.
35567         Add lib/set-acl.c.
35568         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
35569         Add qacl.
35570         (configure.ac): Move gl_FUNC_ACL to qacl module.
35571         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
35572         Rename set-mode-acl.c to set-acl.c.
35573         * lib/acl-errno-valid.c: New file.
35574         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
35575         copy_acl function remains in copy-acl.c.
35576         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
35577         (_): Remove; not needed.
35578         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
35579         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
35580         * modules/qacl: New file, moved from the old modules/acl.
35581         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
35582         Remove set-mode-acl.c, copy-acl.c.
35583         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
35585         alignof, intprops, malloca: port better to IBM's C compiler
35586         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
35587         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
35588         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
35590 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35592         wctype-h: fix gettext link error on mingw
35593         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35594         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35595         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35596         rpl_towupper and rpl_towupper.
35598 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35600         regex-tests, regex: allow glibc re_search behavior
35601         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35602         re_search input data to make the multi-character collating element
35603         in it clearly visible, and treat re_search return code 0 as valid.
35604         * m4/regex.m4 (gl_REGEX): Likewise.
35606 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35608         stdalign: doc fix
35609         * doc/posix-headers/stdalign.texi (stdalign.h):
35610         Gnulib doesn't support '_Alignof expr'.
35612 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35614         stdalign: port to stricter ISO C11
35615         ISO C11 says that _Alignof's operand must be a parenthesized type.
35616         Problem reported by Eli Zaretskii in
35617         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35618         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35619         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35621 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35623         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35624         Problem reported by Marco Atzeri in
35625         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35626         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35627         Simply delegate to the system <sys/select.h> in this case too.
35628         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35629         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35630         be needed on Solaris either.
35631         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35632         Simply delegate to the system <sys/time.h> in this case.
35634 2013-03-19  Karl Berry  <karl@gnu.org>
35636         * build-aux/gnupload: check for erroneous (with gnupload) use of
35637         ftp-upload.gnu.org, tweak help.
35639 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35641         copy-file, rpmatch: fix problems found by cppcheck
35642         Reported by Arno Onken in
35643         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35644         * lib/rpmatch.c (try): Fix memory leak.
35645         * lib/copy-file.c: Include "ignore-value.h".
35646         (qcopy_file_preserving): Ignore chown value.
35647         * modules/copy-file (Depends-on): Add ignore-value.
35649 2013-01-27  Jim Meyering  <jim@meyering.net>
35651         prefix-gnulib-mk: give better diagnostics
35652         * build-aux/prefix-gnulib-mk: Don't just "die".
35653         Give better diagnostics upon failure.
35655 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35657         putenv: port to Solaris 10
35658         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35659         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35660         is not what is wanted here.
35661         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35662         declaration, not for its existence.
35664 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35666         mktime: fix configure typo
35667         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35669 2013-03-12  Eric Blake  <eblake@redhat.com>
35671         regex-tests: skip UTF-8 test on mingw
35672         * modules/regex-tests (Depends-on): Add localcharset.
35673         * tests/test-regex.c (main): Use it to skip test on mingw.
35675 2013-03-11  Eric Blake  <eblake@redhat.com>
35677         tests: make it easier to bypass alarm time in debugger
35678         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35679         * tests/test-memmem.c (main): Likewise.
35680         * tests/test-passfd.c (main): Likewise.
35681         * tests/test-ptsname.c (main): Likewise.
35682         * tests/test-ptsname_r.c (main): Likewise.
35683         * tests/test-strcasestr.c (main): Likewise.
35684         * tests/test-strstr.c (main): Likewise.
35686         regex: port to mingw's recent addition of undeclared alarm
35687         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35688         exists but still doesn't work in newer mingw.
35689         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35690         not existence.  Ensure SIGALRM is not trapped.
35691         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35692         * m4/regex.m4 (gl_REGEX): Likewise.
35693         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35694         * tests/test-regex.c (main): Use correct probe for alarm.
35696         putenv: avoid compilation warning on mingw
35697         * lib/putenv.c (_unsetenv): Protect variable declaration.
35698         (putenv): Fix indentation.
35700 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35702         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35703         * lib/unistd.in.h: be careful not to include un-needed system
35704         stdlib.h from here, because that prevents gnulib stdlib.h from
35705         defining rpl_strtod correctly.
35707 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35709         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35710         changesets, but for the 'precision 0' test.
35711         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35712         round-to-even, since POSIX says rounding is implementation-defined
35713         and OS X 10.8.2 rounds 1.51 to 1 here.
35715         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35716         changeset.
35717         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35718         round-to-even, since POSIX says rounding is implementation-defined
35719         and OS X 10.8.2 rounds 1.5 to 1 here.
35721 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35723         vasnprintf-posix-tests: allow rounding 1.5 to 1
35724         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35725         round-to-even, since POSIX says rounding is implementation-defined
35726         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35727         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35729         bootstrap: port to FreeBSD
35730         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35731         that treat '--' differently.  Reported by Mats Erik Andersson in
35732         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35734 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35736         regex: rename remaining __attribute calls to __attribute__.
35737         2012-02-25 changed definition of __attribute, but left some uses
35738         unchanged, preventing compilation of regex module on most non-gcc
35739         environments.
35740         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35741         (lookup_collation_sequence_value, build_range_exp)
35742         (build_collating_symbol): Set attributes with newly renamed
35743         __attribute__ decorator.
35744         * lib/regex_internal.c (re_string_peek_byte_case)
35745         (re_node_set_compare, re_node_set_contains): Likewise.
35746         * lib/regexec.c (acquire_init_state_context): Likewise.
35748 2013-03-06  Bruno Haible  <bruno@clisp.org>
35750         execute: Revert last change, but use a different condition.
35751         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35752         on Windows.
35754 2013-03-05  Eric Blake  <eblake@redhat.com>
35756         execute: drop dead code
35757         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35759 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35761         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35762         * m4/non-recursive-gnulib-prefix-hack.m4
35763         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35764         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35765         <http://bugs.gnu.org/10305#237>.
35767 2013-03-04  Eric Blake  <eblake@redhat.com>
35769         test-getsockopt: avoid compiler warning
35770         * tests/test-getsockopt.c (includes): Ensure close is declared.
35772 2013-03-02  Bruno Haible  <bruno@clisp.org>
35774         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35775         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35777 2013-03-02  Bruno Haible  <bruno@clisp.org>
35779         gettext: Update to version 0.18.2.
35780         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35781         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35782                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35784 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35786         regex: merge patches from libc
35788         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35789         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35790         All uses changed.
35791         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35792         (re_string_wchar_at, re_string_elem_size_at):
35793         Mark function as possibly unused.
35795         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35796         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35797         elements compare against the byte sequence of it, not its name.
35799 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35801         putenv: port better to native Windows
35802         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35803         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35804         (_unsetenv): Use _putenv if available.
35805         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35806         a bit less likely to cause damage.
35807         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35808         Fix the wrong value with SetEnvironmentVariable.
35809         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35810         code better.
35812 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35814         regex: ignore old-style-definition warnings
35815         * lib/regex.c: Add pragma to ignore these warnings.
35816         Problem reported for GNU tar by Pavel Raiskup.
35818 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35820         getcwd: support coreutils better
35821         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35822         but this might not be correct in coreutils, which disables
35823         the raw decl checks.  Problem reported by Nagendra in
35824         <http://bugs.gnu.org/10305#192>.
35825         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35827         Test the getcwd function, not any macro, since getcwd.c wants the
35828         function.
35829         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35830         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35831         compile, as might happen if there's a macro but no function.
35833         strtod: support coreutils better
35834         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35835         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35836         disables the raw decl checks.  This assumes there is an underlying
35837         strtod, but that's a safe assumption these days.
35838         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35840         mountlist: port to HP NonStop
35841         Reported by Joachim Schmitz in
35842         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35843         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35844         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35846 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35848         extern-inline: avoid compilation error with HP-UX cc
35849         Reported by Richard Lloyd in
35850         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35851         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35852         Suppress extern inline with HP-UX cc.  This should be safe,
35853         though it may hurt performance.  Perhaps someone with some HP-UX
35854         experience can come up with a higher-performance fix.
35856 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35858         putenv: fix heap corruption with mixed putenv/_putenv
35859         Problem reported by Michael Goffioul in
35860         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35861         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35862         Rely on _putenv to allocate the new environment.
35863         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35864         * modules/putenv (configure.ac): Use it.
35866 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35868         unsetenv etc.: port to Solaris 11 + GNU Emacs
35869         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35870         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35871         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35872         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35873         idea but is too painful to fix right now), and without this gnulib
35874         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35875         compiling unsetenv.c on Solaris 11.  Fix the problem for
35876         unsetenv.c, and fix other similar occurrences.
35878 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35880         secure_getenv: fix C++ declaration typo
35881         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35882         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35883         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35885 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35887         careadlinkat: stop exporting careadlinkatcwd
35888         Only Emacs used it directly, and Emacs no longer needs it.
35889         * NEWS: Document this simplification.
35890         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35891         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35892         for readlink.
35893         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35894         Don't include stdlib.h; no longer needed.
35895         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35896         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35897         * modules/areadlink (Depends-on): Add readlink.
35898         (Maintainer): Add self.
35899         * modules/careadlinkat (Depends-on): Remove readlink.
35901         extensions: port better to HP-UX
35902         This is merged from git Autoconf.
35903         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35904         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35905         so that it's compatible with the value used when compiling.
35907         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35908         Problem reported by Mats Erik Andersson in
35909         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35910         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35911         openpty function exists, not merely when we intend to replace it.
35912         This corrects the 2013-01-31 patch, which mistakenly defined
35913         HAVE_OPENPTY even on hosts that lacked it.
35915 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35917         secure_getenv: fix include typo
35918         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35920         secure_getenv: port better to FreeBSD and Solaris
35921         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35922         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35923         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35924         This works better on BSDish platforms.
35925         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35926         Test for issetugid if __secure_getenv is missing.
35928 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35930         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35931         Some of these changes are merged in from git Autoconf.
35932         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35933         When deciding whether to define _XOPEN_SOURCE, inspect the
35934         preprocessor macro __hpux instead of the more-heavyweight
35935         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
35936         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
35937         as the key for __EXTENSIONS__.
35939         unistd: avoid namespace pollution on non-glibc systems
35940         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
35941         This avoids namespace pollution on non-glibc systems, by causing
35942         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
35943         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
35944         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
35946 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35948         tmpdir: use secure_getenv
35949         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35950         Define to secure_getenv, not getenv.
35951         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35952         as that's now secure_getenv's job.
35953         * modules/tmpdir (Depends-on): Add secure_getenv.
35955         tempname: use secure_getenv
35956         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35957         Define to secure_getenv, not getenv.
35958         * modules/tempname (Depends-on):
35959         Add secure_getenv.
35961         secure_getenv: new module
35962         * MODULES.html.sh (Extra functions based on ANSI C 89):
35963         Add secure_getenv.
35964         * doc/glibc-functions/secure_getenv.texi: New file.
35965         * doc/gnulib.texi: Include it.
35966         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35967         New files.
35968         * lib/stdlib.in.h (secure_getenv): New decl.
35969         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35970         * modules/stdlib (stdlib.h):
35971         Add secure_getenv checks.
35973 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35975         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35976         Reported for OS X 10.8.2 by Assaf Gordon in
35977         <http://bugs.gnu.org/13516>.
35978         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35979         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35980         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35981         so that they can be kept in sync more easily.  Avoid PATH_MAX
35982         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35983         mkdir or chdir failure.
35984         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35985         lib/getcwd.c.
35986         (test_abort_bug): Do not test for the deep directory bug unless we
35987         have openat support.  Avoid PATH_MAX test on the Hurd.
35989         regex-tests, regex: fix bug: memset undeclared
35990         * tests/test-regex.c: Don't include regex.h twice.  Include
35991         string.h, to declare memset.  Christensen's report also mentioned
35992         this issue.
35993         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35994         test-regex.c, to avoid future problems like this.  Remove
35995         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35996         twice.
35998         regex-tests: fix link errors on older Solaris
35999         These need to link with @LIBINTL@ to get libintl_gettext.
36000         Problem reported by Tom G. Christensen in
36001         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36002         * modules/regex-tests (test_regex_LDADD): New macro.
36004 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36006         regex-tests: new module
36007         * modules/regex-tests, tests/test-regex.c: New files.
36009         regex: fix off-by-one error in configure test
36010         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36012 2013-01-31  Eric Blake  <eblake@redhat.com>
36014         regex: avoid infinite configure test
36015         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36017 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36019         openpty: fix bug where HAVE_OPENPTY wasn't defined
36020         See the thread starting at:
36021         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36022         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36023         openpty function exists, not merely when we intend to replace it.
36025 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36027         sys_time: port to Solaris 2.6
36028         There is a circularity problem on Solaris 2.6, where <time.h> includes
36029         <sys/time.h> for struct timespec.  The include nesting is gnulib
36030         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36031         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36032         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36033         <sys/siginfo.h>; the last, innermost file needs struct
36034         timestruc_t, which is defined in <sys/time.h>, which has not been
36035         fully parsed.  Problem reported by Tom G. Christensen in
36036         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36037         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36038         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36039         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36040         uses split double-inclusion guards.
36042 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36044         regex: test for buffer overrun
36045         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36046         for the just-fixed regex bug.
36048 2013-01-29  Andreas Schwab  <schwab@suse.de>
36050         regex: fix buffer overrun in regexp matcher [BZ #15078]
36051         * lib/regexec.c (extend_buffers): Add parameter min_len.
36052         (check_matching): Pass minimum needed length.
36053         (clean_state_log_if_needed): Likewise.
36054         (get_subexp): Likewise.
36056 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36058         mountlist: don't consider "devtmpfs" as dummy
36059         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36060         as there is storage associcated with it.
36062 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36064         futimens-tests, utimens-tests: Depend on gettext.
36065         This works around a problem introduced in my 2013-01-12 patch,
36066         which added @LIBINTL@ to these modules.
36067         * modules/futimens-tests (Depends-on):
36068         * modules/utimens-tests (Depends-on): Add gettext.
36070 2013-01-26  Eric Blake  <eblake@redhat.com>
36072         test-getpeername: fix typo
36073         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36075 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36077         bootstrap: remove the need for a sorted .gitignore file
36078         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36079         rename to insert_if_absent(), so that we don't need or generate
36080         a sorted .gitignore file.  We do require a .gitignore with no
36081         existing duplicate entries and enforce that.
36082         (sort_patterns): Remove this function as we now use the simpler
36083         technigue of inserting blacklist entries at the top of the file,
36084         assuming gnulib won't be inserting !whitelist entries.
36086 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36088         readlinkat: don't depend on gl_FUNC_OPENAT
36089         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36090         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36091         renameat.m4, symlinkat.m4; but one thing at a time.
36093         statat: new module, split out from fstatat
36094         GNU Emacs needs the POSIX-specified fstatat, but not the
36095         gnulib-specified statat and lstat.  Split the latter two into a
36096         new module 'statat'.
36097         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36098         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36099         Rename from FSTATAT_INLINE. All uses changed.
36100         * modules/fstatat (Files): Remove lib/statat.c.
36101         (gl_MODULE_INDICATOR([fstatat])): Remove.
36102         (lib_SOURCES): Remove.
36103         (Maintainer): Add self.
36104         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36105         * tests/test-fstatat.c (BASE): Don't define if already defined.
36106         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36108 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36110         tests: don't assume fd 99 is closed
36111         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36112         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36113         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36114         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36115         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36116         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36117         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36118         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36119         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36120         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36121         * tests/test-fwrite.c, tests/test-getpeername.c:
36122         * tests/test-getsockname.c, tests/test-getsockopt.c:
36123         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36124         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36125         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36126         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36127         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36128         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36129         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36130         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36131         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36132         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36133         Close file descriptor 99, instead of assuming it's already closed.
36135 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36137         stpncpy: port to OS X 10.8
36138         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36139         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36141 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36143         unistd: port to recent mingw
36144         * lib/unistd.in.h: Remove special invocation convention for mingw,
36145         which breaks for the latest mingw version.  See John W. Eaton in
36146         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36148         largefile: port better to Mac OS X 10.5
36149         This patch is backported from Autoconf git.
36150         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36151         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36152         with ino_t size being different for configuration time versus
36153         build/run time.  Problem reported by PHO in
36154         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36156 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36158         doc: clarify -Werror
36159         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36160         clarify that it's intended for developers, not for ordinary builds,
36161         and mention --enable-gcc-warnings as one possible use.
36163 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36165         stdint: fix build with Android's Bionic fox x86
36166         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36167         was already included as _SSIZE_T_DEFINED_ might also be defined
36168         in include/machine/_types.h, which is included by stdio.h
36170 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36172         net_if-tests: port to Solaris 7 + GCC 3.4.6
36173         Problem reported by Tom G. Christensen in
36174         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36175         * tests/test-net_if.c (ni): Move to next the code that uses it,
36176         so that it's declared only if needed.
36178 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36180         net_if-tests: port to older Solaris
36181         Problem reported by Tom G. Christensen in
36182         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36183         * modules/net_if-tests (NET_IF_LIB): New substitution.
36184         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36185         (HAVE_IF_NAMEINDEX): New C macro.
36186         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36188         system-quote-tests: port to older Solaris
36189         Problem reported by Tom G. Christensen in
36190         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36191         * tests/test-system-quote-child.c (fopen, fread): Undef.
36193         c-xvasprintf etc.: fix link errors on older Solaris
36194         These need to link with @LIBINTL@ to get libintl_gettext.
36195         Problem reported by Tom G. Christensen in
36196         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36197         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36198         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36199         * modules/futimens-tests (test_futimens_LDADD):
36200         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36202 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36204         locale: port to Solaris 2.6 and 7 + GNU gettext
36205         * lib/locale.in.h: Just include_next <locale.h> when
36206         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36207         when combining the localename module with GNU gettext 0.18.2.
36208         Problem reported by Tom G. Christensen in
36209         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36211 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36213         stdlib: port to Solaris 2.6
36214         Also, the code worked on Solaris 7 through 9 only by accident.
36215         Problem reported by Tom G. Christensen in
36216         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36217         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36218         simply include the system stdlib.h.
36219         * lib/getopt.in.h (__need_system_stdlib_h):
36220         * lib/pthread.in.h (__need_system_stdlib_h):
36221         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36222         Define when including <stdlib.h>, to avoid problems at least for
36223         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36224         with the system stdlib.h.
36226 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36228         doc: update main copyright year
36229         * doc/gnulib.texi: Update copyright date.
36231         doc: improve ISO 8601 discussion
36232         * doc/parse-datetime.texi (Combined date and time of day items):
36233         Specify more carefully what formats are supported and what is
36234         done with excess precision.
36236 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36238         doc: avoid small caps
36239         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36240         they're more trouble than they're worth.  Suggested by Karl Berry
36241         in <http://bugs.gnu.org/13360>.
36243         regex: conform to strict C
36244         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36245         From Aharon Robbins.
36247         gnulib-tool: fix incompatibility with autopoint 0.18.2
36248         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36249         Problem reported by Tom G. Christensen in
36250         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36252 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36254         fprintftime: bring back and reword fwrite comment
36255         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36257         stdio: remove now-unnecessary stdio.c
36258         Since stdio.in.h no longer uses inline functions, we no longer
36259         need to compile the extern versions.
36260         * lib/stdio.c: Remove.
36261         * modules/stdio (Files): Remove lib/stdio.c.
36262         (lib_SOURCES): Remove.
36264         unicodeio: depend on stdio, not ignore-value
36265         * lib/unicodeio.c: Do not include ignore-value.h.
36266         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36267         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36269         fprintftime: depend on stdio, not ignore-value
36270         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36271         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36272         since the stdio module arranges to silence that warning now.
36273         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36275 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36277         stdint-tests: Fix expanded-before-required-warning.
36278         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36280 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36282         fwrite: silence __wur only for older glibc versions
36283         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36284         This will help us remove this workaround some time in the far future.
36286 2013-01-03  Eric Blake  <eblake@redhat.com>
36288         fwrite: silence __wur without using inline
36289         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36290         just gcc, and in a way that avoids inline issues.
36291         * modules/stdio (Depends-on): Drop extern-inline.
36293 2013-01-03  Jim Meyering  <jim@meyering.net>
36295         update-copyright: avoid copyright notice date corruption
36296         Given a sequence of copyright year numbers in which the final
36297         one was a two-digit number that happened to be a substring of
36298         a preceding four-digit year number, we would mistakenly update
36299         the substring (from two- to four-digit) rather than the two-digit
36300         number at the end, which, combined with the addition of the current
36301         4-digit year number would yield two 5-digit year numbers, e.g.,
36302         here, it would convert the first "99" to "1999, 2013" rather than
36303         the final one:
36304           1991, 99
36305           11999, 20131, 1999
36306         * build-aux/update-copyright: Tighten a regexp.
36307         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36308         Reported by Joseph Myers in
36309         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36311 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36313         regex: omit needless signed-pointer casts
36314         * lib/regcomp.c (build_charclass, build_charclass_op):
36315         Use char *, not unsigned char *, for class name and extra.
36316         The char values are always nonnegative so there's no need to
36317         insist on unsigned char * here, and using char * removes the need
36318         for casts.  Reported by Aharon Robbins in
36319         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36321         regex: support Gawk, which never uses alloca
36322         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36323         Do not include in this case.  Gawk doesn't supply a substitute
36324         alloca.h and doesn't need one.
36326         regex: port __libc_lock_define usage to C89
36327         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36328         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36329         does not conform to C89, as it has an empty macro argument.
36330         Reported by Aharon Robbins in
36331         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36333 2013-01-01  Eric Blake  <eblake@redhat.com>
36335         maint: update all copyright year number ranges
36336         Run "make update-copyright".
36338         version-etc: bump copyright year reported in --version
36339         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36341 2012-12-31  Eric Blake  <eblake@redhat.com>
36343         sigprocmask-tests: skip test if pid is unexpectedly large
36344         * tests/test-sigprocmask.c (main): Add range check.
36346         git-version-gen: avoid test -z portability glitch
36347         * build-aux/git-version-gen: Prefer portable test spelling, since
36348         git-version-gen is run on more than just developer machines.
36350 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36352         git-version-gen: add --fallback option to use if git is not present
36353         * build-aux/git-version-gen: Add support for the new option --fallback,
36354         which comes into play when there is no $tarball_version_file and
36355         git is not working.
36356         (scriptversion): Update.
36358         maint.mk: handle missing git with more grace
36359         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36360         Quietly proceed if git is not present.
36362 2012-12-31  Eric Blake  <eblake@redhat.com>
36364         dup2: work around cygwin bug
36365         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36366         * lib/dup2.c (rpl_dup2): Work around it.
36367         * doc/posix-functions/dup2.texi (dup2): Document it.
36369 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36371         regex: remove unnecessary dependency on localcharset.h
36372         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36373         hasn't been needed for years.
36374         * modules/regex (Depends-on): Remove localcharset.
36376         regex: revert single-byte change
36377         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36378         to this function.  This was alredy fixed in a different way, at
36379         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36380         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36381         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36383         regex: simplify based on Gawk version
36384         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36385         Reported by Aharon Robbins in
36386         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36388 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36390         regex: check that pattern char is single-byte
36391         Reported by Aharon Robbins in
36392         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36393         * lib/regexec.c (check_node_accept_bytes):
36394         Return 0 if the pattern string has a multibyte character here.
36396         regex: implement rational ranges
36397         Reported by Aharon Robbins in
36398         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36399         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36400         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36401         Implement rational ranges.
36403         regex: avoid redefining __wctype
36404         Reported by Aharon Robbins in
36405         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36406         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36407         #undef before defining.
36409         regex: port to hosts where malloc (0) == NULL
36410         Reported by Aharon Robbins in
36411         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36412         * lib/regex_internal.c (re_node_set_alloc):
36413         Don't assume that malloc (0) yields nonnull.
36414         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36415         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36416         * modules/regex (Files): Add m4/eealloc.m4.
36418         regex: port to C89
36419         Reported by Aharon Robbins in
36420         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36421         * lib/regcomp.c (init_word_char): Declaration before statement.
36423         regex: merge glibc changes
36424         Also, copy the license wording from glibc.  This simplifies
36425         merging changes.  gnulib-tool will change the wording to GPL as
36426         appropriate, when importing it to other packages.  The only
36427         glibc change made since the last merge, which needs merging, is:
36428         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36429         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36431         * users.txt: Add Emacs.
36433         doc: omit mention of version when not needed
36434         * doc/gnulib-intro.texi (Portability and Application Code):
36435         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36436         Don't mention particular dates or versions when not necessary, so
36437         that the documentation won't go out of date so quickly.
36439         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36441 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36443         bootstrap: pass --force to autoreconf.
36444         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36445         Add "--force" so that Automake's ylwrap and other such tools
36446         be updated at each bootstrap invocation.
36447         Use it.
36449 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36451         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36452         The earlier patch forgot to update one of the #if conditions, causing
36453         a problem on Debian testing i386 reported by Mats Erik Andersson
36454         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36455         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36456         (__argp_fmtstream_puts, argp_fmtstream_puts)
36457         (__argp_fmtstream_write, argp_fmtstream_write)
36458         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36460         * doc/gnulib-readme.texi: Minor fixups.
36461         (Portability guidelines): Modernize URLs.  Remove some repetition.
36462         (Indent with spaces not TABs): Reword to avoid too-long lines.
36463         Remove some '@ifset standalone' stuff that isn't used.
36465         * doc/gnulib-readme.texi (Portability guidelines):
36466         ctype.h, not ctime.h.
36468         Correct name of POSIX.1-2001.
36469         * doc/posix-functions/fgetc.texi (fgetc):
36470         * doc/posix-functions/fgets.texi (fgets):
36471         * doc/posix-functions/fread.texi (fread):
36472         * doc/posix-functions/fscanf.texi (fscanf):
36473         * doc/posix-functions/getc.texi (getc):
36474         * doc/posix-functions/getchar.texi (getchar):
36475         * doc/posix-functions/scanf.texi (scanf):
36476         POSIX.1-2001, not POSIX-2001.
36478         doc: move README into manual
36479         * README: Move contents to new file doc/gnulib-readme.texi.
36480         Replace with a one-line summary.
36481         * doc/gnulib.texi (Brief Overview): New section,
36482         with old intro preface.  Include gnulib-readme.texi for contents.
36483         (Philosophy): Rename from "Introduction", since this
36484         section no longer introduces the rest.  Write a new preface.
36485         * doc/gnulib-readme.texi: New file, with the old contents of
36486         README texinfo-ized.  This way, the README info appears
36487         in the online and printed manual.
36489 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36491         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36492         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36493         c_vasprintf() prototype.
36495 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36497         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36498         * lib/c-vasprintf.h: Remove stray semicolon.
36500 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36502         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36503         It is obsolete and is planned to be removed from Automake 1.14; see
36504         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36505         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36506         (installdirs-data, installdirs-data-yes):
36507         Use $(MKDIR_P), not $(mkdir_p).
36508         * m4/intl.m4 (AM_INTL_SUBDIR):
36509         * m4/po.m4 (AM_PO_SUBDIRS):
36510         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36512 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36514         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
36515         On this platform, we are not optimizing but we are using
36516         the substitute for extern inlines, so compile as if
36517         C99-style extern inline, or a substitute, is available.
36518         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
36519         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
36520         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
36521         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
36522         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
36523         Declare as ARGP_FS_EI, not as extern.
36524         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
36525         (__option_is_short, _option_is_end, __option_is_end)
36526         [!_LIBC && __USE_EXTERN_INLINES]:
36527         Declare as ARGP_EI, not as extern.
36529 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36531         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
36532         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
36533         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
36534         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
36535         ...), as the latter is fatal with older Autoconfs.
36536         Problem reported and fix suggested by Eric Blake in thread starting at
36537         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
36539 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
36541         AC_PROG_MKDIR_P: don't workaround if not buggy
36542         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
36543         Define only for Autoconf versions before 2.62.
36544         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
36545         undocumented m4_PACKAGE_VERSION, for consistency with the
36546         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
36547         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
36548         was introduced in 2.62.
36550 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
36552         New 'c-*printf' modules for formatted output in C locale.
36554         New module 'c-vasnprintf'.
36555         * modules/c-vasnprintf: New file.
36556         * lib/c-vasnprintf.c: New file.
36557         * lib/c-vasnprintf.h: New file.
36559         New module 'c-snprintf'.
36560         * modules/c-snprintf: New file.
36561         * modules/c-snprintf-tests: New file.
36562         * lib/c-snprintf.c: New file.
36563         * lib/c-snprintf.h: New file.
36564         * tests/test-c-snprintf.c: New file.
36565         * tests/test-c-snprintf.sh: New file.
36567         New module 'c-vsnprintf'.
36568         * modules/c-vsnprintf: New file.
36569         * modules/c-vsnprintf-tests: New file.
36570         * lib/c-vsnprintf.c: New file.
36571         * lib/c-vsnprintf.h: New file.
36572         * tests/test-c-vsnprintf.c: New file.
36573         * tests/test-c-vsnprintf.sh: New file.
36575         New module 'c-vasprintf'.
36576         * modules/c-vasprintf: New file.
36577         * modules/c-vasprintf-tests: New file.
36578         * lib/c-asprintf.c: New file.
36579         * lib/c-vasprintf.c: New file.
36580         * lib/c-vasprintf.h: New file.
36581         * tests/test-c-vasprintf.c  +: New file.
36582         * tests/test-c-vasprintf.sh: New file.
36584         New module 'c-xvasprintf'.
36585         * modules/c-xvasprintf: New file.
36586         * modules/c-xvasprintf-tests: New file.
36587         * lib/c-xasprintf.c: New file.
36588         * lib/c-xvasprintf.c: New file.
36589         * lib/c-xvasprintf.h: New file.
36590         * tests/test-c-xvasprintf.c: New file.
36591         * tests/test-c-xvasprintf.sh: New file.
36593 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36595         argp: better 'inline'
36596         Use extern-inline module to declare extern inline functions.
36597         This avoids some bogus warning diagnostics.  Problem discovered
36598         when modifying GNU tar to use the manywarnings module.
36599         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36600         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36601         Define based on extern-inline.
36602         * modules/argp (Depends-on): Add extern-inline.
36604 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36606         filemode, sys_stat: Handle MPX files a la AIX.
36607         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36608         * lib/sys_stat.in.h (S_ISMPX): New macro.
36609         * tests/test-sys_stat.c: Add tests for MPX files.
36611 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36613         x-to-1: honor $PERL
36614         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36615         a chance to use his preferred version of Perl.  This is typically
36616         required by Darwin users whose default /usr/bin/perl does not have all
36617         the libraries required by help2man, and who need to use their MacPorts
36618         installation of Perl instead.
36620 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36622         gnu-web-doc-update: add all the new files, even in new directories
36623         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36624         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36625         Use it.
36626         (main): Don't use cvsutils to get the list of unknown files,
36627         just add all the existing files and directories.
36629 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36631         gnu-web-doc-update: improve --help
36632         * build-aux/gnu-web-doc-update: Move comments into --help.
36634 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36636         mountlist: recognize more "dummy" file systems
36637         * lib/mountlist.c (ME_DUMMY_0):
36638         Add these dummy FS names to the list:
36639         - "debugfs" virtual filesystem for kernel debugging
36640         - "devpts" PTY slave filesystem
36641         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36642         - "fusectl" control filesystem for FUSE
36643         - "mqueue" enumerates POSIX message queues
36644         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36645         - "sysfs" is for exporting kernel objects
36646         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36648 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36650         extern-inline: avoid incompatibility with Darwin Libc
36651         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36652         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36653         Problem reported by Akim Demaille in
36654         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36656 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36658         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36659         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36660         let it handle password prompting.
36662 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36664         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36665         * lib/canonicalize.c (canonicalize_filename_mode):
36666         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36667         fetching the current directory.  Don't overrun the beginning of
36668         rpath if there's no slashes after the MS-Windows drive letter.
36670 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36672         maint.mk: avoid extra forks
36673         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36674         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36675         So use that instead of "$(shell test -f FILE && echo FILE)".
36677 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36679         vasnprintf: fix ASCII_ONLY typo
36680         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36681         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36682         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36683         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36684         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36686 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36688         list, oset, xlist, xoset: fix extern inline issue with C99
36689         This was introduced by my recent changes for 'inline'.
36690         Problem reported for gettext by Daiki Ueno in
36691         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36692         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36693         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36694         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36695         (gl_list_previous_node, gl_list_get_at)
36696         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36697         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36698         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36699         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36700         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36701         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36702         (gl_list_iterator_free, gl_sortedlist_search)
36703         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36704         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36705         (gl_sortedlist_remove):
36706         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36707         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36708         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36709         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36710         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36711         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36712         (gl_list_add_at, gl_sortedlist_add):
36713         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36714         Wrap these extern decls inside "#if 0", because they are implemented
36715         as inline functions, and extern inline is not what's wanted here.
36716         It would simplify these .h files to remove the extern decls entirely,
36717         although a downside would be less-clear separation between
36718         specification and implementation.
36720 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36722         sys_stat: no 'static inline'
36723         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36726         extern-inline: no 'static inline'
36727         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36728         Do not require AC_C_INLINE.
36729         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36730         'static inline', for older compilers.
36732         snippet/warn-on-use: no 'static inline'
36733         * build-aux/snippet/warn-on-use.h:
36734         Remove unnecessary 'inline' in comment.
36736         rbtree-list, rbtreehash-list: no 'static inline'
36737         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36738         * lib/gl_anytree_list2.h (node_at):
36739         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36740         (gl_oset_first, add_nodes_to_buckets):
36741         Now static, not static inline.
36743         regex: no 'static inline'
36744         * lib/regex_internal.c (calc_state_hash):
36745         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36746         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36747         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36748         Now static, not static inline.
36749         (inline) [__GNUC__ < 3 && _LIBC]:
36750         Remove macro; no longer needed.
36752         xvasprintf: no 'static inline'
36753         * lib/xvasprintf.c (xstrcat):
36754         Now static, not static inline.
36755         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36756         Do not require AC_C_INLINE.
36758         parse-datetime, parse-duration: no 'static inline'
36759         * lib/parse-datetime.y (to_uchar):
36760         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36761         (scale_n_add):
36762         Now static, not static inline.
36763         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36764         * modules/parse-duration (configure.ac):
36765         Do not require AC_C_INLINE.
36767         getaddrinfo: no 'static inline'
36768         * lib/getaddrinfo.c (validate_family):
36769         Now static, not static inline.
36770         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36771         Do not require AC_C_INLINE.
36773         ftruncate, fts, lstat, openat, raise: no 'static inline'
36774         * lib/ftruncate.c (chsize_nothrow):
36775         * lib/fts.c (opendirat, diropen):
36776         * lib/lstat.c (orig_lstat):
36777         * lib/openat.c (orig_openat):
36778         * lib/raise.c (raise_nothrow):
36779         Now static, not static inline.
36780         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36781         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36782         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36783         * m4/openat.m4 (gl_PREREQ_OPENAT):
36784         * m4/raise.m4 (gl_PREREQ_RAISE):
36785         Do not require AC_C_INLINE.
36787         fflush, stat: no 'static inline'
36788         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36789         (clear_ungetc_buffer, disable_seek_optimization)
36790         (restore_seek_optimization, update_fpos_cache):
36791         * lib/stat.c (orig_stat):
36792         Now static, not static inline.
36793         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36794         (update_fpos_cache):
36795         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36796         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36797         * m4/stat.m4 (gl_PREREQ_STAT):
36798         Do not require AC_C_INLINE.
36800         error, filevercmp: no 'static inline'
36801         * lib/error.c (is_open, flush_stdout):
36802         * lib/filevercmp.c (order):
36803         Now static, not static inline.
36804         * m4/error.m4 (gl_PREREQ_ERROR):
36805         * modules/filevercmp (configure.ac):
36806         Do not require AC_C_INLINE.
36808         dup, execute, fatal-signal, etc.: no 'static inline'
36809         * lib/dup.c (dup_nothrow):
36810         * lib/execute.c (nonintr_close, nonintr_open):
36811         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36812         * lib/fopen.c (orig_fopen):
36813         * lib/freadseek.c (freadptrinc):
36814         * lib/freopen.c (orig_freopen):
36815         * lib/fstat.c (orig_fstat, fstat_nothrow):
36816         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36817         (get_rusage_as_via_iterator):
36818         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36819         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36820         * lib/isatty.c (_isatty_nothrow):
36821         * lib/open.c (orig_open):
36822         * lib/read.c (read_nothrow):
36823         * lib/sigprocmask.c (signal_nothrow):
36824         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36825         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36826         * lib/wait-process.c (unregister_slave_subprocess):
36827         * lib/write.c (write_nothrow):
36828         Now static, not static inline.
36829         * lib/spawn-pipe.c (nonintr_open): Define only if
36830         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36831         * m4/dup.m4 (gl_PREREQ_DUP):
36832         * m4/execute.m4 (gl_EXECUTE):
36833         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36834         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36835         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36836         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36837         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36838         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36839         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36840         * m4/open.m4 (gl_PREREQ_OPEN):
36841         * m4/read.m4 (gl_PREREQ_READ):
36842         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36843         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36845         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36846         * m4/write.m4 (gl_PREREQ_WRITE):
36847         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36848         Do not require AC_C_INLINE.
36850         c-strtod, memcoll, readutmp: no 'static inline'
36851         * lib/c-strtod.c (c_locale):
36852         * lib/memcoll.c (strcoll_loop):
36853         * lib/readutmp.c (desirable_utmp_entry):
36854         Now static, not static inline.
36855         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36856         * m4/memcoll.m4 (gl_MEMCOLL):
36857         * m4/readutmp.m4 (gl_READUTMP):
36858         Do not require AC_C_INLINE.
36860         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36861         * lib/arctwo.c (to_uchar):
36862         * lib/md4.c (set_uint32):
36863         * lib/md5.c (set_uint32):
36864         * lib/sha1.c (set_uint32):
36865         * lib/sha256.c (set_uint32):
36866         * lib/sha512.c (set_uint64):
36867         Now static, not static inline.  This is a bit simpler, and doesn't
36868         affect performance with GCC and default optimization.
36869         * m4/arctwo.m4 (gl_ARCTWO):
36870         * m4/md4.m4 (gl_MD4):
36871         * m4/md5.m4 (gl_MD5):
36872         * m4/sha1.m4 (gl_SHA1):
36873         * m4/sha256.m4 (gl_SHA256):
36874         * m4/sha512.m4 (gl_SHA512):
36875         Do not require AC_C_INLINE.
36877         cond, lock, thread: better 'inline'
36878         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36879         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36880         New macros.  Use them instead of static inline, for header functions.
36881         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36882         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36883         * lib/glthread/lock.c (gl_waitqueue_init)
36884         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36885         * lib/glthread/thread.c (get_current_thread_handle):
36886         Change 'static inline' to 'inline'.
36887         * lib/glthread/cond.h, lib/glthread/thread.h:
36888         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36889         * m4/cond.m4 (gl_COND):
36890         * m4/lock.m4 (gl_PREREQ_LOCK):
36891         * m4/thread.m4 (gl_THREAD):
36892         Do not require AC_C_INLINE.
36893         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36895         chdir-long, cycle-check, savewd: better 'inline'
36896         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36897         (find_non_slash):
36898         * lib/cycle-check.c (is_zero_or_power_of_two):
36899         * lib/savewd.c (savewd_delegating):
36900         Change 'static inline' to 'inline'.
36901         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36902         Replace all remaining uses of 'static inline' with it.
36903         * lib/savewd.h:
36904         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36905         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36906         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36907         * m4/savewd.m4 (gl_SAVEWD):
36908         Do not require AC_C_INLINE.
36909         * modules/savewd (Depends-on): Add extern-inline.
36911         base32, base64: no need for 'inline'
36912         * lib/base32.c (to_uchar, get_8, decode_8):
36913         * lib/base64.c (to_uchar, get_4, decode_4):
36914         Change 'static inline' to 'inline'.
36915         * m4/base32.m4 (gl_PREREQ_BASE32):
36916         * m4/base64.m4 (gl_PREREQ_BASE64):
36917         Do not require AC_C_INLINE.
36919         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36920         * lib/gl_array_oset.c (gl_array_nx_add_at):
36921         (gl_array_remove_at):
36922         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36923         (add_to_bucket, remove_from_bucket):
36924         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36925         Change 'static inline' to 'static', as it's simpler to omit
36926         'inline' unless there's a significant performance advantage.
36928         list, oset, xlist, xoset, xsublist: simplify via extern inline
36929         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36930         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36931         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36932         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36933         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36934         New macro.  Replace all uses of 'static inline' with it.
36935         [HAVE_INLINE]: Implement functions as *_INLINE functions,
36936         instead of as macros FOO that are defined to static inline
36937         functions FOO_inline.
36938         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
36939         * lib/gl_xsublist.c:
36940         Reimplement from scratch, by defining the corresponding *_INLINE
36941         macro and including the corresponding .h file.  This is simpler.
36942         * modules/list, modules/oset, modules/xlist, modules/xoset:
36943         (Files): Remove m4/gl_list.m4.
36944         (configure.ac): Remove gl_LIST.
36945         * m4/gl_list.m4: Remove.
36946         * modules/list, modules/oset, modules/xlist, modules/xoset:
36947         * modules/xsublist:
36948         (Depends-on): Depend on extern-inline, not inline.
36950         xalloc: better 'inline'
36951         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36952         New macro.  Replace all uses of 'static inline' with it.
36953         (static_inline): Remove.
36954         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36955         Let 'extern inline' do the work automatically, instead of doing
36956         it by hand.
36957         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36958         Remove.  All uses removed.
36959         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36961         gethrxtime: better 'inline'
36962         * lib/xtime.c: New file.
36963         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36964         * lib/xtime.h (XTIME_INCLUDE):
36965         New macros.  Replace all uses of 'static inline' with them.
36966         * lib/gethrxtime.c (gethrxtime): Define only if
36967         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36968         this source file is now always compiled, because of the extern inline.
36969         * lib/gethrxtime.h, lib/xtime.h:
36970         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36971         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36972         if gethrtime works, as they're not needed in that case.
36973         (gl_XTIME): Do not require AC_C_INLINE.
36974         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36975         compiled now.  Move the check into gl_GETHRXTIME.
36976         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36977         (Depends-on): Add extern-inline.
36978         (configure.ac): gethrxtime is always compiled now.
36979         (lib_SOURCES): Add gethrxtime.c.
36981         wctype-h: better 'inline'
36982         * lib/wctype-h.c: New file.
36983         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36984         New macro.  Replace all uses of 'static inline' with it.
36985         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36986         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36987         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36988         (Depends-on): Add extern-inline.
36990         unistd: better 'inline'
36991         * lib/unistd.c: New file.
36992         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36993         New macro.  Replace all uses of 'static inline' with it.
36994         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36995         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36996         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36997         (Depends-on): Add extern-inline.
36999         sys_socket: better 'inline'
37000         * lib/sys_socket.c: New file.
37001         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37002         New macro.  Replace all uses of 'static inline' with it.
37003         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37004         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37005         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37006         (Depends-on): Add extern-inline.
37008         stdio: better 'inline'
37009         * lib/stdio.c: New file.
37010         * lib/stdio.in.h (_GL_STDIO_INLINE):
37011         New macro.  Replace all uses of 'static inline' with it.
37012         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37013         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37014         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37015         (Depends-on): Add extern-inline.
37017         sigaction: better 'inline'
37018         * lib/sig-handler.c: New file.
37019         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37020         New macro.  Replace all uses of 'static inline' with it.
37021         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37022         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37023         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37024         (Depends-on): Add extern-inline.
37026         selinux-h: better 'inline'
37027         * lib/se-context.c, lib/se-selinux.c: New files.
37028         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37029         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37030         New macro.  Replace all uses of 'static inline' with it.
37031         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37032         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37033         New macro.  Replace all uses of 'static inline' with it.
37034         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37035         * modules/selinux-h (Files, lib_SOURCES):
37036         Add lib/se-context.c, lib/se-selinux.c.
37037         (Depends-on): Add extern-inline.
37038         (configure.ac): Do not require AC_C_INLINE.
37040         pthread: better 'inline'
37041         * lib/pthread.c: New file.
37042         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37043         New macro.  Replace all uses of 'static inline' with it.
37044         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37045         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37046         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37047         * modules/pthread (Files): Add lib/pthread.c.
37048         (Depends-on): Add extern-inline.
37050         math: better 'inline'
37051         * lib/math.c: New file.
37052         * lib/math.in.h (_GL_MATH_INLINE):
37053         New macro.  Replace all uses of 'static inline' with it.
37054         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37055         * m4/math_h.m4 (gl_MATH_H):
37056         Do not require AC_C_INLINE.
37057         * modules/math (Files, lib_SOURCES):
37058         Add lib/math.c.
37059         (Depends-on): Add extern-inline.
37061         count-one-bits: better 'inline'
37062         * lib/count-one-bits.c: New file.
37063         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37064         New macro.  Replace all uses of 'static inline' with it.
37065         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37066         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37067         Do not require AC_C_INLINE.
37068         * modules/count-one-bits (Files, lib_SOURCES):
37069         Add lib/count-one-bits.c.
37070         (Depends-on): Add extern-inline.
37072         count-leading-zeros: better 'inline'
37073         * lib/count-leading-zeros.c: New file.
37074         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37075         New macro.  Replace all uses of 'static inline' with it.
37076         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37077         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37078         Do not require AC_C_INLINE.
37079         * modules/count-leading-zeros (Files, lib_SOURCES):
37080         Add lib/count-leading-zeros.c.
37081         (Depends-on): Add extern-inline.
37083         bitrotate: better 'inline'
37084         * lib/bitrotate.c: New file.
37085         * lib/bitrotate.h (BITROTATE_INLINE):
37086         New macros.
37087         Replace all uses of 'static inline' with them.
37088         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37089         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37090         (Depends-on): Add extern-inline.
37091         (configure.ac): Do not require AC_C_INLINE.
37093 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37095         maint.mk: avoid gratuitous failure
37096         Reported by Stefano Lattarini in
37097         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37098         * top/maint.mk (public-submodule-commit): Quote more safely.
37100 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37102         canonicalize, canonicalize-lgpl: support MS-Windows file names
37103         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37104         for test cases, which it'd be nice to add at some point.
37105         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37106         * lib/canonicalize.c (canonicalize_filename_mode):
37107         * lib/canonicalize-lgpl.c (__realpath):
37108         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37109         slash is at the beginning of the file name.  Use ISSLASH, instead
37110         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37111         the first character with '/'.  Test for
37112         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37113         with a drive letter.
37114         * lib/canonicalize.c (SLASHES): New macro.
37115         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37117 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37119         fts: introduce FTS_VERBATIM
37120         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37121         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37122         * lib/fts.c (fts_open): Honor it.
37124 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37126         getlogin-tests: allow errno == ENXIO
37127         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37128         with errno == ENXIO (No controlling tty).
37129         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37130         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37131         with errno == ENOENT.  This was reported to happen in various
37132         situations on GNU/Linux.
37134 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37136         getlogin-tests: allow errno == ENOENT
37137         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37138         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37139         when running a test in an Emacs shell buffer.
37141 2012-11-08  Jim Meyering  <jim@meyering.net>
37143         tests/nap.h: avoid warning about unused variable
37144         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37146         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37147         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37148         white space before each of the special-cased file names, to avoid
37149         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37150         in http://bugs.gnu.org/12830.
37152 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37154         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37155         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37156         fails with errno == EBADF when fd is opened with O_PATH.
37157         Reported by Jim Meyering in
37158         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37159         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37160         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37162 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37164         test-utimens: speed up by taking shorter naps
37165         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37166         New functions.
37167         (nap): Use them, to do a better job of guessing the delay.
37168         On Fedora 17 with ext4 atop md atop hard disks, this made
37169         test-utimens run 10x faster, because the test napped for
37170         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37171         <http://bugs.gnu.org/12820#11>.
37173 2012-11-07  Jim Meyering  <jim@meyering.net>
37175         mountlist.c: fix a compilation failure
37176         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37177         I introduced while transforming commit v0.0-7683-g613bcb6
37179 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37181         errno: port to LynxOS 178 2.2.2
37182         Problem reported by Joel Brobecker in
37183         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37184         * doc/posix-headers/errno.texi (errno.h): Document this.
37185         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37186         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37187         Supply a string for EILSEQ.
37188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37190 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37192         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37193         Linux kernel 2.6.39 introduced O_PATH (see
37194         <http://lwn.net/Articles/433854/>) and this is a better fallback
37195         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37196         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37197         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37198         * lib/fcntl.in.h (O_ACCMODE):
37199         * tests/test-fcntl-h.c (main):
37200         Do not reject O_ACCMODE merely because it has more than the
37201         minimal number of bits, as POSIX allows extensions here.
37203 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37205         mountlist: do not classify a bind-mounted dir entry as "dummy"
37206         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37207         the "none"-testing clause.
37208         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37209         exception for bind-mounted directories.
37211 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37213         quote: provide a means to escape strings with nul characters
37214         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37215         (quote, quote_n): Rename formal arguments for consistency with
37216         quotearg.
37218 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37220         test-raise: don't assume 199 is an invalid signal
37221         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37223         sh-quote-tests: port to Solaris 9
37224         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37225         Problem reported by Dagobert Michelsen in
37226         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37228 2012-10-28  Jim Meyering  <jim@meyering.net>
37230         maint.mk: rename a new configurable variable
37231         * top/maint.mk (_gl_translatable_string_re): Rename from
37232         translation-markers: _gl_ prefix to insulate from user Makefile code,
37233         and the _re suffix to inform that it's a regular expression.
37235 2012-10-26  Eric Blake  <eblake@redhat.com>
37237         maint.mk: let packages tweak sc_po_check pattern
37238         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37239         finding files with other translation markers.
37241 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37243         euidaccess: speed up 'configure' on GNU hosts
37244         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37245         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37246         it's needed only in this case.  Use AC_CHECK_DECLS, not
37247         AC_CHECK_DECLS_ONCE.
37248         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37249         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37251         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37253 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37255         fchmodat, fchownat, fstatat: port to non-inlining compilers
37256         Problem reported for FreeBSD 9 by Jim Meyering in
37257         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37258         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37259         New files, which define FCHMODAT_INLINE etc.
37260         * lib/fchmodat.c (FCHMODAT_INLINE):
37261         * lib/fchownat.c (FCHOWNAT_INLINE):
37262         * lib/fstatat.c (FSTATAT_INLINE):
37263         Remove, as chmodat.c etc. now do this.
37264         * modules/fchmodat (Files): Add lib/chmodat.c.
37265         * modules/fchownat (Files): Add lib/chownat.c.
37266         * modules/fstatat (Files): Add lib/statat.c.
37268 2012-10-15  Jim Meyering  <jim@meyering.net>
37270         fchmodat.c, fchownat.c: compile-impeding typos
37271         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37272         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37273         Introduced in commit v0.0-7636-gd202279.
37275 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37277         fcntl-h: support GNU flags like O_IGNORE_CTTY
37278         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37279         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37280         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37281         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37282         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37283         Define to 0 if not already defined.
37284         * tests/test-fcntl-h.c: Test these new flags.
37286 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37288         faccessat, etc.: support AT_FDCWD-only use
37289         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37290         this function only if its first argument is AT_FDCWD.
37291         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37292         values other than AT_FDCWD, so it doesn't want all the openat
37293         machinery with fchdir etc.
37294         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37295         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37296         * modules/unlinkat (Files):
37297         Remove lib/openat-priv.h, as at-internal supplies this file.
37298         Removing this file here allows us to support programs like Emacs
37299         that avoid at-internal.
37301         faccessat: speed up 'configure' on mainstream hosts
37302         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37303         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37304         since it's only on unusual platforms that we need to check for
37305         'access', and it's better not to slow 'configure' down on all
37306         platforms.
37308         faccessat: port to Solaris 10
37309         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37310         Needed on Solaris 10, which doesn't have AT_EACCESS,
37311         so we need the Gnulib fcntl.h, which defines it.
37313 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37314         canonicalize: fix C89 compilation
37315         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37316         declarations so C89 is supported.  Also remove the comment
37317         referencing memorty allocation as the suggested feature could
37318         not be implemented as suggested.
37319         Reported by Michael Goffioul.
37321 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37323         group-member: omit unnecessary dependencies
37324         This is for Emacs, which has its own allocator and where we
37325         don't want to use xalloc.
37326         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37327         since we no longer use xmalloc.  Do not include stdbool.h, since
37328         the changes below happen to remove the only use of bool.
37329         (GROUPBUF_SIZE): New constant.
37330         (struct group_info): Remove n_groups member.  Add groupbuf member.
37331         This lets us get the groups without using malloc, usually.
37332         (free_group_info, get_group_info): Adjust to this.
37333         (get_group_info): Return the number of groups found, or -1 on error.
37334         Use plain malloc not xmalloc, and treat its failure as if there
37335         are no groups, as the user already loses in case of error.
37336         (group_member): Simplify, based on changes to get_group_info.
37337         * modules/group-member (Depends-on): Remove dependencies on
37338         xalloc and stdbool.  Add dependency on xalloc-oversized.
37340 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37342         gethrxtime: port to C++
37343         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37345 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37347         ptsname: fix macro-name typo
37348         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37350 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37352         inttostr: Relax license.
37353         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37355 2012-10-03  Eric Blake  <eblake@redhat.com>
37357         ptsname_r: support ptys returned by FreeBSD posix_openpt
37358         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37359         lives in /dev/pts/.
37361 2012-10-02  Eric Blake  <eblake@redhat.com>
37363         pselect: reject invalid file descriptors
37364         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37365         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37366         * modules/pselect (Depends-on): Add dup2.
37367         * doc/posix-functions/pselect.texi (pselect): Document this.
37369         select: reject invalid file descriptors
37370         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37371         * lib/select.c (rpl_select) [!win32]: Work around it.
37372         * modules/select (Depends-on): Add dup2.
37373         * doc/posix-functions/select.texi (select): Document this.
37375         select: enhance test
37376         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37377         New functions.
37378         (test_function): Enhance test.
37379         (do_select_bad_fd): Avoid any stale errno values.
37381         ptsname: reject invalid file descriptors
37382         http://www.austingroupbugs.net/view.php?id=503
37383         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37385         * modules/stdlib (Makefile.am): Replace witness.
37386         * lib/stdlib.in.h (ptsname): Allow for replacement.
37387         * modules/ptsname (configure.ac): Trigger replacement.
37388         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37390 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37392         hash-pjw-bare: new module
37393         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37394         * lib/hash-pjw-bare.h: Likewise.
37395         * modules/hash-pjw-bare: New file.
37396         * MODULES.html.sh (Misc): Add it.
37398 2012-10-02  Eric Blake  <eblake@redhat.com>
37400         manywarnings: cater to more gcc infelicities
37401         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37402         -Wuninitialized without -O.
37404 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37406         select, poll tests: Make setsockopt invocation effective.
37407         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37408         the bind() call.
37409         * tests/test-select.h (open_server_socket): Likewise.
37411 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37413         sockets, sys_stat: restore AC_C_INLINE
37414         This undoes the 2012-09-22 patch.
37415         * m4/sockets.m4 (gl_SOCKETS):
37416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37417         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37418         and does not support plain 'inline'.  Reported by Bruno Haible in
37419         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37421 2012-09-30  Bruno Haible  <bruno@clisp.org>
37423         localeconv tests: Avoid test failure on OpenIndiana.
37424         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37425         skip the 'grouping' and 'mon_grouping' tests.
37426         Reported by Jim Meyering.
37428 2012-09-30  Bruno Haible  <bruno@clisp.org>
37430         havelib: Follow libtool developments.
37431         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37432         Suggested by Simon Josefsson.
37434 2012-09-29  Jim Meyering  <meyering@redhat.com>
37436         fstatat.c: fix a compile-impeding typo
37437         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37438         Introduced in commit v0.0-7636-gd202279.
37439         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37441 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37443         extern-inline: provide a -Wundef safe config.h
37444         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37445         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37446         to produce a -Wundef warning free config.h.
37448 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37450         hash-pjw: relax license to LGPLv2+
37451         * modules/hash-pjw (License): Relax, with consent of author.
37453 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37455         maint.mk: fix strict vs. lazy variable issues with RELEASE
37456         * top/maint.mk (_equal): New function.
37457         (member_check): Strip the result to avoid spurious spaces.
37458         (url_dir_list): Do not use ifeq, which is strict, as it will
37459         require RELEASE_TYPE to be defined.
37460         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37461         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37462         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37463         (announcement_Cc_beta,announcement_mail_headers_beta)
37464         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37465         (release): Do not depend on $(release-type), as it forces its
37466         evaluation.  Bounce to it.
37468 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37470         maint.mk: formatting changes
37471         * top/maint.mk: Indent bodies of if's.
37473 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37475         maint.mk: factor the validation of RELEASE_TYPE
37476         With help from Jim Meyering.
37477         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37478         * top/maint.mk (_empty, _sp): Move their definition earlier.
37479         (member-check, release-type): New.
37480         Use the latter instead of $(RELEASE_TYPE).
37481         Remove now useless local checks.
37483 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37485         maint.mk: provide "make upload" to ease uploading
37486         See
37487         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37488         Do not depend simply on the current $(VERSION), as there may have been
37489         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37490         as "make release-commit" already does.
37492         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37493         "make TYPE".
37495         * top/maint.mk (upload_command, upload, release): New.
37496         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37497         (VERSION): first word of $(RELEASE) is always right.
37498         (emit_upload_commands): Adjust.
37499         * top/README-release: Update.
37501 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37503         maint.mk: silent rules
37504         With help from Stefano Lattarini.
37505         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37506         (announcement): Use $(AM_V_at).
37508 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37510         localename: port gl_locale_name_thread_unsafe to FreeBSD
37511         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37512         and use the simpler FreeBSD implementation on Mac OS X as well.
37513         Original idea suggested by Ed Maste in
37514         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
37516 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37518         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
37519         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
37520         * lib/mbuiter.c, lib/xsize.c: New files.
37521         * lib/binary-io.h (BINARY_IO_INLINE):
37522         * lib/eealloc.h (EEALLOC_INLINE):
37523         * lib/mbfile.h (MBFILE_INLINE):
37524         * lib/mbiter.h (MBITER_INLINE):
37525         * lib/mbuiter.h (MBUITER_INLINE):
37526         * lib/xsize.h (XSIZE_INLINE):
37527         New macros.
37528         Replace all uses of 'static inline' with them.
37529         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37530         * m4/eealloc.m4 (gl_EEALLOC):
37531         * m4/mbfile.m4 (gl_MBFILE):
37532         * m4/mbiter.m4 (gl_MBITER):
37533         * m4/xsize.m4 (gl_XSIZE):
37534         Do not require AC_C_INLINE.
37535         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
37536         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
37537         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
37538         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
37539         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
37540         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
37541         * modules/binary-io, modules/eealloc, modules/mbfile:
37542         * modules/mbiter, modules/mbuiter:
37543         (Depends-on): Add extern-inline.
37545         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
37546         * lib/pipe-filter-aux.c: New file.
37547         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
37548         Replace all uses of 'static inline' with it.
37549         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37550         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
37551         (filter_retcode): No real need for inline here.
37552         * modules/pipe-filter-gi, modules/pipe-filter-ii:
37553         (Files): Add lib/pipe-filter-aux.c.
37554         (Depends-on): Add extern-inline.
37555         (configure.ac): Do not require AC_C_INLINE.
37556         (lib_SOURCES): Add pipe-filter-aux.c.
37558         fdutimensat: omit unnecessary AC_C_INLINE
37559         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
37561         fchmodat, fchownat, fstatat: use extern-inline
37562         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
37563         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
37564         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
37565         New macros.
37566         * lib/openat.h:
37567         Replace all uses of 'static inline' with them.
37568         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37569         * modules/fchmodat, modules/fchownat, modules/fstatat:
37570         * modules/openat-h:
37571         (Depends-on):
37572         Add extern-inline.
37573         (configure.ac): Remove AC_C_INLINE.
37575         acl, mbchar, priv-set: use extern-inline
37576         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
37577         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
37578         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
37579         New macros.
37580         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
37581         Replace all uses of 'static inline' with it.
37582         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37583         * m4/acl.m4 (gl_FUNC_ACL):
37584         * m4/mbchar.m4 (gl_MBCHAR):
37585         * m4/priv-set.m4 (gl_PRIV_SET):
37586         Remove AC_C_INLINE, since 'inline' is no longer used directly.
37587         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
37588         Add extern-inline.
37590         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
37591         * m4/sockets.m4 (gl_SOCKETS):
37592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37593         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37594         environments where it's already guaranteed to work, so we needn't
37595         check for it at 'configure'-time.
37597         tls-tests: omit unnecessary 'inline'
37598         * tests/test-tls.c (perhaps_yield): No longer inline.
37599         Simplicity and portability trump efficiency in test cases.
37601         utimens-tests: avoid unnecessary 'inline'
37602         * modules/fdutimensat-tests (configure.ac):
37603         * modules/futimens-tests (configure.ac):
37604         * modules/utimens-tests (configure.ac):
37605         * modules/utimensat-tests (configure.ac):
37606         Remove AC_C_INLINE.
37607         * tests/test-utimens-common.h (ctime_compare):
37608         No longer inline.  Simplicity and portability trump efficiency here.
37610         misc: don't limit commentary to inline functions
37611         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37612         * lib/xalloc-oversized.h, lib/xsize.h:
37613         Contrast macros to functions in general, not just to inline functions,
37614         when the commentary does not apply only to inline functions.
37616 2012-09-20  Jim Meyering  <meyering@redhat.com>
37618         non-recursive-gnulib-prefix-hack: new module
37619         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37620         the file that originated in Bison.
37621         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37622         largely copied from a snippet that resided in bison's configure.ac.
37623         * modules/non-recursive-gnulib-prefix-hack: New file.
37624         * MODULES.html.sh (Support for maintaining and releasing projects):
37625         Add it.
37627 2012-09-18  Jim Meyering  <meyering@redhat.com>
37629         maint.mk: generalize _gl_tight_scope for non-recursive make
37630         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37631         that *.h would describe additional .h files in the directory
37632         specified by $(_gl_TS_dir).  I.e., add this...
37633         (_gl_TS_other_headers): New variable.
37635         maint.mk: exempt trailing blanks found in "binary" files
37636         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37637         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37638         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37640 2012-09-17  Jim Meyering  <meyering@redhat.com>
37642         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37643         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37644         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37645         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37647 2012-09-17  Jim Meyering  <meyering@redhat.com>
37649         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37650         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37651         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37652         It is not in the same category as "exit (0)" or "exit (1)", and
37653         besides, I know of no symbolic name for that 77.  Reported by
37654         Richard W.M. Jones in
37655         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37657 2012-09-17  Jim Meyering  <meyering@redhat.com>
37659         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37660         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37661         all uses of #define, not just those that start in column 1.
37662         Richard W.M. Jones reported a false positive in
37663         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37665 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37667         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37668         * lib/localcharset.c (locale_charset) [DARWIN7]:
37669         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37670         as these two values are incompatible.  Problem reported by Max Horn.
37671         For more discussion, please see
37672         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37674         doc: document sticky-EOF issue
37675         * doc/posix-functions/fgetc.texi (fgetc):
37676         * doc/posix-functions/fgets.texi (fgets):
37677         * doc/posix-functions/fread.texi (fread):
37678         * doc/posix-functions/fscanf.texi (fscanf):
37679         * doc/posix-functions/getc.texi (getc):
37680         * doc/posix-functions/getchar.texi (getchar):
37681         * doc/posix-functions/scanf.texi (scanf):
37682         Mention that glibc and default Solaris do not conform to
37683         C99 and POSIX-2001 or later, with respect to how getchar
37684         etc. behave when feof reports nonzero.
37686 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37688         poll: fix poll(0, NULL, msec)
37689         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37690         but nfd is 0.  In that case poll should behave like select.
37692 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37693             Paolo Bonzini  <bonzini@gnu.org>
37695         poll: fix for systems that can't recv() on a non-socket
37696         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37697         is readable.  In this case POLLHUP will not be supported.
37698         * doc/posix-functions/poll.texi: Document this.
37700 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37702         poll/select: document portability problems not fixed by Gnulib.
37703         * doc/posix-functions/poll.texi: poll does not work well on
37704         pipes under Windows.  It has the same limitations as select on
37705         BeOS.
37706         * doc/posix-functions/select.texi: select does not work well
37707         on pipes under Windows.
37709 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37711         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37712         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37713         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37714         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37716 2012-09-06  Eric Blake  <eblake@redhat.com>
37718         net_if: give more details about the bug being fixed
37719         * doc/posix-headers/net_if.texi: Add clarification.
37721 2012-09-05  Eric Blake  <eblake@redhat.com>
37723         net_if: new module
37724         * modules/net_if: New module, borrowing ideas from netinet_in.
37725         * m4/net_if_h.m4: New file.
37726         * lib/net_if.in.h: Likewise.
37727         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37728         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37729         * tests/test-net_if.c: Make function checks conditional.
37730         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37732 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37734         readutmp: fix non-portable UT_PID use
37735         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37736         Use `UT_PID (u) > 0' as absolute condition.
37738 2012-09-04  Jim Meyering  <meyering@redhat.com>
37740         fts: reduce two or more trailing spaces to just one, usually
37741         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37742         or more slashes, trim all but the final one.  But if a name consists
37743         solely of two slashes, don't modify it.  If it consists solely of
37744         three or more slashes, strip all but one.
37746         This is part of the solution to a minor problem with rm:
37747         it would print a bogus ELOOP diagnostic when failing to remove
37748         the slash-decorated name of a symlink-to-directory:
37750             $ mkdir d && ln -s d s && env rm -r s/
37751             rm: cannot remove 's': Too many levels of symbolic links
37753         With the change below and a trivial don't-trim-trailing-slashes
37754         adjustment to remove.c, it does this:
37756             $ env rm -r s/
37757             rm: cannot remove 's/': Not a directory
37759         Improved by: Eric Blake
37761         fts: when there is no risk of overlap, use memcpy, not memmove
37762         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37764 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37766         stdbool: be more compatible with mixed C/C++ compiles
37767         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37768         Define to bool, true, false, respectively, as GCC's builtin
37769         stdbool.h does.  Problem reported by Michael Goffioul in
37770         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37772 2012-08-28  Jim Meyering  <meyering@redhat.com>
37774         revert last change: it was not needed
37775         * tests/test-vc-list-files-git.sh: There's already a test for
37776         a working git, just below.
37778 2012-08-28  Jim Meyering  <meyering@redhat.com>
37780         tests: test-vc-list-files-git.sh: skip if git is not available
37781         * tests/test-vc-list-files-git.sh: Skip this test when git is
37782         not available.
37784 2012-08-26  Bruno Haible  <bruno@clisp.org>
37786         gnulib-tool: Remove no-op option --no-changelog.
37787         * gnulib-tool (func_usage): Don't mention --no-changelog.
37788         (do_changelog): Remove variable.
37789         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37791 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37793         doc: remove fdl-1.2.texi
37794         It is no longer used or maintained, and its use of @acronym
37795         is problematic.  See the thread containing
37796         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37797         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37798         * doc/old-licenses/fdl-1.2.texi: Remove.
37800         execinfo: port to FreeBSD
37801         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37802         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37803         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37804         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37806 2012-08-23  Jim Meyering  <meyering@redhat.com>
37808         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37809         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37810         to placate gcc's -Wold-style-declaration.
37812 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37814         doc: do not use @acronym
37815         * doc/inet_ntoa.texi (inet_ntoa):
37816         * doc/parse-datetime.texi (Seconds since the Epoch)
37817         (Specifying time zone rules):
37818         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37819         Don't use @acronym.  Problem reported by John Darlington in
37820         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37822 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37824         stdnoreturn: port to newer GCCs
37825         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37826         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37827         Problem reported by Jim Meyering in
37828         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37829         Also, rename the 'test' function to a void a clash with the
37830         already-supplied 'main' function; this fixes a bug that incorrectly
37831         rejected GCC 4.7.1's <stdnoreturn.h>.
37832         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37833         Document GCC problem.
37835 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37837         pipe-filter: fix comment typo
37838         * lib/pipe-filter.h: Mention correct function.
37840 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37842         execinfo: new module
37843         This is for Emacs.  Currently, it provides a no-effect stub
37844         on all platforms where it does not already work.
37845         It already works on glibc-based systems, and on Solaris 11.
37846         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37847         New files.
37848         * doc/glibc-headers/execinfo.texi (execinfo.h):
37849         * MODULES.html.sh (Misc): Document it.
37851 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37853         extern-inline: support old GCC 'inline'
37854         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37855         if available.  This applies to GCC versions 2.7 through 4.2, or
37856         when newer GCC is using -fgnu89-inline.  The goal is to address
37857         some of the performance issues mentioned by Bruno Haible in
37858         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37860 2012-08-20  Eric Blake  <eblake@redhat.com>
37862         maint.mk: avoid redundant file name in message
37863         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37864         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37865         (sc_makefile_path_separator_check): Remove bogus $(ME).
37867 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37869         timer-time: fix link order when static linking on glibc
37870         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37871         _after_ -lrt so that it's significant.
37873 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37875         timespec: omit unnecessary AC_C_INLINE
37876         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37878         stat-time: omit unnecessary AC_C_INLINE
37879         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37880         Do not require AC_C_INLINE.
37882         ignore-value: omit unnecessary AC_C_INLINE
37883         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37885         sys_select: avoid 'static inline'
37886         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37888         mktime: avoid 'static inline'
37889         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37890         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37892 2012-08-19  Bruno Haible  <bruno@clisp.org>
37894         gnulib-tool: Improve coding style.
37895         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37896         func_emit_lib_Makefile_am.
37897         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37899 2012-08-19  Bruno Haible  <bruno@clisp.org>
37901         gnulib-tool: Fix indentation.
37902         * gnulib-tool (func_import): Fix indentation.
37904 2012-08-19  Bruno Haible  <bruno@clisp.org>
37906         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37907         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37908         on the list of removed files.
37910 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37912         test-parse-datetime: avoid glibc leap-second glitch
37913         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37914         with the 2012 rules.  Problem reported by Bruce Dubbs in
37915         <http://bugs.gnu.org/12206>.
37917 2012-08-14  Bruno Haible  <bruno@clisp.org>
37919         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37920         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37921         from argument.
37922         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37924 2012-08-14  Eric Blake  <eblake@redhat.com>
37926         ldexp: relax license
37927         * modules/ldexp (License): Trivial relax, since the module only
37928         provides a permissively licensed m4 file.
37930 2012-08-13  Bruno Haible  <bruno@clisp.org>
37932         gnulib-tool: Fix persistence of --witness-c-macro option.
37933         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37934         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37936 2012-08-11  Eric Blake  <eblake@redhat.com>
37938         count-leading-zeros: use a lookup table on non-gcc compilers
37939         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
37940         alternate implementation, suggested by Jim Meyering.
37942 2012-08-10  Eric Blake  <eblake@redhat.com>
37944         count-leading-zeros: new module
37945         * modules/count-leading-zeros: New module.
37946         * m4/count-leading-zeros.m4: New file.
37947         * lib/count-leading-zeros.h: Likewise.
37948         * modules/count-leading-zeros-tests: New test.
37949         * tests/test-count-leading-zeros.c: New file.
37950         * MODULES.html.sh (Integer arithmetic functions): Document it.
37952 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37953             Jim Meyering  <meyering@redhat.com>
37955         maintainer-makefile: Fix syntax error with dash.
37956         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37957         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37959 2012-08-05  Jim Meyering  <meyering@redhat.com>
37961         extern-inline: also ignore -Wmissing-declarations
37962         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37963         required with gcc-4.8.0-to-be.
37965         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37966         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37967         for /error ?([^,]*)/.  This avoids false-positives for strings like
37968         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37970 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37972         gnumakefile: better interaction with Automake-NG
37973         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37974         Automake-NG always contain a definition of VPATH, even in non-VPATH
37975         builds (its value being simply '.' in that case).  So, in the
37976         'clean-GNUmakefile' rule, to determine whether running under a
37977         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37978         '$(VPATH)' expands to the empty string.
37980 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37982         base64: Use extern C scope in header file, for C++.
37983         * lib/base64.h: Add C++ namespace protection.
37985 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37987         stat-time, timespec, u64: support naive out-of-dir builds
37988         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37989         Use '#include "foo.h"', not '#include <foo.h>', when including
37990         one's own interface.  This works better when configuring with
37991         out-of-directory builds, since packages need not add an
37992         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37994 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37996         utimens: use extern-inline
37997         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37998         * lib/utimens.h: Add copyright notice, since this is now large enough
37999         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38000         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38001         * modules/utimens (Depends-on): Add extern-inline.
38003         u64: use extern-inline
38004         * lib/u64.c: New file.
38005         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38006         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38007         * modules/u64 (Files): Add lib/u64.c.
38008         (Depends-on): Add extern-inline.
38009         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38010         does that now.
38011         (lib_SOURCES): Add u64.c.
38013         timespec: use extern-inline
38014         * lib/timespec.c: New file.
38015         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38016         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38017         * modules/timespec (Files): Add lib/timespec.c.
38018         (Depends-on): Add extern-inline.
38019         (lib_SOURCES): Add timespec.c.
38021         stat-time: use extern-inline
38022         * lib/stat-time.c: New file.
38023         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38024         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38025         * modules/stat-time (Files): Add lib/stat-time.c.
38026         (Depends-on): Add extern-inline.
38027         (lib_SOURCES): Add stat-time.c.
38029         extern-inline: new module
38030         * modules/extern-inline, m4/extern-inline.m4: New files.
38031         This is for better support of 'extern inline' a la ISO C99,
38032         with a portable alternative on compilers that do not support
38033         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38034         of the Emacs executable, when compiled with debugging disabled,
38035         which is a typical way that Emacs is built while developing.
38037 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38039         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38040         * build-aux/do-release-commit-and-tag: Move variable definitions
38041         together.
38042         ($branch): Instead of defaulting to "master", default to the current
38043         branch (as gnu-web-doc-update does).
38044         (help): Display the current values of the option arguments.
38045         * top/maint.mk (release-commit): New.
38046         * top/README-release: Simplify the corresponding step.
38048 2012-07-30  Eric Blake  <eblake@redhat.com>
38050         passfd: fix comment on recvfd
38051         * lib/passfd.c (recvfd): Fix comment.
38052         Reported by Jann Horn <jannhorn@googlemail.com>.
38054 2012-07-30  Jim Meyering  <meyering@redhat.com>
38056         maint.mk: avoid a sub-shell
38057         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38059 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38061         maint.mk: use silent-rules support from Automake
38062         * top/maint.mk (news-check, vc-diff-check, announcement)
38063         (no-submodule-changes, alpha beta stable, release-prep)
38064         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38066 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38068         maint.mk: provide a web-manual-update target
38069         * top/maint.mk: here.
38070         * top/README-release: Use it to simplify the web manual update step.
38072 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38074         README-release: shorten the circuit to post a news
38075         * top/README-release: Point directly to the news submission form.
38077 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38079         gnu-web-doc-update: fix --help
38080         * build-aux/gnu-web-doc-update: The information "top level" was written
38081         twice.
38083 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38085         maint.mk: absolute VPATH issue
38086         * top/maint.mk (release-prep): Help Git find .git/.
38087         From Jim Meyering.
38089 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38091         gitlog-to-changelog: fix previous change
38092         * build-aux/gitlog-to-changelog: Fix condition.
38093         Add missing ";".
38095 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38097         gitlog-to-changelog: don't expect .git to be in $srcdir
38098         Reported by Bruno Haible.
38099         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38100         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38101         Use it.
38103 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38105         maint.mk: absolute VPATH build fix
38106         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38107         $(srcdir) is not a parent of $(builddir).
38109 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38111         clean-temp: Fix memory leak.
38112         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38113         'files' members of tmpdir.
38115 2012-07-27  Jim Meyering  <meyering@redhat.com>
38117         maint.mk: new rule: refresh-gnulib-patches
38118         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38119         Use this rule to refresh them.
38120         * top/maint.mk (refresh-gnulib-patches): New rule.
38122 2012-07-24  Bruno Haible  <bruno@clisp.org>
38124         gnulib-tool: Fix handling of inctests variable.
38125         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38126         Reported by Nick Bowler <nbowler@elliptictech.com>.
38128 2012-07-22  Bruno Haible  <bruno@clisp.org>
38130         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38131         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38132         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38133         Remove exemption for getpass.h.
38134         Suggested by Eric Blake.
38136 2012-07-20  Eric Blake  <eblake@redhat.com>
38138         verify: document conflict with -Wnested-externs
38139         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38141         maint.mk: forbid exit(-1)
38142         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38144 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38146         fsusage: port back to Solaris
38147         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38148         error (fsd not declared) on Solaris 10.  Reported privately by
38149         Andrew Borodin.
38151 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38153         gnu-web-doc-update: fix error messages
38154         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38156         gnu-web-doc-update: check the requirements.
38157         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38158         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38159         * build-aux/bootstrap (find_tool): Comment change.
38161 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38163         maint.mk: minor simplication.
38164         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38165         for default values.
38167 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38169         gitlog-to-changelog: VPATH build issues
38170         If builddir is not a subdirectory of srcdir, running git from it will
38171         fail.
38172         * build-aux/gitlog-to-changelog (--srcdir): New option.
38174 2012-07-15  Bruno Haible  <bruno@clisp.org>
38176         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38177         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38178         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38179         Remove exemption for fpending.h.
38180         Suggested by Eric Blake.
38182 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38184         pthread_sigmask: fix bug on FreeBSD 9
38185         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38186         Include string.h.
38187         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38188         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38189         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38190         but pthread_sigmask (1729, NULL, NULL) returns zero.
38191         See <http://bugs.gnu.org/11884>.
38192         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38193         by inspecting whether the main call changed the old mask.
38195 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38197         README-release: make it more legible
38198         * top/README-release: Improve typography slightly.
38200 2012-07-15  Jim Meyering  <meyering@redhat.com>
38202         maint: require that each sc_... command start with "@"
38203         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38204         "make sc_maint" helps us avoid this nit.
38206 2012-07-15  Jim Meyering  <meyering@redhat.com>
38208         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38209         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38211 2012-07-13  Eric Blake  <eblake@redhat.com>
38213         maint.mk: new syntax check for HAVE_DECL checks
38214         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38215         * cfg.mk
38216         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38217         Exempt some false positives.
38218         Based on a report by Karel Zak.
38220         argp: make HAVE_DECL usage consistent
38221         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38222         macros, not whether they are defined.
38223         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38224         convention with other declaration checks.
38225         Reported by Karel Zak, with suggestions from Paul Eggert.
38227         stat-time: relax license to LGPLv2+
38228         * modules/stat-time (License): Relax, with consent of all authors.
38230         strndup: fix m4 usage error
38231         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38232         defined, to either 0 or 1.
38233         Reported by Karel Zak.
38235 2012-07-11  Jim Meyering  <meyering@redhat.com>
38237         maint: enable the sc_avoid_if_before_free syntax-check rule
38238         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38239         (if_before_free_offenders_): Define.
38240         (if_before_free_basename_re_): Define.
38241         Exempt current files with useless if-before-free.
38243 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38245         gettext: do not assume '#define ... defined ...' behavior
38246         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38247         Do not use '#define FOO ... defined BAR ...', as the C standard says
38248         it's not portable to expect that this works after macro expansion.
38249         Problem reported for gzip by Steven M. Schweda in
38250         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38252 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38254         getloadavg: clean out old Emacs and Autoconf cruft
38255         See Glenn Morris in <http://bugs.gnu.org/11905>.
38256         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38257         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38258         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38259         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38261 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38263         bootstrap: let warn be like tests/init.sh's warn_
38264         Reported by Jim Meyering.
38265         * build-aux/bootstrap (warn): Remove, replaced by...
38266         (warnf_, warn_): these.
38267         Adjust callers.
38268         Shorten messages that no longer fit in 80 columns.
38270 2012-07-09  Bruno Haible  <bruno@clisp.org>
38272         getopt: Simplify after Emacs changed.
38273         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38274         (gl_GETOPT_IFELSE): Remove macro.
38276 2012-07-09  Jim Meyering  <meyering@redhat.com>
38278         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38279         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38281         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38282         Bugs in both of those conspired to make the
38283         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38284         _sc_search_regexp's handling of non-empty $in_files would filter
38285         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38286         choice of in_files value meant there would be no match in most
38287         projects, due to the presence of two or more Makefile.in files.
38288         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38289         Fix a bug in how a non-empty $$in_files was processed:
38290         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38291         in spite of the name, it's a regexp, not a list of file names.
38293 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38295         getloadavg, getopt: fix commentary re configure.in
38296         Autoconf is deprecating the name 'configure.in', so change it to
38297         to the new name 'configure.ac' in a couple of places.
38298         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38299         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38300         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38301         Emacs has renamed it to configure.ac, and it no longer refers
38302         to these macros anyway.
38304         timespec: mark functions with const attributes
38305         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38306         Mark with _GL_ATTRIBUTE_CONST.
38308 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38310         canonicalize[-lgpl]: handle "guessing" values when cross-building
38311         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38312         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38313         matches "*yes" instead of just "yes".  Regression introduced in commit
38314         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38316 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38317             Bruno Haible  <bruno@clisp.org>
38319         canonicalize: make the right guess when cross-compiling to GNU
38320         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38321         determine whether cross-compiling to glibc systems, so as to
38322         include GNU/Hurd.
38324 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38326         timespec-sub: avoid duplicate include
38327         * lib/timespec-sub.c: Do not include <config.h> twice.
38328         Reported by Juanma Barranquero.
38330 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38332         bootstrap: use a more consistent error reporting scheme
38333         * build-aux/bootstrap (warn, die): New.
38334         Use them.
38336 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38338         sys_time: allow too-wide tv_sec
38339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38340         timeval even if tv_sec is wider than time_t.  This allows
38341         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38342         as without this patch gnulib replaces struct timeval
38343         and OpenBSD futimes therefore has a type mismatch.
38344         * doc/posix-headers/sys_time.texi: Mention this.
38346         pthread: check for both pthread_create and pthread_join
38347         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38348         alter the check so that it tests for both pthread_create and
38349         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38350         Suggested by Bruno Haible and Richard Yao in
38351         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38353         parse-datetime: doc tuneup
38354         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38355         spacing issues.
38357 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38359         do-release-commit-and-tag: fix the previous commit
38360         * build-aux/do-release-commit-and-tag: Actually the test was right,
38361         but the comment and the error message were misleading.
38362         Fix comment, and improve error message.
38363         Perform check first, so that NEWS is not modified uselessly.
38365         do-release-commit-and-tag: fix typo
38366         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38367         _not_ start with a stub.
38369 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38371         pthread: check for pthread_create, not pthread_join
38372         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38373         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38374         pthread_join in libc.  I hope this removes the need for all the
38375         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38376         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38378 2012-07-04  Jim Meyering  <meyering@redhat.com>
38380         parse-datetime: fix failure to diagnose invalid input
38381         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38382         rather than diagnosing the invalid input.  Now it reports this:
38383         date: invalid date '\260'
38384         * lib/parse-datetime.y (to_uchar): Define.
38385         (yylex): Don't sign-extend "other" bytes.
38386         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38387         Thanks to Bruno Haible for the patch to this file.
38388         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38389         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38391 2012-07-03  Jim Meyering  <meyering@redhat.com>
38393         bootstrap: do not require now-removed build-aux/missing
38394         Now that build-aux/missing is, er, missing, bootstrap would
38395         silently fail.
38396         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38397         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38398         no longer part of gnulib.
38399         Diagnose the failure.
38401 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38403         alloca: add support for HP NonStop TNS/E native
38404         * lib/alloca.in.h (alloca): Support the new host.
38405         From a suggestion by Joachim Schmitz in
38406         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38408 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38410         fsusage: remove code not needed on non GNU/Linux systems.
38412         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38413         Don't include headers no longer needed in this case.
38414         * lib/fsusage.c [STAT_STATVFS &&
38415         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38416         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38418 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38420         fsusage: include files needed for glibc 2.6 fallback
38421         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38422         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38423         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38424         Problem reported by Ludovic Courtès in
38425         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38427         fsusage: avoid needless check on GNU/Linux
38428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38429         on GNU/Linux systems, since it can't possibly work.
38431 2012-07-01  Bruno Haible  <bruno@clisp.org>
38433         log: Fix an autoconf >= 2.64 warning.
38434         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38435         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38437 2012-06-28  Bruno Haible  <bruno@clisp.org>
38439         log10f: Fix possible configuration problem.
38440         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38441         $LOGF_LIBM.
38442         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38444 2012-06-28  Bruno Haible  <bruno@clisp.org>
38446         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38447         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38448         not gl_cv_func_unlink_works.
38449         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38451 2012-06-27  Eric Blake  <eblake@redhat.com>
38453         config: drop scripts that automake says are not independent
38454         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38455         * build-aux/elisp-comp: Delete.
38456         * build-aux/missing: Likewise.
38457         * build-aux/ylwrap: Likewise.
38458         * modules/elisp-comp: Likewise.
38459         * MODULES.html.sh: Drop mention of elisp-comp.
38460         * NEWS: Mention this.
38462 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38464         root-uid: new module
38465         This is for portability to Tandem's NonStop Kernel.
38466         * lib/root-uid.h, modules/root-uid: New files.
38467         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38468         * lib/write-any-file.c, tests/test-sethostname2.c:
38469         Include "root-uid.h".
38470         * lib/euidaccess.c (euidaccess):
38471         * lib/pt_chown.c (main):
38472         * lib/unlinkdir.c (cannot_unlink_dir):
38473         * lib/write-any-file.c (can_write_any_file):
38474         * m4/mknod.m4 (gl_FUNC_MKNOD):
38475         * tests/test-sethostname2.c (geteuid, main):
38476         Don't assume ROOT_UID == 0.
38477         * modules/euidaccess (Depends-on):
38478         * modules/pt_chown (Depends-on):
38479         * modules/sethostname-tests (Depends-on):
38480         * modules/unlinkdir (Depends-on):
38481         * modules/write-any-file (Depends-on):
38482         Add root-uid.
38484         regex: use locale-independent comparison for codeset name
38485         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38486         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38487         for codeset name.
38488         * lib/regex_internal.h: Do not include <strings.h>, since we
38489         no longer use strcasecmp.
38490         * modules/regex (Depends-on): Remove strcase.
38492 2012-06-23  Bruno Haible  <bruno@clisp.org>
38494         getopt-posix: No longer guarantee that option processing is resettable.
38495         * doc/posix-functions/getopt.texi: Drop description of problem with
38496         internal state. Fix info about mingw and msvc9.
38497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38498         option processing by getopt(). Run three test programs instead of one.
38499         Simplify cross-compilation guess.
38500         * NEWS: Mention the change.
38501         Reported by Rich Felker <dalias@aerifal.cx>.
38503 2012-06-26  Bruno Haible  <bruno@clisp.org>
38505         argp, regex: Ensure strcasecmp gets declared.
38506         * lib/argp-help.c: Include <strings.h>.
38507         * lib/regex_internal.h: Likewise.
38508         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38510 2012-06-24  Bruno Haible  <bruno@clisp.org>
38512         ptsname_r: Make it consistent with ptsname on AIX.
38513         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38514         implementation as for OSF/1.
38515         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
38516         a pty master.
38518         ptsname_r: Make it consistent with ptsname on OSF/1.
38519         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38520         OSF/1.
38522 2012-06-24  Bruno Haible  <bruno@clisp.org>
38524         ttyname_r: Fix result on OSF/1, Solaris.
38525         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
38527 2012-06-24  Bruno Haible  <bruno@clisp.org>
38529         ptsname_r: Add support for Solaris.
38530         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38531         Solaris.
38533         ptsname_r: Fix test failure on native Windows.
38534         * modules/ptsname_r (Depends-on): Add isatty.
38536         ptsname_r: Fix test failures on IRIX, Solaris.
38537         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
38538         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
38539         accordingly.
38540         * lib/ptsname_r.c: Include <fcntl.h>.
38541         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
38542         set errno if fd is invalid.
38543         * tests/test-isatty.c (main): Update comments.
38545 2012-06-24  Bruno Haible  <bruno@clisp.org>
38547         ptsname test: Extend test.
38548         * tests/test-ptsname.c: Include <errno.h>.
38549         (main): Test behaviour with invalid file descriptor.
38551 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38553         time: fix obsolete comment
38554         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
38555         reference to HAVE_STRUCT_TIMESPEC in comment.
38557 2012-06-23  Bruno Haible  <bruno@clisp.org>
38559         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
38560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
38561         does not handle abbreviated long options with equivalent
38562         disambiguations, set gl_replace_getopt to yes.
38563         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
38565 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38567         time_r: fix typo that always overrode localtime_r decl
38568         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
38569         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
38570         not in a standard include.
38572 2012-06-22  Bruno Haible  <bruno@clisp.org>
38574         Write "Mac OS X" instead of "MacOS X".
38575         * README: Write "Mac OS X" instead of "MacOS X".
38576         * build-aux/bootstrap: Likewise.
38577         * build-aux/install-reloc: Likewise.
38578         * lib/acl-internal.h: Likewise.
38579         * lib/acl_entries.c: Likewise.
38580         * lib/argp-ba.c: Likewise.
38581         * lib/argp-pv.c: Likewise.
38582         * lib/config.charset: Likewise.
38583         * lib/copy-acl.c: Likewise.
38584         * lib/csharpexec.c: Likewise.
38585         * lib/euidaccess.c: Likewise.
38586         * lib/fbufmode.c: Likewise.
38587         * lib/fflush.c: Likewise.
38588         * lib/file-has-acl.c: Likewise.
38589         * lib/filemode.h: Likewise.
38590         * lib/fpurge.c: Likewise.
38591         * lib/freadable.c: Likewise.
38592         * lib/freadahead.c: Likewise.
38593         * lib/freading.c: Likewise.
38594         * lib/freadptr.c: Likewise.
38595         * lib/freadseek.c: Likewise.
38596         * lib/fseeko.c: Likewise.
38597         * lib/fseterr.c: Likewise.
38598         * lib/fsusage.c: Likewise.
38599         * lib/fwritable.c: Likewise.
38600         * lib/fwriting.c: Likewise.
38601         * lib/get-rusage-as.c: Likewise.
38602         * lib/get-rusage-data.c: Likewise.
38603         * lib/getdomainname.c: Likewise.
38604         * lib/idpriv-drop.c: Likewise.
38605         * lib/idpriv-droptemp.c: Likewise.
38606         * lib/localcharset.c: Likewise.
38607         * lib/locale.in.h: Likewise.
38608         * lib/localename.c: Likewise.
38609         * lib/mbsrtowcs-state.c: Likewise.
38610         * lib/nproc.c: Likewise.
38611         * lib/passfd.c: Likewise.
38612         * lib/posix_openpt.c: Likewise.
38613         * lib/printf-parse.c: Likewise.
38614         * lib/progreloc.c: Likewise.
38615         * lib/safe-read.h: Likewise.
38616         * lib/safe-write.h: Likewise.
38617         * lib/sched.in.h: Likewise.
38618         * lib/set-mode-acl.c: Likewise.
38619         * lib/signal.in.h: Likewise.
38620         * lib/stdint.in.h: Likewise.
38621         * lib/stdio-impl.h: Likewise.
38622         * lib/stdlib.in.h: Likewise.
38623         * lib/strtod.c: Likewise.
38624         * lib/sys_select.in.h: Likewise.
38625         * lib/tcgetsid.c: Likewise.
38626         * lib/unistd.in.h: Likewise.
38627         * lib/unlockpt.c: Likewise.
38628         * lib/vasnprintf.c: Likewise.
38629         * lib/vma-iter.c: Likewise.
38630         * lib/wcsrtombs-state.c: Likewise.
38631         * m4/acl.m4: Likewise.
38632         * m4/acosl.m4: Likewise.
38633         * m4/asinl.m4: Likewise.
38634         * m4/atanl.m4: Likewise.
38635         * m4/c-stack.m4: Likewise.
38636         * m4/cosl.m4: Likewise.
38637         * m4/expl.m4: Likewise.
38638         * m4/extensions.m4: Likewise.
38639         * m4/fdatasync.m4: Likewise.
38640         * m4/fmal.m4: Likewise.
38641         * m4/frexp.m4: Likewise.
38642         * m4/frexpf.m4: Likewise.
38643         * m4/frexpl.m4: Likewise.
38644         * m4/fsusage.m4: Likewise.
38645         * m4/getdomainname.m4: Likewise.
38646         * m4/getloadavg.m4: Likewise.
38647         * m4/getopt.m4: Likewise.
38648         * m4/gettext.m4: Likewise.
38649         * m4/gnulib-common.m4: Likewise.
38650         * m4/intdiv0.m4: Likewise.
38651         * m4/intlmacosx.m4: Likewise.
38652         * m4/largefile.m4: Likewise.
38653         * m4/ldexpl.m4: Likewise.
38654         * m4/link-follow.m4: Likewise.
38655         * m4/locale-ar.m4: Likewise.
38656         * m4/locale-fr.m4: Likewise.
38657         * m4/locale-ja.m4: Likewise.
38658         * m4/locale-tr.m4: Likewise.
38659         * m4/locale-zh.m4: Likewise.
38660         * m4/locale_h.m4: Likewise.
38661         * m4/lock.m4: Likewise.
38662         * m4/logl.m4: Likewise.
38663         * m4/mathfunc.m4: Likewise.
38664         * m4/minus-zero.m4: Likewise.
38665         * m4/mktime.m4: Likewise.
38666         * m4/mmap-anon.m4: Likewise.
38667         * m4/multiarch.m4: Likewise.
38668         * m4/nanosleep.m4: Likewise.
38669         * m4/nocrash.m4: Likewise.
38670         * m4/poll.m4: Likewise.
38671         * m4/printf-frexpl.m4: Likewise.
38672         * m4/printf.m4: Likewise.
38673         * m4/signbit.m4: Likewise.
38674         * m4/sinl.m4: Likewise.
38675         * m4/sqrtl.m4: Likewise.
38676         * m4/strerror_r.m4: Likewise.
38677         * m4/tanl.m4: Likewise.
38678         * m4/threadlib.m4: Likewise.
38679         * m4/ttyname_r.m4: Likewise.
38680         * m4/unlink.m4: Likewise.
38681         * m4/visibility.m4: Likewise.
38682         * m4/wcwidth.m4: Likewise.
38683         * tests/minus-zero.h: Likewise.
38684         * tests/test-alloca-opt.c: Likewise.
38685         * tests/test-copy-acl.sh: Likewise.
38686         * tests/test-copy-file.sh: Likewise.
38687         * tests/test-fdatasync.c: Likewise.
38688         * tests/test-file-has-acl.sh: Likewise.
38689         * tests/test-flock.c: Likewise.
38690         * tests/test-fsync.c: Likewise.
38691         * tests/test-localename.c: Likewise.
38692         * tests/test-malloca.c: Likewise.
38693         * tests/test-nonblocking-pipe.h: Likewise.
38694         * tests/test-nonblocking-socket.h: Likewise.
38695         * tests/test-openpty.c: Likewise.
38696         * tests/test-posix_openpt.c: Likewise.
38697         * tests/test-ptsname.c: Likewise.
38698         * tests/test-ptsname_r.c: Likewise.
38699         * tests/test-sameacls.c: Likewise.
38700         * tests/test-select.h: Likewise.
38701         * tests/test-set-mode-acl.sh: Likewise.
38702         * tests/test-snprintf-posix.h: Likewise.
38703         * tests/test-sprintf-posix.h: Likewise.
38704         * tests/test-strtod.c: Likewise.
38705         * tests/test-time.c: Likewise.
38706         * tests/test-vasnprintf-posix.c: Likewise.
38707         * tests/test-vasprintf-posix.c: Likewise.
38708         * doc/acl-resources.txt: Likewise.
38709         * doc/**/*.texi: Likewise.
38710         Reported by Max Horn <max@quendi.de>.
38712 2012-06-22  Bruno Haible  <bruno@clisp.org>
38714         grantpt: Relax requirement regarding invalid file descriptors.
38715         * lib/grantpt.c: Don't include <fcntl.h>.
38716         (grantpt): Don't verify the validity of the file descriptor.
38717         * modules/grantpt (Depends-on): Remove fcntl-h.
38718         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38719         file descriptors.
38720         * doc/posix-functions/grantpt.texi: Document more platforms on which
38721         grantpt succeeds for invalid file descriptors.
38722         Reported by Rich Felker <dalias@aerifal.cx>.
38724 2012-06-22  Bruno Haible  <bruno@clisp.org>
38726         fbufmode test: Don't test unportable behaviour.
38727         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38728         (main): Invoke it three times.
38729         Reported by Szabolcs Nagy <nsz@port70.net>
38730         and Rich Felker <dalias@aerifal.cx>.
38732 2012-06-21  Bruno Haible  <bruno@clisp.org>
38734         gnulib-tool: Refactor inctests variable.
38735         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38736         (func_modules_transitive_closure,
38737         func_modules_transitive_closure_separately,
38738         func_import, func_create_testdir): Update.
38740         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38741         * gnulib-tool: Accept option --without-tests.
38742         (func_usage): Document --without-tests option. Rearrange.
38743         (inctests): Normalize according to the mode.
38744         * NEWS: Mention the change.
38745         Suggested by Simon Josefsson.
38747 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38749         parse-duration test: Avoid spurious output.
38750         * tests/test-parse-duration.sh: Reindent with leading tabs.
38752 2012-06-21  Jim Meyering  <meyering@redhat.com>
38754         maint: disable the strncpy prohibition
38755         * cfg.mk: Do not prohibit strncpy here.
38757 2012-06-21  Bruno Haible  <bruno@clisp.org>
38759         nonblocking: Avoid compilation error on mingw64.
38760         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38761         fscanf.
38762         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38763         * modules/vfscanf (configure.ac): Likewise.
38764         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38765         definition only if stdio.h has prepared it.
38766         Reported by Daniel P. Berrange <berrange@redhat.com>.
38768 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38770         gnulib-tool: Use readlink if it is available.
38771         * gnulib-tool (func_readlink): Choose function more appropriately.
38773 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38775         posixtm-tests: port to buggy compiler
38776         Problem reported by Simon Josefsson in
38777         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38778         * modules/posixtm-tests (Depends-on): Add stdint.
38779         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38780         Now of type int_least64_t, not int64_t, both because that's
38781         what INT64_C returns and because int_least64_t works even
38782         on 72-bit hosts.
38783         (T): Use INT64_C on constants outside the traditional int range,
38784         to work around compiler bug noted by Simon.
38786         mktime: fix integer overflow in 'configure'-time test
38787         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38788         after integer overflow.  Problem reported by Rich Felker in
38789         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38790         Also, don't look for further instances of a bug if we've already
38791         found one instance; this helps 'configure' run faster.
38793 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38795         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38796         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38797         GetVersionEx correctly.
38798         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38800 2012-06-20  Bruno Haible  <bruno@clisp.org>
38802         fdopen: Allow implementations that don't reject invalid fd arguments.
38803         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38804         succeeds.
38805         Reported by Rich Felker <dalias@aerifal.cx>.
38807 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38809         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38810         bring in LIBINTL.
38812 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38814         init.sh: do not rely on autoupated PWD
38815         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38816         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38817         Although Nelson's bug was not necessarily fixed by this patch,
38818         it seems wise to make the change for safety.
38819         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38820         automagically after 'cd'; this is not reliable on older shells.
38821         (setup_): Fail if we cannot cd to temporary directory.
38823 2012-06-19  Bruno Haible  <bruno@clisp.org>
38825         stat, fstat: Avoid warnings on mingw64.
38826         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38827         redefining.
38828         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38829         Reported by Daniel P. Berrange <berrange@redhat.com>.
38831 2012-06-19  Bruno Haible  <bruno@clisp.org>
38833         stdioext: Add support for musl libc.
38835         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38836         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38838         * m4/fseterr.m4: New file.
38839         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38840         function exists.
38841         * modules/fseterr (Files): Add m4/fseterr.m4.
38842         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38843         __fseterr does not exist.
38844         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38846         * lib/freadable.h: Update comment.
38848         * lib/fwritable.h: Update comment.
38850         * lib/freading.h: Update comment.
38852         * lib/fwriting.h: Update comment.
38854         * m4/freadahead.m4: New file.
38855         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38856         that function exists.
38857         * modules/freadahead (Files): Add m4/freadahead.m4.
38858         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38859         __freadahead does not exist.
38860         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38862         * m4/freadptr.m4: New file.
38863         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38864         function exists.
38865         * modules/freadptr (Files): Add m4/freadptr.m4.
38866         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38867         __freadptr does not exist.
38868         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38870         * m4/freadseek.m4: New file.
38871         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38872         exists.
38873         * modules/freadseek (Files): Add m4/freadseek.m4.
38874         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38876         * lib/fpurge.c (fpurge): Update comment.
38878         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38880 2012-06-19  Bruno Haible  <bruno@clisp.org>
38882         *printf-posix: Put more info into config.log.
38883         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38884         exit code into config.log.
38886 2012-06-19  Bruno Haible  <bruno@clisp.org>
38888         getopt-gnu: Fix exit code overflow in autoconf test.
38889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38890         to keep them below < 128.
38892 2012-06-17  Jim Meyering  <meyering@redhat.com>
38894         maint.mk: fix typo in code to derive GPG key at release time
38895         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38897 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38899         regex: avoid warning when pointers are not long
38900         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38901         and uintptr_t, not long, for portability to hosts where pointers and
38902         long have different sizes.  Issue noted by Daniel P. Berrange in
38903         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38904         and fix suggested by Bruno Haible in
38905         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38907 2012-06-17  Bruno Haible  <bruno@clisp.org>
38909         dummy: Relicense into the public domain.
38910         * modules/dummy (License): Set to "public domain".
38911         Suggested by Reuben Thomas.
38913 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38915         announce-gen: VPATH issues
38916         * build-aux/announce-gen (--srcdir): New option, used to trim the
38917         $srcdir part of the path from $builddir to NEWS.
38918         * top/maint.mk (announcement): Adjust.
38920 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38922         gnu-web-doc-update: VPATH builds
38923         * build-aux/gnu-web-doc-update (--builddir): New option.
38924         Revamp the handling of options.
38925         Prefer $(...) to `...`.
38926         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38927         the template, and it is GNU mktemp specific.
38928         Prefer set -e to long series of &&.
38929         Restore the initial git branch, not "master".
38930         Properly initialize submodules (don't rely only on bootstrap).
38931         Do not reconfigure blindly, use config.status.
38932         * top/README-release: Update instructions for gnu-web-doc-update.
38934 2012-06-11  Jim Meyering  <meyering@redhat.com>
38936         maint.mk: revert most of the previous change re "all these"
38937         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
38938         For rationale, see the discussion at
38939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
38941 2012-06-10  Karl Berry  <karl@gnu.org>
38943         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
38945         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38947 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38949         parse-duration: Relicense under LGPLv2+.
38950         * modules/parse-duration (License): Change to LGPLv2+.
38952 2012-06-10  Jim Meyering  <meyering@redhat.com>
38954         maint.mk: prohibit common grammar error: "all these"
38955         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38956         the list of prohibited word sequences.  It should be "all of these".
38957         * lib/tempname.c (__gen_tempname): Fix one of them.
38959 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38961         do-release-commit-and-tag: support VPATH builds
38962         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38963         (noteworthy): Defined earlier to factor its value.
38964         (noteworthy_stub): New.
38965         Use it to factor.
38966         (help_version): Split into...
38967         (help, version): these.
38968         Adjust the option processing part.
38969         Support "--option=value" in addition to "--option value".
38970         (builddir): New.
38971         (--builddir): New option.
38972         * top/README-release: Document this.
38973         Reword slightly so that the reader cannot understand that he
38974         has to do these steps before calling do-release-commit-and-tag.
38976 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38978         readme-release: also require announce-gen and maintainer-makefile
38979         * modules/readme-release (Depends-on): here.
38980         * modules/announce-gen, modules/do-release-commit-and-tag,
38981         modules/gnu-web-doc-update, modules/maintainer-makefile
38982         (Description): Point to readme-release.
38984 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38986         maint.mk: fix VPATH issues.
38987         * top/maint.mk (news-check): GNU Make understand $< very well.
38988         (release-prep): NEWS is in $(srcdir).
38990 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38992         readme-release: require the promoted modules.
38993         * modules/readme-release (Depends-on): Add
38994         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38995         in this text.
38997 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38998             Bruno Haible  <bruno@clisp.org>
39000         error, strerror-override: Support mingw64 from Fedora 17.
39001         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39002         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39003         EINPROGRESS.
39004         * lib/strerror-override.h (strerror_override): Test it.
39005         * lib/strerror-override.c (strerror_override): Likewise.
39006         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39008 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39009             Bruno Haible  <bruno@clisp.org>
39011         error, strerror-override: Support mingw64 from Fedora 17.
39012         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39013         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39014         * lib/strerror-override.h (strerror_override): Test it.
39015         * lib/strerror-override.c (strerror_override): Likewise.
39017 2012-06-03  Bruno Haible  <bruno@clisp.org>
39019         error, strerror-override: Support new errno values from POSIX:2008.
39020         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39021         ENOTRECOVERABLE.
39022         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39023         platforms.
39024         * lib/strerror-override.c (strerror_override): Conditionalize the
39025         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39026         * lib/strerror-override.h (strerror_override): Declare also if
39027         GNULIB_defined_EOWNERDEAD is defined.
39028         * tests/test-errno.c (e130, e131): New variables.
39029         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39030         ENOTRECOVERABLE.
39031         Reported by Paolo Bonzini.
39033 2012-05-31  Jim Meyering  <meyering@redhat.com>
39035         savewd: add missing dependency on sys_wait module
39036         * modules/savewd (Depends-on): Add sys_wait, needed at least
39037         for MSVC.  Report and suggested change by Michael Goffioul.
39039 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39041         system-quote-tests: port to CentOS 5
39042         Problem reported by Tom G. Christensen in
39043         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39044         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39046 2012-05-29  Jim Meyering  <meyering@redhat.com>
39048         maint: fix typos in comments and ChangeLog
39049         Culprits identified and fixed mostly automatically using these commands:
39050         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39051         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39052         using http://github.com/lyda/misspell-check
39053         * ChangeLog: Fix typos.
39054         * doc/solaris-versions: Likewise.
39055         * lib/regexec.c (re_search_stub): Likewise.
39056         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39058 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39060         manywarnings: remove duplicate -Wmultichar entry
39061         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39062         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39063         so keep the entry marked as documented.
39065 2012-05-27  Karl Berry  <karl@gnu.org>
39067         * config/srclist.txt (mktime.c): remove last libc sync,
39068         perhaps just temporarily.
39070 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39072         regex: don't assume uint64_t or uint32_t
39073         * lib/regcomp.c (init_word_char): Don't assume that the types
39074         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39075         them, and on some 32-bit compilers there is no uint64_t.
39076         Problem reported by Gianluigi Tiesi in
39077         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39079 2012-05-25  Jim Meyering  <meyering@redhat.com>
39081         maint.mk: add strncpy-prohibiting syntax-check rule
39082         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39084 2012-05-24  Jim Meyering  <meyering@redhat.com>
39086         maint.mk: compute $(gpg_key_ID) more portably
39087         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39088         That use of sed is not portable to some fringe systems.
39089         Reported by Paul Eggert in
39090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39092 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39094         mktime: sync from glibc
39095         * config/srclist.txt: Uncomment mktime.c.
39096         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39097         First, indent with tabs, since glibc uses tabs and doesn't want to
39098         change and we'd rather be identical to glibc.  Also, two small
39099         coding changes:
39100         (isdst_differ): Use &&, not &, as && is the usual style.
39101         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39102         for clarity.
39104 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39106         announce-gen: du -h is more portable than du --human
39107         * build-aux/announce-gen (sizes): Invoke du with -h instead
39108         of --human.  Accept leading white space in its output.
39110 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39112         announce-gen: Improve diagnostics.
39113         * build-aux/announce-gen: When parsing command line options,
39114         prefer "announce-gen: option --release-type requires an argument"
39115         to "Option release-type requires an argument".
39117 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39119         maint.mk: gpg_key_ID: use sed more portably
39120         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39121         the closing brace.
39122         (refresh-po): Fuse two sed invocations into one.
39124 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39126         gitlog-to-changelog: support the log message format used in Bison.
39127         * build-aux/gitlog-to-changelog: Support --strip-tab and
39128         --strip-cherry-picked.
39130 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39132         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39133         the rest of the current time slice to another thread in the current
39134         process. So if the thread that feeds the file decscriptor we're
39135         polling is not in the current process, we get busy-waiting.
39136         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39137         Patch from Theodore Leblond.
39138         * lib/select.c: Split polling out of the loop that sets the output
39139         fd_sets.  Check for zero result and loop if the wait timeout is
39140         infinite.
39142 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39144         select: Fix build error on IRIX 6.5.
39145         * lib/select.c: Include stddef.h for NULL.
39147 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39149         gc: fix libgcrypt detection on older machines.
39150         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39151         copyright years because the file has been distributed every year
39152         since it was created.
39154 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39156         crypto: fix bug in large buffer handling
39157         Problem reported by Serge Belyshev for glibc in
39158         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39159         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39160         * lib/md4.c (md4_process_block):
39161         * lib/md5.c (md5_process_block):
39162         * lib/sha1.c (sha1_process_block):
39163         * lib/sha256.c (sha256_process_block):
39164         Don't assume the buffer length is less than 2**32.
39165         * lib/sha512.c (sha512_process_block): Likewise.
39166         Here, the bug is present only in the rare case where the host does
39167         not support uint64_t or where size_t is wider than 64 bits.
39168         Use u64size to work around the problems.
39169         * lib/u64.h (u64size): New macro.
39171 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39173         fsusage: fix block size returned on older Linux 2.6
39175         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39176         which is available since Linux 2.6.
39177         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39178         when the member is available so it can be used as a fallback.
39179         * doc/posix-functions/statvfs.texi: Mention the hang issue
39180         on Linux < 2.6.36.
39182 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39184         bootstrap: suppress stderr chatter
39185         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39186         Omit unnecessary chatter to stderr.  The main program chatter
39187         was there only inadvertantly.
39189         bootstrap: .gitignore files created by autopoint, libtool
39190         I ran into this problem when bootstrapping the latest diffutils.
39191         After './bootstrap', 'git status' reported lots of untracked files
39192         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39193         autopoint and do not need to be version-controlled.
39194         * build-aux/bootstrap: Put into .gitignore the files that
39195         autopoint and libtool create, by keeping track of files that exist
39196         after but not before these programs are run.
39197         (version_controlled_file): Move up.  2nd arg is now full file
39198         name, not base name; this is more convenient.  Put CVS at the end,
39199         as it's now somewhat deprecated.
39201 2012-05-14  Jim Meyering  <meyering@redhat.com>
39203         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39204         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39205         definition.  Reported by Bruno Haible.
39207 2012-05-13  Bruno Haible  <bruno@clisp.org>
39208             Paul Eggert  <eggert@cs.ucla.edu>
39210         binary-io: Define set_binary_mode function.
39211         * lib/binary-io.h (set_binary_mode): New function.
39212         (SET_BINARY): Define in terms of set_binary_mode.
39213         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39214         * tests/test-binary-io.c (main): Accept an argument, and test either
39215         set_binary_mode or SET_BINARY depending on the argument.
39216         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39217         argument. Clean up also t-bin-out0.tmp.
39219 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39221         bootstrap: take advantage of POSIX shell features
39223         The 'bootstrap' script offered by Gnulib script already uses POSIX
39224         shell features (like $((...)) arithmetic expansions) that are not
39225         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39226         means that bootstrap must already be run using a proper POSIX shell,
39227         which will thus provide more features, like ${var#pattern} parameter
39228         expansion or inversion of a command exit status with '!'.  We can
39229         thus use these features to improve the clarity and the performances
39230         of the bootstrap script.
39232         Suggested by Eric Blake.
39234         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39235         of sed/expr plus command substitutions, to save some forks.  While
39236         we are at it, prefer the POSIX $(...) form of command substitution,
39237         rather than the legacy form `...` (since the former is visually
39238         clearer and interacts better with quoting), and prefer the idiom:
39239           "if ! CMD; then ACTION ..."
39240         over the idiom:
39241           "if CMD; then :; else ACTION ..."
39242         which was required by legacy Bourne shells not supporting '!'.
39244 2012-05-12  Bruno Haible  <bruno@clisp.org>
39246         system-quote: Add more comments.
39247         * lib/system-quote.h: Add more comments about wilcards and limitations.
39248         Suggested by Eli Zaretskii <eliz@gnu.org>.
39250         sh-quote, system-quote: Add comments about wildcards.
39251         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39252         * lib/system-quote.h: Likewise.
39253         Reported by Eli Zaretskii <eliz@gnu.org>.
39255 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39257         fsusage: check for GNU/Linux statvfs problem dynamically
39258         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39259         Define STAT_STATFS2_BSIZE too, since in this case the code now
39260         checks dynamically whether statvfs is reliable, falling back on
39261         Linux-style statfs otherwise.
39262         (statvfs_works): New function, for dynamically testing statvfs.
39263         (get_fs_usage) [STAT_STATVFS]: Use it.
39264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39265         statvfs on GNU/Linux hosts, since it's now done dynamically.
39267 2012-05-10  Bruno Haible  <bruno@clisp.org>
39269         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39270         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39271         '?' character.
39272         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39273         * tests/test-system-quote-main.c (check_all): Check also strings like
39274         "??????????".
39275         Reported by Eli Zaretskii <eliz@gnu.org>.
39277 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39279         _Noreturn: port config.h to gcc -Wundef
39280         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39281         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39282         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39284 2012-05-10  Bruno Haible  <bruno@clisp.org>
39286         system-quote: Refactor.
39287         * lib/system-quote.h (system_quote_copy): Fix comment.
39288         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39289         New functions, extracted from system_quote_copy.
39290         (system_quote_length, system_quote_copy): Use these functions.
39291         Reported by Paul Eggert.
39293 2012-05-08  Bruno Haible  <bruno@clisp.org>
39295         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39296         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39298 2012-05-08  Bruno Haible  <bruno@clisp.org>
39300         Tests for module 'system-quote'.
39301         * modules/system-quote-tests: New file.
39302         * tests/test-system-quote.sh: New file.
39303         * tests/test-system-quote-main.c: New file.
39304         * tests/test-system-quote-child.c: New file.
39306         New module 'system-quote'.
39307         * lib/system-quote.h: New file.
39308         * lib/system-quote.c: New file.
39309         * modules/system-quote: New file.
39311 2012-05-08  Bruno Haible  <bruno@clisp.org>
39313         sh-quote: Make C++ safe and allow multiple inclusion.
39314         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39315         declarations in extern "C".
39317 2012-05-08  Bruno Haible  <bruno@clisp.org>
39319         sh-quote tests: Make tests stricter.
39320         * tests/test-sh-quote.c (check_one): Check the return value of
39321         shell_quote_copy.
39322         (main): Check a string with a CR character. Check a string that
39323         contains UCHAR_MAX.
39325 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39327         warnings.m4: provide a means to specify the program to compile.
39328         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39329         (gl_WARN_ADD): here.
39330         Use gl_AS_VAR_APPEND.
39331         Support an argument to specify the program to compile.
39332         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39333         AC_SUBST the WARN_CFLAGS when they are used.
39334         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39335         leave this to gl_WARN_ADD.
39337 2012-05-08  Eric Blake  <eblake@redhat.com>
39339         doc: recommendations on gettext version
39340         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39341         choice between versions.
39342         * DEPENDENCIES (gettext): Cover both approaches.
39344 2012-05-08  Jim Meyering  <meyering@redhat.com>
39346         init.sh: explain why EXEEXT support uses aliases rather than functions
39347         * tests/init.sh: Add a comment.
39349         init.sh: don't let bash aliases interfere with tests
39350         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39351         is bash.  This avoids problems for those who alias standard commands to
39352         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39353         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39355 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39357         stdint: be more consistent with glibc, SunOS libc
39358         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39359         (gl_int_fast16_t, gl_uint_fast16_t)
39360         (gl_int_fast32_t, gl_uint_fast32_t)
39361         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39362         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39363         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39364         Be consistent with glibc by default, and with SunOS 5.10 and later
39365         if __sun is defined.  This lessens the likelihood of clashes if
39366         code compiled for older hosts is combined with code compiled for
39367         newer ones.  Problem reported by Niels Möller in
39368         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39370 2012-05-07  Eric Blake  <eblake@redhat.com>
39372         isatty: relax license to LGPLv2+
39373         * modules/isatty (License): Relax license.
39375 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39377         stat-size: comment fix
39378         * lib/stat-size.h: Remove obsolete comment about indenting.
39380 2012-05-06  Bruno Haible  <bruno@clisp.org>
39382         Tests for module 'sh-quote'.
39383         * modules/sh-quote-tests: New file.
39384         * tests/test-sh-quote.c: New file.
39386 2012-05-06  Bruno Haible  <bruno@clisp.org>
39388         sh-quote: Improve shell_quote_argv's signature.
39389         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39390         * lib/sh-quote.c (shell_quote_argv): Likewise.
39392 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39394         stdint: document issues with int_fast8_t etc.
39395         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39396         stdint.h substitutes may define these types differently.  See
39397         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39399 2012-05-05  Bruno Haible  <bruno@clisp.org>
39401         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39403         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39404         or 'guessing no (mishandles large arguments)'.
39406 2012-05-05  Bruno Haible  <bruno@clisp.org>
39408         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39409         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39410         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39411         set gl_cv_func_link_follows_symlink to "guessing no".
39413 2012-05-05  Bruno Haible  <bruno@clisp.org>
39415         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39416         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39417         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39418         "guessing no".
39419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39421 2012-05-05  Bruno Haible  <bruno@clisp.org>
39423         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39424         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39425         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39426         set gl_cv_struct_dirent_d_ino to "guessing yes".
39428 2012-05-05  Bruno Haible  <bruno@clisp.org>
39430         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39431         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39432         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39433         "guessing yes".
39435 2012-05-05  Bruno Haible  <bruno@clisp.org>
39437         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39438         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39439         compiling to a glibc system, set gl_cv_func_signbit and
39440         gl_cv_func_signbit_gcc to "guessing yes".
39442 2012-05-05  Bruno Haible  <bruno@clisp.org>
39444         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39445         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39446         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39447         to "guessing yes".
39448         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39449         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39451 2012-05-05  Bruno Haible  <bruno@clisp.org>
39453         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39454         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39455         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39456         gl_cv_func_realpath_works to "guessing yes".
39458 2012-05-05  Bruno Haible  <bruno@clisp.org>
39460         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39462         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39464 2012-05-04  Bruno Haible  <bruno@clisp.org>
39466         Tweak last commit.
39467         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39470 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39472         unistd_h: make it easier to avoid sys_types_h
39473         This is useful for Emacs, which has its own method of porting to
39474         Windows, and which therefore does not need the sys_types_h module.
39475         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39476         code moved here from gl_SYS_TYPES_H.
39477         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39478         using the code directly.
39479         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39480         gl_SYS_TYPES_H.
39481         * modules/sys_types (Files):
39482         * modules/unistd (Files): Add m4/off_t.m4.
39484 2012-05-03  Bruno Haible  <bruno@clisp.org>
39486         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39487         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39488         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39489         "guessing yes" or "guessing no".
39490         (gl_FUNC_LSTAT): Update.
39491         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39492         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39493         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39495 2012-05-03  Bruno Haible  <bruno@clisp.org>
39497         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39498         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39499         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39500         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39501         cross-compiling, choose the first alternative on glibc systems.
39502         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39504 2012-05-03  Bruno Haible  <bruno@clisp.org>
39506         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39507         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39508         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39510 2012-05-03  Bruno Haible  <bruno@clisp.org>
39512         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39513         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
39515 2012-05-03  Bruno Haible  <bruno@clisp.org>
39517         Avoid "guessing no" guesses when cross-compiling to glibc systems.
39518         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
39519         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
39520         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
39521         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
39522         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
39523         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
39524         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
39525         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
39526         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
39527         compiling to glibc systems, set gl_cv_func_chown_slash_works,
39528         gl_cv_func_chown_ctime_works to "guessing yes".
39529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
39530         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
39531         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
39532         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
39533         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
39534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
39535         compiling to glibc systems, set gl_cv_func_open_directory_works to
39536         "guessing yes".
39537         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
39538         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
39539         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
39540         "guessing yes".
39541         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
39542         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
39543         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
39544         compiling to glibc systems, set gl_cv_func_floorf_ieee to
39545         "guessing yes".
39546         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
39547         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39548         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
39549         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
39550         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
39551         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
39552         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
39553         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
39554         "guessing yes".
39555         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
39556         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
39557         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
39558         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
39559         "guessing yes".
39560         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
39561         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
39562         "guessing yes".
39563         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
39564         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
39565         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
39566         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
39567         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
39568         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
39569         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
39570         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
39571         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
39572         compiling to glibc systems, set gl_cv_func_log10f_ieee to
39573         "guessing yes".
39574         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
39575         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
39576         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
39577         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
39578         "guessing yes".
39579         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
39580         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
39581         "guessing yes".
39582         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
39583         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
39584         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
39585         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
39586         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
39587         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
39588         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
39589         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
39590         compiling to glibc systems, set gl_cv_func_mkfifo_works to
39591         "guessing yes".
39592         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39593         compiling to glibc systems, set gl_cv_func_mknod_works to
39594         "guessing yes".
39595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39596         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39597         "guessing yes".
39598         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39599         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39600         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39601         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39602         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39603         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39604         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39605         compiling to glibc systems, set gl_cv_func_svid_putenv to
39606         "guessing yes".
39607         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39608         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
39609         "guessing yes".
39610         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
39611         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39612         "guessing yes".
39613         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39614         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39615         to "guessing yes".
39616         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39617         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39618         to "guessing yes".
39619         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39620         compiling to glibc systems, set gl_cv_func_rmdir_works to
39621         "guessing yes".
39622         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39623         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39624         gl_cv_func_unlink_parent_fails to "guessing yes".
39625         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39626         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39627         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39628         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39629         gl_cv_func_rename_dest_works to "guessing yes".
39630         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39631         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39632         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39633         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39634         "guessing yes".
39635         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39636         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39637         "guessing yes".
39638         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39639         compiling to glibc systems, set gl_cv_func_setenv_works to
39640         "guessing yes".
39641         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39642         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39643         "guessing yes".
39644         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39645         compiling to glibc systems, set gl_cv_func_sleep_works to
39646         "guessing yes".
39647         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39648         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39649         "guessing yes".
39650         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39651         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39652         "guessing yes".
39653         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39654         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39655         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39656         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39657         "guessing yes".
39658         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39659         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39660         "guessing yes".
39661         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39662         compiling to glibc systems, set gl_cv_func_usleep_works to
39663         "guessing yes".
39664         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39665         compiling to glibc systems, set gl_cv_func_futimesat_works to
39666         "guessing yes".
39668 2012-05-03  Bruno Haible  <bruno@clisp.org>
39670         Say "guessing yes" or "guessing no" when cross-compiling.
39671         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39672         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39673         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39674         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39675         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39676         am_cv_func_working_getline to "guessing yes" or "guessing no".
39677         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39678         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39679         (gl_FUNC_MEMMEM): When cross-compiling, set
39680         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39682         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39684         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39685         "guessing no".
39686         (gl_FUNC_STRCASESTR): When cross-compiling, set
39687         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39688         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39689         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39690         (gl_FUNC_STRSTR): When cross-compiling, set
39691         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39692         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39693         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39694         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39695         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39697 2012-05-01  Bruno Haible  <bruno@clisp.org>
39699         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39700         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39701         * build-aux/reloc-ldflags: Likewise.
39702         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39704 2012-05-01  Bruno Haible  <bruno@clisp.org>
39706         gnulib-tool: Remove transitional code.
39707         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39708         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39710 2012-05-01  Bruno Haible  <bruno@clisp.org>
39712         getcwd: Fix misindentation.
39713         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39715 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39717         exclude: process exclude and include directives in order
39718         This restores the pre-2009 behavior, and is part of a fix of a
39719         grep bug reported by Quentin Arce in
39720         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39721         * lib/exclude.c (struct exclude): Remove 'tail' member.
39722         (new_exclude_segment): Prepend the new segment instead of appending.
39723         Return void, since that's now more convenient.
39724         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39725         (file_name_matches): Renamed from excluded_file_name_p.
39726         (file_pattern_matches, file_name_matches):
39727         Return true if the pattern matches, not if it excludes.
39728         All callers changed.
39729         (excluded_file_name): Process the list in reverse order;
39730         since the list is now reversed this restores the pre-2009 behavior.
39731         (add_exclude): Adjust to new reversed-order list.  Use local var
39732         rather than macro, for clarity.
39733         * tests/test-exclude7.sh: Adjust to corrected behavior.
39735         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39736         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39737         it's not possible here.  Handle the case of \ at end of pattern
39738         without dumping core.
39739         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39741         _Noreturn: future-proof non-GNU and non-MSVC compilers
39742         * build-aux/snippet/_Noreturn.h (_Noreturn):
39743         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39744         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39745         C11 or later.  This is more likely to work with random future C
39746         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39747         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39749         exclude: handle wildcards with FNM_EXTMATCH
39750         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39751         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39752         comment that "has wildcards" really means "has or may have
39753         wildcards".  Simplify by avoiding the need to call strcspn.
39755 2012-04-29  Bruno Haible  <bruno@clisp.org>
39757         gnulib-tool: Fix list of authors.
39758         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39760 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39762         bootstrap: support Automake-NG in $buildreq
39763         * bootstrap (check_versions): Handle automake and aclocal from
39764         Automake-NG specially.  They can be specified as respectively
39765         the "automake-ng" and "aclocal-ng" requirements.
39767 2012-04-25  Eric Blake  <eblake@redhat.com>
39769         bootstrap: only force latest Makefile.in.in for gettext module
39770         * build-aux/bootstrap (with_gettext): Only install latest
39771         Makefile.in.in for projects requesting bleeding edge gettext.
39773 2012-04-22  Bruno Haible  <bruno@clisp.org>
39775         doc: Mention reason for replacement on glibc/Linux systems.
39776         * doc/posix-functions/dprintf.texi: Mention the problem with special
39777         'long double' values.
39778         * doc/posix-functions/fprintf.texi: Likewise.
39779         * doc/posix-functions/printf.texi: Likewise.
39780         * doc/posix-functions/snprintf.texi: Likewise.
39781         * doc/posix-functions/sprintf.texi: Likewise.
39782         * doc/posix-functions/vdprintf.texi: Likewise.
39783         * doc/posix-functions/vfprintf.texi: Likewise.
39784         * doc/posix-functions/vprintf.texi: Likewise.
39785         * doc/posix-functions/vsnprintf.texi: Likewise.
39786         * doc/posix-functions/vsprintf.texi: Likewise.
39787         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39788         platforms with F_DUPFD_CLOEXEC problems.
39789         * doc/posix-functions/glob.texi: Mention which platforms are affected
39790         by the problem with symbolic links.
39791         * doc/posix-functions/linkat.texi: Mention the problem with
39792         AT_SYMLINK_FOLLOW on Linux.
39794 2012-04-22  Bruno Haible  <bruno@clisp.org>
39796         pwrite: Don't replace on all platforms.
39797         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39799 2012-04-22  Bruno Haible  <bruno@clisp.org>
39801         rint* tests: Avoid gcc warnings.
39802         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39803         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39804         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39806 2012-04-21  Bruno Haible  <bruno@clisp.org>
39808         users.txt: Update.
39809         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39810         switched from CVS to git, bzr, or svn.
39812 2012-04-21  Bruno Haible  <bruno@clisp.org>
39814         Large File Support for native Windows platforms.
39816         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39817         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39819         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39820         type.
39821         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39822         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39823         * doc/posix-headers/sys_types.texi: Mention the effect of the
39824         'largefile' module.
39826         * lib/fcntl.in.h: Add comments about off_t.
39827         * modules/fcntl-h (Depends-on): Add sys_types.
39829         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39830         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39831         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39832         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39833         * modules/unistd (Depends-on): Add sys_types.
39834         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39836         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39837         instead of lseek.
39838         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39839         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39840         * modules/lseek (Depends-on): Add sys_types.
39842         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39843         msvc-nothrow.h.
39844         (SetFileSize): New function.
39845         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39846         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39847         if Large File Support is requested.
39848         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39849         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39851         * lib/stdio.in.h: Add comments about off_t.
39852         * modules/stdio (Depends-on): Add sys_types.
39854         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39855         instead of ftello.
39856         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39857         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39858         (gl_PREREQ_FTELLO): New macro.
39859         * modules/ftello (Depends-on): Add sys_types.
39860         (configure.ac): Incoke gl_PREREQ_FTELLO.
39862         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39863         instead of fseeko.
39864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39865         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39866         (gl_PREREQ_FSEEKO): New macro.
39867         * modules/fseeko (Depends-on): Add sys_types.
39868         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39870         * lib/sys_stat.in.h: Add comments about off_t.
39871         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39872         64-bit integer for st_size in 'struct stat'.
39873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39874         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39875         * modules/sys_stat (Depends-on): Add sys_types.
39876         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39878         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39879         instead of stat or _stat.
39881         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39882         'struct _stati64' instead of fstat and 'struct stat'.
39883         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39884         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39886         Reported by Ray Satiro <raysatiro@yahoo.com>.
39888 2012-04-19  Eric Blake  <eblake@redhat.com>
39890         bootstrap: accommodate older libtool
39891         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39892         Reported by Daniel P. Berrange.
39894 2012-04-19  Jim Meyering  <meyering@redhat.com>
39896         announce-gen: avoid failure due to lack of Digest::SHA1
39897         Even with the preferred Digest::SHA available, this script
39898         would fail when the backup module, Digest::SHA1, was not installed.
39899         * build-aux/announce-gen: Quote the conditional use of "use".
39900         Reported by Reuben Thomas in:
39901         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39903         bootstrap: don't let a user's CDPATH setting affect this script
39904         When CDPATH is set, cd will sometimes generate output.
39905         When "cd" is run in a subshell whose output matters, that
39906         surprising-to-some output can cause malfunction.
39907         Unsetting CDPATH turns off this shell "feature."
39908         * build-aux/bootstrap (CDPATH): Unset.
39909         Reported by Reuben Thomas in:
39910         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39911         and inspired by his patch here:
39912         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39914 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39915         and Jim Meyering  <meyering@redhat.com>
39917         maint.mk: catch "see @xref{}" and similar
39918         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39919         prohibit "See also @xref{", "Also see @pxref{", and similar.
39921 2012-04-16  Jim Meyering  <meyering@redhat.com>
39923         bootstrap: really use gnulib's po/Makefile.in.in
39924         * build-aux/bootstrap: Correct the source file name in previous change.
39925         Reported by Akim Demaille.
39927         configmake: correct minor inconsistency in Makefile rule
39928         * modules/configmake (Makefile.am): All other rules like this one
39929         run the final "mv -f ..." in the same backslash-continued command
39930         as the one that does everything else.  This one put the mv -f ...
39931         command on a separate, non-backslash-continued line.
39932         Make it like the others.
39934         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39935         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
39936         the one from gettext.  Reported by Akim Demaille.
39938 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
39940         Fix recursion of install-* into po directories.
39941         Bison's install-pdf bug reported by Hans Aberg at
39942         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
39943         * build-aux/po/Makefile.in.in (install-dvi, install-html)
39944         (install-info, install-pdf, install-ps): New targets.
39946 2012-04-16  Jim Meyering  <meyering@redhat.com>
39948         maint: avoid spurious "make sc_maint" failure
39949         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39950         exempt all *.class file names, for lib/javaversion.class.
39952 2012-04-15  Bruno Haible  <bruno@clisp.org>
39954         lseek: Make configure test independent of environment.
39955         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39956         Windows, we know that lseek() on pipes is broken; skip the runtime
39957         test.
39959 2012-04-14  Bruno Haible  <bruno@clisp.org>
39961         stat: Bypass buggy override in mingw64.
39962         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39963         * lib/stat.c (stat) [mingw64]: Define to _stat.
39964         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39966 2012-04-14  Bruno Haible  <bruno@clisp.org>
39968         pathmax: Fix compilation error on MSVC 9.
39969         * modules/pathmax (Depends-on): Add unistd.
39971 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39973         README: document pointer comparison assumption
39974         * README (Portability guidelines): Document assumption about
39975         pointer comparisons, in response to a recent bug-gnulib comment by
39976         Jeffrey Kegler.
39978 2012-04-12  Bruno Haible  <bruno@clisp.org>
39980         Tests for module 'getrusage'.
39981         * modules/getrusage-tests: New file.
39982         * tests/test-getrusage.c: New file.
39984         New module 'getrusage'.
39985         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39986         warn-on-use.h.
39987         (getrusage): New declaration.
39988         * lib/getrusage.c: New file.
39989         * m4/getrusage.m4: New file.
39990         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39991         is declared.
39992         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39993         HAVE_GETRUSAGE.
39994         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39995         snippet/c++defs, snippet/warn-on-use.
39996         (Makefile.am): Update generation of sys/resource.h. Substitute
39997         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39998         * modules/getrusage: New file.
39999         * doc/posix-functions/getrusage.texi: Mention the new module.
40001 2012-04-12  Bruno Haible  <bruno@clisp.org>
40003         Tests for module 'sys_resource'.
40004         * modules/sys_resource-tests: New file.
40005         * tests/test-sys_resource.c: New file.
40007         New module 'sys_resource'.
40008         * lib/sys_resource.in.h: New file.
40009         * m4/sys_resource_h.m4: New file.
40010         * modules/sys_resource: New file.
40011         * doc/posix-headers/sys_resource.texi: Mention the new module.
40013 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40015         ioctl: Fix compilation error on mingw.
40016         * lib/ioctl.c: Include <windows.h>.
40017         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40019 2012-04-04  Jim Meyering  <meyering@redhat.com>
40021         regex: correct #pragma guard expression
40022         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40023         not 4.3.  Correct its cpp guard expression.
40025 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40027         regex: remove unnecessary type punning
40028         Problem reported by Vladimir Serbinenko in
40029         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40030         * lib/regex.h (struct re_pattern_buffer): Change the type of
40031         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40032         Fix comment to match code.
40033         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40034         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40035         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40036         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40037         (set_regs):
40038         Omit no-longer-necessary casts.
40040 2012-04-03  Bruno Haible  <bruno@clisp.org>
40042         Tests for module 'ilogbl'.
40043         * modules/ilogbl-tests: New file.
40044         * tests/test-ilogbl.c: New file.
40046         New module 'ilogbl'.
40047         * lib/math.in.h (ilogbl): New declaration.
40048         * lib/ilogbl.c: New file.
40049         * m4/ilogbl.m4: New file.
40050         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40052         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40053         Split sed invocation, to avoid the limit of 100 substitutions of
40054         HP-UX 'sed'.
40055         * modules/ilogbl: New file.
40056         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40057         * doc/posix-functions/ilogbl.texi: Mention the new module.
40059 2012-04-03  Bruno Haible  <bruno@clisp.org>
40061         Tests for module 'ilogbf'.
40062         * modules/ilogbf-tests: New file.
40063         * tests/test-ilogbf.c: New file.
40065         New module 'ilogbf'.
40066         * lib/math.in.h (ilogbf): New declaration.
40067         * lib/ilogbf.c: New file.
40068         * m4/ilogbf.m4: New file.
40069         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40071         REPLACE_ILOGBF.
40072         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40073         REPLACE_ILOGBF.
40074         * modules/ilogbf: New file.
40075         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40076         * doc/posix-functions/ilogbf.texi: Mention the new module.
40078 2012-04-03  Bruno Haible  <bruno@clisp.org>
40080         Tests for module 'ilogb'.
40081         * modules/ilogb-tests: New file.
40082         * tests/test-ilogb.c: New file.
40083         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40084         tests/test-logb-ieee.h.
40086         New module 'ilogb'.
40087         * lib/math.in.h (ilogb): New declaration.
40088         * lib/ilogb.c: New file.
40089         * m4/ilogb.m4: New file.
40090         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40092         REPLACE_ILOGB.
40093         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40094         REPLACE_ILOGB.
40095         * modules/ilogb: New file.
40096         * tests/test-math-c++.cc: Check the declaration of ilogb.
40097         * doc/posix-functions/ilogb.texi: Mention the new module.
40099 2012-04-03  Bruno Haible  <bruno@clisp.org>
40101         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40102         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40103         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40104         (main): Check their values.
40105         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40106         problem.
40108 2012-04-03  Bruno Haible  <bruno@clisp.org>
40110         Tests for module 'logbl-ieee'.
40111         * modules/logbl-ieee-tests: New file.
40112         * tests/test-logbl-ieee.c: New file.
40114         New module 'logbl-ieee'.
40115         * modules/logbl-ieee: New file.
40117         Tests for module 'logb-ieee'.
40118         * modules/logb-ieee-tests: New file.
40119         * tests/test-logb-ieee.c: New file.
40121         New module 'logb-ieee'.
40122         * modules/logb-ieee: New file.
40124         Tests for module 'logbf-ieee'.
40125         * modules/logbf-ieee-tests: New file.
40126         * tests/test-logbf-ieee.c: New file.
40127         * tests/test-logb-ieee.h: New file.
40129         New module 'logbf-ieee'.
40130         * modules/logbf-ieee: New file.
40132 2012-04-03  Bruno Haible  <bruno@clisp.org>
40134         Tests for module 'logbl'.
40135         * modules/logbl-tests: New file.
40136         * tests/test-logbl.c: New file.
40138         New module 'logbl'.
40139         * lib/math.in.h (logbl): New declaration.
40140         * lib/logbl.c: New file.
40141         * m4/logbl.m4: New file.
40142         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40144         REPLACE_LOGBL.
40145         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40146         REPLACE_LOGBL.
40147         * modules/logbl: New file.
40148         * tests/test-math-c++.cc: Check the declaration of logbl.
40149         * doc/posix-functions/logbl.texi: Mention the new module.
40151 2012-04-02  Bruno Haible  <bruno@clisp.org>
40153         Tests for module 'logbf'.
40154         * modules/logbf-tests: New file.
40155         * tests/test-logbf.c: New file.
40157         New module 'logbf'.
40158         * lib/math.in.h (logbf): New declaration.
40159         * lib/logbf.c: New file.
40160         * m4/logbf.m4: New file.
40161         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40163         REPLACE_LOGBF.
40164         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40165         REPLACE_LOGBF.
40166         * modules/logbf: New file.
40167         * tests/test-math-c++.cc: Check the declaration of logbf.
40168         * doc/posix-functions/logbf.texi: Mention the new module.
40170 2012-04-02  Bruno Haible  <bruno@clisp.org>
40172         logb tests: More tests.
40173         * tests/test-logb.h: New file, based on tests/test-logb.c and
40174         tests/test-frexp.h.
40175         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40176         (main): Just invoke test_function.
40177         * modules/logb-tests (Files): Add tests/test-logb.h,
40178         tests/minus-zero.h, tests/randomd.c.
40179         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40181         logb: Provide replacement and workarounds.
40182         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40183         is 1.
40184         * lib/logb.c: New file.
40185         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40186         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40188         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40189         * modules/logb (Files): Add lib/logb.c.
40190         (Depends-on): Add isfinite, frexp, isnand.
40191         (configure.ac): Compile the replacement code logb.c if needed.
40192         * tests/test-math-c++.cc: Check the declaration of logb.
40193         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40194         with subnormal numbers.
40196 2012-04-02  Bruno Haible  <bruno@clisp.org>
40198         log10* tests: Speed up.
40199         * tests/test-log10.h (test_function): Reduce amount of random numbers
40200         to test.
40202 2012-04-01  Bruno Haible  <bruno@clisp.org>
40204         logf-ieee: Fix test whether logf works.
40205         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40207 2012-04-01  Bruno Haible  <bruno@clisp.org>
40209         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40210         * lib/log10l.c: Include <float.h>
40211         (log10l): On IRIX, normalize the +Infinity value.
40212         * modules/log10l (Depends-on): Add 'float'.
40213         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40214         +Infinity.
40216         log10f-ieee: Work around test failure on NetBSD 5.1.
40217         * m4/log10f-ieee.m4: New file.
40218         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40219         test whether log10f works with a negative argument. Replace it if not.
40220         * lib/log10f.c (log10f): For negative arguments, return NaN.
40221         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40222         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40223         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40225         log10f-ieee: Work around test failure on Solaris 9.
40226         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40227         (configure.ac): Require gl_FUNC_LOG10F.
40229         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40230         * m4/log10-ieee.m4: New file.
40231         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40232         whether log10 works with a negative argument. Replace it if not.
40233         * lib/log10.c (log10): For negative arguments, return NaN.
40234         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40235         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40236         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40238         Tests for module 'log10l-ieee'.
40239         * modules/log10l-ieee-tests: New file.
40240         * tests/test-log10l-ieee.c: New file.
40242         New module 'log10l-ieee'.
40243         * modules/log10l-ieee: New file.
40245         Tests for module 'log10-ieee'.
40246         * modules/log10-ieee-tests: New file.
40247         * tests/test-log10-ieee.c: New file.
40249         New module 'log10-ieee'.
40250         * modules/log10-ieee: New file.
40252         Tests for module 'log10f-ieee'.
40253         * modules/log10f-ieee-tests: New file.
40254         * tests/test-log10f-ieee.c: New file.
40255         * tests/test-log10-ieee.h: New file.
40257         New module 'log10f-ieee'.
40258         * modules/log10f-ieee: New file.
40260 2012-04-01  Bruno Haible  <bruno@clisp.org>
40262         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40263         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40264         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40265         workaround.
40266         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40267         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40269         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40270         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40271         (Depends-on): Update conditions.
40272         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40273         IRIX 6.5, OSF/1 5.1 problems.
40275 2012-04-01  Bruno Haible  <bruno@clisp.org>
40277         log10f: Work around OSF/1 5.1 bug.
40278         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40279         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40280         workaround.
40281         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40282         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40284         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40285         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40286         (Depends-on): Update conditions.
40287         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40289 2012-04-01  Bruno Haible  <bruno@clisp.org>
40291         log10: Work around OSF/1 5.1 bug.
40292         * lib/math.in.h (log10): New declaration.
40293         * lib/log10.c: New file.
40294         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40295         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40296         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40298         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40299         * modules/log10 (Files): Add lib/log10.c.
40300         (Depends-on): Add math.
40301         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40302         * tests/test-math-c++.cc: Check the declaration of log10.
40303         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40305 2012-03-31  Bruno Haible  <bruno@clisp.org>
40307         log10l tests: More tests.
40308         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40309         tests/minus-zero.h, tests/randoml.c.
40310         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40311         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40312         (main): Invoke test_function.
40314         log10f tests: More tests.
40315         * modules/log10f-tests (Files): Add tests/test-log10.h,
40316         tests/minus-zero.h, tests/randomf.c.
40317         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40318         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40319         (main): Invoke test_function.
40321         log10 tests: More tests.
40322         * tests/test-log10.h: New file.
40323         * modules/log10-tests (Files): Add tests/test-log10.h,
40324         tests/minus-zero.h, tests/randomd.c.
40325         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40326         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40327         (main): Invoke test_function.
40329 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40331         fflush: Fix syntax error.
40332         * lib/fflush.c: Include unused-parameter.h, needed for
40333         _GL_UNUSED_PARAMETER.
40334         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40336 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40338         regex: pacify GCC when compiling GRUB
40339         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40340         a diagnostic.  Reported by Vladimir Serbinenko in
40341         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40343 2012-03-29  Eric Blake  <eblake@redhat.com>
40345         stdio: don't assume gets any more
40346         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40347         support.
40348         * modules/stdio (Makefile.am): Likewise.
40349         * lib/stdio-read.c (gets): Likewise.
40350         * tests/test-stdio-c++.cc: Likewise.
40351         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40352         * lib/stdio.in.h (gets): Make warning occur in more places.
40353         * doc/posix-functions/gets.texi (gets): Update documentation.
40354         Reported by Christer Solskogen.
40356         maint.mk: fix syntax checks without exclusions
40357         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40358         Reported by Daniel P. Berrange.
40360         strerror_r: avoid compiler warning
40361         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40362         level.
40364         fflush: avoid compiler warning
40365         * lib/fflush.c (update_fpos_cache): Mark variables that are
40366         potentially unused.
40368 2012-03-25  Bruno Haible  <bruno@clisp.org>
40370         Tests for module 'localeconv'.
40371         * modules/localeconv-tests: New file.
40372         * tests/test-localeconv.c: New file.
40374         New module 'localeconv'.
40375         * lib/locale.in.h (localeconv): New declaration.
40376         * lib/localeconv.c: New file.
40377         * m4/localeconv.m4: New file.
40378         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40379         REPLACE_LOCALECONV.
40380         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40381         REPLACE_LOCALECONV.
40382         * modules/localeconv: New file.
40383         * modules/nl_langinfo (Depends-on): Add localeconv.
40384         * modules/human (Depends-on): Likewise.
40385         * doc/posix-functions/localeconv.texi: Mention the new module.
40387 2012-03-25  Bruno Haible  <bruno@clisp.org>
40389         locale: Provide a complete 'struct lconv'.
40390         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40391         'struct lconv' does not contain int_p_cs_precedes.
40392         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40393         * doc/posix-headers/locale.texi: Update.
40395         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40396         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40397         * doc/posix-headers/locale.texi: Update.
40399         locale: Provide a working 'struct lconv'.
40400         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40401         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40402         'struct lconv' does not even contain decimal_point.
40403         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40404         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40405         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40406         * doc/posix-headers/locale.texi: Mention the problems with
40407         'struct lconv'.
40408         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40410 2012-03-24  Bruno Haible  <bruno@clisp.org>
40412         Enable common subexpression optimization in GCC.
40413         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40414         macros.
40415         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40416         GCC attribute 'const'.
40417         (uc_locale_language): Declare with GCC attribute 'pure'.
40418         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40419         with GCC attribute 'const'.
40420         * lib/unictype.in.h (uc_is_general_category_withtable,
40421         uc_combining_class, uc_combining_class_name,
40422         uc_combining_class_long_name, uc_bidi_class_name,
40423         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40424         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40425         uc_decimal_value, uc_digit_value, uc_numeric_value,
40426         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40427         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40428         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40429         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40430         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40431         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40432         Declare with GCC attribute 'const'.
40433         (uc_general_category_name, uc_general_category_long_name,
40434         uc_general_category_byname, uc_general_category,
40435         uc_is_general_category, uc_combining_class_byname,
40436         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40437         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40438         Declare with GCC attribute 'pure'.
40439         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40440         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40441         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40442         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40443         with GCC attribute 'pure'.
40444         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40445         'const'.
40446         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40447         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40448         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40449         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40450         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40451         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40452         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40453         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40454         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40455         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40456         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40457         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40458         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40459         GCC attribute 'pure'.
40460         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40461         'const'.
40462         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40463         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40464         u32_strwidth): Declare with GCC attribute 'pure'.
40466         Enable common subexpression optimization in GCC.
40467         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40468         (alphasort): Declare with GCC attribute 'pure'.
40469         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40470         (atoll): Declare with GCC attribute 'pure'.
40471         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40472         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40473         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40474         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40475         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40476         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40477         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40479 2012-03-24  Bruno Haible  <bruno@clisp.org>
40481         gnulib-tool: Avoid unintended error output from 'cmp'.
40482         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40483         "cmp -s", not "cmp > /dev/null".
40485 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40487         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40489         It's not just Automake versions < 1.9b that creates an empty
40490         pkgdatadir at installation time if pkgdata_DATA is specified
40491         to empty; modern automake versions do this as well, at least
40492         until automake 1.11.4 (not yet released at the moment of writing,
40493         but soon to appear).  That behaviour was generally considered a
40494         feature rather than a bug, at least until this discussion:
40495         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40497         See also automake bugs #10997 and #11030.
40499         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40500         reference to relevant automake bug numbers.
40501         (func_emit_tests_Makefile_am): Likewise.
40503 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40505         announce-gen: use Digest::SHA when possible
40506         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40507         back to Digest::SHA1 if necessary.
40509 2012-03-20  Jim Meyering  <meyering@redhat.com>
40511         tests: avoid gcc warnings about argv vs. const initializers
40512         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40513         warnings about discarding 'const' qualifier from pointer target type.
40514         * tests/test-posix_spawn2.c (main): Likewise.
40516 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40518         README-release: simplify slightly
40519         * top/README-release: Run "git checkout master" only once.
40521 2012-03-15  Mark Wielaard  <mark@klomp.org>
40523         git-merge-changelog: add specific example on how to use with hg.
40524         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
40526 2012-03-18  Mark Wielaard  <mark@klomp.org>
40528         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
40530 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
40532         git-version-gen: don't let "prefix" envvar cause trouble
40533         * build-aux/git-version-gen (prefix): Initialize properly,
40534         so as not to use a value specified via the environment.
40535         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
40537 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40539         regex: diagnose too-large repeat counts in EREs
40540         Previously, the code did not diagnose the too-large repeat count
40541         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
40542         as if it were 'b\{1000000000}', which is unexpected.
40543         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
40544         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
40545         is a reasonable one for this problem.  Another option would be to
40546         create a new REG_OVERFLOW error for repeat counts that are too large.
40547         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
40548         count is too large, so that the caller can distinguish the two cases.
40549         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
40550         "Too large" return code, and that repeat counts are one example of this.
40552 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40554         doc: some glibc x32 integer width issues
40555         * doc/posix-headers/sys_types.texi (sys/types.h):
40556         * doc/posix-headers/time.texi (time.h):
40557         Mention that glibc x32 does not conform to POSIX in a couple of
40558         areas related to integer widths.
40560 2012-03-15  Bruno Haible  <bruno@clisp.org>
40562         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
40563         * lib/fma.c (VOLATILE): New macro.
40564         (FUNC): Use it to work around a GCC compiler bug.
40566 2012-03-13  Bruno Haible  <bruno@clisp.org>
40568         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40569         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
40570         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
40571         REPLACE_HYPOTL to 1.
40572         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
40574 2012-03-13  Bruno Haible  <bruno@clisp.org>
40576         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40577         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
40578         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
40579         REPLACE_REMAINDERL to 1.
40580         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
40581         bug.
40583 2012-03-13  Bruno Haible  <bruno@clisp.org>
40585         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40586         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
40587         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
40588         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
40589         too big rounding errors.
40590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
40591         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40592         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40593         (Depends-on): Update conditions.
40594         * tests/test-sqrtl.c (my_ldexpl): New function.
40595         (main): Add test of a particular value.
40596         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40598 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40600         doc: Update timer_* platform portability notes.
40601         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40602         that always return ENOSYS.
40603         * doc/posix-functions/timer_delete.texi: Likewise.
40604         * doc/posix-functions/timer_gettime.texi: Likewise.
40605         * doc/posix-functions/timer_settime.texi: Likewise.
40607 2012-03-13  Bruno Haible  <bruno@clisp.org>
40609         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40610         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
40611         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40612         REPLACE_CBRTL to 1.
40613         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40615 2012-03-13  Bruno Haible  <bruno@clisp.org>
40617         remainderl: Avoid compilation error on AIX >= 5.2.
40618         * lib/math.in.h (remainderl): Undefine macro from the system header.
40620 2012-03-13  Bruno Haible  <bruno@clisp.org>
40622         Avoid compilation errors with MSVC option -fp:strict.
40623         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40624         * lib/cbrtf.c: Likewise.
40625         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40627 2012-03-12  Bruno Haible  <bruno@clisp.org>
40629         uninorm: Don't crash in out-of-memory conditions.
40630         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40631         gracefully.
40632         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40633         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40635 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40637         quote: fix syntax-check
40638         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40639         also exports quote_quoting_options.
40641 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40643         Collapse list of copyright years to ranges.  See
40644         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40645         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40646         build-aux/csharpexec.sh.in, build-aux/gnupload,
40647         build-aux/install-reloc, build-aux/javacomp.sh.in,
40648         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40649         build-aux/move-if-change, build-aux/reloc-ldflags,
40650         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40652 2012-03-11  Bruno Haible  <bruno@clisp.org>
40654         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40655         * m4/log2f-ieee.m4: New file.
40656         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40657         whether log2f works with a minus zero argument. Replace it if not.
40658         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40659         (Depends-on): Add log2-ieee.
40660         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40661         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40663         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40664         * m4/log2-ieee.m4: New file.
40665         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40666         whether log2 works with a minus zero argument. Replace it if not.
40667         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40668         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40669         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40671         Tests for module 'log2l-ieee'.
40672         * modules/log2l-ieee-tests: New file.
40673         * tests/test-log2l-ieee.c: New file.
40675         New module 'log2l-ieee'.
40676         * modules/log2l-ieee: New file.
40678         Tests for module 'log2-ieee'.
40679         * modules/log2-ieee-tests: New file.
40680         * tests/test-log2-ieee.c: New file.
40682         New module 'log2-ieee'.
40683         * modules/log2-ieee: New file.
40685         Tests for module 'log2f-ieee'.
40686         * modules/log2f-ieee-tests: New file.
40687         * tests/test-log2f-ieee.c: New file.
40688         * tests/test-log2-ieee.h: New file.
40690         New module 'log2f-ieee'.
40691         * modules/log2f-ieee: New file.
40693 2012-03-11  Bruno Haible  <bruno@clisp.org>
40695         Tests for module 'log2l'.
40696         * modules/log2l-tests: New file.
40697         * tests/test-log2l.c: New file.
40699         New module 'log2l'.
40700         * lib/math.in.h (log2l): New declaration.
40701         * lib/log2l.c: New file.
40702         * m4/log2l.m4: New file.
40703         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40705         REPLACE_LOG2L.
40706         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40707         REPLACE_LOG2L.
40708         * modules/log2l: New file.
40709         * tests/test-math-c++.cc: Check the declaration of log2l.
40710         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40711         and OSF/1 problems.
40713 2012-03-11  Bruno Haible  <bruno@clisp.org>
40715         Tests for module 'log2f'.
40716         * modules/log2f-tests: New file.
40717         * tests/test-log2f.c: New file.
40719         New module 'log2f'.
40720         * lib/math.in.h (log2f): New declaration.
40721         * lib/log2f.c: New file.
40722         * m4/log2f.m4: New file.
40723         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40725         REPLACE_LOG2F.
40726         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40727         REPLACE_LOG2F.
40728         * modules/log2f: New file.
40729         * tests/test-math-c++.cc: Check the declaration of log2f.
40730         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40731         and OSF/1 and Cygwin problems.
40733 2012-03-11  Bruno Haible  <bruno@clisp.org>
40735         Tests for module 'log2'.
40736         * modules/log2-tests: New file.
40737         * tests/test-log2.c: New file.
40738         * tests/test-log2.h: New file.
40740         New module 'log2'.
40741         * lib/math.in.h (log2): New declaration.
40742         * lib/log2.c: New file.
40743         * m4/log2.m4: New file.
40744         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40746         REPLACE_LOG2.
40747         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40748         REPLACE_LOG2.
40749         * modules/log2: New file.
40750         * tests/test-math-c++.cc: Check the declaration of log2.
40751         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40752         and OSF/1 and Cygwin problems.
40754 2012-03-11  Bruno Haible  <bruno@clisp.org>
40756         exp2* tests: More tests.
40757         * tests/test-exp2.h (test_function): Test all integral arguments that
40758         don't need to overflow or denormalized numbers.
40759         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40760         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40761         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40763 2012-03-10  Bruno Haible  <bruno@clisp.org>
40765         log1pl-ieee: Work around test failure on AIX 7.1.
40766         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40768         log1pl-ieee: Work around test failure on IRIX 6.5.
40769         * m4/log1pl-ieee.m4: New file.
40770         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40771         test whether log1pl works with a minus zero argument. Replace it if
40772         not.
40773         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40775         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40776         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40777         (Depends-on): Update conditions.
40778         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40779         m4/signbit.m4.
40780         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40781         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40783         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40784         * m4/log1pf-ieee.m4: New file.
40785         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40786         test whether log1pf works with a minus zero argument. Replace it if
40787         not.
40788         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40789         m4/signbit.m4.
40790         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40791         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40793         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40794         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40795         (configure.ac): Require gl_FUNC_LOG1PF.
40797         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40798         * m4/log1p-ieee.m4: New file.
40799         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40800         whether log1p works with a minus zero argument. Replace it if not.
40801         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40803         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40804         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40805         (Depends-on): Update conditions.
40806         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40807         m4/signbit.m4.
40808         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40809         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40811         Tests for module 'log1pl-ieee'.
40812         * modules/log1pl-ieee-tests: New file.
40813         * tests/test-log1pl-ieee.c: New file.
40815         New module 'log1pl-ieee'.
40816         * modules/log1pl-ieee: New file.
40818         Tests for module 'log1p-ieee'.
40819         * modules/log1p-ieee-tests: New file.
40820         * tests/test-log1p-ieee.c: New file.
40822         New module 'log1p-ieee'.
40823         * modules/log1p-ieee: New file.
40825         Tests for module 'log1pf-ieee'.
40826         * modules/log1pf-ieee-tests: New file.
40827         * tests/test-log1pf-ieee.c: New file.
40828         * tests/test-log1p-ieee.h: New file.
40830         New module 'log1pf-ieee'.
40831         * modules/log1pf-ieee: New file.
40833 2012-03-10  Bruno Haible  <bruno@clisp.org>
40835         Tests for module 'log1pl'.
40836         * modules/log1pl-tests: New file.
40837         * tests/test-log1pl.c: New file.
40839         New module 'log1pl'.
40840         * lib/math.in.h (log1pl): New declaration.
40841         * lib/log1pl.c: New file.
40842         * m4/log1pl.m4: New file.
40843         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40845         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40846         * modules/log1pl: New file.
40847         * tests/test-math-c++.cc: Check the declaration of log1pl.
40848         * doc/posix-functions/log1pl.texi: Mention the new module.
40850 2012-03-10  Bruno Haible  <bruno@clisp.org>
40852         Tests for module 'log1pf'.
40853         * modules/log1pf-tests: New file.
40854         * tests/test-log1pf.c: New file.
40856         New module 'log1pf'.
40857         * lib/math.in.h (log1pf): New declaration.
40858         * lib/log1pf.c: New file.
40859         * m4/log1pf.m4: New file.
40860         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40862         REPLACE_LOG1PF.
40863         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40864         REPLACE_LOG1PF.
40865         * modules/log1pf: New file.
40866         * tests/test-math-c++.cc: Check the declaration of log1pf.
40867         * doc/posix-functions/log1pf.texi: Mention the new module.
40869 2012-03-10  Bruno Haible  <bruno@clisp.org>
40871         log1p tests: More tests.
40872         * tests/test-log1p.h: New file.
40873         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40874         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40875         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40876         (main): Invoke test_function.
40878         log1p: Provide replacement for Minix and MSVC.
40879         * lib/math.in.h (log1p): New declaration.
40880         * lib/log1p.c: New file.
40881         * m4/log1p.m4: New file.
40882         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40884         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40885         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40886         (Depends-on): Add math, isnand, log, round.
40887         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40888         HAVE_LOG1P is 0.
40889         * tests/test-math-c++.cc: Check the declaration of log1p.
40890         * doc/posix-functions/log1p.texi: Mention the replacement.
40892 2012-03-10  Bruno Haible  <bruno@clisp.org>
40894         math tests: Small simplification.
40895         * tests/test-exp.h (test_function): Use the same err_bound for
40896         'double' on platforms with sizeof (long double) == sizeof (double)
40897         than on platforms with sizeof (long double) > sizeof (double).
40898         * tests/test-exp2.h (test_function): Likewise.
40899         * tests/test-expm1.h (test_function): Likewise.
40900         * tests/test-log.h (test_function): Likewise.
40902 2012-03-10  Bruno Haible  <bruno@clisp.org>
40904         Fix some comments.
40905         * lib/expl.c: Fix an ambiguous comment.
40906         * lib/expm1.c: Likewise.
40907         * lib/expm1l.c: Likewise.
40908         * lib/exp2.c: Likewise.
40909         * lib/exp2l.c: Likewise.
40911 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40913         regex: allow inclusion of <regex.h> before <limits.h>
40914         Without this patch, portable programs had to include <limits.h> before
40915         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40916         I ran into this problem with a test version of GNU grep on Solaris 8.
40917         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40918         This is done conditionally so that this change can be merged
40919         back to glibc.
40920         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40921         using the included regex.
40923         fts: depend on fdopendir
40924         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40925         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40926         problem was introduced when fdopendir was split out.
40928 2012-03-10  Bruno Haible  <bruno@clisp.org>
40930         Remove unused variables.
40931         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40932         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40934 2012-03-10  Bruno Haible  <bruno@clisp.org>
40936         isnanf-nolibm: Fix last commit.
40937         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
40939         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
40940         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
40942 2012-03-10  Bruno Haible  <bruno@clisp.org>
40944         logf-ieee: Work around test failure on NetBSD 5.1.
40945         * m4/logf-ieee.m4: New file.
40946         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40947         whether logf works with a negative argument. Replace it if not.
40948         * lib/logf.c (logf): For negative arguments, return NaN.
40949         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40950         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40951         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40953         logf-ieee: Work around test failure on Solaris 9.
40954         * modules/logf-ieee (Depends-on): Add log-ieee.
40955         (configure.ac): Require gl_FUNC_LOGF.
40957         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40958         * m4/log-ieee.m4: New file.
40959         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40960         log works with a negative argument. Replace it if not.
40961         * lib/log.c (log): For negative arguments, return NaN.
40962         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40963         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40964         * doc/posix-functions/log.texi: Mention the log-ieee module.
40966         Tests for module 'logl-ieee'.
40967         * modules/logl-ieee-tests: New file.
40968         * tests/test-logl-ieee.c: New file.
40970         New module 'logl-ieee'.
40971         * modules/logl-ieee: New file.
40973         Tests for module 'log-ieee'.
40974         * modules/log-ieee-tests: New file.
40975         * tests/test-log-ieee.c: New file.
40977         New module 'log-ieee'.
40978         * modules/log-ieee: New file.
40980         Tests for module 'logf-ieee'.
40981         * modules/logf-ieee-tests: New file.
40982         * tests/test-logf-ieee.c: New file.
40983         * tests/test-log-ieee.h: New file.
40985         New module 'logf-ieee'.
40986         * modules/logf-ieee: New file.
40988 2012-03-10  Bruno Haible  <bruno@clisp.org>
40990         log: Fix bug introduced on 2012-03-09.
40991         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40993 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40995         timer-time: link explicitly with pthreads on glibc
40996         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40997         to support static linking, when newer glibc is
40998         detected, as that contains pthread emulation of
40999         POSIX timer functions where required.
41000         * modules/timer-time: Depend on threadlib to
41001         pull in the appropriate library to link.
41003 2012-03-10  Bruno Haible  <bruno@clisp.org>
41005         log* tests: More tests.
41006         * tests/test-log.h: New file.
41007         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41008         (main): Invoke test_function.
41009         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41010         (main): Invoke test_function.
41011         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41012         (main): Invoke test_function.
41013         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41014         tests/randomd.c.
41015         (Makefile.am): Add randomd.c to test_log_SOURCES.
41016         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41017         tests/randomf.c.
41018         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41019         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41020         tests/randoml.c.
41021         (Depends-on): Add 'float'.
41022         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41024 2012-03-09  Bruno Haible  <bruno@clisp.org>
41026         logl: Work around OSF/1 5.1 bug.
41027         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41028         * lib/logl.c (logl): If logl exists, use it and provide just the
41029         workaround.
41030         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41031         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41033         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41034         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41035         (Depends-on): Update conditions.
41036         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41038 2012-03-09  Bruno Haible  <bruno@clisp.org>
41040         logf: Work around OSF/1 5.1 bug.
41041         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41042         * lib/logf.c (logf): If logf exists, use it and provide just the
41043         workaround.
41044         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41045         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41047         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41048         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41049         (Depends-on): Update conditions.
41050         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41052 2012-03-09  Bruno Haible  <bruno@clisp.org>
41054         log: Work around OSF/1 5.1 bug.
41055         * lib/math.in.h (log): New declaration.
41056         * lib/log.c: New file.
41057         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41058         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41059         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41061         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41062         * modules/log (Files): Add lib/log.c.
41063         (Depends-on): Add math.
41064         (configure.ac): If REPLACE_LOG is 1, compile an override.
41065         * tests/test-math-c++.cc: Check the declaration of log.
41066         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41068 2012-03-09  Jim Meyering  <meyering@redhat.com>
41070         readtokens.c: adjust wording in a comment
41071         * lib/readtokens.c: Insert omitted "that" in a comment.
41073 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41075         modechange: add notations +40, 00440, etc.
41076         * lib/modechange.c (mode_compile): Support new notations
41077         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41079 2012-03-08  Bruno Haible  <bruno@clisp.org>
41081         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41082         * m4/exp2l-ieee.m4: New file.
41083         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41084         test whether exp2l works with a NaN argument and with a negative
41085         infinity argument. Replace it if not.
41086         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41088         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41089         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41090         (Depends-on): Update conditions.
41091         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41092         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41093         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41095         Tests for module 'exp2l-ieee'.
41096         * modules/exp2l-ieee-tests: New file.
41097         * tests/test-exp2l-ieee.c: New file.
41099         New module 'exp2l-ieee'.
41100         * modules/exp2l-ieee: New file.
41102         Tests for module 'exp2-ieee'.
41103         * modules/exp2-ieee-tests: New file.
41104         * tests/test-exp2-ieee.c: New file.
41106         New module 'exp2-ieee'.
41107         * modules/exp2-ieee: New file.
41109         Tests for module 'exp2f-ieee'.
41110         * modules/exp2f-ieee-tests: New file.
41111         * tests/test-exp2f-ieee.c: New file.
41112         * tests/test-exp2-ieee.h: New file.
41114         New module 'exp2f-ieee'.
41115         * modules/exp2f-ieee: New file.
41117 2012-03-08  Bruno Haible  <bruno@clisp.org>
41119         Tests for module 'exp2l'.
41120         * modules/exp2l-tests: New file.
41121         * tests/test-exp2l.c: New file.
41123         New module 'exp2l'.
41124         * lib/math.in.h (exp2l): New declaration.
41125         * lib/exp2l.c: New file.
41126         * lib/expl-table.c: New file, extracted from lib/expl.c.
41127         * lib/expl.c (gl_expl_table): New declaration.
41128         (expl): Remove expl_table. Update reference.
41129         * m4/exp2l.m4: New file.
41130         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41132         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41133         * modules/exp2l: New file.
41134         * modules/expl (Files): Add lib/expl-table.c.
41135         (configure.ac): Compile also expl-table.c.
41136         * tests/test-math-c++.cc: Check the declaration of exp2l.
41137         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41138         problem.
41140 2012-03-08  Bruno Haible  <bruno@clisp.org>
41142         Tests for module 'exp2f'.
41143         * modules/exp2f-tests: New file.
41144         * tests/test-exp2f.c: New file.
41146         New module 'exp2f'.
41147         * lib/math.in.h (exp2f): New declaration.
41148         * lib/exp2f.c: New file.
41149         * m4/exp2f.m4: New file.
41150         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41152         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41153         * modules/exp2f: New file.
41154         * tests/test-math-c++.cc: Check the declaration of exp2f.
41155         * doc/posix-functions/exp2f.texi: Mention the new module and the
41156         IRIX problem.
41158 2012-03-08  Bruno Haible  <bruno@clisp.org>
41160         Tests for module 'exp2'.
41161         * modules/exp2-tests: New file.
41162         * tests/test-exp2.c: New file.
41163         * tests/test-exp2.h: New file.
41165         New module 'exp2'.
41166         * lib/math.in.h (exp2): New declaration.
41167         * lib/exp2.c: New file.
41168         * m4/exp2.m4: New file.
41169         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41171         REPLACE_EXP2.
41172         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41173         REPLACE_EXP2.
41174         * modules/exp2: New file.
41175         * tests/test-math-c++.cc: Check the declaration of exp2.
41176         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41177         and OpenBSD problems.
41179 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41181         savedir: fix comment typo
41182         * lib/savedir.c (savedirstream): Fix typo in comment.
41184 2012-03-08  Bruno Haible  <bruno@clisp.org>
41186         test-readtokens.c: use const; remove unwarranted cast
41187         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41189 2012-03-08  Bruno Haible  <bruno@clisp.org>
41191         fmal: Avoid compilation error on AIX.
41192         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41193         AIX 5.2..7.1.
41195 2012-03-08  Bruno Haible  <bruno@clisp.org>
41197         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41198         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41199         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41200         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41201         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41202         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41203         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41205 2012-03-08  Bruno Haible  <bruno@clisp.org>
41207         remainderf: Override buggy system function on IRIX 6.5.
41208         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41209         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41210         when it exists.
41211         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41213 2012-03-08  Jim Meyering  <meyering@redhat.com>
41215         test-readtokens.c: avoid const-related compilation warnings
41216         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41218 2012-03-07  Jim Meyering  <meyering@redhat.com>
41219             Bruno Haible  <bruno@clisp.org>
41221         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41222         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41223         tests/randomd.c.
41224         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41225         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41226         tests/randoml.c.
41227         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41229 2012-03-07  Bruno Haible  <bruno@clisp.org>
41231         expm1l: Avoid compilation error on AIX.
41232         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41233         AIX 5.2..7.1.
41235 2012-03-07  Bruno Haible  <bruno@clisp.org>
41237         expm1l: Don't override undeclared system function on IRIX 6.5.
41238         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41239         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41240         it exists. Set HAVE_DECL_EXPM1L.
41241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41242         HAVE_EXPM1L.
41243         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41244         HAVE_EXPM1L.
41245         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41247 2012-03-07  Bruno Haible  <bruno@clisp.org>
41249         remainderl: Don't override undeclared system function on IRIX 6.5.
41250         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41251         HAVE_REMAINDERL.
41252         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41253         declared when it exists. Set HAVE_DECL_REMAINDERL.
41254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41255         not HAVE_REMAINDERL.
41256         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41257         HAVE_REMAINDERL.
41258         * doc/posix-functions/remainderl.texi: Mention missing declaration
41259         problem.
41261 2012-03-07  Bruno Haible  <bruno@clisp.org>
41263         rintf: Don't override undeclared system function on IRIX 6.5.
41264         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41265         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41266         exists. Set HAVE_DECL_RINTF.
41267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41268         HAVE_RINTF.
41269         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41270         HAVE_RINTF.
41271         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41273 2012-03-07  Bruno Haible  <bruno@clisp.org>
41275         roundl: Avoid compilation error on AIX.
41276         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41277         AIX 5.2..7.1.
41279 2012-03-07  Bruno Haible  <bruno@clisp.org>
41281         roundl: Don't override undeclared system function on IRIX 6.5.
41282         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41283         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41284         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41285         * modules/roundl (configure.ac): For replacement code, test
41286         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41287         (Depends-on): Update conditions.
41288         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41290 2012-03-07  Bruno Haible  <bruno@clisp.org>
41292         roundf: Don't override undeclared system function on IRIX 6.5.
41293         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41294         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41295         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41296         * modules/roundf (configure.ac): For replacement code, test
41297         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41298         (Depends-on): Update conditions.
41299         * modules/roundf-ieee (Depends-on): Update conditions.
41300         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41302 2012-03-07  Bruno Haible  <bruno@clisp.org>
41304         round: Don't override undeclared system function on IRIX 6.5.
41305         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41306         argument.
41307         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41308         also when it is not declared. Set HAVE_ROUND. For replacement code,
41309         test HAVE_ROUND, not HAVE_DECL_ROUND.
41310         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41311         not HAVE_DECL_ROUND.
41312         (Depends-on): Update conditions.
41313         * modules/round-ieee (Depends-on): Update conditions.
41314         * doc/posix-functions/round.texi: Mention the IRIX problem.
41316 2012-03-07  Bruno Haible  <bruno@clisp.org>
41318         copysignf: Don't override undeclared system function on IRIX 6.5.
41319         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41320         HAVE_COPYSIGNF.
41321         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41322         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41324         not HAVE_COPYSIGNF.
41325         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41326         HAVE_COPYSIGNF.
41327         * doc/posix-functions/copysignf.texi: Mention missing declaration
41328         problem.
41330 2012-03-07  Jim Meyering  <meyering@redhat.com>
41332         readtokens: add tests
41333         * modules/readtokens-tests: New file.
41334         * tests/test-readtokens.c: New file.
41336 2012-03-07  Jim Meyering  <meyering@redhat.com>
41338         quotearg: the module must now include quote.h
41339         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41340         So must the module.
41341         * modules/quotearg (Files): Add quote.h.
41343 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41345         readtokens: avoid core dumps with unusual calling patterns
41346         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41347         * lib/readtokens.c: Include limits.h.
41348         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41349         (readtoken): Don't cache the delimiters; the cache code was buggy
41350         if !delim && saved_delim, or if the new n_delim differs from the old.
41351         Also, it wasn't thread-safe.
41353 2012-03-07  Bruno Haible  <bruno@clisp.org>
41355         quote: Adhere to common module description layout.
41356         * modules/quote (Makefile.am): Add back empty section.
41358 2012-03-06  Akim Demaille  <demaille@gostai.com>
41360         quote: fuse into quotearg
41361         This patch is made for the benefit of Bison.
41362         quote does not leave the choice of the quoting style to the user.
41363         quoting_style provides poor customizability, yet quoting_options,
41364         which is very rich, is hidden inside quotearg.c.  So in order to
41365         allow quote customization, move its implementation to quotearg.c.
41366         * lib/quote.c: Remove.
41367         * modules/quote: Adjust.
41368         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41369         warning: provide all the members of literal structs.
41370         (quote_quoting_options): New.
41371         (quote, quote_n): Import implementation from quote.c.
41372         * lib/quote.h: Import the comments from quote.c.
41373         (quote_quoting_options): New.
41375 2012-03-06  Bruno Haible  <bruno@clisp.org>
41377         Tests for module 'expm1l-ieee'.
41378         * modules/expm1l-ieee-tests: New file.
41379         * tests/test-expm1l-ieee.c: New file.
41381         New module 'expm1l-ieee'.
41382         * modules/expm1l-ieee: New file.
41384         Tests for module 'expm1f-ieee'.
41385         * modules/expm1f-ieee-tests: New file.
41386         * tests/test-expm1f-ieee.c: New file.
41388         New module 'expm1f-ieee'.
41389         * modules/expm1f-ieee: New file.
41391         Tests for module 'expm1-ieee'.
41392         * modules/expm1-ieee-tests: New file.
41393         * tests/test-expm1-ieee.c: New file.
41394         * tests/test-expm1-ieee.h: New file.
41396         New module 'expm1-ieee'.
41397         * modules/expm1-ieee: New file.
41398         * m4/expm1-ieee.m4: New file.
41399         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41400         whether expm1 works with a minus zero argument. Replace it if not.
41401         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41403         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41404         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41405         (Depends-on): Update conditions.
41406         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41407         AIX problem.
41409 2012-03-06  Bruno Haible  <bruno@clisp.org>
41411         Work around expm1f bug on IRIX 6.5.
41412         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41413         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41414         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41415         not work.
41416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41417         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41418         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41419         (Depends-on): Update conditions.
41420         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41422 2012-03-06  Bruno Haible  <bruno@clisp.org>
41424         Tests for module 'expm1l'.
41425         * modules/expm1l-tests: New file.
41426         * tests/test-expm1l.c: New file.
41428         New module 'expm1l'.
41429         * lib/math.in.h (expm1l): New declaration.
41430         * lib/expm1l.c: New file.
41431         * m4/expm1l.m4: New file.
41432         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41434         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41435         * modules/expm1l: New file.
41436         * tests/test-math-c++.cc: Check the declaration of expm1l.
41437         * doc/posix-functions/expm1l.texi: Mention the new module.
41439 2012-03-06  Bruno Haible  <bruno@clisp.org>
41441         Tests for module 'expm1f'.
41442         * modules/expm1f-tests: New file.
41443         * tests/test-expm1f.c: New file.
41445         New module 'expm1f'.
41446         * lib/math.in.h (expm1f): New declaration.
41447         * lib/expm1f.c: New file.
41448         * m4/expm1f.m4: New file.
41449         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41451         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41452         * modules/expm1f: New file.
41453         * tests/test-math-c++.cc: Check the declaration of expm1f.
41454         * doc/posix-functions/expm1f.texi: Mention the new module.
41456 2012-03-06  Bruno Haible  <bruno@clisp.org>
41458         Tests for module 'expm1'.
41459         * modules/expm1-tests: New file.
41460         * tests/test-expm1.c: New file.
41461         * tests/test-expm1.h: New file.
41463         New module 'expm1'.
41464         * lib/math.in.h (expm1): New declaration.
41465         * lib/expm1.c: New file.
41466         * m4/expm1.m4: New file.
41467         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41469         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41470         * modules/expm1: New file.
41471         * tests/test-math-c++.cc: Check the declaration of expm1.
41472         * doc/posix-functions/expm1.texi: Mention the new module.
41474 2012-03-06  Bruno Haible  <bruno@clisp.org>
41476         math: Ensure declarations of math functions.
41477         * modules/acosf (Depends-on): Add 'extensions'.
41478         * modules/asinf (Depends-on): Likewise.
41479         * modules/atan2f (Depends-on): Likewise.
41480         * modules/atanf (Depends-on): Likewise.
41481         * modules/cbrt (Depends-on): Likewise.
41482         * modules/cbrtf (Depends-on): Likewise.
41483         * modules/cbrtl (Depends-on): Likewise.
41484         * modules/copysignf (Depends-on): Likewise.
41485         * modules/copysignl (Depends-on): Likewise.
41486         * modules/cosf (Depends-on): Likewise.
41487         * modules/coshf (Depends-on): Likewise.
41488         * modules/expf (Depends-on): Likewise.
41489         * modules/fabsf (Depends-on): Likewise.
41490         * modules/fabsl (Depends-on): Likewise.
41491         * modules/fmaf (Depends-on): Likewise.
41492         * modules/fmal (Depends-on): Likewise.
41493         * modules/fmodf (Depends-on): Likewise.
41494         * modules/fmodl (Depends-on): Likewise.
41495         * modules/frexpf (Depends-on): Likewise.
41496         * modules/frexpl (Depends-on): Likewise.
41497         * modules/hypot (Depends-on): Likewise.
41498         * modules/hypotf (Depends-on): Likewise.
41499         * modules/hypotl (Depends-on): Likewise.
41500         * modules/ldexpf (Depends-on): Likewise.
41501         * modules/ldexpl (Depends-on): Likewise.
41502         * modules/log10f (Depends-on): Likewise.
41503         * modules/log10l (Depends-on): Likewise.
41504         * modules/log1p (Depends-on): Likewise.
41505         * modules/logb (Depends-on): Likewise.
41506         * modules/logf (Depends-on): Likewise.
41507         * modules/modff (Depends-on): Likewise.
41508         * modules/modfl (Depends-on): Likewise.
41509         * modules/powf (Depends-on): Likewise.
41510         * modules/remainderf (Depends-on): Likewise.
41511         * modules/remainderl (Depends-on): Likewise.
41512         * modules/rintf (Depends-on): Likewise.
41513         * modules/rintl (Depends-on): Likewise.
41514         * modules/sinf (Depends-on): Likewise.
41515         * modules/sinhf (Depends-on): Likewise.
41516         * modules/sqrtf (Depends-on): Likewise.
41517         * modules/tanf (Depends-on): Likewise.
41518         * modules/tanhf (Depends-on): Likewise.
41519         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
41520         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
41521         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
41522         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
41523         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
41524         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
41525         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
41526         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
41527         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
41528         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
41529         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
41530         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
41531         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
41532         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
41533         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
41534         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
41535         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
41536         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41537         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
41538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
41539         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
41540         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
41541         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
41542         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
41543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
41544         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
41545         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
41546         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41547         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
41548         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
41549         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41550         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
41551         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41552         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41553         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
41554         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
41555         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
41556         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
41557         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
41558         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
41559         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
41561 2012-03-06  Bruno Haible  <bruno@clisp.org>
41563         math: Update module names in warnings.
41564         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
41565         tanl): Use specific module name in warn-on-use warning.
41567 2012-03-06  Bruno Haible  <bruno@clisp.org>
41569         expl: Simplify computation.
41570         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
41572 2012-03-05  Bruno Haible  <bruno@clisp.org>
41574         exp* tests: More tests.
41575         * tests/test-exp.h: New file.
41576         * tests/test-exp.c: Include <float.h> and test-exp.h.
41577         (main): Invoke test_function.
41578         * tests/test-expf.c: Include <float.h> and test-exp.h.
41579         (main): Invoke test_function.
41580         * tests/test-expl.c: Include <float.h> and test-exp.h.
41581         (main): Invoke test_function.
41582         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
41583         (Makefile.am): Add randomd.c to test_exp_SOURCES.
41584         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
41585         (Makefile.am): Add randomf.c to test_expf_SOURCES.
41586         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
41587         (Depends-on): Add 'float'.
41588         (Makefile.am): Add randoml.c to test_expl_SOURCES.
41590         expl: Fix precision of computed result.
41591         * lib/expl.c: Completely rewritten.
41592         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41593         (Maintainer): Add me.
41594         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41596 2012-03-05  Bruno Haible  <bruno@clisp.org>
41598         cbrt* tests: More tests.
41599         * tests/test-cbrt.h: New file.
41600         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41601         (main): Invoke test_function.
41602         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41603         (main): Invoke test_function.
41604         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41605         (main): Invoke test_function.
41606         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41607         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41608         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
41609         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
41610         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
41611         (Depends-on): Add 'float'.
41612         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41614 2012-03-05  Bruno Haible  <bruno@clisp.org>
41616         hypot* tests: More tests.
41617         * tests/test-hypot.h: New file, partially extracted from
41618         tests/test-hypotl.c.
41619         * tests/test-hypot.c: Include test-hypot.h.
41620         (main): Invoke test_function.
41621         * tests/test-hypotf.c: Include test-hypot.h.
41622         (main): Invoke test_function.
41623         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41624         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41625         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41626         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41627         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41628         tests/randomf.c.
41629         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41630         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41631         tests/randoml.c.
41632         (Depends-on): Add 'fpucw', 'float'.
41633         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41635 2012-03-05  Bruno Haible  <bruno@clisp.org>
41637         fpucw: Doc about FreeBSD.
41638         * lib/fpucw.h: Mention FreeBSD in comments.
41640 2012-03-04  Bruno Haible  <bruno@clisp.org>
41642         sqrt* tests: More tests.
41643         * tests/test-sqrt.h: New file.
41644         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41645         (main): Invoke test_function.
41646         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41647         (main): Invoke test_function.
41648         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41649         (main): Invoke test_function.
41650         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41651         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41652         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41653         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41654         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41655         (Depends-on): Add 'float'.
41656         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41658 2012-03-04  Bruno Haible  <bruno@clisp.org>
41660         remainder* tests: More tests.
41661         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41662         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41663         (main): Invoke test_function.
41664         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41665         (main): Invoke test_function.
41666         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41667         (main): Invoke test_function.
41668         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41669         tests/randomd.c.
41670         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41671         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41672         tests/randomf.c.
41673         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41674         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41675         tests/randoml.c.
41676         (Depends-on): Add 'float'.
41677         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41679 2012-03-04  Bruno Haible  <bruno@clisp.org>
41681         remainder, remainderf, remainderl: Fix computation for large quotients.
41682         * lib/remainder.c: Completely rewritten.
41683         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41684         USE_FLOAT.
41685         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41686         USE_LONG_DOUBLE.
41687         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41688         isnand, isinf. Remove round, fma.
41689         * modules/remainderf (Files): Add lib/remainder.c.
41690         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41691         Remove roundf, fmaf.
41692         * modules/remainderl (Files): Add lib/remainder.c.
41693         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41694         isinf. Remove roundl, fmal.
41695         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41696         REMAINDER_LIBM.
41697         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41698         REMAINDERF_LIBM.
41699         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41700         REMAINDERL_LIBM.
41702 2012-03-04  Bruno Haible  <bruno@clisp.org>
41704         fmod* tests: More tests.
41705         * tests/test-fmod.h (my_ldexp): New function.
41706         (test_function): Reduce amount of random numbers to test. Add tests
41707         of very large quotients x / y.
41708         * tests/test-fmod.c (MAX_EXP): New macro.
41709         * tests/test-fmodf.c (MAX_EXP): Likewise.
41710         * tests/test-fmodl.c (MAX_EXP): Likewise.
41712 2012-03-04  Bruno Haible  <bruno@clisp.org>
41714         fmod, fmodl: Fix computation for large quotients x / y.
41715         * lib/fmod.c: Completely rewritten.
41716         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41717         USE_LONG_DOUBLE.
41718         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41719         isnand. Remove fma.
41720         * modules/fmodl (Files): Add lib/fmod.c.
41721         (Depends-on): Add float, isfinite, signbit, fabsl,
41722         frexpl, ldexpl, isnanl. Remove fma.
41723         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41724         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41726 2012-03-03  Bruno Haible  <bruno@clisp.org>
41728         fmod* tests: More tests.
41729         * tests/test-fmod.h: New file.
41730         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41731         (main): Invoke test_function.
41732         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41733         (main): Invoke test_function.
41734         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41735         (main): Invoke test_function.
41736         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41737         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41738         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41739         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41740         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41741         (Depends-on): Add 'float'.
41742         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41744 2012-03-03  Bruno Haible  <bruno@clisp.org>
41746         rint* tests: More tests.
41747         * tests/test-rint.h: New file, partially extracted from
41748         tests/test-rintl.c.
41749         * tests/test-rint.c: Include test-rint.h.
41750         (main): Invoke test_function.
41751         * tests/test-rintf.c: Include test-rint.h.
41752         (main): Invoke test_function.
41753         * tests/test-rintl.c: Include test-rint.h.
41754         (main): Invoke test_function.
41755         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41756         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41757         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41758         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41759         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41760         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41762 2012-03-03  Bruno Haible  <bruno@clisp.org>
41764         modf* tests: More tests.
41765         * tests/test-modf.h: New file.
41766         * tests/test-modf.c: Include <float.h> and test-modf.h.
41767         (main): Invoke test_function.
41768         * tests/test-modff.c: Include <float.h> and test-modf.h.
41769         (main): Invoke test_function.
41770         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41771         (main): Invoke test_function.
41772         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41773         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41774         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41775         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41776         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41777         (Depends-on): Add 'float'.
41778         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41780 2012-03-03  Bruno Haible  <bruno@clisp.org>
41782         fabs* tests: More tests.
41783         * tests/test-fabs.h: New file, partially extracted from
41784         tests/test-fabsl.c.
41785         * tests/test-fabs.c (RANDOM): New macro.
41786         * tests/test-fabsf.c (RANDOM): New macro.
41787         * tests/test-fabsl.c (RANDOM): New macro.
41788         * modules/fabs-tests (Files): Add tests/randomd.c.
41789         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41790         * modules/fabsf-tests (Files): Add tests/randomf.c.
41791         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41792         * modules/fabsl-tests (Files): Add tests/randoml.c.
41793         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41795 2012-03-03  Bruno Haible  <bruno@clisp.org>
41797         ldexp* tests: More tests.
41798         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41799         * tests/test-ldexp.c (RANDOM): New macro.
41800         * tests/test-ldexpf.c (RANDOM): New macro.
41801         * tests/test-ldexpl.c (RANDOM): New macro.
41802         * modules/ldexp-tests (Files): Add tests/randomd.c.
41803         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41804         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41805         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41806         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41807         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41809 2012-03-03  Bruno Haible  <bruno@clisp.org>
41811         frexp* tests: More tests.
41812         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41813         * tests/test-frexp.c (RANDOM): New macro.
41814         * tests/test-frexpf.c (RANDOM): New macro.
41815         * tests/test-frexpl.c (RANDOM): New macro.
41816         * modules/frexp-tests (Files): Add tests/randomd.c.
41817         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41818         * modules/frexpf-tests (Files): Add tests/randomf.c.
41819         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41820         * modules/frexpl-tests (Files): Add tests/randoml.c.
41821         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41823 2012-03-03  Bruno Haible  <bruno@clisp.org>
41825         Support for pseudo-random numbers in tests.
41826         * tests/randomf.c: New file.
41827         * tests/randomd.c: New file.
41828         * tests/randoml.c: New file.
41829         * tests/macros.h (randomf, randomd, randoml): New declarations.
41831 2012-03-03  Bruno Haible  <bruno@clisp.org>
41833         frexp* tests: Refactor.
41834         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41835         * tests/test-frexp.c: Include and use it.
41836         * tests/test-frexpf.c: Likewise.
41837         * tests/test-frexpl.c: Likewise.
41838         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41839         * modules/frexpf-tests (Files): Likewise.
41840         * modules/frexpl-tests (Files): Likewise.
41842 2012-03-02  Jim Meyering  <meyering@redhat.com>
41844         maint: don't specify XZ_OPT=-9ev in dist-related rule
41845         Using xz's -9 option is warranted only if you have a very large
41846         tarball (see xz's documentation for the sizes vs. presets), and
41847         requires 64MiB of memory at decompression time.
41848         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41849         Automake's default of just "-e" is fine.  Override on a
41850         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41852 2012-03-01  Eric Blake  <eblake@redhat.com>
41854         maint.mk: allow announcement for non-gnulib project
41855         * maint.mk (announcement): Skip gnulib version if not used.
41857 2012-03-01  Jim Meyering  <meyering@redhat.com>
41859         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41860         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41861         envvar settings cannot interfere.  Otherwise, setting envvars like
41862         prohibit=foo require=bar, etc. would cause spurious test failures.
41864 2012-03-01  Eric Blake  <eblake@redhat.com>
41866         maint.mk: add per-line exclusions to prohibitions
41867         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41868         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41869         (sc_const_long_option): Use it.
41871 2012-03-01  Bruno Haible  <bruno@clisp.org>
41873         Tests for module 'expl-ieee'.
41874         * modules/expl-ieee-tests: New file.
41875         * tests/test-expl-ieee.c: New file.
41877         New module 'expl-ieee'.
41878         * modules/expl-ieee: New file.
41880         Tests for module 'exp-ieee'.
41881         * modules/exp-ieee-tests: New file.
41882         * tests/test-exp-ieee.c: New file.
41884         New module 'exp-ieee'.
41885         * modules/exp-ieee: New file.
41887         Tests for module 'expf-ieee'.
41888         * modules/expf-ieee-tests: New file.
41889         * tests/test-expf-ieee.c: New file.
41890         * tests/test-exp-ieee.h: New file.
41892         New module 'expf-ieee'.
41893         * modules/expf-ieee: New file.
41895 2012-02-29  Bruno Haible  <bruno@clisp.org>
41897         cbrtl-ieee: Work around test failure on IRIX 6.5.
41898         * m4/cbrtl-ieee.m4: New file.
41899         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41900         test whether cbrtl works with a minus zero argument. Replace it if not.
41901         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41903         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41904         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41905         (Depends-on): Update conditions.
41906         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41907         m4/signbit.m4.
41908         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41909         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41910         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41912         Tests for module 'cbrtl-ieee'.
41913         * modules/cbrtl-ieee-tests: New file.
41914         * tests/test-cbrtl-ieee.c: New file.
41916         New module 'cbrtl-ieee'.
41917         * modules/cbrtl-ieee: New file.
41919         Tests for module 'cbrt-ieee'.
41920         * modules/cbrt-ieee-tests: New file.
41921         * tests/test-cbrt-ieee.c: New file.
41923         New module 'cbrt-ieee'.
41924         * modules/cbrt-ieee: New file.
41926         Tests for module 'cbrtf-ieee'.
41927         * modules/cbrtf-ieee-tests: New file.
41928         * tests/test-cbrtf-ieee.c: New file.
41929         * tests/test-cbrt-ieee.h: New file.
41931         New module 'cbrtf-ieee'.
41932         * modules/cbrtf-ieee: New file.
41934 2012-02-29  Bruno Haible  <bruno@clisp.org>
41936         cbrtf: Work around bug in IRIX 6.5 system function.
41937         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
41938         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
41939         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
41940         work.
41941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
41942         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
41943         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
41944         (Depends-on): Update conditions.
41945         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41947 2012-02-29  Bruno Haible  <bruno@clisp.org>
41949         Tests for module 'cbrtl'.
41950         * modules/cbrtl-tests: New file.
41951         * tests/test-cbrtl.c: New file.
41953         New module 'cbrtl'.
41954         * lib/math.in.h (cbrtl): New declaration.
41955         * lib/cbrtl.c: New file.
41956         * m4/cbrtl.m4: New file.
41957         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41959         HAVE_DECL_CBRTL.
41960         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41961         HAVE_DECL_CBRTL.
41962         * modules/cbrtl: New file.
41963         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41964         * doc/posix-functions/cbrtl.texi: Mention the new module.
41966 2012-02-29  Bruno Haible  <bruno@clisp.org>
41968         Tests for module 'cbrtf'.
41969         * modules/cbrtf-tests: New file.
41970         * tests/test-cbrtf.c: New file.
41972         New module 'cbrtf'.
41973         * lib/math.in.h (cbrtf): New declaration.
41974         * lib/cbrtf.c: New file.
41975         * m4/cbrtf.m4: New file.
41976         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41978         HAVE_DECL_CBRTF.
41979         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41980         HAVE_DECL_CBRTF.
41981         * modules/cbrtf: New file.
41982         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41983         * doc/posix-functions/cbrtf.texi: Mention the new module.
41985 2012-02-29  Bruno Haible  <bruno@clisp.org>
41987         cbrt: Provide replacement on MSVC and Minix.
41988         * lib/math.in.h (cbrt): New declaration.
41989         * lib/cbrt.c: New file.
41990         * m4/cbrt.m4: New file.
41991         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41993         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41994         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41995         (Depends-on): Add dependencies.
41996         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41997         * tests/test-math-c++.cc: Check the declaration of cbrt.
41998         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41999         replacement.
42001 2012-02-29  Bruno Haible  <bruno@clisp.org>
42003         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42004         * m4/hypotl-ieee.m4: New file.
42005         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42006         test whether hypotl works with mixed NaN and Infinity arguments.
42007         Replace it if not.
42008         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42010         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42011         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42012         (Depends-on): Update conditions.
42013         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42014         (Depends-on): Add hypot-ieee.
42015         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42016         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42018         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42019         * m4/hypotf-ieee.m4: New file.
42020         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42021         test whether hypotf works with mixed NaN and Infinity arguments.
42022         Replace it if not.
42023         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42024         (Depends-on): Add hypot-ieee.
42025         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42026         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42028         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42029         * lib/math.in.h (hypot): New declaration.
42030         * lib/hypot.c: New file.
42031         * m4/hypot-ieee.m4: New file.
42032         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42033         whether hypot works with mixed NaN and Infinity arguments. Replace it
42034         if not.
42035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42036         REPLACE_HYPOT.
42037         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42038         * modules/hypot (Files): Add lib/hypot.c.
42039         (Depends-on): Add dependencies.
42040         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42041         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42042         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42043         * tests/test-math-c++.cc: Check the declaration of hypot.
42044         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42046         Tests for module 'hypotl-ieee'.
42047         * modules/hypotl-ieee-tests: New file.
42048         * tests/test-hypotl-ieee.c: New file.
42050         New module 'hypotl-ieee'.
42051         * modules/hypotl-ieee: New file.
42053         Tests for module 'hypot-ieee'.
42054         * modules/hypot-ieee-tests: New file.
42055         * tests/test-hypot-ieee.c: New file.
42057         New module 'hypot-ieee'.
42058         * modules/hypot-ieee: New file.
42060         Tests for module 'hypotf-ieee'.
42061         * modules/hypotf-ieee-tests: New file.
42062         * tests/test-hypotf-ieee.c: New file.
42063         * tests/test-hypot-ieee.h: New file.
42065         New module 'hypotf-ieee'.
42066         * modules/hypotf-ieee: New file.
42068 2012-02-29  Bruno Haible  <bruno@clisp.org>
42070         Remove unused variables.
42071         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42072         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42073         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42074         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42076 2012-02-29  Eric Blake  <eblake@redhat.com>
42078         termios: fix pid_t always, not just for tcgetsid
42079         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42080         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42081         just when building tcgetsid.
42083 2012-02-29  Bruno Haible  <bruno@clisp.org>
42085         Tests for module 'hypotl'.
42086         * modules/hypotl-tests: New file.
42087         * tests/test-hypotl.c: New file.
42089         New module 'hypotl'.
42090         * lib/math.in.h (hypotl): New declaration.
42091         * lib/hypotl.c: New file.
42092         * m4/hypotl.m4: New file.
42093         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42095         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42096         * modules/hypotl: New file.
42097         * tests/test-math-c++.cc: Check the hypotl declaration.
42098         * doc/posix-functions/hypotl.texi: Mention the new module.
42100 2012-02-29  Eric Blake  <eblake@redhat.com>
42102         tcgetsid: fix cygwin header bug
42103         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42105         docs: update cygwin progress
42106         * doc/posix-functions/llround.texi (llround): Added in cygwin
42107         1.7.8.
42108         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42109         * doc/glibc-functions/program_invocation_name.texi
42110         (program_invocation_name): Likewise.
42111         * doc/glibc-functions/program_invocation_short_name.texi
42112         (program_invocation_short_name): Likewise.
42113         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42114         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42115         Likewise.
42116         * doc/posix-functions/pthread_spin_destroy.texi
42117         (pthread_spin_destroy): Added in cygwin 1.7.10.
42118         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42119         Likewise.
42120         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42121         Likewise.
42122         * doc/posix-functions/pthread_spin_trylock.texi
42123         (pthread_spin_trylock): Likewise.
42124         * doc/posix-functions/pthread_spin_unlock.texi
42125         (pthread_spin_unlock): Likewise.
42126         * doc/posix-functions/pthread_setschedprio.texi
42127         (pthread_setschedprio): Likewise.
42128         * doc/posix-functions/pthread_attr_getstack.texi
42129         (pthread_attr_getstack): Likewise.
42130         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42131         (pthread_attr_getstackaddr): Likewise.
42132         * doc/glibc-functions/pthread_getattr_np.texi
42133         (pthread_getattr_np): Likewise.
42134         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42135         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42136         * doc/posix-functions/clock_settime.texi (clock_settime):
42137         Likewise.
42138         * doc/posix-functions/pthread_attr_getguardsize.texi
42139         (pthread_attr_getguardsize): Likewise.
42140         * doc/posix-functions/pthread_attr_setguardsize.texi
42141         (pthread_attr_setguardsize): Likewise.
42142         * doc/posix-functions/pthread_attr_setstack.texi
42143         (pthread_attr_setstack): Likewise.
42144         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42145         (pthread_attr_setstackaddr): Likewise.
42146         * doc/posix-functions/clock_getcpuclockid.texi
42147         (clock_getcpuclockid): Likewise.
42148         * doc/posix-functions/pthread_getcpuclockid.texi
42149         (pthread_getcpuclockid): Likewise.
42150         * doc/glibc-functions/error.texi (error): Likewise.
42151         * doc/glibc-functions/error_at_line.texi (error_at_line):
42152         Likewise.
42153         * doc/glibc-functions/error_message_count.texi
42154         (error_message_count): Likewise.
42155         * doc/glibc-functions/error_one_per_line.texi
42156         (error_one_per_line): Likewise.
42157         * doc/glibc-functions/error_print_progname.texi
42158         (error_print_progname): Likewise.
42159         * doc/posix-functions/pthread_condattr_getclock.texi
42160         (pthread_condattr_getclock): Likewise.
42161         * doc/posix-functions/pthread_condattr_setclock.texi
42162         (pthread_condattr_setclock): Likewise.
42163         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42164         Likewise.
42165         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42166         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42167         * doc/glibc-functions/get_current_dir_name.texi
42168         (get_current_dir_name): Likewise.
42169         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42170         Likewise.
42171         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42172         wrong return type.
42173         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42174         1.7.11.
42176 2012-02-29  Bruno Haible  <bruno@clisp.org>
42178         Tests for module 'hypotf'.
42179         * modules/hypotf-tests: New file.
42180         * tests/test-hypotf.c: New file.
42182         New module 'hypotf'.
42183         * lib/math.in.h (hypotf): New declaration.
42184         * lib/hypotf.c: New file.
42185         * m4/hypotf.m4: New file.
42186         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42188         REPLACE_HYPOTF.
42189         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42190         REPLACE_HYPOTF.
42191         * modules/hypotf: New file.
42192         * tests/test-math-c++.cc: Check the hypotf declaration.
42193         * doc/posix-functions/hypotf.texi: Mention the new module.
42195         hypot: Prepare for hypotf module.
42196         * m4/hypot.m4: New file.
42197         * modules/hypot (Files): Add m4/hypot.m4.
42198         (configure.ac): Invoke gl_FUNC_HYPOT.
42200 2012-02-29  Bruno Haible  <bruno@clisp.org>
42202         hypot tests: More tests.
42203         * tests/test-hypot.c: Include <float.h>.
42204         (main): Add tests about overflow and underflow.
42206 2012-02-29  Bruno Haible  <bruno@clisp.org>
42208         math code: Add comments.
42209         * lib/acosl.c: Add comment about related glibc source files.
42210         * lib/asinl.c: Likewise.
42211         * lib/atanl.c: Likewise.
42212         * lib/expl.c: Likewise.
42213         * lib/logl.c: Likewise.
42214         * lib/sincosl.c: Likewise.
42215         * lib/sinl.c: Likewise.
42216         * lib/tanl.c: Likewise.
42217         * lib/trigl.c: Likewise.
42218         * lib/cosl.c: Likewise. Fix comments.
42220 2012-02-28  Bruno Haible  <bruno@clisp.org>
42222         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42223         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42224         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42225         HUGE_VALL are defined.
42226         (numeric_equald): Renamed from numeric_equal.
42227         (numeric_equalf, numeric_equall): New functions.
42228         (main): Check also HUGE_VALF, HUGE_VALL.
42229         * modules/math-tests (Files): Add tests/macros.h.
42230         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42231         HUGE_VALL.
42233 2012-02-28  Bruno Haible  <bruno@clisp.org>
42235         doc: Move ISO C11 feature notes into POSIX chapters.
42236         * doc/posix-functions/aligned_alloc.texi: Renamed from
42237         doc/glibc-functions/aligned_alloc.texi.
42238         * doc/posix-functions/quick_exit.texi: Renamed from
42239         doc/glibc-functions/quick_exit.texi.
42240         * doc/posix-headers/uchar.texi: Renamed from
42241         doc/glibc-headers/uchar.texi.
42242         * doc/posix-functions/c16rtomb.texi: Renamed from
42243         doc/glibc-functions/c16rtomb.texi.
42244         * doc/posix-functions/c32rtomb.texi: Renamed from
42245         doc/glibc-functions/c32rtomb.texi.
42246         * doc/posix-functions/mbrtoc16.texi: Renamed from
42247         doc/glibc-functions/mbrtoc16.texi.
42248         * doc/posix-functions/mbrtoc32.texi: Renamed from
42249         doc/glibc-functions/mbrtoc32.texi.
42250         * doc/gnulib.texi: Update.
42251         (Glibc uchar.h): Remove section.
42252         Suggested by Eric Blake.
42254 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42256         stdnoreturn: port to MSVC better
42257         MSVC standard headers use __declspec(noreturn), so #define noreturn
42258         to empty on that platform.  Reported by Bruno Haible in
42259         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42260         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42261         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42263 2012-02-28  Bruno Haible  <bruno@clisp.org>
42265         doc: Mention new glibc headers and functions.
42266         * doc/glibc-headers/uchar.texi: New file.
42267         * doc/glibc-functions/aligned_alloc.texi: New file.
42268         * doc/glibc-functions/c16rtomb.texi: New file.
42269         * doc/glibc-functions/c32rtomb.texi: New file.
42270         * doc/glibc-functions/clock_adjtime.texi: New file.
42271         * doc/glibc-functions/fanotify_init.texi: New file.
42272         * doc/glibc-functions/fanotify_mark.texi: New file.
42273         * doc/glibc-functions/inet6_opt_append.texi: New file.
42274         * doc/glibc-functions/inet6_opt_find.texi: New file.
42275         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42276         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42277         * doc/glibc-functions/inet6_opt_init.texi: New file.
42278         * doc/glibc-functions/inet6_opt_next.texi: New file.
42279         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42280         * doc/glibc-functions/inet6_rth_add.texi: New file.
42281         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42282         * doc/glibc-functions/inet6_rth_init.texi: New file.
42283         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42284         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42285         * doc/glibc-functions/inet6_rth_space.texi: New file.
42286         * doc/glibc-functions/login.texi: New file.
42287         * doc/glibc-functions/mbrtoc16.texi: New file.
42288         * doc/glibc-functions/mbrtoc32.texi: New file.
42289         * doc/glibc-functions/name_to_handle_at.texi: New file.
42290         * doc/glibc-functions/ntp_gettimex.texi: New file.
42291         * doc/glibc-functions/open_by_handle_at.texi: New file.
42292         * doc/glibc-functions/prlimit.texi: New file.
42293         * doc/glibc-functions/process_vm_readv.texi: New file.
42294         * doc/glibc-functions/process_vm_writev.texi: New file.
42295         * doc/glibc-functions/recvmmsg.texi: New file.
42296         * doc/glibc-functions/scandirat.texi: New file.
42297         * doc/glibc-functions/sendmmsg.texi: New file.
42298         * doc/glibc-functions/setns.texi: New file.
42299         * doc/glibc-functions/timespec_get.texi: New file.
42300         * doc/gnulib.texi: Include them.
42301         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42302         sections.
42303         Reported by Eric Blake.
42305 2012-02-28  Bruno Haible  <bruno@clisp.org>
42307         Avoid compilation errors with MSVC option -fp:strict.
42308         * lib/floor.c: Use MSVC specific pragma fenv_access.
42309         * lib/ceil.c: Likewise.
42310         * lib/trunc.c: Likewise.
42311         * lib/round.c: Likewise.
42312         * lib/rint.c: Likewise.
42313         * lib/fma.c: Likewise.
42314         * lib/integer_length.c: Likewise.
42315         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42317         * tests/test-floor2.c: Likewise.
42318         * tests/test-floorf2.c: Likewise.
42319         * tests/test-ceil2.c: Likewise.
42320         * tests/test-ceilf2.c: Likewise.
42321         * tests/test-trunc2.c: Likewise.
42322         * tests/test-truncf2.c: Likewise.
42323         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42325 2012-02-27  Bruno Haible  <bruno@clisp.org>
42327         Tests for module 'sqrtl-ieee'.
42328         * modules/sqrtl-ieee-tests: New file.
42329         * tests/test-sqrtl-ieee.c: New file.
42331         New module 'sqrtl-ieee'.
42332         * modules/sqrtl-ieee: New file.
42334         Tests for module 'sqrt-ieee'.
42335         * modules/sqrt-ieee-tests: New file.
42336         * tests/test-sqrt-ieee.c: New file.
42338         New module 'sqrt-ieee'.
42339         * modules/sqrt-ieee: New file.
42341         Tests for module 'sqrtf-ieee'.
42342         * modules/sqrtf-ieee-tests: New file.
42343         * tests/test-sqrtf-ieee.c: New file.
42344         * tests/test-sqrt-ieee.h: New file.
42346         New module 'sqrtf-ieee'.
42347         * modules/sqrtf-ieee: New file.
42349 2012-02-27  Bruno Haible  <bruno@clisp.org>
42351         remainderl-ieee: Work around test failure on OSF/1.
42352         * m4/remainderl-ieee.m4: New file.
42353         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42354         present, test whether remainderl works with a zero second argument.
42355         Replace it if not.
42356         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42358         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42359         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42360         (Depends-on): Update conditions.
42361         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42362         (Depends-on): Add remainder-ieee.
42363         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42364         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42365         module.
42367         remainderf-ieee: Work around test failure on OSF/1.
42368         * m4/remainderf-ieee.m4: New file.
42369         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42370         present, test whether remainderf works with a zero second argument.
42371         Replace it if not.
42372         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42374         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42375         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42376         (Depends-on): Update conditions.
42377         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42378         (Depends-on): Add remainder-ieee.
42379         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42380         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42381         module.
42383         remainder-ieee: Work around test failure on OSF/1.
42384         * m4/remainder-ieee.m4: New file.
42385         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42386         present, test whether remainder works with a zero second argument.
42387         Replace it if not.
42388         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42390         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42391         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42392         (Depends-on): Update dependencies.
42393         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42394         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42395         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42397         Tests for module 'remainderl-ieee'.
42398         * modules/remainderl-ieee-tests: New file.
42399         * tests/test-remainderl-ieee.c: New file.
42401         New module 'remainderl-ieee'.
42402         * modules/remainderl-ieee: New file.
42404         Tests for module 'remainder-ieee'.
42405         * modules/remainder-ieee-tests: New file.
42406         * tests/test-remainder-ieee.c: New file.
42408         New module 'remainder-ieee'.
42409         * modules/remainder-ieee: New file.
42411         Tests for module 'remainderf-ieee'.
42412         * modules/remainderf-ieee-tests: New file.
42413         * tests/test-remainderf-ieee.c: New file.
42414         * tests/test-remainder-ieee.h: New file.
42416         New module 'remainderf-ieee'.
42417         * modules/remainderf-ieee: New file.
42419 2012-02-27  Bruno Haible  <bruno@clisp.org>
42421         modff, modfl: Fix configure syntax error.
42422         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42423         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42425 2012-02-27  Bruno Haible  <bruno@clisp.org>
42427         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42428         * m4/fmodl-ieee.m4: New file.
42429         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42430         whether fmodl works with zero arguments. Replace it if not.
42431         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42432         (Depends-on): Add fmod-ieee.
42433         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42434         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42436         fmodf-ieee: Work around test failure on OSF/1.
42437         * m4/fmodf-ieee.m4: New file.
42438         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42439         whether fmodf works with zero arguments. Replace it if not.
42440         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42442         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42443         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42444         (Depends-on): Update dependencies.
42445         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42446         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42447         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42449         fmodf-ieee: Work around test failure on MSVC 9.
42450         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42451         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42453         fmod-ieee: Work around test failures on OSF/1, mingw.
42454         * m4/fmod-ieee.m4: New file.
42455         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42456         whether fmod works with zero arguments. Replace it if not.
42457         * lib/math.in.h (fmod): New declaration.
42458         * lib/fmod.c: New file.
42459         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42461         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42462         * modules/fmod (Files): Add lib/fmod.c.
42463         (Depends-on): Add math, isinf, trunc, fma.
42464         (configure.ac): Arrange to compile lib/fmod.c if needed.
42465         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42466         m4/signbit.m4.
42467         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42468         * tests/test-math-c++.cc: Check the declaration of fmod.
42469         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42471         fmodl-ieee: Fix test failures.
42472         * lib/fmodl.c (fmodl): Treat Inf specially.
42473         * modules/fmodl (Depends-on): Add isinf.
42475         Tests for module 'fmodl-ieee'.
42476         * modules/fmodl-ieee-tests: New file.
42477         * tests/test-fmodl-ieee.c: New file.
42479         New module 'fmodl-ieee'.
42480         * modules/fmodl-ieee: New file.
42482         Tests for module 'fmod-ieee'.
42483         * modules/fmod-ieee-tests: New file.
42484         * tests/test-fmod-ieee.c: New file.
42486         New module 'fmod-ieee'.
42487         * modules/fmod-ieee: New file.
42489         Tests for module 'fmodf-ieee'.
42490         * modules/fmodf-ieee-tests: New file.
42491         * tests/test-fmodf-ieee.c: New file.
42492         * tests/test-fmod-ieee.h: New file.
42494         New module 'fmodf-ieee'.
42495         * modules/fmodf-ieee: New file.
42497 2012-02-27  Bruno Haible  <bruno@clisp.org>
42499         Tests for module 'rintl-ieee'.
42500         * modules/rintl-ieee-tests: New file.
42501         * tests/test-rintl-ieee.c: New file.
42503         New module 'rintl-ieee'.
42504         * modules/rintl-ieee: New file.
42506         Tests for module 'rint-ieee'.
42507         * modules/rint-ieee-tests: New file.
42508         * tests/test-rint-ieee.c: New file.
42510         New module 'rint-ieee'.
42511         * modules/rint-ieee: New file.
42513         Tests for module 'rintf-ieee'.
42514         * modules/rintf-ieee-tests: New file.
42515         * tests/test-rintf-ieee.c: New file.
42516         * tests/test-rint-ieee.h: New file.
42518         New module 'rintf-ieee'.
42519         * modules/rintf-ieee: New file.
42521 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42523         regex: re_search etc. should return -2 when memory exhausted
42524         This bug was uncovered when testing 'grep'.  Without the fix,
42525         re_search and friends return -1 when memory is exhausted, but -1
42526         means no match, and this causes grep to falsely report no-match
42527         instead of memory-exhaustion.  See
42528         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
42529         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
42530         trouble; this can occur if re_search_internal ran out of memory.
42532 2012-02-26  Bruno Haible  <bruno@clisp.org>
42534         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
42535         * m4/modfl-ieee.m4: New file.
42536         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
42537         whether modfl works with Inf. Replace it if not.
42538         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
42539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
42540         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
42541         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
42542         (Depends-on): Update dependencies.
42543         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
42544         m4/signbit.m4.
42545         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
42546         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
42548         modfl-ieee: Fix dependencies.
42549         * modules/modfl-ieee (Depends-on): Add modf-ieee.
42551         modfl-ieee: Fix test failures.
42552         * lib/modfl.c (modfl): Treat NaN and Inf specially.
42553         * modules/modfl (Depends-on): Add isfinite, isinf.
42555         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
42556         * m4/modff-ieee.m4: New file.
42557         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
42558         whether modff works with NaN and Inf. Replace it if not.
42559         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
42560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
42561         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
42562         * modules/modff (configure.ac): Consider REPLACE_MODFF.
42563         (Depends-on): Update dependencies.
42564         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
42565         m4/signbit.m4.
42566         (Depends-on): Add modf-ieee.
42567         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
42568         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
42570         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
42571         * m4/modf-ieee.m4: New file.
42572         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
42573         whether modf works with NaN and Inf. Replace it if not.
42574         * lib/math.in.h (modf): New declaration.
42575         * lib/modf.c: New file.
42576         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
42577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
42578         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
42579         * modules/modf (Files): Add lib/modf.c.
42580         (Depends-on): Add math, isfinite, trunc, isinf.
42581         (configure.ac): Addrange to compile lib/modf.c if needed.
42582         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
42583         m4/signbit.m4.
42584         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
42585         * tests/test-math-c++.cc: Check the declaration of modf.
42586         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
42588         Tests for module 'modfl-ieee'.
42589         * modules/modfl-ieee-tests: New file.
42590         * tests/test-modfl-ieee.c: New file.
42592         New module 'modfl-ieee'.
42593         * modules/modfl-ieee: New file.
42595         Tests for module 'modf-ieee'.
42596         * modules/modf-ieee-tests: New file.
42597         * tests/test-modf-ieee.c: New file.
42599         New module 'modf-ieee'.
42600         * modules/modf-ieee: New file.
42602         Tests for module 'modff-ieee'.
42603         * modules/modff-ieee-tests: New file.
42604         * tests/test-modff-ieee.c: New file.
42605         * tests/test-modf-ieee.h: New file.
42607         New module 'modff-ieee'.
42608         * modules/modff-ieee: New file.
42610 2012-02-26  Bruno Haible  <bruno@clisp.org>
42612         Tests for module 'fabsl-ieee'.
42613         * modules/fabsl-ieee-tests: New file.
42614         * tests/test-fabsl-ieee.c: New file.
42616         New module 'fabsl-ieee'.
42617         * modules/fabsl-ieee: New file.
42619         Tests for module 'fabs-ieee'.
42620         * modules/fabs-ieee-tests: New file.
42621         * tests/test-fabs-ieee.c: New file.
42623         New module 'fabs-ieee'.
42624         * modules/fabs-ieee: New file.
42626         Tests for module 'fabsf-ieee'.
42627         * modules/fabsf-ieee-tests: New file.
42628         * tests/test-fabsf-ieee.c: New file.
42629         * tests/test-fabs-ieee.h: New file.
42631         New module 'fabsf-ieee'.
42632         * modules/fabsf-ieee: New file.
42634 2012-02-26  Bruno Haible  <bruno@clisp.org>
42636         Tests for module 'fmal-ieee'.
42637         * modules/fmal-ieee-tests: New file.
42638         * tests/test-fmal-ieee.c: New file.
42640         New module 'fmal-ieee'.
42641         * modules/fmal-ieee: New file.
42643         Tests for module 'fma-ieee'.
42644         * modules/fma-ieee-tests: New file.
42645         * tests/test-fma-ieee.c: New file.
42647         New module 'fma-ieee'.
42648         * modules/fma-ieee: New file.
42650         Tests for module 'fmaf-ieee'.
42651         * modules/fmaf-ieee-tests: New file.
42652         * tests/test-fmaf-ieee.c: New file.
42653         * tests/test-fma-ieee.h: New file.
42655         New module 'fmaf-ieee'.
42656         * modules/fmaf-ieee: New file.
42658 2012-02-26  Bruno Haible  <bruno@clisp.org>
42660         Tests for module 'ldexpl-ieee'.
42661         * modules/ldexpl-ieee-tests: New file.
42662         * tests/test-ldexpl-ieee.c: New file.
42664         New module 'ldexpl-ieee'.
42665         * modules/ldexpl-ieee: New file.
42667         Tests for module 'ldexp-ieee'.
42668         * modules/ldexp-ieee-tests: New file.
42669         * tests/test-ldexp-ieee.c: New file.
42671         New module 'ldexp-ieee'.
42672         * modules/ldexp-ieee: New file.
42674         Tests for module 'ldexpf-ieee'.
42675         * modules/ldexpf-ieee-tests: New file.
42676         * tests/test-ldexpf-ieee.c: New file.
42677         * tests/test-ldexp-ieee.h: New file.
42679         New module 'ldexpf-ieee'.
42680         * modules/ldexpf-ieee: New file.
42682 2012-02-26  Bruno Haible  <bruno@clisp.org>
42684         Refactor frexp*-ieee tests.
42685         * tests/test-frexp-ieee.h: New file.
42686         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42687         (main): Just call test_function.
42688         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42689         (main): Just call test_function.
42690         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42691         (main): Just call test_function.
42692         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42693         * modules/frexp-ieee-tests (Files): Likewise.
42694         * modules/frexpl-ieee-tests (Files): Likewise.
42696         Tests for module 'frexpl-ieee'.
42697         * modules/frexpl-ieee-tests: New file.
42698         * tests/test-frexpl-ieee.c: New file.
42700         New module 'frexpl-ieee'.
42701         * modules/frexpl-ieee: New file.
42703         Tests for module 'frexp-ieee'.
42704         * modules/frexp-ieee-tests: New file.
42705         * tests/test-frexp-ieee.c: New file.
42707         New module 'frexp-ieee'.
42708         * modules/frexp-ieee: New file.
42710         Tests for module 'frexpf-ieee'.
42711         * modules/frexpf-ieee-tests: New file.
42712         * tests/test-frexpf-ieee.c: New file.
42714         New module 'frexpf-ieee'.
42715         * modules/frexpf-ieee: New file.
42717 2012-02-26  Bruno Haible  <bruno@clisp.org>
42719         roundl-ieee tests: More tests.
42720         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42721         (main): Add tests for [MX] shaded specification in POSIX.
42722         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42723         (Depends-on): Add isnanl-nolibm.
42725         round-ieee tests: More tests.
42726         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42727         (main): Add tests for [MX] shaded specification in POSIX.
42728         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42729         (Depends-on): Add isnand-nolibm.
42731         roundf-ieee tests: More tests.
42732         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42733         (main): Add tests for [MX] shaded specification in POSIX.
42734         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42735         (Depends-on): Add isnanf-nolibm.
42737         truncl-ieee tests: More tests.
42738         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42739         (main): Add tests for [MX] shaded specification in POSIX.
42740         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42741         (Depends-on): Add isnanl-nolibm.
42743         trunc-ieee tests: More tests.
42744         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42745         (main): Add tests for [MX] shaded specification in POSIX.
42746         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42747         (Depends-on): Add isnand-nolibm.
42749         truncf-ieee tests: More tests.
42750         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42751         (main): Add tests for [MX] shaded specification in POSIX.
42752         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42753         (Depends-on): Add isnanf-nolibm.
42755         ceill-ieee tests: More tests.
42756         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42757         (main): Add tests for [MX] shaded specification in POSIX.
42758         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42759         (Depends-on): Add isnanl-nolibm.
42761         ceil-ieee tests: More tests.
42762         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42763         (main): Add tests for [MX] shaded specification in POSIX.
42764         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42765         (Depends-on): Add isnand-nolibm.
42767         ceilf-ieee tests: More tests.
42768         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42769         (main): Add tests for [MX] shaded specification in POSIX.
42770         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42771         (Depends-on): Add isnanf-nolibm.
42773         floorl-ieee tests: More tests.
42774         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42775         (main): Add tests for [MX] shaded specification in POSIX.
42776         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42777         (Depends-on): Add isnanl-nolibm.
42779         floor-ieee tests: More tests.
42780         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42781         (main): Add tests for [MX] shaded specification in POSIX.
42782         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42783         (Depends-on): Add isnand-nolibm.
42785         floorf-ieee tests: More tests.
42786         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42787         (main): Add tests for [MX] shaded specification in POSIX.
42788         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42789         (Depends-on): Add isnanf-nolibm.
42791 2012-02-26  Bruno Haible  <bruno@clisp.org>
42793         fpieee: More comments.
42794         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42796 2012-02-25  Bruno Haible  <bruno@clisp.org>
42798         Tests for module 'log10l'.
42799         * modules/log10l-tests: New file.
42800         * tests/test-log10l.c: New file.
42801         * tests/test-math-c++.cc: Check the declaration of log10l.
42803         New module 'log10l'.
42804         * lib/math.in.h (log10l): New declaration.
42805         * lib/log10l.c: New file.
42806         * m4/log10l.m4: New file.
42807         * modules/log10l: New file.
42808         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42810         HAVE_DECL_LOG10L.
42811         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42812         HAVE_DECL_LOG10L.
42813         * doc/posix-functions/log10l.texi: Mention the new module.
42815 2012-02-25  Bruno Haible  <bruno@clisp.org>
42817         fmodl, remainder*: Avoid wrong results due to rounding errors.
42818         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42819         expected bounds.
42820         * lib/remainderf.c (remainderf): Likewise.
42821         * lib/remainder.c (remainder): Likewise.
42822         * lib/remainderl.c (remainderl): Likewise.
42824 2012-02-25  Bruno Haible  <bruno@clisp.org>
42826         Tests for module 'remainderl'.
42827         * modules/remainderl-tests: New file.
42828         * tests/test-remainderl.c: New file.
42829         * tests/test-math-c++.cc: Check the declaration of remainderl.
42831         New module 'remainderl'.
42832         * lib/math.in.h (remainderl): New declaration.
42833         * lib/remainderl.c: New file.
42834         * m4/remainderl.m4: New file.
42835         * modules/remainderl: New file.
42836         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42838         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42839         HAVE_REMAINDERL.
42840         * doc/posix-functions/remainderl.texi: Mention the new module.
42842 2012-02-25  Bruno Haible  <bruno@clisp.org>
42844         Tests for module 'remainderf'.
42845         * modules/remainderf-tests: New file.
42846         * tests/test-remainderf.c: New file.
42847         * tests/test-math-c++.cc: Check the declaration of remainderf.
42849         New module 'remainderf'.
42850         * lib/math.in.h (remainderf): New declaration.
42851         * lib/remainderf.c: New file.
42852         * m4/remainderf.m4: New file.
42853         * modules/remainderf: New file.
42854         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42856         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42857         HAVE_REMAINDERF.
42858         * doc/posix-functions/remainderf.texi: Mention the new module.
42860 2012-02-25  Bruno Haible  <bruno@clisp.org>
42862         remainder: Support for MSVC.
42863         * lib/math.in.h (remainder): New declaration.
42864         * lib/remainder.c: New file.
42865         * m4/remainder.m4: New file.
42866         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42867         (Depends-on): Add math, round, fma.
42868         (configure.ac): Use results of gl_FUNC_REMAINDER.
42869         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42871         HAVE_DECL_REMAINDER.
42872         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42873         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42874         * tests/test-math-c++.cc: Check the declaration of remainder.
42875         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42876         problems are fixed.
42878 2012-02-25  Bruno Haible  <bruno@clisp.org>
42880         Tests for module 'fmodl'.
42881         * modules/fmodl-tests: New file.
42882         * tests/test-fmodl.c: New file.
42883         * tests/test-math-c++.cc: Check the declaration of fmodl.
42885         New module 'fmodl'.
42886         * lib/math.in.h (fmodl): New declaration.
42887         * lib/fmodl.c: New file.
42888         * m4/fmodl.m4: New file.
42889         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42891         REPLACE_FMODL.
42892         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42893         REPLACE_FMODL.
42894         * modules/fmodl: New file.
42895         * doc/posix-functions/fmodl.texi: Mention the new module.
42897 2012-02-25  Bruno Haible  <bruno@clisp.org>
42899         Tests for module 'modfl'.
42900         * modules/modfl-tests: New file.
42901         * tests/test-modfl.c: New file.
42902         * tests/test-math-c++.cc: Check the declaration of modfl.
42904         New module 'modfl'.
42905         * lib/math.in.h (modfl): New declaration.
42906         * lib/modfl.c: New file.
42907         * m4/modfl.m4: New file.
42908         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42910         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42911         * modules/modfl: New file.
42912         * doc/posix-functions/modfl.texi: Mention the new module.
42914 2012-02-25  Bruno Haible  <bruno@clisp.org>
42916         Tests for module 'fabsl'.
42917         * modules/fabsl-tests: New file.
42918         * tests/test-fabsl.c: New file.
42919         * tests/test-math-c++.cc: Check the declaration of fabsl.
42921         New module 'fabsl'.
42922         * lib/math.in.h (fabsl): New declaration.
42923         * lib/fabsl.c: New file.
42924         * m4/fabsl.m4: New file.
42925         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42927         REPLACE_FABSL.
42928         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42929         REPLACE_FABSL.
42930         * modules/fabsl: New file.
42931         * doc/posix-functions/fabsl.texi: Mention the new module.
42933 2012-02-25  Bruno Haible  <bruno@clisp.org>
42935         fabs tests: More tests.
42936         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
42937         (zero): New variable.
42938         (main): Add tests for signed zero.
42939         * modules/fabs-tests (Files): Add tests/minus-zero.h.
42941         fabsf tests: More tests.
42942         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
42943         (zero): New variable.
42944         (main): Add tests for signed zero.
42945         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42947 2012-02-24  Bruno Haible  <bruno@clisp.org>
42949         atanl: Provide function definition on MSVC.
42950         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42951         function pointer.
42952         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42954 2012-02-24  Bruno Haible  <bruno@clisp.org>
42956         acosl: Provide function definition on MSVC.
42957         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42958         function pointer.
42959         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42961 2012-02-24  Bruno Haible  <bruno@clisp.org>
42963         asinl: Provide function definition on MSVC.
42964         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42965         function pointer.
42966         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42968 2012-02-24  Bruno Haible  <bruno@clisp.org>
42970         tanl: Provide function definition on MSVC.
42971         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42972         function pointer.
42973         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42975 2012-02-24  Bruno Haible  <bruno@clisp.org>
42977         cosl: Provide function definition on MSVC.
42978         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42979         function pointer.
42980         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42982 2012-02-24  Bruno Haible  <bruno@clisp.org>
42984         sinl: Provide function definition on MSVC.
42985         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42986         function pointer.
42987         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42989 2012-02-24  Bruno Haible  <bruno@clisp.org>
42991         logl: Provide function definition on MSVC.
42992         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42993         function pointer.
42994         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42996 2012-02-24  Bruno Haible  <bruno@clisp.org>
42998         expl: Provide function definition on MSVC.
42999         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43000         function pointer.
43001         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43003 2012-02-24  Bruno Haible  <bruno@clisp.org>
43005         sqrtl: Provide function definition on MSVC.
43006         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43007         a function pointer.
43008         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43010 2012-02-24  Bruno Haible  <bruno@clisp.org>
43012         ceill: Provide function definition on MSVC.
43013         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43014         used as a function pointer.
43015         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43017 2012-02-24  Bruno Haible  <bruno@clisp.org>
43019         floorl: Provide function definition on MSVC.
43020         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43021         used as a function pointer.
43022         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43024 2012-02-24  Bruno Haible  <bruno@clisp.org>
43026         ceilf: Provide function definition on MSVC.
43027         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43028         used as a function pointer.
43029         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43031 2012-02-24  Bruno Haible  <bruno@clisp.org>
43033         floorf: Provide function definition on MSVC.
43034         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43035         used as a function pointer.
43036         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43038 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43040         stdnoreturn: new module
43041         This implements a replacement for C11's <stdnoreturn.h>.
43042         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43043         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43044         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43045         * tests/test-stdnoreturn.c: New files.
43047 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43049         regex: fix false multibyte matches in some regular expressions
43050         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43051         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43052         * lib/regex_internal.c (re_string_skip_chars):
43053         Fix miscomputation of remain_len that may cause incomplete
43054         multi-byte character and false match.
43056 2012-02-24  Jim Meyering  <meyering@redhat.com>
43058         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43059         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43060         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43061         Remove now-unnecessary str''cmp obfuscation.
43062         Suggested by Akim Demaille.
43064 2012-02-24  Bruno Haible  <bruno@clisp.org>
43066         streq: Rename macro.
43067         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43068         * NEWS: Mention the change.
43069         * lib/mbrtowc.c (mbrtowc): Update.
43070         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43071         * lib/wcwidth.c (wcwidth): Update.
43072         Suggested by Akim Demaille and Jim Meyering.
43074 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43076         regex: fix typo in definition of MIN
43077         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43078         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43080 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43081             Bruno Haible  <bruno@clisp.org>
43083         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43084         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43085         entries into a stack-allocated buffer directly.
43086         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43088 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43089             Bruno Haible  <bruno@clisp.org>
43091         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43093          - There were several instances of this pattern:
43095              for (;;) {
43096                n = acl (f, GETACLCNT, 0, NULL);
43097                [ allocate an array A of size N ]
43098                if (acl (f, GETACL, n, a) == n)
43099                  break;
43100              }
43102            This loop might never terminate if some other process is constantly
43103            manipulating the file's ACL.  The loop should be rewritten to
43104            terminate.
43106          - The acl (... GETACLNT ...) call is merely an optimization; its value
43107            is merely a hint as to how big to make the array.  A better
43108            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43109            and just guess a reasonably-big size, growing the size and trying
43110            again if it's not large enough.  This guarantees termination, and
43111            saves a system call.
43113         * lib/acl-internal.h: Include <limits.h>.
43114         (MIN, SIZE_MAX): New macros.
43115         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43116         a stack-allocated buffer, and use malloc if it does not fit. Don't
43117         use GETACLCNT.
43118         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43120 2012-02-19  Bruno Haible  <bruno@clisp.org>
43122         acl: Fix endless loop on Solaris with vxfs.
43123         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43124         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43125         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43126         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43127         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43128         Reported by Bill Jones in
43129         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43131 2012-02-19  Bruno Haible  <bruno@clisp.org>
43133         acl: Fix copy-acl test failure on Solaris 11.0.
43134         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43135         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43136         that this function returns 0 in some more cases.
43138 2012-02-19  Bruno Haible  <bruno@clisp.org>
43140         acl: Update doc references.
43141         * doc/acl-resources.txt: Update links to Solaris documentation.
43143 2012-02-19  Bruno Haible  <bruno@clisp.org>
43145         Fix test failure in many locales on Solaris 11.
43146         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43147         'tr' arguments.
43148         * tests/test-pipe-filter-ii1.c (main): Likewise.
43149         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43150         expressions in the C locale.
43151         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43152         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43154 2012-02-19  Bruno Haible  <bruno@clisp.org>
43156         gnulib-tool: Improve usage message.
43157         * gnulib-tool (func_usage): Move doc of --help and --version to the
43158         section "Operation modes".
43160 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43162         README-release: make it easier to execute commands
43163         * top/README-release: break commands out on to separate lines.
43165 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43167         GNUmakefile: simplify detection of unconfigured trees
43168         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43169         whether the tree make is being run from is already configured or
43170         not.  Related simplifications.
43172 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43174         * gnulib-tool (func_usage): Document --help and --version.
43176 2012-02-11  Jim Meyering  <meyering@redhat.com>
43178         bootstrap: don't exit 0 upon gnulib-tool failure
43179         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43180         its exit status, not 0.
43182 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43184         README-release: various improvements
43185         * top/README-release: Give a command to push changes for the
43186         release.  Add "distcheck" to list of other pre-release checks.
43187         Fix instance of "make stable" which should be "make TYPE".
43189 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43191         maint: replace FSF snail-mail addresses with URLs
43192         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43193         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43194         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43195         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43196         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43197         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43198         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43199         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43200         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43201         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43202         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43203         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43204         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43205         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43206         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43207         * lib/glthread/thread.c, lib/glthread/thread.h:
43208         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43209         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43210         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43211         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43212         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43213         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43214         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43215         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43216         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43217         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43218         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43219         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43220         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43221         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43222         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43223         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43224         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43225         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43226         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43227         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43228         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43229         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43230         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43231         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43232         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43233         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43234         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43235         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43236         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43237         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43238         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43239         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43240         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43241         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43242         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43243         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43244         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43245         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43246         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43247         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43248         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43249         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43250         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43251         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43252         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43253         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43254         * tests/test-poll.c, tests/test-quotearg-simple.c:
43255         * tests/test-quotearg.c, tests/test-quotearg.h:
43256         * tests/test-round-ieee.c, tests/test-round1.c:
43257         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43258         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43259         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43260         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43261         * tests/test-strerror.c, tests/test-strerror_r.c:
43262         * tests/test-strsignal.c, tests/test-strverscmp.c:
43263         * tests/test-xmemdup0.c:
43264         Replace FSF snail mail addresses with URLs, as per GNU coding
43265         standards.  See glibc bug
43266         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43268 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43270         README-release: capitalize a word and split a line
43271         * top/README-release: Fix punctuation and spacing.
43273 2012-02-08  Akim Demaille  <demaille@gostai.com>
43275         fatal-signal: use C prototypes (with explicit void).
43276         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43277         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43279 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43281         regex: spelling fix
43282         * lib/regexec.c: spelling fix
43284         regex: rely on stdint.h for SIZE_MAX
43285         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43287 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43289         regex: merge glibc changes
43291         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43292         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43293         (init_word_char): Work even if bitset words are not exactly 32 or
43294         64 bits wide.  Don't assume there are no padding bits.
43295         * lib/regex.c [_LIBC]: Do not include <config.h>.
43296         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43297         and -Wtype-limits.
43298         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43299         needless disagreement with glibc.  All uses changed.  Define it to
43300         1 only if _GNU_SOURCE, to match glibc.
43301         (_REG_RM_NAME): Remove; no longer needed, since the names in
43302         question are now all protected by __USE_GNU.
43303         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43304         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43305         * lib/regex_internal.h (MIN): New macro.
43307         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43308         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43310         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43311         * lib/regex_internal.c (re_string_fetch_byte_case):
43312         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43313         is miscompiled, and it turns out it is because of an incorrect
43314         attribute on re_string_fetch_byte_case.  Unlike
43315         re_string_peek_byte_case, this one is really not pure, it modifies
43316         memory (increments pstr->cur_idx), and with the pure attribute GCC
43317         assumed it doesn't and it cached the presumed value of
43318         regexp->cur_idx in a variable across the
43319          for (;; ++i)
43320            {
43321              if (i >= BRACKET_NAME_BUF_SIZE)
43322                return REG_EBRACK;
43323              if (token->type == OP_OPEN_CHAR_CLASS)
43324                ch = re_string_fetch_byte_case (regexp);
43325              else
43326                ch = re_string_fetch_byte (regexp);
43327              if (re_string_eoi(regexp))
43328                return REG_EBRACK;
43329              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43330                break;
43331              elem->opr.name[i] = ch;
43332            }
43334         2011-11-29 Andreas Schwab <schwab@redhat.com>
43335         * lib/regcomp.c (build_equiv_class):
43336         Fix access after end of search string in regex matcher.
43338         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43339         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43341         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43342         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43344         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43345         * lib/regcomp.c (parse_branch, parse_sub_exp):
43346         More regex memory leak fixes and tests.
43347         (parse_sub_exp, parse_bracket_exp):
43348         Fix memory leak for some invalid regular expressions.
43350         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43351         * lib/regex_internal.c, lib/regexec.c:
43352         Fix unnecessary overallocation due to incomplete character.  When
43353         incomplete characters are found at the end of a string the code
43354         ran amok and allocated lots of memory.  Stricter limits are now in
43355         place.
43357         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43358         * lib/regex.h: Update documentation.
43360         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43361         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43363         2010-05-05 Andreas Schwab <schwab@redhat.com>
43364         * lib/regexec.c (find_collation_sequence_value):
43365         Fix lookup of collation sequence value during regexp matching.
43367         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43368         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43370         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43371         * lib/regex.h: Cleanup namespace.
43373         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43374         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43376         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43377         * lib/regex_internal.h: Prevent some declarations and definitions
43378         to be seen when used in tests.
43380         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43381         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43382         __libc_lock_* macros if not _LIBC.
43383         (struct re_dfa_t): Add lock.
43385 2012-02-07  Eric Blake  <eblake@redhat.com>
43387         maint.mk: also prohibit lower-case @var@
43388         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43389         lower case, like @top_srcdir@.
43391 2012-02-04  Eric Blake  <eblake@redhat.com>
43393         canonicalize: avoid uninitialized memory use
43394         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43395         random '/' left in dest.
43396         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43398 2012-02-04  Bruno Haible  <bruno@clisp.org>
43400         isatty: Fix test failure of ptsname_r on native Windows.
43401         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43402         and don't set errno.
43403         (isatty): Test first whether fd is valid. Set errno when returning 0.
43405 2012-02-04  Bruno Haible  <bruno@clisp.org>
43407         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43408         * tests/test-spawn-pipe-main.c: Include progname.h.
43409         (main): Invoke set_program_name.
43410         * modules/spawn-pipe-tests (Depends-on): Add progname.
43412         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43413         * tests/test-nonblocking-socket-main.c: Include progname.h.
43414         (main): Invoke set_program_name.
43415         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43417         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43418         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43419         (main): Invoke set_program_name.
43420         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43422 2012-02-04  Eric Blake  <eblake@redhat.com>
43424         canonicalize-lgpl: fix // handling
43425         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43427         canonicalize: fix // handling
43428         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43429         /// to //, since only // is special.
43431 2012-02-04  Bruno Haible  <bruno@clisp.org>
43433         ioctl: Fix test failure on native Windows.
43434         * lib/ioctl.c: Include msvc-nothrow.h.
43435         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43437 2012-02-04  Bruno Haible  <bruno@clisp.org>
43439         fsync: Avoid test failure on native Windows.
43440         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43441         read-only.
43443 2012-02-04  Bruno Haible  <bruno@clisp.org>
43445         sys_select: Avoid syntax error on OpenBSD 5.0.
43446         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43447         currently being included, just include the system's <sys/select.h>.
43449 2012-02-04  Bruno Haible  <bruno@clisp.org>
43451         sys_select: Avoid syntax error on OpenBSD 5.0.
43452         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43453         <sys/select.h>, not before.
43454         Reported by Jiri B <jirib@devio.us>.
43456 2012-02-04  Bruno Haible  <bruno@clisp.org>
43458         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43459         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43460         global variables.
43461         * tests/test-get-rusage-data.c (main): Likewise.
43462         Reported by Jim Meyering.
43464 2012-02-04  Bruno Haible  <bruno@clisp.org>
43466         stdioext: Fix last commit.
43467         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43469 2012-02-03  Bruno Haible  <bruno@clisp.org>
43471         stdioext: Add tentative support for Plan9.
43472         * lib/stdio-impl.h: Include <errno.h>.
43473         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43474         * lib/freadable.c (freadable): Likewise.
43475         * lib/fwritable.c (fwritable): Likewise.
43476         * lib/fbufmode.c (fbufmode): Likewise.
43477         * lib/freading.c (freading): Likewise.
43478         * lib/fwriting.c (fwriting): Likewise.
43479         * lib/freadptr.c (freadptr): Likewise.
43480         * lib/freadseek.c (freadptrinc): Likewise.
43481         * lib/freadahead.c (freadahead): Likewise.
43482         * lib/fpurge.c (fpurge): Likewise.
43483         * lib/fseeko.c (rpl_fseeko): Likewise.
43484         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43485         Reported by Jens Staal <staal1978@gmail.com>.
43487 2012-02-02  Jim Meyering  <meyering@redhat.com>
43489         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43490         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43491         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43492         not even to try to add the attribute.  Instead, add a pragma to suppress
43493         the suggestion/warning.
43495 2012-01-31  Karl Berry  <karl@gnu.org>
43497         setstate doc: typo.
43498         * doc/posix-functions/setstate.texi (setstate): { not (.
43500 2012-01-31  Bruno Haible  <bruno@clisp.org>
43502         popen: Make more robust on Windows.
43503         * lib/popen.c: On native Windows, use the _popen based code even if
43504         HAVE_POPEN is set.
43505         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43506         environment variable on native Windows.
43508 2012-01-30  Bruno Haible  <bruno@clisp.org>
43510         pclose: Fix typo.
43511         * lib/stdio.in.h (pclose): Fix typo in warning message.
43513 2012-01-30  Bruno Haible  <bruno@clisp.org>
43515         doc about getlogin_r, setstate.
43516         * doc/posix-functions/getlogin_r.texi: List the incompatible
43517         declaration problem under "not fixed by gnulib".
43518         * doc/posix-functions/setstate.texi: Mention incompatible declaration
43519         problem on Solaris 11 and other platforms.
43521 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
43522             Bruno Haible  <bruno@clisp.org>
43524         poll tests: Make test more robust.
43525         * tests/test-poll.c: Include macros.h.
43526         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
43527         return value of various I/O operations.
43528         * modules/poll-tests (Files): Add tests/macros.h.
43530 2012-01-30  Bruno Haible  <bruno@clisp.org>
43532         sys_stat: Fix support for mingw64 and MSVC.
43533         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
43534         header files already do it.
43535         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
43536         stat itself.
43537         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43539 2012-01-30  Bruno Haible  <bruno@clisp.org>
43541         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
43542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
43543         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
43545 2012-01-29  Bruno Haible  <bruno@clisp.org>
43547         quotearg: Fix test failure on MacOS X 10.5.
43548         * tests/test-quotearg-simple.c: Include localcharset.h.
43549         (main): If the locale encoding is not ASCII, bypass the tests of
43550         locale_quoting_style and clocale_quoting_style.
43551         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
43553 2012-01-29  Jim Meyering  <meyering@redhat.com>
43555         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
43556         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
43557         detect uses of canonicalize_file_name.
43559 2012-01-28  Bruno Haible  <bruno@clisp.org>
43561         test-framework-sh: Fix test failure with AIX 7.1 diff.
43562         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
43563         in column 1, like 'diff -c' does.
43564         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
43565         whether 'diff -u' is used. Instead, test whether the output contains
43566         some '@' character.
43568 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43570         strtoimax: eliminate need for stdint.h, inttypes.h checks
43571         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
43572         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
43573         the prerequisites for a recently-introduced strtoimax test.
43574         I guess this might cause strtoimax to be replaced when not
43575         strictly necessary on older hosts, but this shouldn't introduce
43576         any bugs and it should make Emacs 'configure' faster on typical
43577         modern hosts.  Problem discovered when importing the latest gnulib
43578         to an Emacs test version.
43579         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
43581 2012-01-28  Bruno Haible  <bruno@clisp.org>
43583         sys_time: Override 'struct timeval' on some native Windows platforms.
43584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
43585         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
43586         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
43587         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
43588         needs to be overridden.
43589         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
43590         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
43591         * tests/test-sys_select.c: Check that the tv_sec member has the same
43592         size as a 'time_t'.
43593         * tests/test-sys_time.c: Likewise.
43594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43595         is set, set also REPLACE_GETTIMEOFDAY.
43596         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43597         convert the resulting 'struct timeval' before returning.
43598         * lib/select.c: Include <sys/time.h>.
43599         (select, timeval): Undefine at the right place.
43600         * modules/select (Depends-on): Add sys_time.
43601         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43602         some Windows platforms.
43603         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43605 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43607         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43608         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
43609         an integer.
43610         * lib/fcntl.c (dupfd): Likewise.
43611         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43613 2012-01-28  Bruno Haible  <bruno@clisp.org>
43615         fcntl: Avoid compilation error on native Windows.
43616         * modules/fcntl (Depends-on): Add 'close'.
43618 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43620         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43621         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43622         pointer to an integer.
43623         * lib/poll.c (IsConsoleHandle): Likewise.
43624         * lib/isatty.c (IsConsoleHandle): Likewise.
43626 2012-01-28  Jim Meyering  <meyering@redhat.com>
43628         doc: clarify README-release
43629         * top/README-release: Clarify: you should make a point to have
43630         the latest stable versions of build tools in your PATH, and the
43631         reference to buildreq is solely for its list of tool names, not
43632         for its minimal-functional version numbers.
43633         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43635         maint.mk: use more readable (yet functionally equivalent) quoting
43636         It is common to quote a single quote in a single quoted string like
43637         this:  '...'\''...'.  Unless you know the idiom, that looks like
43638         gibberish, so prefer to double-quote the string when possible.
43639         Then you can use a more readable, lone single quote: "...'..."
43640         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43641         "don't" is more readable than the equivalent 'don'\''t'.
43642         (sc_cast_of_x_alloc_return_value): Likewise.
43643         (sc_cast_of_alloca_return_value): Likewise.
43644         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43645         rather than '\'':'\''.
43647 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43649         stdalign: relax _Alignof and tighten _Alignas test
43650         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43651         as it was too strict: alignof must divide offsetof, but it need
43652         not equal offsetof.  Inspired by Joseph S. Myers's comment
43653         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43654         Conversely, tighten the _Alignas test a bit, as the resulting
43655         alignment must be exactly 8.
43657 2012-01-27  Bruno Haible  <bruno@clisp.org>
43659         stdalign: Document the last change.
43660         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43662 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43664         stdalign: check that alignof and offsetof are consistent
43665         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43666         Problem reported for gnulib by Richard W.M. Jones in
43667         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43669 2012-01-27  Jim Meyering  <meyering@redhat.com>
43671         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43672         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43673         convert a sequence with gaps to the minimal containing range.
43674         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43675         * tests/test-update-copyright.sh: Test for this.
43676         The FSF confirmed it is ok to do this, assuming there is at
43677         least one significant change per year in the affected range:
43678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43680 2012-01-26  Bruno Haible  <bruno@clisp.org>
43682         pipe2: refine doc about thread-safety
43683         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43684         multithread-safety problem.
43685         * doc/glibc-functions/accept4.texi: Likewise.
43687 2012-01-26  Bruno Haible  <bruno@clisp.org>
43689         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43690         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43691         In the test program, include <fcntl.h>, for O_RDONLY.
43693 2012-01-26  Eric Blake  <eblake@redhat.com>
43695         pipe2: document lack of thread-safety in replacement
43696         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43697         issue in replacement.
43698         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43699         Based on a report by Eric Wong.
43701 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43702             Bruno Haible  <bruno@clisp.org>
43704         malloca: Avoid warnings on x86_64 mingw64.
43705         * lib/malloca.c: Include <stdint.h>.
43706         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43707         * modules/malloca (Depends-on): Add stdint.
43708         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43710 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43712         obstack: remove __STDC__ conditionals
43713         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43714         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43715         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43716         m4/include_next.m4 as the only gnulib-maintained places that still
43717         refer to __STDC__.
43719 2012-01-24  Bruno Haible  <bruno@clisp.org>
43721         havelib: Modern quoting.
43722         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43723         the recent change to the GNU coding standards.
43725 2012-01-24  Bruno Haible  <bruno@clisp.org>
43727         stdint: Improve support for Android.
43728         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43729         Reported by Simon Josefsson <simon@josefsson.org>.
43731 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43733         doc: omit trailing empty lines from INSTALL etc.
43734         * doc/Makefile (INSTALL): Omit trailing empty lines.
43735         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43736         omit trailing empty lines.  This simplifies the build procedure.
43738 2012-01-23  Jim Meyering  <meyering@redhat.com>
43740         tests: avoid spurious warnings about gl_sockets_startup
43741         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43742         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43743         reporting a "statement with no effect".
43744         * tests/test-accept.c (main): Mark as "(void)".
43745         * tests/test-accept4.c (main): Likewise.
43746         * tests/test-bind.c (main): Likewise.
43747         * tests/test-connect.c (main): Likewise.
43748         * tests/test-getpeername.c (main): Likewise.
43749         * tests/test-getsockname.c (main): Likewise.
43750         * tests/test-getsockopt.c (main): Likewise.
43751         * tests/test-listen.c (main): Likewise.
43752         * tests/test-recv.c (main): Likewise.
43753         * tests/test-recvfrom.c (main): Likewise.
43754         * tests/test-send.c (main): Likewise.
43755         * tests/test-sendto.c (main): Likewise.
43756         * tests/test-setsockopt.c (main): Likewise.
43757         * tests/test-shutdown.c (main): Likewise.
43759 2012-01-21  Bruno Haible  <bruno@clisp.org>
43761         locale-fr.m4: Fix for Android.
43762         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43763         failure of the test program on Bionic libc.
43765 2012-01-21  Jim Meyering  <meyering@redhat.com>
43767         bootstrap: fail when bootstrap_post_import_hook fails
43768         Otherwise, it's far too easy to miss diagnostics emitted
43769         between gnulib-tool's output and that of running configure.
43770         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43772 2012-01-17  Jim Meyering  <meyering@redhat.com>
43774         maint: enable sc_trailing_blank
43775         * build-aux/pmccabe.css: Remove trailing blanks.
43776         * doc/acl-cygwin.txt: Likewise.
43777         * doc/gnu-oids.texi: Likewise
43778         * cfg.mk: Enable sc_trailing_blank.
43779         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43781 2012-01-17  Jim Meyering  <meyering@redhat.com>
43783         maint: enable sc_prohibit_openat_without_use
43784         * cfg.mk: Enable sc_prohibit_openat_without_use.
43785         Exempt lib/selinux-at.c.
43787 2012-01-17  Jim Meyering  <meyering@redhat.com>
43789         maint: enable sc_prohibit_cloexec_without_use
43790         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43791         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43793 2012-01-17  Jim Meyering  <meyering@redhat.com>
43795         maint: enable sc_prohibit_intprops_without_use
43796         * cfg.mk: Enable sc_prohibit_intprops_without_use
43797         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43799 2012-01-17  Jim Meyering  <meyering@redhat.com>
43801         maint: enable sc_prohibit_hash_pjw_without_use
43802         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43803         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43804         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43805         following " (".
43807 2012-01-17  Jim Meyering  <meyering@redhat.com>
43809         maint: enable double-word-prohibiting rule
43810         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43811         Exempt three files.
43813 2012-01-17  Jim Meyering  <meyering@redhat.com>
43815         maint: remove empty lines at EOF, but excluding modules/*
43816         Apply syntax rules at home as well as abroad.  Most changes
43817         were induced by running this:
43818           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43819             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43820             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43821         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43822         Exempt modules/* and two binary files.
43823         Also exempt doc/INSTALL*, per request from Bruno Haible.
43824         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43825         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43826         * doc/Copyright/request-assign.future: Likewise.
43827         * doc/Copyright/request-disclaim.changes: Likewise.
43828         * doc/INSTALL: Likewise.
43829         * doc/INSTALL.ISO: Likewise.
43830         * doc/INSTALL.UTF-8: Likewise.
43831         * doc/acl-cygwin.txt: Likewise.
43832         * doc/acl-resources.txt: Likewise.
43833         * doc/fdl-1.2.texi: Likewise.
43834         * doc/fdl-1.3.texi: Likewise.
43835         * doc/fdl.texi: Likewise.
43836         * lib/argp-pin.c: Likewise.
43837         * lib/round.c: Likewise.
43838         * lib/unicase/u16-totitle.c: Likewise.
43839         * lib/unictype/block_test.c: Likewise.
43840         * lib/uninorm/canonical-decomposition.c: Likewise.
43841         * m4/README: Likewise.
43842         * m4/relocatable-lib.m4: Likewise.
43843         * tests/test-isnand-nolibm.c: Likewise.
43844         * tests/test-isnand.c: Likewise.
43845         * tests/uninorm/NormalizationTest.txt: Likewise.
43847 2012-01-17  Jim Meyering  <meyering@redhat.com>
43849         maint: add framework to run syntax-check rules against gnulib sources
43850         * cfg.mk: New file, to disable all currently-failing tests.
43851         We'll enable them one by one, as they are made to pass.
43852         * Makefile (sc_maint): New rule.
43854 2012-01-21  Bruno Haible  <bruno@clisp.org>
43856         stdint: Add support for Android.
43857         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43858         include the system's <stdint.h>.
43859         Reported by Simon Josefsson <simon@josefsson.org>.
43861 2012-01-19  Jim Meyering  <meyering@redhat.com>
43863         bootstrap: add bootstrap_post_import_hook
43864         Bison does still need something like the gnulib_mk_hook whose
43865         invocation I had to remove along with slurp in commit 767ccd40.
43866         Technically, we could get along without it, but doing so would
43867         have required living with a warning and a mandatory post-bootstrap
43868         automake rerun.
43869         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43870         (bootstrap_post_import_hook): New function.
43871         Invoke it after gnulib-tool --import and before autoreconf.
43873 2012-01-18  Jim Meyering  <meyering@redhat.com>
43875         gitlog-to-changelog: don't use "no_"-prefixed variable name
43876         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43877         to enable both --cluster and --no-cluster.  Change variable name,
43878         s/\$no_cluster/$cluster/, and reverse usage to match.
43880         gitlog-to-changelog: use "||", not "or" in expressions
43881         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43882         expressions.
43884 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43886         gitlog-to-changelog: new option --no-cluster
43887         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43888         clustering of adjacent commit messages.
43890 2012-01-17  Jim Meyering  <meyering@redhat.com>
43892         maint: spell file systems with two words, not one
43893         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43894         two words, not one.
43896 2012-01-16  Jim Meyering  <meyering@redhat.com>
43898         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43899         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43901 2012-01-16  Eric Blake  <eblake@redhat.com>
43903         bootstrap: cater to autoconf 2.59
43904         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43905         is not available.
43907         bootstrap: properly check for libtool
43908         * build-aux/bootstrap (libtoolize): Also run libtool when older
43909         usage is detected.
43911 2012-01-15  Bruno Haible  <bruno@clisp.org>
43913         Improve support for MSVC 9.
43914         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43915         clashes on MSVC.
43916         * lib/fcntl.in.h: Likewise.
43917         * lib/stdlib.in.h: Likewise.
43918         * lib/sys_stat.in.h: Likewise.
43920 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43922         gnupload: we hold the master copy of this script now
43923         For motivation and more information, see:
43924         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43925         * build-aux/gnupload: Make it clear in the heading comments that the
43926         master copy of this file is maintained by gnulib.  Since we are at
43927         it, bump its copyright year and ...
43928         ($scriptversion): ... the date in its version.
43929         ($usage): Patches and bug reports should be sent to the gnulib list,
43930         not the automake one.
43931         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43932         anymore.
43934 2012-01-15  Bruno Haible  <bruno@clisp.org>
43936         Fix module 'random'.
43937         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
43938         initstate, setstate are declared.
43940 2012-01-14  Bruno Haible  <bruno@clisp.org>
43942         Tests for module 'random'.
43943         * modules/random-tests: New file.
43944         * tests/test-random.c: New file, based on tests/test-random_r.c.
43946         New module 'random'.
43947         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43948         declarations.
43949         * lib/random.c: New file, based on glibc/stdlib/random.c.
43950         * m4/random.m4: New file.
43951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43952         HAVE_RANDOM.
43953         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43954         * modules/random: New file.
43955         * config/srclist.txt: Add an entry for random.c.
43956         * doc/posix-functions/random.texi: Mention the 'random' module.
43957         * doc/posix-functions/initstate.texi: Likewise.
43958         * doc/posix-functions/setstate.texi: Likewise.
43959         * doc/posix-functions/srandom.texi: Likewise.
43961 2012-01-12  Bruno Haible  <bruno@clisp.org>
43963         random_r: Use common idioms.
43964         * lib/random_r.c: Include <stdlib.h> first.
43966         random_r: Override incompatible API on AIX, OSF/1.
43967         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43968         Override the system function if REPLACE_RANDOM_R is 1.
43969         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43970         and OSF/1, set REPLACE_RANDOM_R.
43971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43972         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43973         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43974         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43975         * doc/glibc-functions/random_r.texi: Likewise.
43976         * doc/glibc-functions/setstate_r.texi: Likewise.
43978         random_r: Support for MSVC 9.
43979         * lib/random_r.c: Include stdint.h, not inttypes.h.
43981 2012-01-12  Eric Blake  <eblake@redhat.com>
43983         inet_ntop: guard extra work by IF_LINT
43984         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43985         better code generation when not checking for warnings.
43986         Suggested by Paul Eggert and Jim Meyering.
43988         strptime: fix regression on mingw
43989         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43990         Fix regression.  Reported by Bruno Haible.
43992 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43993             Bruno Haible  <bruno@clisp.org>
43995         copy-file: add error-code-returning variant.
43996         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43997         (qcopy_file_preserving): New declaration.
43998         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43999         copy_file_preserving. Change return type to 'int'. Don't emit an error
44000         message here.
44001         (copy_file_preserving): New function.
44002         * tests/test-copy-file.c: Include <stdlib.h>.
44003         (main): Test qcopy_file_preserving if the environment variable
44004         NO_STDERR_OUTPUT is set.
44005         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44006         with NO_STDERR_OUTPUT
44007         * tests/test-copy-file-2.sh: Likewise.
44009 2012-01-10  Bruno Haible  <bruno@clisp.org>
44011         copy-file: Use 'quote' module consistently.
44012         * lib/copy-file.c (copy_file_preserving): Use quote().
44014         copy-file: Refactor.
44015         * lib/copy-file.c: Include quote.h.
44016         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44017         message here.
44018         * modules/copy-file (Depends-on): Add quote.
44020         acl: Export qcopy_acl.
44021         * lib/acl.h (qcopy_acl): New declaration.
44022         * lib/copy-acl.c (qcopy_acl): Make non-static.
44024         acl: Rename a local variable.
44025         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44027         acl: Align return values of copy_acl and qcopy_acl.
44028         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44029         maybe < -1.
44031 2012-01-11  Eric Blake  <eblake@redhat.com>
44033         strptime: silence gcc warnings
44034         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44035         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44036         Reported by Daniel P. Berrange.
44038         inet_ntop: silence gcc warning
44039         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44040         Reported by Daniel P. Berrange.
44042 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44044         getloadavg test: skip the test on GNU/Linux without /proc mounted
44045         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44046         file.  When /proc is not mounted, it always fails with ENOENT.
44047         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44048         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44050 2012-01-10  Bruno Haible  <bruno@clisp.org>
44052         regex: Avoid link error on MSVC 9.
44053         * modules/regex (Depends-on): Add wctype.
44055 2012-01-10  Bruno Haible  <bruno@clisp.org>
44057         doc: Mention --with-tests option.
44058         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44059         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44060         --with-tests.
44061         Reported by Reuben Thomas.
44063 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44065         users.txt: order package names lexicographically.
44066         * users.txt: Order package names lexicographically.
44068 2012-01-10  Jim Meyering  <meyering@redhat.com>
44070         maint.mk: fix description in comment
44071         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44073         ignore-value: remove deprecated ignore_ptr function
44074         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44075         * NEWS: Note this.
44077 2012-01-09  Jim Meyering  <meyering@redhat.com>
44079         test-init.sh: avoid a subshell
44080         * tests/test-init.sh: Remove protective subshell.
44081         Suggested by Bernhard Voelker.  While a subshell is normally
44082         required to protect against older shells (Solaris, FreeBSD) that
44083         warn about a missing program before performing redirection, the
44084         shell-selection tests performed by init.sh probably exclude any
44085         offending shell.
44087 2012-01-08  Bruno Haible  <bruno@clisp.org>
44089         setlocale tests: Avoid test failure on Solaris 11.0.
44090         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44091         variable.
44093 2012-01-08  Bruno Haible  <bruno@clisp.org>
44095         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44096         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44098         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44099         macro.
44100         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44102         * lib/spawn_faction_addopen.c: Add workaround implementation if
44103         HAVE_WORKING_POSIX_SPAWN.
44104         * modules/spawn (Makefile): Substitute
44105         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44106         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44107         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44109         (Depends-on): Update conditions.
44110         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44111         the Solaris 11 bug.
44113 2012-01-08  Bruno Haible  <bruno@clisp.org>
44115         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44116         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44117         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44118         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44119         macro.
44120         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44122         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44123         HAVE_WORKING_POSIX_SPAWN.
44124         * modules/spawn (Makefile): Substitute
44125         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44126         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44127         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44128         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44129         (Depends-on): Update conditions.
44130         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44131         the Solaris 11 bug.
44133 2012-01-08  Bruno Haible  <bruno@clisp.org>
44135         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44136         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44137         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44139         HAVE_WORKING_POSIX_SPAWN.
44140         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44141         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44143         * lib/spawn_faction_addclose.c: Add workaround implementation if
44144         HAVE_WORKING_POSIX_SPAWN.
44145         * modules/spawn (Makefile): Substitute
44146         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44147         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44148         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44149         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44150         (Depends-on): Update conditions.
44151         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44152         the Solaris 11 bug.
44154 2012-01-08  Bruno Haible  <bruno@clisp.org>
44156         doc: Update for Solaris 11.0.
44157         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44158         * m4/printf.m4: Update comments.
44160 2012-01-08  Bruno Haible  <bruno@clisp.org>
44162         mktime: Avoid compilation error on Solaris 11.
44163         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44165 2012-01-08  Bruno Haible  <bruno@clisp.org>
44167         doc: Small fix.
44168         * doc/posix-headers/nl_types.texi: Correct platforms list.
44170 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44172         Add lgpl-3.0 module.
44173         * MODULES.html.sh (Support for building documentation): Add
44174         lgpl-3.0.
44175         * modules/lgpl-3.0: New file.
44177 2012-01-08  Jim Meyering  <meyering@redhat.com>
44179         select.c: indent with spaces, not TABs
44180         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44182 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44184         quotearg: do not use grave accent for left quote
44185         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44186         locale_quoting_style.
44187         (quotearg_buffer_restyled): Fix example.
44188         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44190 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44192         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44193         Most programs do not have translation catalogs for English and much
44194         less separate catalogs for British and American English.  Drop the
44195         suggestion to translators about these two, and provide it
44196         automatically for Unicode locales.  Like most programs, even those
44197         using American English, we use single quotation marks.  This conflicts
44198         with the American typographic convention, but works better when you
44199         cite the entire error message within double quotes.  It also tries not
44200         to clash with established practice and with what non-gnulib programs
44201         will usually do.
44202         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44203         using an UTF-8 or GB-18030 locale.  The list of other locales with
44204         quotes was provided by Bruno Haible.
44205         (quotearg_buffer_restyled): Adjust instructions to translators.
44206         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44207         text, since this would be wrong when using Unicode.
44208         * modules/quotearg: Depend on c-strcaseeq.
44210 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44212         quotearg: fix Wikipedia link
44213         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44215 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44217         Fix for mingw with MSVC9.
44218         * m4/ld-version-script.m4: Check that compiler rejects version
44219         scripts with syntax errors.  Reported by Bruno Haible
44220         <bruno@clisp.org>.
44222 2012-01-06  Bruno Haible  <bruno@clisp.org>
44224         Talk about "native Windows API", not "Woe32".
44225         * lib/accept4.c: Update comments to mention native Windows.
44226         * lib/execute.c: Likewise.
44227         * lib/fatal-signal.c: Likewise.
44228         * lib/localcharset.c: Likewise.
44229         * lib/nanosleep.c: Likewise.
44230         * lib/nl_langinfo.c: Likewise.
44231         * lib/pclose.c: Likewise.
44232         * lib/pipe-filter-gi.c: Likewise.
44233         * lib/pipe-filter-ii.c: Likewise.
44234         * lib/pipe.c: Likewise.
44235         * lib/pipe2.c: Likewise.
44236         * lib/popen.c: Likewise.
44237         * lib/progreloc.c: Likewise.
44238         * lib/relocatable.c: Likewise.
44239         * lib/sigaction.c: Likewise.
44240         * lib/sigprocmask.c: Likewise.
44241         * lib/spawn-pipe.h: Likewise.
44242         * lib/spawn-pipe.c: Likewise.
44243         * lib/spawni.c: Likewise.
44244         * lib/stat-time.h: Likewise.
44245         * lib/w32spawn.h: Likewise.
44246         * tests/test-isatty.c: Likewise.
44247         * lib/config.charset: More comments.
44248         * doc/gnulib-intro.texi: Mention native Windows.
44249         * doc/posix-functions/_Exit_C99.texi: Likewise.
44250         * doc/posix-headers/fcntl.texi: Likewise.
44252 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44254         argp: Avoid crash if translator uses % characters in a translation.
44255         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44256         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44258 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44260         doc: C11 and C++11 are now official
44261         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44262         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44263         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44264         * modules/stdalign:
44265         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44267 2012-01-06  Bruno Haible  <bruno@clisp.org>
44269         uc-is-grapheme-break tests: Tweak.
44270         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44271         message.
44273 2012-01-06  Bruno Haible  <bruno@clisp.org>
44275         test-init.sh: correct the test for diff -u
44276         * tests/test-init.sh: Also redirect stdout to /dev/null.
44278 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44280         Use ', not `, for quoting output.
44281         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44282         (print_changelog_deltas, get_tool_versions, main program):
44283         * build-aux/git-version-gen:
44284         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44285         * build-aux/move-if-change (help):
44286         * build-aux/useless-if-before-free (usage, main program):
44287         * check-module (parse_module_file, usage)
44288         (find_included_lib_files, check_module):
44289         * lib/argmatch.c (main) [TEST]:
44290         * lib/argp-help.c (_help):
44291         * lib/getopt1.c (main) [TEST]:
44292         * lib/git-merge-changelog.c (usage):
44293         * lib/xstrtol-error.c (xstrtol_error):
44294         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44295         * m4/argz.m4 (gl_FUNC_ARGZ):
44296         * m4/bison.m4 (gl_BISON):
44297         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44299         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44300         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44301         * m4/gc-random.m4 (gl_GC_RANDOM):
44302         * m4/intl.m4 (gt_CHECK_DECL):
44303         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44304         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44305         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44307         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44308         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44309         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44310         * tests/test-dirname.c (main):
44311         * tests/test-getpass.c (main):
44312         * tests/test-iconvme.c (main):
44313         * tests/test-parse-datetime.c (LOG):
44314         * tests/test-xstrtoimax.sh:
44315         * tests/test-xstrtol.sh:
44316         * tests/test-xstrtoll.sh:
44317         * tests/test-xstrtoumax.sh:
44318         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44319         * top/GNUmakefile (abort-due-to-no-makefile):
44320         Quote 'like this', not `like this', as per the recent change to
44321         the GNU coding standards.
44323 2012-01-05  Bruno Haible  <bruno@clisp.org>
44325         strtoimax: Don't force a replacement on systems where intmax_t is int.
44326         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44327         'intmax_t' is not larger than 'int'.
44328         Reported by Pádraig Brady <P@draigBrady.com>.
44330 2012-01-05  Bruno Haible  <bruno@clisp.org>
44332         doc: Mention NetBSD bugs.
44333         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44334         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44336 2012-01-05  Bruno Haible  <bruno@clisp.org>
44338         strtoumax tests: Enhance tests.
44339         * tests/test-strtoumax.c (main): Add tests for large values.
44341 2012-01-05  Bruno Haible  <bruno@clisp.org>
44343         strtoimax: Work around AIX 5.1 bug.
44344         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44345         definition.
44346         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44347         Set HAVE_STRTOIMAX.
44348         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44349         REPLACE_STRTOIMAX.
44350         * modules/inttypes-incomplete (Makefile.am): Substitute
44351         REPLACE_STRTOIMAX.
44352         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44353         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44354         (Depends-on): Update conditions.
44355         * tests/test-strtoimax.c (main): Add tests for large values.
44356         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44358 2012-01-05  Bruno Haible  <bruno@clisp.org>
44360         inttypes: Modernize.
44361         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44362         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44363         (Makefile.am): Update inttypes.h rule.
44365 2012-01-05  Jim Meyering  <meyering@redhat.com>
44367         init.sh: don't waste a subshell just to redirect stderr
44368         * tests/init.sh: In testing for diff -u and diff -c, use a
44369         stderr-redirecting exec inside `...` rather than a subshell.
44371         test-init.sh: avoid failure on HP-UX 11.00
44372         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44373         resolves to diff -c or cmp.  Reported by Bruno Haible.
44375 2012-01-05  Bruno Haible  <bruno@clisp.org>
44377         Tests for module 'strtoull'.
44378         * modules/strtoull-tests: New file.
44379         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44381 2012-01-05  Bruno Haible  <bruno@clisp.org>
44383         Tests for module 'strtoll'.
44384         * modules/strtoll-tests: New file.
44385         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44387 2012-01-05  Bruno Haible  <bruno@clisp.org>
44389         Tests for module 'strtoul'.
44390         * modules/strtoul-tests: New file.
44391         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44393 2012-01-05  Bruno Haible  <bruno@clisp.org>
44395         Tests for module 'strtol'.
44396         * modules/strtol-tests: New file.
44397         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44399 2012-01-04  Jim Meyering  <meyering@redhat.com>
44401         test-init.sh: accommodate Solaris 5.10's different diff -u output
44402         * tests/test-init.sh: Also exempt @@ lines from the comparison
44403         of diff output, since Solaris 5.10 and GNU diff formats differ.
44404         Reported by Stefano Lattarini.
44406 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44408         test-posixtm: don't assume signed integer wraparound
44409         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44410         after signed integer overflow.  Inspired by (though it may not
44411         fix) Bruno Haible's bug report in
44412         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44414         Spell out "Windows 9x" and "Windows XP".
44415         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44416         "Windows 9x" and "WinXP" with "Windows XP".
44418 2012-01-04  Jim Meyering  <meyering@redhat.com>
44420         test-vc-list-files-cvs.sh: remove obsolete comment
44421         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44422         double exit.  Now that's all encapsulated via skip_ and Exit.
44424 2012-01-04  Bruno Haible  <bruno@clisp.org>
44426         Talk about "native Windows API", not "Win32".
44427         * lib/classpath.c: Update comments to mention native Windows.
44428         * lib/csharpexec.c: Likewise.
44429         * lib/dup2.c: Likewise.
44430         * lib/error.c: Likewise.
44431         * lib/fcntl.c: Likewise.
44432         * lib/filename.h: Likewise.
44433         * lib/findprog.c: Likewise.
44434         * lib/get-rusage-as.c: Likewise.
44435         * lib/get-rusage-data.c: Likewise.
44436         * lib/getpagesize.c: Likewise.
44437         * lib/javaexec.c: Likewise.
44438         * lib/msvc-inval.c: Likewise.
44439         * lib/msvc-nothrow.c: Likewise.
44440         * lib/nanosleep.c: Likewise.
44441         * lib/nonblocking.c: Likewise.
44442         * lib/printf-parse.c: Likewise.
44443         * lib/setlocale.c: Likewise.
44444         * lib/sigaction.c: Likewise.
44445         * lib/strerror_r.c: Likewise.
44446         * lib/tmpdir.c: Likewise.
44447         * lib/vasnprintf.c: Likewise.
44448         * lib/w32spawn.h: Likewise.
44449         * lib/waitpid.c: Likewise.
44450         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44451         * m4/locale-ar.m4: Likewise.
44452         * m4/locale-fr.m4: Likewise.
44453         * m4/locale-ja.m4: Likewise.
44454         * m4/locale-tr.m4: Likewise.
44455         * m4/locale-zh.m4: Likewise.
44456         * m4/printf.m4: Likewise.
44457         * tests/test-cloexec.c: Likewise.
44458         * tests/test-copy-acl.sh: Likewise.
44459         * tests/test-copy-file.sh: Likewise.
44460         * tests/test-file-has-acl.sh: Likewise.
44461         * tests/test-set-mode-acl.sh: Likewise.
44462         * tests/test-dup-safer.c: Likewise.
44463         * tests/test-dup2.c: Likewise.
44464         * tests/test-dup3.c: Likewise.
44465         * tests/test-fcntl.c: Likewise.
44466         * tests/test-nonblocking-pipe.h: Likewise.
44467         * tests/test-nonblocking-socket.h: Likewise.
44468         * tests/test-pipe.c: Likewise.
44469         * tests/test-pipe2.c: Likewise.
44470         * tests/test-spawn-pipe-child.c: Likewise.
44471         * doc/acl-resources.txt: Likewise.
44472         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44473         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44474         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44475         * lib/localcharset.c: Update comments to mention native Windows.
44476         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44477         * lib/localename.c: Likewise.
44478         * lib/progreloc.c: Likewise.
44479         * lib/relocatable.c: Likewise.
44480         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44481         (windows_compute_revents): Renamed from win32_compute_revents.
44482         (windows_compute_revents_socket): Renamed from
44483         win32_compute_revents_socket.
44484         * lib/select.c: Update comments to mention native Windows.
44485         (windows_poll_handle): Renamed from win32_poll_handle.
44486         * m4/threadlib.m4: Update comments to mention native Windows.
44487         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44488         --enable-threads=windows instead of --enable-threads=win32. Set
44489         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44490         * lib/glthread/lock.h: Update comments to mention native Windows.
44491         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44492         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44493         USE_WIN32_THREADS.
44494         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44495         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44496         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44497         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44498         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44499         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44500         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44501         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44502         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44503         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44504         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44505         * tests/test-tls.c: Likewise.
44506         Rationale:
44507         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44508         on both 32-bit and 64-bit Windows systems.
44509         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44510         line of distinction is between "native Windows" on one side and Unix/
44511         POSIX systems on the other side. More details in
44512         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44513         Suggested by Paul Eggert.
44515 2012-01-03  Bruno Haible  <bruno@clisp.org>
44517         isatty: Support for MSVC 9.
44518         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
44519         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
44520         (_isatty_nothrow): New function.
44521         (isatty): Use it instead of _isatty.
44522         (IsConsoleHandle): Add comment, from Paolo Bonzini.
44523         * lib/poll.c (IsConsoleHandle): Likewise.
44524         * lib/select.c (IsConsoleHandle): Likewise.
44525         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
44526         (gl_PREREQ_ISATTY): New macro.
44527         * modules/isatty (Depends-on): Add msvc-inval.
44528         (configure.ac): Invoke gl_PREREQ_ISATTY.
44530 2012-01-03  Jim Meyering  <meyering@redhat.com>
44532         maint.mk: remove temporary transition aid from over 1.5 years ago
44533         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
44534         purpose was to aid in the transition (avoiding silent malfunction)
44535         from that old name to the new _sc_search_regexp.  This shim was
44536         added by commit 219c504b.
44538         init.sh: do not try to accommodate compare arguments starting with "-"
44539         * tests/init.sh (compare_dev_null_): Do not try to accommodate
44540         compare arguments that start with "-".  Besides, we do not worry
44541         about this when invoking diff or cmp; why start now with sed?
44542         Using "--" to separate options from argument would trigger sed
44543         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
44544         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
44546 2012-01-02  Bruno Haible  <bruno@clisp.org>
44548         Enhance tests for module 'isatty'.
44549         * modules/isatty-tests (Depends-on): Add pipe-posix.
44550         * tests/test-isatty.c: Include <fcntl.h>.
44551         (DEV_NULL): New macro.
44552         (main): Test the resut of isatty() also on regular files, pipes, and
44553         /dev/null.
44555         New module 'isatty'.
44556         * lib/unistd.in.h (isatty): New declaration.
44557         * lib/isatty.c: New file, based on an idea of
44558         Bastien Roucariès <roucaries.bastien@gmail.com>.
44559         * m4/isatty.m4: New file.
44560         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
44561         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
44562         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
44563         REPLACE_ISATTY.
44564         * modules/isatty: New file.
44565         * doc/posix-functions/isatty.texi: Mention the new module.
44566         Suggested by Paolo Bonzini.
44568 2012-01-02  Bruno Haible  <bruno@clisp.org>
44570         canonicalize: Tweak 2011-12-29 commit.
44571         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
44572         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
44574 2012-01-02  Jim Meyering  <meyering@redhat.com>
44576         gitlog-to-changelog: describe input syntax in --help output
44577         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
44579         gitlog-to-changelog: fix typo in --help: show backslash before email @
44580         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
44581         in sources, but not in actual output.
44583 2011-12-30  Jim Meyering  <meyering@redhat.com>
44585         gitlog-to-changelog: don't malfunction when name contains %-directive
44586         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
44587         in a name string cause trouble.  E.g., with a user name of "%s",
44588         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44590 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44592         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44593         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44594         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44595         the "  (tiny change)" notation that is appended to the standard
44596         ChangeLog "date  name  email" header line.
44598 2012-01-01  Jim Meyering  <meyering@redhat.com>
44600         test-framework-sh: init.sh: fix "make dist" failure
44601         When using gnulib-tool's --with-tests option and any module that
44602         depends on test-framework-sh, "make dist" would fail due to the
44603         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44604         in the gltests directory, and not in the gllib/ directory.
44605         One way to work around that is to move the EXTRA_DIST += init.sh
44606         from the primary module to the -tests one:
44607         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44608         * modules/test-framework-sh (Makefile.am): ...not here.
44609         Reported by Tom G. Christensen in
44610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44612         version-etc: update copyright year reported by --version
44613         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44615 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44617         canonicalize: only stat() if required
44618         * lib/canonicalize.c (canonicalize_filename_mode):
44619         Avoid calling l?stat() when both CAN_MISSING,
44620         and CAN_NOLINKS are set, as we neither need
44621         to resolve symlinks or test component existence.
44623 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44625         doc: cover st_ino issues once; add OpenVMS etc.
44626         * doc/posix-functions/stat.texi (stat):
44627         * doc/posix-functions/lstat.texi (lstat):
44628         * doc/posix-functions/fstatat.texi (fstatat):
44629         * doc/posix-functions/fstat.texi (fstat):
44630         Move general 'struct stat' stuff to sys_stat.texi,
44631         leaving behind a pointer.
44632         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44633         Merge duplicate info about 'struct stat' problems into here.
44634         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44635         and suggest partial workarounds.
44637         same-inode: port to OpenVMS
44638         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44639         three st_ino values.
44641 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44643         canonicalize: fix references to stat() and lstat()
44644         * lib/canonicalize.c (canonicalize_filename_mode):
44645         Ensure references always resolve to a replacement
44646         function if required (even via a macro).
44648 2011-12-30  Jim Meyering  <meyering@redhat.com>
44650         gitlog-to-changelog: remove a little duplication
44651         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44652         rather than twice.
44654 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44656         canonicalize: add support for not resolving symlinks
44657         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44658         indicate we don't want to follow symlinks.  Also
44659         provide CAN_MODE_MASK to aid setting these existing
44660         mutually exclusive values.
44661         * lib/canonicalize.c (canonicalize_filename_mode):
44662         Extract the flags from can_mode parameter, which
44663         are currently just used to select between stat()
44664         and lstat().  Also ensure that mutually exclusive
44665         values are flagged immediately as invalid.
44666         * tests/test-canonicalize.c: Verify symlinks are
44667         not followed, and that invalid flag combinations
44668         are diagnosed.
44670 2011-12-25  Jim Meyering  <meyering@redhat.com>
44672         gitlog-to-changelog: do not clump multi-paragraph entries
44673         Identical header lines (date,name,email+coauthors) are suppressed,
44674         thus putting all entries with those same characteristics under
44675         a single header.  However, when a log entry consists of two or
44676         more paragraphs, it may not be clear where it starts and ends.
44677         This change makes it so that such an entry is always separated
44678         from others by a header line, even when that header would
44679         otherwise be suppressed.
44680         * build-aux/gitlog-to-changelog: Implement the above.
44681         Inspired by a related request from Stefano Lattarini in
44682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44684 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44686         announce-gen: fix `cmd' typo in diagnostic
44687         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44688         diagnostic: a missing '$' meant that the command was not output.
44690 2011-12-23  Jim Meyering  <meyering@redhat.com>
44692         test-framework-sh: distribute init.sh
44693         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44694         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44695         fail due to the lack of init.sh.
44697         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44698         * modules/atexit-tests: Rather than listing tests/init.sh,
44699         now that there's a module for it, simply depend on that new module.
44700         * modules/closein-tests: Likewise.
44701         * modules/exclude-tests: Likewise.
44702         * modules/getcwd-tests: Likewise.
44703         * modules/perror-tests: Likewise.
44704         * modules/pread-tests: Likewise.
44705         * modules/pwrite-tests: Likewise.
44706         * modules/vc-list-files-tests: Likewise.
44707         * modules/verify-tests: Likewise.
44708         * modules/xalloc-die-tests: Likewise.
44709         * modules/xstrtoimax-tests: Likewise.
44710         * modules/xstrtol-tests: Likewise.
44711         * modules/xstrtoll-tests: Likewise.
44712         * modules/xstrtoumax-tests: Likewise.
44713         * modules/yesno-tests: Likewise.
44715 2011-12-22  Jim Meyering  <meyering@redhat.com>
44717         test-framework-sh: add minimal tests of init.sh's compare function
44718         * modules/test-framework-sh-tests: New file.
44719         * tests/test-init.sh: New file.
44721         test-framework-sh: new module
44722         * modules/test-framework-sh: New file.
44723         * MODULES.html.sh (Support for maintaining and releasing projects):
44724         List it.
44726         init.sh: do not emit simulated diff output to stderr
44727         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44729 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44731         .gitignore: ignore gnulib.dvi and regex.info
44732         * doc/.gitignore:add gnulib.dvi and regex.info
44734 2011-12-22  Jim Meyering  <meyering@redhat.com>
44736         init.sh: correct previous change
44737         * tests/init.sh (compare): My previous change was wrong.
44738         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44740         init.sh: avoid unwarranted test failure when using "set -e"
44741         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44742         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44743         a use like "compare exp out" would get evoke an unconditional failure.
44745 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44747         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44748         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44749         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44750         autoreconf that did not.
44751         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44752         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44754 2011-12-17  Jim Meyering  <meyering@redhat.com>
44756         bootstrap: remove some now-unneeded code
44757         This script arose back when gnulib-tool was young.
44758         Since then, it has seen improvements that render much of this
44759         script unnecessary.  In particular, it can now make symlinks
44760         to the files it uses.  Also, I no longer see as much value in
44761         marking files as read-only via comments.
44762         If you relied on the symlink-creation feature of the preceding
44763         version of this script, you can get most of that functionality
44764         by adding the --symlink option to the definition of
44765         gnulib_tool_option_extras in your bootstrap.conf file.
44766         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44767         Run autopoint and libtoolize *before* gnulib-tool.
44768         After it, run an abbreviated autoreconf, rather than a loop around
44769         all tools.
44770         (slirp, bt_mark_as_generated): Remove functions.
44772 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44774         ftoastr: fix typo
44775         * lib/ftoastr.h: Fix misspelling in comment.
44777 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44779         * top/README-release: fix punctuation.
44781 2011-12-17  Jim Meyering  <meyering@redhat.com>
44783         bootstrap: correct the recent buildreq change
44784         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44785         had no effect.
44786         * build-aux/bootstrap (buildreq): Bracket each search term with
44787         "*...*", so that the shell "case" statement works as intended.
44788         Add comments.
44790 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44792         build: let bootstrap resort to wget when downloading .po files
44793         * build-aux/bootstrap (download_po_files): Fallback to wget when
44794         downloading the .po files via rsync fails.  This is necessary to
44795         bootstrap from behind a strict firewall.
44797 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44799         stdint: don't assume C++11 when compiling with g++
44800         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44801         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44802         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44803         work also in C++ before C++11, as that improperly inhibits
44804         generating a substitute stdint.h for that case.
44806 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44808         alloca: protect comment from gnulib-tool
44809         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44810         that gnulib-tool doesn't think it's a license, and munge it to
44811         say "GCC version 3".
44813 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44815         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44816         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44817         $(abs_top_builddir) instead of $(top_builddir).
44819 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44821         strftime-tests: also test nanoseconds
44822         * tests/test-strftime.c (T): Add a test of %N.
44824 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44826         inttypes, stdint: add C++11 support
44827         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44828         when including inttypes.h and stdint.h.  Support this change to
44829         the standard.
44830         * doc/posix-headers/inttypes.texi (inttypes.h):
44831         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44832         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44833         Define if not defined already, for the benefit of pre-C++11 hosts.
44834         Define the standard format macros (e.g., PRId8) always.
44835         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44836         Likewise, if __cpluspus.  Define the standard constant and limit
44837         macros (e.g., INT8_C, INT8_MAX) always.
44838         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44839         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44840         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44841         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44842         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44843         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44844         Likewise.
44846 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44848         nonblocking tests: Fix test failure on Linux/PPC.
44849         Suggested by Prerna Saxena in
44850         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44851         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44852         Set to 1100000.
44854 2011-12-12  Jim Meyering  <meyering@redhat.com>
44856         argmatch: don't hard-code `' when listing valid option arguments
44857         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44858         use the quote function to add quotes.  Use fputs rather than
44859         fprintf for the format string with no format directive.
44861 2011-12-07  Eric Blake  <eblake@redhat.com>
44863         bootstrap: detect tools required by gnulib-tool
44864         * build-aux/bootstrap (buildreq): Provide minimum implicit
44865         dependencies.
44866         * DEPENDENCIES: Mention patch as a prereq.
44868 2011-12-04  Bruno Haible  <bruno@clisp.org>
44870         sethostname: Port to Windows platforms.
44871         * lib/sethostname.c: Provide an alternate implementation for Windows
44872         platforms.
44873         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44874         (main): Skip the test if sethostname() fails with EPERM. On Windows
44875         platforms, don't check the result of gethostname().
44877 2011-12-04  Bruno Haible  <bruno@clisp.org>
44878             Jim Meyering  <meyering@redhat.com>
44880         tests: Avoid spurious error message on platforms without mktemp program.
44881         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44883 2011-12-04  Bruno Haible  <bruno@clisp.org>
44885         sethostname: Fix documentation.
44886         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44887         "not fixed" section.
44889 2011-12-03  Bruno Haible  <bruno@clisp.org>
44891         gnulib-tool: Verify that the License field is present and non-empty.
44892         * gnulib-tool (func_get_license_raw): New function, extracted from
44893         func_get_license.
44894         (func_get_license): Use it. Warn if the module is not a test module and
44895         has no license.
44896         Suggested by Jim Meyering.
44898 2011-12-03  Bruno Haible  <bruno@clisp.org>
44900         sethostname tests: Fix link error on mingw.
44901         * tests/test-sethostname1.c: New file, extracted from
44902         tests/test-sethostname.c.
44903         * tests/test-sethostname2.c: New file, extracted from
44904         tests/test-sethostname.c.
44905         * tests/test-sethostname.c: Remove file.
44906         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44907         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44908         (Depends-on): Add gethostname.
44909         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44910         Link the latter with $(GETHOSTNAME_LIB).
44912         sethostname tests: Fix compilation error on mingw.
44913         * tests/test-sethostname.c: Don't include <sys/types.h>.
44914         (geteuid): Use a dummy value without uid_t.
44915         * modules/sethostname-tests (Depends-on): Remove sys_types.
44917         sethostname tests: Avoid a gcc warning.
44918         * tests/test-sethostname.c (main): Remove an unused variable.
44920         Tweak last commit.
44921         * modules/sethostname-tests (Files): Sort by decreasing importance.
44922         (configure.ac): Check for geteuid.
44923         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44924         the test when there's nothing to test. Drop an unnecessary cast.
44925         Improve an error message. Verify that the final sethostname() call
44926         succeeds.
44928 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44930         Add a test suite for the sethostname module.
44931         * modules/sethostname-tests: New file.  A test program
44932         for the sethostname module.
44933         * tests/test-sethostname.c: Likewise.
44935 2011-12-03  Bruno Haible  <bruno@clisp.org>
44937         Tweak last commit.
44938         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
44939         Fix preprocessor directives indentation. Fix typos.
44940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
44941         * modules/unistd (Makefile): Likewise.
44943 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44945         Integrate the sethostname module into unistd.
44946         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44947         into the unistd.h header.
44948         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44949         preprocessor directives.
44950         * modules/unistd: Setup the Makefile substitutions of the
44951         SETHOSTNAME preprocessor directives.
44953 2011-12-03  Bruno Haible  <bruno@clisp.org>
44955         Tweak last commit.
44956         * lib/sethostname.c: Don't include <string.h>.
44957         (sethostname): No need to copy the argument string to the stack. Don't
44958         call clearerr. Preserve errno when fprintf failed.
44959         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44960         Don't invoke AC_REPLACE_FUNCS.
44961         * modules/sethostname (Link): Remove empty section.
44962         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44963         failure problem.
44965 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44967         New module 'sethostname'.
44968         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44969         for systems that lack it.
44970         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44971         sethostname declaration and function.
44972         * modules/sethostname: New file.  Define the sethostname module.
44974 2011-12-03  Bruno Haible  <bruno@clisp.org>
44976         Tweak last commit.
44977         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44979 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44981         Split the HOST_NAME_MAX detection into a separate m4 macro.
44982         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44983         macro so it can be used by the pending sethostname module.
44985 2011-12-03  Bruno Haible  <bruno@clisp.org>
44987         Fix module descriptions syntax.
44988         * modules/argv-iter (License): Fix syntax.
44989         * modules/di-set (License): Likewise.
44990         * modules/ino-map (License): Likewise.
44991         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44993 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44995         stdalign: port to Clang 3.0
44996         Problem reported by Simon Josefsson in
44997         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44998         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44999         which has <stdalign.h> but which does not define alignof.
45000         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45002 2011-12-01  Eric Blake  <eblake@redhat.com>
45004         mktempd: silence dd usage
45005         * build-aux/mktempd (rand_bytes): Silence dd.
45007 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45009         manywarnings: Don't mention gcc version in docstring.
45010         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45011         Jim Meyering <meyering@redhat.com>.
45013 2011-11-30  Jim Meyering  <meyering@redhat.com>
45015         hash: mark a few floating point constants with "f" suffix
45016         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45017         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45018         floating point constants with "f", since they're destined to be
45019         saved/used as "float"s.
45021 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45023         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45024         * tests/test-float.c (test_long_double): Correct and re-enable the
45025         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45027 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45029         Avoid subtracting two pointers that don't point into the same block.
45030         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45031         only pointers into the same memory block are subtracted. We cannot
45032         assume that sizeof (ptrdiff_t) == sizeof (void *).
45034 2011-11-29  Eric Blake  <eblake@redhat.com>
45036         maint.mk: add syntax check for use of compare from init.sh
45037         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45038         moved here from coreutils.
45040         manywarnings: drop -Wunsuffixed-float-constants
45041         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45042         '1.0D', which is the only way to silence this warning for 'double'.
45044 2011-11-29  Jim Meyering  <meyering@redhat.com>
45046         hash: mark compute_bucket_size with the pure attribute
45047         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45049         quotearg, propername: correct pragma guard expression
45050         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45051         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45053 2011-11-28  Jim Meyering  <meyering@redhat.com>
45055         propername: do not mark proper_name with the const attribute
45056         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45057         since it examines data pointed to by its parameter.
45058         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45059         the suggestion from -Wsuggest-attribute=const.
45061         propername: mark one more function as const
45062         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45064 2011-11-27  Jim Meyering  <meyering@redhat.com>
45066         mark functions with const and pure attributes
45068         Mark functions per suggestions from gcc-4.6 when using these options:
45069         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45070         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45071         Follow these guidelines: when possible, apply the attribute to
45072         an extern declaration, not to its definition.  Apply it to the
45073         definition only when the definition is static.
45074         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45075         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45076         * lib/base64.h (isbase64): Likewise.
45077         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45078         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45079         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45080         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45081         (c_tolower, c_toupper): Likewise.
45082         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45083         * lib/chdir-long.c (find_non_slash): Likewise.
45084         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45085         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45086         * lib/file-type.h (file_type): Likewise.
45087         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45088         * lib/filevercmp.c (verrevcmp): Likewise.
45089         * lib/freadahead.h (freadahead): Likewise.
45090         * lib/fts.c (fts_maxarglen): Likewise.
45091         * lib/hash-pjw.h (hash_pjw): Likewise.
45092         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45093         * lib/hash.c (is_prime, next_prime): Likewise.
45094         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45095         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45096         (hash_table_ok, hash_get_first, hash_string): Likewise.
45097         (compute_bucket_size): Likewise.
45098         * lib/i-ring.h (i_ring_empty): Likewise.
45099         * lib/isnan.c (isnanl): Likewise.
45100         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45101         * lib/memcasecmp.h (memcasecmp): Likewise.
45102         * lib/memchr2.h (memchr2): Likewise.
45103         * lib/memcmp2.h (memcmp2): Likewise.
45104         * lib/parse-datetime.y (lookup_zone): Likewise.
45105         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45106         [!WINDOWS_SOCKETS]: Likewise.
45107         * lib/strnlen1.h (strnlen1): Likewise.
45108         * lib/uniwidth.in.h (uc_width): Likewise.
45109         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45110         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45111         (quoting_options_from_style): Add a comment.
45112         * lib/propername.h (proper_name): Add a comment.
45114 2011-11-27  Bruno Haible  <bruno@clisp.org>
45116         Remove unused macros from !_LIBC code in glibc-borrowed files.
45117         * lib/fnmatch.c (STRCOLL): Remove macro.
45118         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45119         * lib/glob.c (__stat, __readdir64): Remove macros.
45120         * lib/tempname.c (__open64, __xstat64): Remove macros.
45121         Suggested by Paul Eggert.
45123 2011-11-27  Bruno Haible  <bruno@clisp.org>
45125         getcwd: Fix link error on MSVC 9.
45126         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45128 2011-11-27  Bruno Haible  <bruno@clisp.org>
45130         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45131         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45132         HAVE_OPENDIR is 0.
45133         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45134         HAVE_CLOSEDIR is 0.
45135         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45136         is 0.
45137         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45139 2011-11-27  Bruno Haible  <bruno@clisp.org>
45141         getcwd: Fix bug from 2011-08-17.
45142         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45143         platforms that need it.
45144         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45145         code of 4 to be a failure, not a success. This ensures that
45146         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45148 2011-11-27  Bruno Haible  <bruno@clisp.org>
45150         binary-io tests: Avoid test failure on mingw when libtool is used.
45151         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45152         Don't verify the size of t-bin-out1.tmp here.
45153         * tests/test-binary-io.sh: Verify it here.
45154         Reported by Simon Josefsson.
45156 2011-11-26  Bruno Haible  <bruno@clisp.org>
45158         Fix conflict between two instantiations of module 'unistd'.
45159         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45160         ${include_guard_prefix} also in the autoconf snippet.
45161         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45163         GNULIB_UNISTD_H_GETOPT.
45164         * modules/getopt-posix (configure.ac): Set the
45165         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45166         * modules/getopt-gnu (configure.ac): Likewise.
45167         * modules/unistd (Makefile.am): Change the substitution value of
45168         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45169         Reported by Simon Josefsson.
45171 2011-11-25  Bruno Haible  <bruno@clisp.org>
45173         pagealign_alloc: Doc and comments.
45174         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45175         module.
45176         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45178 2011-11-25  Jim Meyering  <meyering@redhat.com>
45180         test-update-copyright.sh: avoid false-positive failure
45181         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45182         around false positive failure on Cygwin/Windows.  The latter was
45183         matching erroneously-created files with names like
45184         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45186 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45188         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45189         * m4/valgrind-tests.m4: Check that the parameters that will be
45190         used works, not just a subset of them.  Reported by Bruno Haible
45191         <bruno@clisp.org>.
45193 2011-11-24  Jim Meyering  <meyering@redhat.com>
45195         test-stdalign.c: comment out long double tests
45196         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45197         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45198         error: '_Alignas' specifiers cannot reduce alignment of \
45199         'static_longdouble_alignas'.
45201 2011-11-22  Jim Meyering  <meyering@redhat.com>
45203         init.sh: make "compare /dev/null FILE" output more readable
45204         * tests/init.sh (compare_): Document the preferred order of arguments.
45205         (emit_diff_u_header_): New function.
45206         (compare_dev_null_): Emit a simulated diff, rather than just the
45207         contents of the unexpected file.  Suggestion from Bruno Haible.
45209 2011-11-21  Jim Meyering  <meyering@redhat.com>
45210             Eric Blake  <eblake@redhat.com>
45212         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45213         * tests/init.sh: Make our compare function slightly more portable.
45214         Reported by Bruno Haible in
45215         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45217 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45219         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45220         before using it, in code that ends up in config.h.
45222 2011-11-20  Bruno Haible  <bruno@clisp.org>
45224         getcwd: Work around getcwd bug on AIX 5..7.
45225         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45226         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45227         Use a different value for gl_cv_func_getcwd_path_max. Move the
45228         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45229         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45230         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45231         Define HAVE_MINIMALLY_WORKING_GETCWD.
45232         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45233         where it is not even minimally working, that is, on AIX.
45234         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45235         m4/getcwd-path-max.m4.
45236         (main): Update exit code computation.
45237         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45238         getcwd does not handle long file names.
45240 2011-11-20  Bruno Haible  <bruno@clisp.org>
45242         getcwd: Fix bug from 2009-09-10.
45243         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45244         like "no".
45246 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45248         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45250 2011-11-20  Bruno Haible  <bruno@clisp.org>
45252         fma tests: Avoid shadowing local variables.
45253         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45254         expected.
45256 2011-11-20  Bruno Haible  <bruno@clisp.org>
45258         copysignf tests: Fix.
45259         * tests/test-copysignf.c: Fix signature check.
45261 2011-11-20  Bruno Haible  <bruno@clisp.org>
45263         fma: Remove unused code.
45264         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45265         unused macros.
45267 2011-11-20  Bruno Haible  <bruno@clisp.org>
45269         sethostname: Fix doc about AIX.
45270         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45271         sethostname; it has it.
45273         sethostname: Mention more portability problems.
45274         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45275         problem.
45276         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45278 2011-11-19  Bruno Haible  <bruno@clisp.org>
45280         Depend on module fcntl-h when AT_FDCWD is used.
45281         * modules/utimens (Depends-on): Add fcntl-h.
45282         * modules/areadlinkat (Depends-on): Likewise.
45283         * modules/areadlinkat-with-size (Depends-on): Likewise.
45284         * modules/faccessat (Depends-on): Likewise.
45285         * modules/fchmodat (Depends-on): Likewise.
45286         * modules/fchownat (Depends-on): Likewise.
45287         * modules/getcwd (Depends-on): Likewise.
45288         * modules/mkdirat (Depends-on): Likewise.
45289         * modules/mkfifoat (Depends-on): Likewise.
45290         * modules/readlinkat (Depends-on): Likewise.
45291         * modules/symlinkat (Depends-on): Likewise.
45292         * modules/dup2-tests (Depends-on): Likewise.
45293         * modules/fdutimensat-tests (Depends-on): Likewise.
45294         * modules/futimens-tests (Depends-on): Likewise.
45296 2011-11-19  Bruno Haible  <bruno@clisp.org>
45298         euidaccess: Update a comment.
45299         * lib/euidaccess.c: Update comment about platforms with faccessat.
45301 2011-11-19  Bruno Haible  <bruno@clisp.org>
45303         openat: Fix file list.
45304         * modules/openat (Files): Remove lib/at-func.c.
45306 2011-11-19  Bruno Haible  <bruno@clisp.org>
45308         fstatat: Simplify.
45309         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45310         gnulib should define rpl_fstatat, there is a
45311         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45313 2011-11-19  Bruno Haible  <bruno@clisp.org>
45315         Ensure 'inline' can be used in tests/test-utimens-common.h.
45316         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45317         * modules/futimens-tests (configure.ac): Likewise.
45318         * modules/utimens-tests (configure.ac): Likewise.
45319         * modules/utimensat-tests (configure.ac): Likewise.
45321 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45323         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45324         not hash_insert0.
45325         (hash_insert_if_absent): Doc fix.
45327 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45329         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45331 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45333         test-getcwd: disambiguate exit status
45334         * tests/test-getcwd.c (test_long_name): Return 0..7.
45335         (main): Exit with an unambiguous exit status.  The old
45336         code yielded a mysterious mixture of two failure codes.
45338         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45339         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45340         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45341         rpl_fstatat or fstatat.  This should fix the other problem
45342         reported by Kai Habel in
45343         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45344         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45345         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45346         and I reproduced it on a Solaris 8 host we still have in production.
45348 2011-11-18  Jim Meyering  <meyering@redhat.com>
45350         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45351         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45352         Add a sentence to the comment.
45353         (hash_insert0): New function that simply calls hash_insert_if_absent.
45354         * lib/hash.h (hash_insert_if_absent): Declare it.
45355         (hash_insert0): Add deprecation attribute.
45356         (_GL_ATTRIBUTE_DEPRECATED): Define.
45357         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45358         not hash_insert0.
45359         * NEWS: Mention it, even though it's not really an incompatible change.
45361 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45363         openat: avoid compilation failure due to lack of <errno.h> inclusion
45364         * lib/openat.c: Include <errno.h>.
45366 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45368         * modules/getcwd (Depends-on): Add fdopendir.
45369         This fixes one of the two problems reported by Kai Habel in
45370         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45372         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45373         stdalign problem reported by Ian Beckwith in
45374         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45375         * modules/crypto/gc-arcfour (Depends-on):
45376         Depend conditionally on crypto/arcfour.
45377         * modules/crypto/gc-arctwo (Depends-on):
45378         Depend conditionally on crypto/arctwo.
45379         * modules/crypto/gc-des (Depends-on):
45380         Depend conditionally on crypto/des.
45381         * modules/crypto/gc-hmac-md5 (Depends-on):
45382         Depend conditionally on crypto/hmac-md5.
45383         * modules/crypto/gc-hmac-sha1 (Depends-on):
45384         Depend conditionally on crypto/hmac-sha1.
45385         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45386         * modules/crypto/gc-md4 (Depends-on):
45387         Depend conditionally on crypto/md4.
45388         * modules/crypto/gc-md5 (Depends-on):
45389         Depend conditionally on crypto/md5.
45390         * modules/crypto/gc-rijndael (Depends-on):
45391         Depend conditionally on crypto/rijndael.
45392         * modules/crypto/gc-sha1 (Depends-on):
45393         Depend conditionally on crypto/sha1.
45394         * modules/crypto/gc-arcfour:
45395         * modules/crypto/gc-arctwo:
45396         * modules/crypto/gc-des:
45397         * modules/crypto/gc-hmac-md5:
45398         * modules/crypto/gc-hmac-sha1:
45399         * modules/crypto/gc-md2:
45400         * modules/crypto/gc-md4:
45401         * modules/crypto/gc-md5:
45402         * modules/crypto/gc-rijndael:
45403         * modules/crypto/gc-sha1:
45404         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45405         now that the conditional dependencies do the work for us.
45407 2011-11-17  Jim Meyering  <meyering@redhat.com>
45409         tests: factor st_ctime-comparison out of two headers
45410         * tests/test-utimens-common.h (ctime_compare): Define.
45411         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45412         * tests/test-lutimens.h (test_lutimens): Likewise.
45413         * tests/test-utimens.h (test_utimens): Likewise.
45415         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45416         Invoke the test program via an init.sh-using wrapper.
45417         * tests/test-getcwd.sh: New file.
45418         * modules/getcwd-tests (Files): Add it.
45419         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45421 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45423         gitlog-to-changelog: support multi-author commits.
45424         The FSF cares about keeping track of all authors of patches to its
45425         projects, but Git doesn't provide obvious support for multi-author
45426         changesets. Consensus seems to be forming around the use of extra
45427         Signed-off-by inspired lines in the log message formatted as
45428         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45429         multi-author commits between version control systems.
45430         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45431         log message and output in standard ChangeLog multi-author format.
45432         Reported by Peter Rosin <peda@lysator.liu.se>
45434 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45435             Bruno Haible  <bruno@clisp.org>
45437         Fix some modules' file list.
45438         * modules/fstatat (Files): Add m4/lstat.m4.
45439         * modules/openat (Files): Likewise.
45440         * modules/unlinkat (Files): Likewise.
45442 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45444         maint.mk: fix tight-scope.mk generation in VPATH builds.
45445         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45446         reference with $(srcdir) so that the file is found correctly even
45447         when running `make syntax-check' in a VPATH build.
45449 2011-11-13  Bruno Haible  <bruno@clisp.org>
45450             Jim Meyering  <meyering@redhat.com>
45452         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45453         * tests/init.sh (compare): Remove "No differences encountered" or
45454         synonymous output from the 'diff' program.
45456 2011-11-13  Bruno Haible  <bruno@clisp.org>
45458         Makefile: Tweak indentation.
45459         * Makefile: Use tab as first character in every line that contains rule
45460         commands.
45462 2011-11-13  Bruno Haible  <bruno@clisp.org>
45464         Syntax check for copyright statements.
45465         * check-copyright: New file.
45466         * Makefile (sc_check_copyright): New rule.
45468 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45470         * build-aux/git-version-gen: Add --prefix to configure the tag
45471         match string.
45473 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45475         * build-aux/git-version-gen: Add --help and --version.
45477 2011-11-12  Jim Meyering  <meyering@redhat.com>
45479         revamp the other test-exclude?.sh scripts to use init.sh, too
45480         * tests/test-exclude1.sh: Use init.sh.
45481         * tests/test-exclude2.sh: Likewise.
45482         * tests/test-exclude3.sh: Likewise.
45483         * tests/test-exclude4.sh: Likewise.
45484         * tests/test-exclude5.sh: Likewise.
45485         * tests/test-exclude6.sh: Likewise.
45486         * tests/test-exclude7.sh: Likewise.
45487         * tests/test-exclude8.sh: Likewise.
45488         * modules/exclude-tests (Files): List init.sh.
45490         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45491         These shell scripts ignored failure of the binary test-exclude,
45492         so making the latter return 77 didn't cause them to be skipped.
45493         * tests/test-exclude5.sh: Exit with test-exclude's error status
45494         when that program fails.  Revamp to use init.sh.
45495         * tests/test-exclude2.sh: Likewise.
45497         test-exclude: fix a typo
45498         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45500 2011-11-11  Bruno Haible  <bruno@clisp.org>
45502         obstack: Fix compilation error on MSVC 9.
45503         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45505 2011-11-11  Jim Meyering  <meyering@redhat.com>
45507         test-exclude: skip tests rather than failing on deficient systems
45508         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45509         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45510         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45511         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45513 2011-11-10  Bruno Haible  <bruno@clisp.org>
45515         ptsname_r test: Avoid gcc warning on glibc systems.
45516         * tests/test-ptsname_r.c (null_ptr): New function.
45517         (test_errors): Use it.
45519 2011-11-10  Bruno Haible  <bruno@clisp.org>
45521         ptsname_r: Avoid compilation error on OSF/1 5.1.
45522         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
45523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
45524         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
45525         function is not declared or incompatibly declared.
45526         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
45527         * modules/ptsname_r (Depends-on, configure.ac): Update.
45528         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
45530 2011-11-10  Bruno Haible  <bruno@clisp.org>
45532         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
45533         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
45534         When cross-compiling, guess yes on all platforms except AIX.
45535         Reported by Ludovic Courtès <ludo@gnu.org>.
45537 2011-11-09  Bruno Haible  <bruno@clisp.org>
45539         ptsname_r tests: Fix bugs.
45540         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
45541         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
45543 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45545         fstatat: work with cross-compilation
45546         Problem reported by Ludovic Courtès in
45547         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
45548         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45549         "cross-compiling" and assume the bug is present.  Replace
45550         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
45551         an inverted sense, to be more conservative about our assumptions.
45552         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
45554 2011-11-09  Bruno Haible  <bruno@clisp.org>
45556         Improve MODULES.html output.
45557         * modules/mkfifoat (Description): Use the word "function".
45558         * modules/readlinkat (Description): Likewise.
45559         * modules/symlinkat (Description): Likewise.
45561 2011-11-09  Eric Blake  <eblake@redhat.com>
45563         ptsname_r-tests: new test module
45564         * modules/ptsname_r-tests: New module.
45565         * tests/test-ptsname_r.c: New file.
45567         ptsname_r: new module
45568         * modules/ptsname_r: New module.
45569         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
45570         * lib/ptsname.c (__ptsname_r): Split...
45571         * lib/ptsname_r.c: ...into new file.
45572         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45573         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
45574         * modules/stdlib (Makefile.am): Substitute witnesses.
45575         * lib/stdlib.in.h (ptsname_r): Declare it.
45576         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
45577         * MODULES.html.sh (Misc): Likewise.
45578         * modules/ptsname (Depends-on): Alter dependency.
45579         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
45581 2011-11-09  Jim Meyering  <meyering@redhat.com>
45583         announce-gen: be more concise when there's only one URL+tarball
45584         * build-aux/announce-gen (get_tool_versions): When you distribute
45585         only one type of tarball, combine the first two "Here are..."
45586         sections and make the key-checking grammar independent of
45587         how many tarballs there are.
45589 2011-11-09  Eric Blake  <eblake@redhat.com>
45591         openpty: provide a stub on mingw
45592         * lib/pty.in.h (includes): Provide forward declarations.
45593         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45595         raise: fix mingw handling of SIGPIPE
45596         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45598 2011-11-08  Bruno Haible  <bruno@clisp.org>
45600         More conditional dependencies.
45601         * modules/faccessat (Depends-on): Add conditions.
45602         * modules/fchmodat (Depends-on): Likewise.
45603         * modules/fchownat (Depends-on): Likewise.
45604         * modules/fstatat (Depends-on): Likewise.
45605         * modules/mkfifoat (Depends-on): Likewise.
45606         * modules/readlinkat (Depends-on): Likewise.
45607         * modules/symlinkat (Depends-on): Likewise.
45608         * modules/unlinkat (Depends-on): Likewise.
45609         * modules/utimensat (Depends-on): Likewise.
45610         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
45611         * modules/linkat (Depends-on): Refine the conditions.
45612         * modules/renameat (Depends-on): Likewise.
45614 2011-11-08  Bruno Haible  <bruno@clisp.org>
45616         faccessat: Move AC_LIBOBJ invocation to module description.
45617         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45618         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45619         invocation from here...
45620         * modules/faccessat (configure.ac): ... to here. Invoke
45621         gl_PREREQ_FACCESSAT.
45623 2011-11-08  Bruno Haible  <bruno@clisp.org>
45625         faccessat: Simplify autoconf macro.
45626         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45627         gl_FUNC_EUIDACCESS.
45629 2011-11-08  Bruno Haible  <bruno@clisp.org>
45631         renameat: Fix dependencies.
45632         * modules/renameat (Depends-on): Add stdbool.
45634 2011-11-08  Bruno Haible  <bruno@clisp.org>
45636         mkfifoat: Fix module description.
45637         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45638         not gl_UNISTD_MODULE_INDICATOR.
45640 2011-11-08  Bruno Haible  <bruno@clisp.org>
45642         fstatat: Remove unused dependency.
45643         * modules/fstatat (Depends-on): Remove fstat.
45645 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45647         GNUmakefile: behave when Makefile is missing.
45648         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45650 2011-11-08  Bruno Haible  <bruno@clisp.org>
45652         openat: Conditionalize dependencies.
45653         * lib/openat.c: Reduce the scope of some #includes.
45654         * modules/openat (Depends-on): Add conditions.
45656 2011-11-07  Jim Meyering  <meyering@redhat.com>
45658         maint.mk: extract GPG key ID without using a temporary file
45659         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45660         without using a temporary file.  Based on a suggestion from Werner Koch
45661         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45663 2011-11-07  Eric Blake  <eblake@redhat.com>
45665         grantpt: fix typo
45666         * lib/stdlib.in.h (grantpt): Check correct function.
45668         maint.mk: silence new syntax check
45669         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45671 2011-11-06  Bruno Haible  <bruno@clisp.org>
45673         Doc about floating-point and math API.
45674         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45675         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45677 2011-11-06  Bruno Haible  <bruno@clisp.org>
45679         stdalign tests: Skip the test when compiled by Sun C.
45680         * tests/test-stdalign.c (main): Skip the test on Sun C.
45682 2011-11-06  Bruno Haible  <bruno@clisp.org>
45684         ansi-c++-opt: Complete the 2011-06-05 change.
45685         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45686         does not support namespaces, set the variable to "no", not to ":".
45688 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45690         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45692 2011-11-06  Bruno Haible  <bruno@clisp.org>
45694         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45695         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45696         (minus_zerol) [HP-UX]: New macro.
45697         (unary_minus) [HP-UX]: New function.
45698         (copysignl) [HP-UX]: Use unary_minus function.
45700 2011-11-06  Bruno Haible  <bruno@clisp.org>
45702         ldexp, ldexpf, ldexpl: Enhance tests.
45703         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45704         and tests/test-ldexpl.c.
45705         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45706         LDEXP, MIN_EXP, MAX_EXP): New macros.
45707         Include test-ldexp.h.
45708         (main): Just call test_function.
45709         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45710         infinity.h, nan.h.
45711         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45712         MAX_EXP): New macros.
45713         Include test-ldexp.h.
45714         (x, y): Remove variables.
45715         (main): Just call test_function.
45716         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45717         infinity.h, nan.h.
45718         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45719         MAX_EXP): New macros.
45720         Include test-ldexp.h.
45721         (x, y): Remove variables.
45722         (main): Just call test_function.
45723         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45724         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45725         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45726         (Depends-on): Add isnand-nolibm, signbit, float.
45727         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45728         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45729         (Depends-on): Add isnanf-nolibm, signbit, float.
45731 2011-11-06  Bruno Haible  <bruno@clisp.org>
45733         math tests: Cosmetics.
45734         * tests/test-math-c++.cc: Reorder declarations.
45736 2011-11-05  Bruno Haible  <bruno@clisp.org>
45738         fma*: Simplify test.
45739         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45740         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45742         Tests for module 'fmal'.
45743         * modules/fmal-tests: New file.
45744         * tests/test-fmal1.c: New file.
45745         * tests/test-fmal2.c: New file.
45747         New module 'fmal'.
45748         * lib/math.in.h (fmal): New declaration.
45749         * lib/fmal.c: New file.
45750         * m4/fmal.m4: New file.
45751         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45753         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45754         REPLACE_FMAL.
45755         * modules/fmal: New file.
45756         * doc/posix-functions/fmal.texi: Mention the new module and the various
45757         bugs.
45759         Tests for module 'fmaf'.
45760         * modules/fmaf-tests: New file.
45761         * tests/test-fmaf1.c: New file.
45762         * tests/test-fmaf2.c: New file.
45764         New module 'fmaf'.
45765         * lib/math.in.h (fmaf): New declaration.
45766         * lib/fmaf.c: New file.
45767         * m4/fmaf.m4: New file.
45768         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45770         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45771         REPLACE_FMAF.
45772         * modules/fmaf: New file.
45773         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45774         bugs.
45776         Tests for module 'fma'.
45777         * modules/fma-tests: New file.
45778         * tests/test-fma1.c: New file.
45779         * tests/test-fma1.h: New file.
45780         * tests/test-fma2.c: New file.
45781         * tests/test-fma2.h: New file.
45783         New module 'fma'.
45784         * lib/math.in.h (fma): New declaration.
45785         * lib/fma.c: New file.
45786         * m4/fma.m4: New file.
45787         * m4/fegetround.m4: New file.
45788         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45790         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45791         REPLACE_FMA.
45792         * modules/fma: New file.
45793         * doc/posix-functions/fma.texi: Mention the new module and the various
45794         bugs.
45796         Extend gl_MATHFUNC.
45797         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45798         Support 'void' as argument type.
45799         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45801 2011-11-05  Jim Meyering  <meyering@redhat.com>
45803         maint.mk: also prohibit inclusion of dirent.h without use
45804         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45806 2011-11-05  Bruno Haible  <bruno@clisp.org>
45808         ldexpl tests: Avoid test failure on MSVC 9.
45809         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45810         value. Needed in order to enforce the conversion from a value greater
45811         than LDBL_MAX to Infinity.
45813 2011-11-05  Bruno Haible  <bruno@clisp.org>
45815         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45816         * modules/at-internal: New file, extracted from modules/openat.
45817         * modules/openat-h: New file.
45818         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45819         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45820         * modules/openat (Description): Add reference to POSIX function.
45821         (Files): Remove lib/openat.h, lib/openat-proc.c.
45822         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45823         intprops, unistd.
45824         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45825         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45826         gl_FCNTL_MODULE_INDICATOR.
45827         (Include): Remove unistd.h, openat.h.
45828         * modules/areadlinkat (Files): Add lib/at-func.c.
45829         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45830         openat-die, openat-h, save-cwd.
45831         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45832         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45833         openat-die, openat-h, save-cwd, unistd.
45834         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45835         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45836         openat-h, save-cwd. Remove fcntl-h, openat.
45837         * modules/fchmodat (Files): Remove lib/openat.h.
45838         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45839         openat, stdbool, unistd.
45840         * modules/fchownat (Files): Remove lib/openat.h.
45841         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45842         openat, stdbool, sys_stat.
45843         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45844         lib/openat-proc.c.
45845         (Depends-on): Add at-internal.
45846         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45847         * modules/fstatat (Files): Remove lib/openat.h.
45848         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45849         stdbool, unistd.
45850         * modules/fts (Depends-on): Add openat-h.
45851         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45852         openat.
45853         * modules/mkdirat (Files): Remove lib/openat.h.
45854         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45855         openat, stdbool, sys_stat.
45856         * modules/mkfifoat (Files): Add lib/at-func.c.
45857         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45858         openat-h, save-cwd. Remove fcntl-h, openat.
45859         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45860         * modules/readlinkat (Files): Add lib/at-func.c.
45861         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45862         openat-h, save-cwd. Remove fcntl-h, openat.
45863         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45864         openat.
45865         * modules/selinux-at (Files): Add lib/at-func.c.
45866         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45867         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45868         * modules/symlinkat (Files): Add lib/at-func.c.
45869         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45870         openat-h, save-cwd. Remove fcntl-h, openat.
45871         * modules/unlinkat (Files): Remove lib/openat.h.
45872         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45873         stdbool.
45874         * modules/utimensat (Files): Add lib/at-func.c.
45875         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45876         openat-die, openat-h, save-cwd.
45877         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45878         * modules/fdutimensat-tests (Depends-on): Add openat.
45879         * modules/fstatat-tests (Depends-on): Add openat-h.
45880         * modules/readlinkat-tests (Depends-on): Add openat.
45881         * modules/symlinkat-tests (Depends-on): Add openat.
45883 2011-11-05  Bruno Haible  <bruno@clisp.org>
45885         openat: Include <stdbool.h>.
45886         * lib/openat.c: Include <stdbool.h>.
45888 2011-11-04  Bruno Haible  <bruno@clisp.org>
45890         fchownat, renameat, unlinkat: Fix dependencies.
45891         * modules/fchownat (Depends-on): Add fstatat.
45892         * modules/renameat (Depends-on): Likewise.
45893         * modules/unlinkat (Depends-on): Likewise.
45895 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45897         openat: remove direct dependency on dirent
45898         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45899         and hasn't been needed ever since fdopendir was split into its own
45900         module on 2009-08-31.
45901         * modules/openat (Depends-on): Remove dirent.
45903 2011-11-04  Bruno Haible  <bruno@clisp.org>
45905         renameat: Optimize code size.
45906         * modules/renameat (configure.ac): Don't compile at-func2.c if
45907         REPLACE_RENAMEAT is 1.
45909 2011-11-04  Bruno Haible  <bruno@clisp.org>
45911         openat tests: Fix file list.
45912         * modules/openat-tests (Files): Add tests/test-open.h.
45914 2011-11-04  Bruno Haible  <bruno@clisp.org>
45916         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45917         * modules/fchmodat (Depends-on): Add openat-die.
45918         * modules/fchownat (Depends-on): Likewise.
45919         * modules/linkat (Depends-on): Likewise.
45920         * modules/renameat (Depends-on): Likewise.
45921         * modules/openat (Depends-on): Add dirent.
45923 2011-11-04  Jim Meyering  <meyering@redhat.com>
45925         at-func*.c: fix comments
45926         * lib/at-func2.c: Correct/improve first-line comment.
45927         * lib/at-func.c: Correct grammar in first-line comment.
45929 2011-11-04  Bruno Haible  <bruno@clisp.org>
45931         New module 'mkdirat', split off from module 'openat'.
45932         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45933         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45934         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45935         * modules/mkdirat: New file, extracted from modules/openat.
45936         * modules/openat (Files): Remove lib/mkdirat.c.
45937         (Depends-on): Remove mkdir.
45938         (configure.ac): Remove AC_LIBOBJ of mkdirat.
45939         (Include): Remove <sys/stat.h>.
45940         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
45941         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
45942         tests/test-mkdir.h.
45943         (Depends-on): Remove ignore-value.
45944         (Makefile.am): Remove rules for test-mkdirat.
45945         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
45946         of module 'openat'.
45947         * NEWS: Mention the change.
45949 2011-11-04  Bruno Haible  <bruno@clisp.org>
45951         closedir: Avoid warning on mingw.
45952         * lib/closedir.c: Include <unistd.h>.
45954 2011-11-04  Bruno Haible  <bruno@clisp.org>
45956         New module 'fstatat', split off from module 'openat'.
45957         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45958         defined.
45959         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45960         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45961         gl_FUNC_FSTATAT.
45962         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45963         * modules/fstatat: New file, extracted from modules/openat.
45964         * modules/openat (Files): Remove lib/fstatat.c.
45965         (Depends-on): Remove lstat.
45966         (configure.ac): Remove AC_LIBOBJ of fstatat.
45967         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45968         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45969         tests/test-lstat.h, tests/test-stat.h.
45970         (Depends-on): Remove getcwd-lgpl.
45971         (Makefile.am): Remove rules for test-fstatat.
45972         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45973         of module 'openat'.
45974         * NEWS: Mention the change.
45975         * modules/getcwd (Depends-on): Add fstatat.
45976         * modules/linkat (Depends-on): Likewise.
45977         * modules/mkfifoat-tests (Depends-on): Likewise.
45978         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45980 2011-11-03  Bruno Haible  <bruno@clisp.org>
45982         New module 'unlinkat', split off from module 'openat'.
45983         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45984         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45985         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45986         * modules/unlinkat: New file, extracted from modules/openat. Correct
45987         the dependency conditions.
45988         * modules/openat (Files): Remove lib/unlinkat.c.
45989         (Depends-on): Remove rmdir, unlink.
45990         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45991         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45992         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45993         tests/test-rmdir.h, tests/test-unlink.h.
45994         (Depends-on): Remove unlinkdir.
45995         (Makefile.am): Remove rules for test-unlinkat.
45996         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45997         of module 'openat'.
45998         * NEWS: Mention the change.
45999         * modules/linkat-tests (Depends-on): Add unlinkat.
46000         * modules/mkfifoat-tests (Depends-on): Likewise.
46001         * modules/readlinkat-tests (Depends-on): Likewise.
46003 2011-11-02  Bruno Haible  <bruno@clisp.org>
46005         New module 'fchmodat', split off from module 'openat'.
46006         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46007         defined.
46008         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46009         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46010         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46011         * modules/fchmodat: New file, extracted from modules/openat.
46012         * modules/openat (Files): Remove lib/fchmodat.c.
46013         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46014         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46015         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46016         (Makefile.am): Remove rules for test-fchmodat.
46017         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46018         of module 'openat'.
46019         * NEWS: Mention the change.
46021 2011-11-02  Jim Meyering  <meyering@redhat.com>
46023         putenv: indent #definition of "environ" to placate cppi
46024         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46026         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46027         Git logs are often treated as immutable, because editing them
46028         changes the SHA1 checksums of all descendants.  Thus, errors in
46029         git logs tend to stay there forever.  However, when we generate
46030         a ChangeLog file -- typically for distribution -- from that git log,
46031         we can actually make corrections in the generated file.  The key
46032         lies in recording in machine-readable/applicable form the desired
46033         corrections.  See --help for description and an example.
46034         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46035         (usage): Describe it; alphabetize option descriptions.
46036         (main): Honor the new option, carefully.
46038 2011-11-01  Jim Meyering  <meyering@redhat.com>
46040         gitlog-to-changelog: avoid an infloop
46041         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46042         that ends up being empty.
46044 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46046         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46047         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46048         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46049         contains (possibly-quoted) backslashes.  This should avoid
46050         all-too-common shell bugs if COMPLICATED contains backslashes in
46051         the "wrong" places.  Reported by David Evans in
46052         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46053         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46054         because we want ASCII ranges.  Is there some reason we don't use
46055         the C locale everywhere in this script?
46056         (func_module, top level): Avoid unwanted pathname expansion when
46057         $repo_url_prefix or $repo_url_suffix_repl contain shell
46058         metacharacters like '?' and '*'.
46060 2011-11-01  Bruno Haible  <bruno@clisp.org>
46062         fchownat: Improve description.
46063         * modules/fchownat (Description): Add link to function.
46065 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46067         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46068         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46069         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46070         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46072 2011-11-01  Bruno Haible  <bruno@clisp.org>
46074         alignof: Avoid collision with stdalign module.
46075         * lib/alignof.h (alignof): Remove macro.
46076         * NEWS: Mention the change.
46077         Reported by Paul Eggert.
46079 2011-11-01  Bruno Haible  <bruno@clisp.org>
46081         New module 'fchownat', split off from module 'openat'.
46082         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46083         defined.
46084         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46085         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46086         invoke gl_FUNC_FCHOWNAT.
46087         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46088         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46089         * modules/fchownat: New file, extracted from modules/openat.
46090         * modules/openat (Files): Remove lib/fchownat.c.
46091         (Depends-on): Remove lchown.
46092         (configure.ac): Remove AC_LIBOBJ of fchownat.
46093         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46094         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46095         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46096         (Depends-on): Remove mgetgroups, usleep, stat-time.
46097         (configure.ac): Remove test for getegid.
46098         (Makefile.am): Remove rules for test-fchownat.
46099         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46100         of module 'openat'.
46101         * NEWS: Mention the change.
46103 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46105         stdalign: port better to MSVC and to Sun C 5.11
46106         This fixes some of the problems reported by Bruno Haible in
46107         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46108         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46109         shortcomings of MSVC and of Sun C 5.11.
46110         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46111         around __declspec arg.
46112         * modules/stdalign-tests (Files): Add tests/macros.h.
46113         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46114         Include macros.h, for ASSERT.
46115         (DECLARE_ALIGNED): Remove.
46116         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46117         to catch bug), and to 1 if not (simplifies the rest of the code).
46118         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46119         (CHECK_AUTO): Remove.
46120         (CHECK_ALIGNED): Check only the alignment of the static vars,
46121         since auto var alignment isn't supported by Sun C 5.11.
46122         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46123         ASSERT failures are easier to diagnose.
46125 2011-10-31  Bruno Haible  <bruno@clisp.org>
46127         doc about some IRIX 5.3 problems.
46128         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46129         on IRIX 5.3.
46130         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46131         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46132         5.3.
46133         * doc/posix-functions/grantpt.texi: Likewise.
46134         * doc/posix-functions/unlockpt.texi: Likewise.
46135         * doc/posix-functions/lgamma.texi: Likewise.
46136         * doc/posix-functions/nextafter.texi: Likewise.
46137         * doc/posix-functions/remainder.texi: Likewise.
46138         * doc/posix-functions/select.texi: Mention misplaced declaration on
46139         IRIX 5.3.
46140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46142 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46144         gitlog-to-changelog: fix git-log invocation.
46145         git-log mishandles date strings before 1970-01-01 UTC, and there is
46146         no use to specify --since=1970-01-01 by default anyway.
46147         * build-aux/gitlog-to-changelog: By default, when no --since option
46148         was given, do not specify explicit --since option to git-log.
46150 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46152         gitlog-to-changelog: new option --append-dot.
46153         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46154         first non-blank line of each commit message terminated with a dot.
46156 2011-10-30  Bruno Haible  <bruno@clisp.org>
46158         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46159         * lib/ffsl.h: Include <config.h>.
46160         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46162 2011-10-30  Jim Meyering  <meyering@redhat.com>
46164         GNUmakefile: reenable "make syntax-check" for most projects
46165         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46166         build-aux variable", "syntax-check" would do nothing but succeed with
46167         the "No version control files detected..." diagnostic (unless you
46168         happened to override _build-aux via cfg.mk).
46169         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46170         to precede inclusion of maint.mk.  Otherwise, these variables would
46171         be used undefined in any project that does not override the default.
46173 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46175         gitlog-to-changelog: treat a message with only blank lines as empty.
46176         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46177         trailing blank lines before the code that issues a warning about an
46178         empty commit message.
46180 2011-10-30  Jim Meyering  <meyering@redhat.com>
46182         test-parse-datetime.c: avoid new DST-related false positive test failure
46183         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46184         based on the time/date we'll convert, not the current time.
46185         Otherwise, the moment we cross a DST boundary like today's in
46186         Europe, (CEST to CET), that offset ends up being one hour off.
46188 2011-10-27  Bruno Haible  <bruno@clisp.org>
46190         fstat: Tweak documentation.
46191         * modules/fstat (Description): More precise description.
46193 2011-10-27  Bruno Haible  <bruno@clisp.org>
46195         Update documentation regarding 'largefile' module.
46196         * doc/posix-functions/fstat.texi: Tweak wording.
46197         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46198         problems with huge directories and/or small ino_t types.
46199         * doc/posix-functions/readdir.texi: Likewise.
46200         * doc/posix-functions/rewinddir.texi: Likewise.
46202 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46204         maint.mk: don't maintain a second build-aux variable.
46205         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46206         depends on GNUmakefile, which already maintains a cfg.mk
46207         overridable $(_build-aux) for projects with a non-standard
46208         build-aux directory location, although without the $(srcdir)
46209         prefix.  Use that variable consistently instead of introducing a
46210         second one.  Adjust all call sites.
46212 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46214         Add stdalign module and use it in other modules.
46215         This is based on a previous proposal by Bruno Haible
46216         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46218         stdalign: new module
46219         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46220         * modules/stdalign: New files.
46221         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46222         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46224         stdalign-tests: new module
46225         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46227         argp: use stdalign
46228         * lib/argp-parse.c: Include <stdalign.h>.
46229         (alignof): Remove.
46230         * modules/argp (Depends-on): Add stdalign.
46232         crypto libraries: use stdalign
46233         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46234         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46235         Do not include <stdlib.h> twice, in md4.c.
46236         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46237         because we are accessing a pointer's bit-pattern, not a size.
46238         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46239         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46240         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46241         * modules/crypto/sha512: Likewise.
46243         sys_socket: use stdalign, not alignof
46244         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46245         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46247 2011-10-27  Bruno Haible  <bruno@clisp.org>
46249         raise test: Avoid a test failure on Linux/MIPS.
46250         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46251         because 99 is a valid signal on Linux/MIPS.
46253 2011-10-27  Bruno Haible  <bruno@clisp.org>
46255         nonblocking tests: Fix test failure on Linux/MIPS.
46256         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46257         Set to 270000.
46259 2011-10-27  Bruno Haible  <bruno@clisp.org>
46261         utimensat: Work around problem on Linux/hppa.
46262         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46263         values.
46264         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46266 2011-10-25  Jim Meyering  <meyering@redhat.com>
46268         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46269         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46270         after symbols like NULL, size_t, etc.
46271         Reported by Alfred M. Szmidt.
46273         maint.mk: exempt ENODATA from a syntax-check rule
46274         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46275         from the sc_prohibit_always-defined_macros syntax-check rule.
46276         Add a comment.  See this for more details:
46277         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46279 2011-10-23  Jim Meyering  <meyering@redhat.com>
46281         fts: close parent dir FD before returning from post-traversal fts_read
46282         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46283         unlink A, even though an FD open on A remained.  This is suboptimal
46284         (holding a file descriptor open longer than needed), but otherwise not
46285         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46286         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46287         that represents a real problem: it causes the removal of A to fail
46288         with e.g., "rm: cannot remove `A': Device or resource busy"
46290         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46291         directory file descriptors.  After completing the final, FTS_DP,
46292         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46293         cache, but then proceeded to add a new FD to it via the subsequent
46294         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46295         final file descriptor would be closed only via fts_close's call to
46296         fd_ring_clear.  Now, it is usually closed earlier, via the final
46297         FTS_DP-returning fts_read call.
46298         * lib/fts.c (restore_initial_cwd): New function, converted from
46299         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46300         Update callers.
46301         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46302         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46304 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46305             Bruno Haible  <bruno@clisp.org>
46306             Jim Meyering  <jim@meyering.net>
46308         readme-release: improve safety of release prep instructions.
46309         * README-release: Don't git pull all branches when only master
46310         is needed for the release process.
46311         Run make maintainer-clean before changing trees and merging.
46312         Don't try to run ./configure right after git pull in case files
46313         that influence the bootstrap process have changed, move the
46314         ./configure step to after running ./bootstrap.
46315         Don't bootstrap "one last time"... it's the first time!
46317 2011-10-22  Bruno Haible  <bruno@clisp.org>
46319         errno, strerror-override: Support for MSVC 10.
46320         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46321         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46322         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46323         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46324         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46325         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46326         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46327         Assign values compatible with MSVC 10.
46328         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46329         New macros.
46330         (GNULIB_defined_EWINSOCK): New macro.
46331         * lib/strerror-override.c (strerror_override): Update accordingly.
46332         * lib/strerror-override.h: Likewise.
46333         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46334         longer equal to the corresponding errno value.
46335         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46337 2011-10-22  Bruno Haible  <bruno@clisp.org>
46339         perror: Recognize when test program crashes.
46340         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46341         strerror, set gl_cv_func_perror_works to no.
46342         Reported by Daniel Richard G. <skunk@iskunk.org>.
46344         perror: Fix indentation.
46345         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46347 2011-10-22  Bruno Haible  <bruno@clisp.org>
46349         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46350         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46351         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46352         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46353         functions, not as a macro.
46354         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46355         macros.
46356         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46357         absence of macro.
46358         Suggested by Eric Blake.
46359         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46361 2011-10-21  Bruno Haible  <bruno@clisp.org>
46363         relocatable-prog-wrapper: Don't leave object files behind.
46364         * build-aux/install-reloc: Re-synchronize list of .o files to be
46365         removed with list of compilation units.
46367 2011-10-20  Bruno Haible  <bruno@clisp.org>
46369         openpty, posix_openpt: Remove code duplication.
46370         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46371         * lib/openpty.c: Include <stdlib.h>.
46372         (openpty): Use posix_openpt on all platforms except IRIX.
46373         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46375 2011-10-20  Bruno Haible  <bruno@clisp.org>
46377         unlockpt: Detect invalid argument.
46378         * lib/unlockpt.c: Include <fcntl.h>.
46379         (unlockpt): Check whether fd is valid, using fcntl().
46380         * modules/unlockpt (Depends-on): Add fcntl-h.
46382 2011-10-20  Bruno Haible  <bruno@clisp.org>
46384         openpty: Avoid compilation error on AIX 6.1.
46385         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46387 2011-10-20  Bruno Haible  <bruno@clisp.org>
46389         posix_openpt: Support for OpenBSD.
46390         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46391         (posix_openpt) [OpenBSD]: New code.
46392         * lib/grantpt.c: Include <fcntl.h>.
46393         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46394         * modules/grantpt (Depends-on): Add fcntl-h.
46396 2011-10-20  Bruno Haible  <bruno@clisp.org>
46398         posix_openpt test: Coding style.
46399         * tests/test-posix_openpt.c: Use GNU coding style.
46401 2011-10-20  Bruno Haible  <bruno@clisp.org>
46403         grantpt: Support --avoid=pt_chown.
46404         * modules/grantpt (Files): Add lib/pty-private.h.
46406 2011-10-20  Bruno Haible  <bruno@clisp.org>
46408         posix_openpt: Fix autoconf macro.
46409         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46410         unneeded check for _getpty.
46412 2011-10-20  Bruno Haible  <bruno@clisp.org>
46414         openpty: Update comments.
46415         * lib/openpty.c: Add comments about Minix.
46417 2011-10-19  Eric Blake  <eblake@redhat.com>
46419         openpty: relax license
46420         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46422         pt_chown: use configmake to simplify build
46423         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46425         ptsname and others: relax license
46426         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46427         * modules/unlockpt (License): Likewise.
46428         * modules/pt_chown (License): Likewise.
46429         * modules/ptsname (License): Likewise.
46430         * modules/ttyname_r (License): Likewise.
46432 2011-10-19  Jim Meyering  <meyering@redhat.com>
46434         posix_openpt: remove spurious #endif
46435         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46437 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46439         maint.mk: Respect $(build_aux) in web-manual rule.
46440         * top/maint.mk (web-manual): Find gen-announce script in user's
46441         $(build_aux) directory instead of hard-coding 'build-aux'.
46443 2011-10-19  Bruno Haible  <bruno@clisp.org>
46445         posix_openpt: Fix compilation error.
46446         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46447         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46448         Mention the openpty module as an alternative.
46450 2011-10-19  Bruno Haible  <bruno@clisp.org>
46452         Support for old NeXTstep 3.3 frexp().
46453         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46454         execution time of the test to 5 seconds.
46455         Reported by Daniel Richard G. <skunk@iskunk.org>.
46457 2011-10-19  Bruno Haible  <bruno@clisp.org>
46459         Support for old NeXTstep 3.3 sed.
46460         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46461         part, use /.../, not \|...|. Escape periods in the header file name.
46462         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46463         Reported by Daniel Richard G. <skunk@iskunk.org>.
46465 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46467         Support for old NeXTstep 3.3 gcc.
46468         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46469         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46470         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46471         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46472         * lib/regex.h (_Restrict_arr_): Likewise.
46473         * lib/regex_internal.h (re_token_t): Likewise.
46474         * lib/regexec.c (check_node_accept_bytes): Likewise.
46475         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46477 2011-10-18  Eric Blake  <eblake@redhat.com>
46479         posix_openpt: new module
46480         * modules/posix_openpt: New module.
46481         * m4/posix_openpt.m4: New file.
46482         * lib/posix_openpt.c: Likewise.
46483         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46484         (gl_STDLIB_H_DEFAULTS): Set defaults.
46485         * modules/stdlib (Makefile.am): Substitute macros.
46486         * lib/stdlib.in.h (posix_openpt): Declare.
46487         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46488         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46489         * modules/posix_openpt-tests: New test module.
46490         * tests/test-posix_openpt.c: New test.
46492 2011-10-15  Bruno Haible  <bruno@clisp.org>
46494         xstrtoll: Fix compilation failure.
46495         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46496         from lib/strtol.c.
46497         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46498         some platforms.
46499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46501 2011-10-15  Bruno Haible  <bruno@clisp.org>
46503         vasnprintf: Optimize bit search operation.
46504         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46506         gl_DOUBLE_EXPONENT_LOCATION.
46507         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46508         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46509         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46510         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46511         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46512         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46513         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46514         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46515         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
46517 2011-10-15  Bruno Haible  <bruno@clisp.org>
46519         vasnprintf: Fix comments.
46520         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
46522 2011-10-14  Bruno Haible  <bruno@clisp.org>
46524         Tests for module 'integer_length_ll'.
46525         * modules/integer_length_ll-tests: New file.
46526         * tests/test-integer_length_ll.c: New file.
46528         New module 'integer_length_ll'.
46529         * lib/integer_length_ll.c: New file.
46530         * modules/integer_length_ll: New file.
46532 2011-10-14  Bruno Haible  <bruno@clisp.org>
46534         Tests for module 'integer_length_l'.
46535         * modules/integer_length_l-tests: New file.
46536         * tests/test-integer_length_l.c: New file.
46538         New module 'integer_length_l'.
46539         * lib/integer_length_l.c: New file.
46540         * modules/integer_length_l: New file.
46542 2011-10-14  Bruno Haible  <bruno@clisp.org>
46544         Tests for module 'integer_length'.
46545         * modules/integer_length-tests: New file.
46546         * tests/test-integer_length.c: New file.
46548         New module 'integer_length'.
46549         * lib/integer_length.h: New file.
46550         * lib/integer_length.c: New file.
46551         * modules/integer_length: New file.
46553 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46555         popen: Fix dependency conditions.
46556         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
46558 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46560         perror: Fix autoconf test.
46561         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
46562         <stdlib.h> and <string.h>.
46564 2011-10-14  Bruno Haible  <bruno@clisp.org>
46566         ffsl: Optimize on 64-bit platforms.
46567         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
46568         unrolling.
46570 2011-10-13  Bruno Haible  <bruno@clisp.org>
46572         ffsl: Optimize on 32-bit platforms.
46573         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
46574         use ffs() without a loop.
46576         ffsl, ffsll: Optimize for GCC.
46577         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
46578         * lib/ffsl.c (GCC_BUILTIN): New macro.
46579         * lib/ffsll.c (GCC_BUILTIN): Likewise.
46581 2011-10-13  Bruno Haible  <bruno@clisp.org>
46583         ffs, bcopy, memset: Support symbol renaming via config.h.
46584         * lib/ffs.c: Include <config.h>.
46585         * lib/bcopy.c: Likewise.
46586         * lib/memset.c: Likewise.
46588 2011-10-10  Bruno Haible  <bruno@clisp.org>
46590         atanl: Simplify for platforms where 'long double' == 'double'.
46591         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46592         alternative implementation.
46593         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46594         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46595         * modules/atanl (Depends-on): Add atan. Update conditions.
46597 2011-10-10  Bruno Haible  <bruno@clisp.org>
46599         acosl: Simplify for platforms where 'long double' == 'double'.
46600         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46601         alternative implementation.
46602         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46603         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46604         * modules/acosl (Depends-on): Add acos. Update conditions.
46606 2011-10-10  Bruno Haible  <bruno@clisp.org>
46608         asinl: Simplify for platforms where 'long double' == 'double'.
46609         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46610         alternative implementation.
46611         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46612         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46613         * modules/asinl (Depends-on): Add asin. Update conditions.
46615 2011-10-10  Bruno Haible  <bruno@clisp.org>
46617         tanl: Simplify for platforms where 'long double' == 'double'.
46618         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46619         implementation.
46620         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46621         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46622         * modules/tanl (Depends-on): Add tan. Update conditions.
46623         (configure.ac): Don't compile trigl.c if
46624         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46626 2011-10-10  Bruno Haible  <bruno@clisp.org>
46628         cosl: Simplify for platforms where 'long double' == 'double'.
46629         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46630         implementation.
46631         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46632         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46633         * modules/cosl (Depends-on): Add cos. Update conditions.
46634         (configure.ac): Don't compile sincosl.c and trigl.c if
46635         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46637 2011-10-10  Bruno Haible  <bruno@clisp.org>
46639         sinl: Simplify for platforms where 'long double' == 'double'.
46640         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46641         implementation.
46642         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46643         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46644         * modules/sinl (Depends-on): Add sin. Update conditions.
46645         (configure.ac): Don't compile sincosl.c and trigl.c if
46646         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46648 2011-10-10  Bruno Haible  <bruno@clisp.org>
46650         logl: Simplify for platforms where 'long double' == 'double'.
46651         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46652         implementation.
46653         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46654         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46655         * modules/logl (Depends-on): Add log. Update conditions.
46657 2011-10-10  Bruno Haible  <bruno@clisp.org>
46659         expl: Simplify for platforms where 'long double' == 'double'.
46660         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46661         implementation.
46662         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46663         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46664         * modules/expl (Depends-on): Add exp. Update conditions.
46666 2011-10-10  Bruno Haible  <bruno@clisp.org>
46668         sqrtl: Simplify for platforms where 'long double' == 'double'.
46669         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46670         alternative implementation.
46671         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46672         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46673         * modules/sqrtl (Depends-on): Update conditions.
46675 2011-10-10  Bruno Haible  <bruno@clisp.org>
46677         ldexpl: Simplify for platforms where 'long double' == 'double'.
46678         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46679         alternative implementation.
46680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46681         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46682         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46684 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46686         ffsll: set correct witness
46687         * modules/ffsll (configure.ac): Fix typo.
46689 2011-10-10  Bruno Haible  <bruno@clisp.org>
46691         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46692         * lib/printf-frexpl.c: Include <config.h>.
46693         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46694         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46695         second time.
46696         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46697         gl_LONG_DOUBLE_VS_DOUBLE.
46698         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46699         conditions.
46701 2011-10-10  Bruno Haible  <bruno@clisp.org>
46703         frexpl: Simplify for platforms where 'long double' == 'double'.
46704         * lib/frexpl.c: Include <config.h>.
46705         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46706         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46707         time.
46708         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46709         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46710         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46711         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46712         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46713         conditions.
46715 2011-10-10  Jim Meyering  <meyering@redhat.com>
46717         test-renameat: don't leave behind a temporary file
46718         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46719           ERROR: files left in build directory after distclean:
46720           ./gltests/test-renameat.too
46721           make[1]: *** [distcleancheck] Error 1
46722         Reported by Tom G. Christensen.
46724 2011-10-09  Bruno Haible  <bruno@clisp.org>
46726         rint: Determine RINT_LIBM correctly on AIX 7.
46727         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46728         directly, not only through a function pointer. Also accept an optional
46729         4th argument with extra code.
46730         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46731         rintf() call by gcc when optimizing.
46733         mathfunc.m4: Refactor.
46734         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46735         m4 variable.
46737 2011-10-09  Bruno Haible  <bruno@clisp.org>
46739         rintl: Simplify for platforms where 'long double' == 'double'.
46740         * lib/rintl.c: Include <config.h>.
46741         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46742         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46743         time.
46744         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46745         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46746         * modules/rintl (Depends-on): Add rint. Update conditions.
46748 2011-10-09  Bruno Haible  <bruno@clisp.org>
46750         roundl: Simplify for platforms where 'long double' == 'double'.
46751         * lib/roundl.c: Include <config.h>.
46752         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46753         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46754         time.
46755         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46756         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46757         * modules/roundl (Depends-on): Add round. Update conditions.
46759 2011-10-09  Bruno Haible  <bruno@clisp.org>
46761         truncl: Simplify for platforms where 'long double' == 'double'.
46762         * lib/truncl.c: Include <config.h>.
46763         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46764         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46765         time.
46766         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46767         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46768         * modules/truncl (Depends-on): Add trunc. Update conditions.
46770 2011-10-09  Bruno Haible  <bruno@clisp.org>
46772         ceill: Simplify for platforms where 'long double' == 'double'.
46773         * lib/ceill.c: Include <config.h>.
46774         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46775         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46776         time.
46777         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46778         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46779         * modules/ceill (Depends-on): Add ceil. Update conditions.
46781 2011-10-09  Bruno Haible  <bruno@clisp.org>
46783         floorl: Simplify for platforms where 'long double' == 'double'.
46784         * lib/floorl.c: Include <config.h>.
46785         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46786         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46787         time.
46788         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46789         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46790         * modules/floorl (Depends-on): Add floor. Update conditions.
46792 2011-10-09  Bruno Haible  <bruno@clisp.org>
46794         rint: Fix ordering constraints.
46795         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46796         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46797         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46799 2011-10-09  Bruno Haible  <bruno@clisp.org>
46801         copysignl: Simplify for platforms where 'long double' == 'double'.
46802         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46803         alternative.
46804         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46805         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46806         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46808 2011-10-09  Bruno Haible  <bruno@clisp.org>
46810         Tests for module 'rintl'.
46811         * modules/rintl-tests: New file.
46812         * tests/test-rintl.c: New file.
46814         New module 'rintl'.
46815         * lib/math.in.h (rintl): New declaration.
46816         * lib/rintl.c: New file.
46817         * m4/rintl.m4: New file.
46818         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46820         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46821         * modules/rintl: New file.
46822         * tests/test-math-c++.cc: Check the declaration of rintl.
46823         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46824         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46825         * doc/posix-functions/rintl.texi: Mention the new module.
46827 2011-10-09  Bruno Haible  <bruno@clisp.org>
46829         Tests for module 'rintf'.
46830         * modules/rintf-tests: New file.
46831         * tests/test-rintf.c: New file.
46833         New module 'rintf'.
46834         * lib/math.in.h (rintf): New declaration.
46835         * lib/rintf.c: New file.
46836         * m4/rintf.m4: New file.
46837         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46839         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46840         * modules/rintf: New file.
46841         * tests/test-math-c++.cc: Check the declaration of rintf.
46842         * doc/posix-functions/rintf.texi: Mention the new module.
46844 2011-10-09  Bruno Haible  <bruno@clisp.org>
46846         rint: Support for MSVC.
46847         * lib/math.in.h (rint): New declaration.
46848         * lib/rint.c: New file.
46849         * m4/rint.m4: New file.
46850         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46852         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46853         * modules/rint (Description): Fix.
46854         (Files): Add lib/rint.c, m4/rint.m4.
46855         (Depends-on): Add math.
46856         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46857         gl_MATH_MODULE_INDICATOR.
46858         * tests/test-math-c++.cc: Check the declaration of rint.
46859         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46860         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46861         * doc/posix-functions/rint.texi: Mention the replacement provided by
46862         the module.
46864         rint tests: More tests.
46865         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46866         minus-zero.h, infinity.h, nan.h.
46867         (main): Skip the test if the current rounding mode is not standard. Add
46868         tests for negative numbers, minus zero, infinity, NaN.
46869         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46870         tests/nan.h.
46871         (Depends-on): Add isnand-nolibm.
46873 2011-10-09  Bruno Haible  <bruno@clisp.org>
46875         Tests for module 'copysignl'.
46876         * modules/copysignl-tests: New file.
46877         * tests/test-copysignl.c: New file.
46879         New module 'copysignl'.
46880         * lib/math.in.h (copysignl): New declaration.
46881         * lib/copysignl.c: New file.
46882         * m4/copysignl.m4: New file.
46883         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46885         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46886         HAVE_COPYSIGNL.
46887         * modules/copysignl: New file.
46888         * tests/test-math-c++.cc: Check the declaration of copysignl.
46889         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46890         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46891         * doc/posix-functions/copysignl.texi: Mention the new module.
46893 2011-10-09  Bruno Haible  <bruno@clisp.org>
46895         Tests for module 'copysignf'.
46896         * modules/copysignf-tests: New file.
46897         * tests/test-copysignf.c: New file.
46899         New module 'copysignf'.
46900         * lib/math.in.h (copysignf): New declaration.
46901         * lib/copysignf.c: New file.
46902         * m4/copysignf.m4: New file.
46903         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46905         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46906         HAVE_COPYSIGNF.
46907         * modules/copysignf: New file.
46908         * tests/test-math-c++.cc: Check the declaration of copysignf.
46909         * doc/posix-functions/copysignf.texi: Mention the new module.
46911 2011-10-09  Bruno Haible  <bruno@clisp.org>
46913         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46914         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46915         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46916         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46917         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46918         gl_SIGNAL_H_DEFAULTS.
46920 2011-10-09  Bruno Haible  <bruno@clisp.org>
46922         poll: Make macro safer.
46923         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46924         ac_cv_header_poll_h is not set.
46926 2011-10-09  Bruno Haible  <bruno@clisp.org>
46928         copysign: Provide replacement.
46929         * lib/math.in.h (copysign): New declaration.
46930         * lib/copysign.c: New file.
46931         * m4/copysign.m4: New file.
46932         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46934         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46935         HAVE_COPYSIGN.
46936         * modules/copysign (Description): Clarify.
46937         (Files): Add lib/copysign.c, m4/copysign.m4.
46938         (Depends-on): Add math, signbit.
46939         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
46940         gl_MATH_MODULE_INDICATOR.
46941         * tests/test-math-c++.cc: Check the declaration of copysign.
46942         * doc/posix-functions/copysign.texi: Mention the effects of the module
46943         on Minix and MSVC.
46945 2011-10-09  Bruno Haible  <bruno@clisp.org>
46947         isinf: Ensure macro on AIX 5.1.
46948         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46949         macro.
46950         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46952 2011-10-09  Bruno Haible  <bruno@clisp.org>
46954         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46955         * modules/snprintf-posix-tests (configure.ac): Require
46956         gl_LONG_DOUBLE_VS_DOUBLE.
46957         * modules/sprintf-posix-tests (configure.ac): Likewise.
46958         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46959         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46960         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46961         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46962         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46963         tests on platforms where 'long double' is the same as 'double'.
46964         * tests/test-sprintf-posix.h (test_function): Likewise.
46965         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46966         * tests/test-vasprintf-posix.c (test_function): Likewise.
46968         *printf: Fix for platforms where 'long double' == 'double'.
46969         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46970         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46971         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46972         * modules/fprintf-posix (Files): Likewise.
46973         * modules/obstack-printf-posix (Files): Likewise.
46974         * modules/snprintf-posix (Files): Likewise.
46975         * modules/sprintf-posix (Files): Likewise.
46976         * modules/vasnprintf (Files): Likewise.
46977         * modules/vasnprintf-posix (Files): Likewise.
46978         * modules/vasprintf-posix (Files): Likewise.
46979         * modules/vdprintf-posix (Files): Likewise.
46980         * modules/vfprintf-posix (Files): Likewise.
46981         * modules/vsnprintf-posix (Files): Likewise.
46982         * modules/vsprintf-posix (Files): Likewise.
46983         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46984         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46985         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46986         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46987         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46988         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46989         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46991         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46992         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46993         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46994         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46995         'long double'.
46996         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46998         isinf: Fix for platforms where 'long double' == 'double'.
46999         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47000         Don't blindly assume 80-bit 'long double'.
47002         isfinite: Fix for platforms where 'long double' == 'double'.
47003         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47004         Don't blindly assume 80-bit 'long double'.
47006         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47007         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47008         * modules/isfinite-tests (configure.ac): Require
47009         gl_LONG_DOUBLE_VS_DOUBLE.
47010         * modules/isinf-tests (configure.ac): Likewise.
47011         * modules/isnan-tests (configure.ac): Likewise.
47012         * modules/isnanl-tests (configure.ac): Likewise.
47013         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47014         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47015         tests on platforms where 'long double' is the same as 'double'.
47016         * tests/test-isinf.c (test_isinfl): Likewise.
47017         * tests/test-isnan.c (test_long_double): Likewise.
47018         * tests/test-isnanl.h (main): Likewise.
47020 2011-10-08  Bruno Haible  <bruno@clisp.org>
47022         Tests for module 'tanhf'.
47023         * modules/tanhf-tests: New file.
47024         * tests/test-tanhf.c: New file.
47026         New module 'tanhf'.
47027         * lib/math.in.h (tanhf): New declaration.
47028         * lib/tanhf.c: New file.
47029         * m4/tanhf.m4: New file.
47030         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47032         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47033         * modules/tanhf: New file.
47034         * tests/test-math-c++.cc: Check the declaration of tanhf.
47035         * doc/posix-functions/tanhf.texi: Mention the new module.
47037         tanh: Use a .m4 file.
47038         * m4/tanh.m4: New file.
47039         * modules/tanh (Files): Add it.
47040         (configure.ac): Just invoke gl_FUNC_TANH.
47042 2011-10-08  Bruno Haible  <bruno@clisp.org>
47044         Tests for module 'coshf'.
47045         * modules/coshf-tests: New file.
47046         * tests/test-coshf.c: New file.
47048         New module 'coshf'.
47049         * lib/math.in.h (coshf): New declaration.
47050         * lib/coshf.c: New file.
47051         * m4/coshf.m4: New file.
47052         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47054         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47055         * modules/coshf: New file.
47056         * tests/test-math-c++.cc: Check the declaration of coshf.
47057         * doc/posix-functions/coshf.texi: Mention the new module.
47059         cosh: Use a .m4 file.
47060         * m4/cosh.m4: New file.
47061         * modules/cosh (Files): Add it.
47062         (configure.ac): Just invoke gl_FUNC_COSH.
47064 2011-10-08  Bruno Haible  <bruno@clisp.org>
47066         Tests for module 'sinhf'.
47067         * modules/sinhf-tests: New file.
47068         * tests/test-sinhf.c: New file.
47070         New module 'sinhf'.
47071         * lib/math.in.h (sinhf): New declaration.
47072         * lib/sinhf.c: New file.
47073         * m4/sinhf.m4: New file.
47074         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47076         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47077         * modules/sinhf: New file.
47078         * tests/test-math-c++.cc: Check the declaration of sinhf.
47079         * doc/posix-functions/sinhf.texi: Mention the new module.
47081         sinh: Use a .m4 file.
47082         * m4/sinh.m4: New file.
47083         * modules/sinh (Files): Add it.
47084         (configure.ac): Just invoke gl_FUNC_SINH.
47086 2011-10-08  Bruno Haible  <bruno@clisp.org>
47088         Tests for module 'atan2f'.
47089         * modules/atan2f-tests: New file.
47090         * tests/test-atan2f.c: New file.
47092         New module 'atan2f'.
47093         * lib/math.in.h (atan2f): New declaration.
47094         * lib/atan2f.c: New file.
47095         * m4/atan2f.m4: New file.
47096         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47098         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47099         * modules/atan2f: New file.
47100         * tests/test-math-c++.cc: Check the declaration of atan2f.
47101         * doc/posix-functions/atan2f.texi: Mention the new module.
47103         atan2: Use a .m4 file.
47104         * m4/atan2.m4: New file.
47105         * modules/atan2 (Files): Add it.
47106         (configure.ac): Just invoke gl_FUNC_ATAN2.
47108 2011-10-08  Bruno Haible  <bruno@clisp.org>
47110         Tests for module 'atanf'.
47111         * modules/atanf-tests: New file.
47112         * tests/test-atanf.c: New file.
47114         New module 'atanf'.
47115         * lib/math.in.h (atanf): New declaration.
47116         * lib/atanf.c: New file.
47117         * m4/atanf.m4: New file.
47118         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47120         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47121         * modules/atanf: New file.
47122         * tests/test-math-c++.cc: Check the declaration of atanf.
47123         * doc/posix-functions/atanf.texi: Mention the new module.
47125         atan: Use a .m4 file.
47126         * m4/atan.m4: New file.
47127         * modules/atan (Files): Add it.
47128         (configure.ac): Just invoke gl_FUNC_ATAN.
47130 2011-10-08  Bruno Haible  <bruno@clisp.org>
47132         Tests for module 'acosf'.
47133         * modules/acosf-tests: New file.
47134         * tests/test-acosf.c: New file.
47136         New module 'acosf'.
47137         * lib/math.in.h (acosf): New declaration.
47138         * lib/acosf.c: New file.
47139         * m4/acosf.m4: New file.
47140         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47142         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47143         * modules/acosf: New file.
47144         * tests/test-math-c++.cc: Check the declaration of acosf.
47145         * doc/posix-functions/acosf.texi: Mention the new module.
47147         acos: Use a .m4 file.
47148         * m4/acos.m4: New file.
47149         * modules/acos (Files): Add it.
47150         (configure.ac): Just invoke gl_FUNC_ACOS.
47152 2011-10-08  Bruno Haible  <bruno@clisp.org>
47154         Tests for module 'asinf'.
47155         * modules/asinf-tests: New file.
47156         * tests/test-asinf.c: New file.
47158         New module 'asinf'.
47159         * lib/math.in.h (asinf): New declaration.
47160         * lib/asinf.c: New file.
47161         * m4/asinf.m4: New file.
47162         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47164         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47165         * modules/asinf: New file.
47166         * tests/test-math-c++.cc: Check the declaration of asinf.
47167         * doc/posix-functions/asinf.texi: Mention the new module.
47169         asin: Use a .m4 file.
47170         * m4/asin.m4: New file.
47171         * modules/asin (Files): Add it.
47172         (configure.ac): Just invoke gl_FUNC_ASIN.
47174 2011-10-08  Bruno Haible  <bruno@clisp.org>
47176         Tests for module 'tanf'.
47177         * modules/tanf-tests: New file.
47178         * tests/test-tanf.c: New file.
47180         New module 'tanf'.
47181         * lib/math.in.h (tanf): New declaration.
47182         * lib/tanf.c: New file.
47183         * m4/tanf.m4: New file.
47184         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47186         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47187         * modules/tanf: New file.
47188         * tests/test-math-c++.cc: Check the declaration of tanf.
47189         * doc/posix-functions/tanf.texi: Mention the new module.
47191         tan: Use a .m4 file.
47192         * m4/tan.m4: New file.
47193         * modules/tan (Files): Add it.
47194         (configure.ac): Just invoke gl_FUNC_TAN.
47196 2011-10-08  Bruno Haible  <bruno@clisp.org>
47198         Tests for module 'cosf'.
47199         * modules/cosf-tests: New file.
47200         * tests/test-cosf.c: New file.
47202         New module 'cosf'.
47203         * lib/math.in.h (cosf): New declaration.
47204         * lib/cosf.c: New file.
47205         * m4/cosf.m4: New file.
47206         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47208         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47209         * modules/cosf: New file.
47210         * tests/test-math-c++.cc: Check the declaration of cosf.
47211         * doc/posix-functions/cosf.texi: Mention the new module.
47213         cos: Use a .m4 file.
47214         * m4/cos.m4: New file.
47215         * modules/cos (Files): Add it.
47216         (configure.ac): Just invoke gl_FUNC_COS.
47218 2011-10-08  Bruno Haible  <bruno@clisp.org>
47220         Tests for module 'sinf'.
47221         * modules/sinf-tests: New file.
47222         * tests/test-sinf.c: New file.
47224         New module 'sinf'.
47225         * lib/math.in.h (sinf): New declaration.
47226         * lib/sinf.c: New file.
47227         * m4/sinf.m4: New file.
47228         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47230         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47231         * modules/sinf: New file.
47232         * tests/test-math-c++.cc: Check the declaration of sinf.
47233         * doc/posix-functions/sinf.texi: Mention the new module.
47235         sin: Use a .m4 file.
47236         * m4/sin.m4: New file.
47237         * modules/sin (Files): Add it.
47238         (configure.ac): Just invoke gl_FUNC_SIN.
47240 2011-10-08  Bruno Haible  <bruno@clisp.org>
47242         Tests for module 'powf'.
47243         * modules/powf-tests: New file.
47244         * tests/test-powf.c: New file.
47246         New module 'powf'.
47247         * lib/math.in.h (powf): New declaration.
47248         * lib/powf.c: New file.
47249         * m4/powf.m4: New file.
47250         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47252         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47253         * modules/powf: New file.
47254         * tests/test-math-c++.cc: Check the declaration of powf.
47255         * doc/posix-functions/powf.texi: Mention the new module.
47257         pow: Use a .m4 file.
47258         * m4/pow.m4: New file.
47259         * modules/pow (Files): Add it.
47260         (configure.ac): Just invoke gl_FUNC_POW.
47262 2011-10-08  Bruno Haible  <bruno@clisp.org>
47264         Tests for module 'log10f'.
47265         * modules/log10f-tests: New file.
47266         * tests/test-log10f.c: New file.
47268         New module 'log10f'.
47269         * lib/math.in.h (log10f): New declaration.
47270         * lib/log10f.c: New file.
47271         * m4/log10f.m4: New file.
47272         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47274         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47275         * modules/log10f: New file.
47276         * tests/test-math-c++.cc: Check the declaration of log10f.
47277         * doc/posix-functions/log10f.texi: Mention the new module.
47279         log10: Use a .m4 file.
47280         * m4/log10.m4: New file.
47281         * modules/log10 (Files): Add it.
47282         (configure.ac): Just invoke gl_FUNC_LOG10.
47284 2011-10-08  Bruno Haible  <bruno@clisp.org>
47286         Tests for module 'logf'.
47287         * modules/logf-tests: New file.
47288         * tests/test-logf.c: New file.
47290         New module 'logf'.
47291         * lib/math.in.h (logf): New declaration.
47292         * lib/logf.c: New file.
47293         * m4/logf.m4: New file.
47294         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47296         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47297         * modules/logf: New file.
47298         * tests/test-math-c++.cc: Check the declaration of logf.
47299         * doc/posix-functions/logf.texi: Mention the new module.
47301         log: Use a .m4 file.
47302         * m4/log.m4: New file.
47303         * modules/log (Files): Add it.
47304         (configure.ac): Just invoke gl_FUNC_LOG.
47306 2011-10-08  Bruno Haible  <bruno@clisp.org>
47308         Tests for module 'expf'.
47309         * modules/expf-tests: New file.
47310         * tests/test-expf.c: New file.
47312         New module 'expf'.
47313         * lib/math.in.h (expf): New declaration.
47314         * lib/expf.c: New file.
47315         * m4/expf.m4: New file.
47316         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47318         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47319         * modules/expf: New file.
47320         * tests/test-math-c++.cc: Check the declaration of expf.
47321         * doc/posix-functions/expf.texi: Mention the new module.
47323         exp: Use a .m4 file.
47324         * m4/exp.m4: New file.
47325         * modules/exp (Files): Add it.
47326         (configure.ac): Just invoke gl_FUNC_EXP.
47328 2011-10-08  Bruno Haible  <bruno@clisp.org>
47330         Tests for module 'sqrtf'.
47331         * modules/sqrtf-tests: New file.
47332         * tests/test-sqrtf.c: New file.
47334         New module 'sqrtf'.
47335         * lib/math.in.h (sqrtf): New declaration.
47336         * lib/sqrtf.c: New file.
47337         * m4/sqrtf.m4: New file.
47338         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47340         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47341         * modules/sqrtf: New file.
47342         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47343         * doc/posix-functions/sqrtf.texi: Mention the new module.
47345 2011-10-08  Bruno Haible  <bruno@clisp.org>
47347         Tests: Avoid link failures w.r.t. libintl.
47348         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47349         $(LIBINTL).
47350         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47351         $(LIBINTL).
47352         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47353         against $(LIBINTL).
47354         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47355         $(LIBINTL).
47356         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47357         $(LIBINTL).
47358         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47360 2011-10-08  Bruno Haible  <bruno@clisp.org>
47362         pow tests: Defeat compiler optimizations.
47363         * tests/test-pow.c (main): Assign arguments to x and y before use.
47365 2011-10-08  Bruno Haible  <bruno@clisp.org>
47367         gnulib-tool: Improve last commit.
47368         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47369         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47370         ignore dependencies that are not among the modules list.
47372 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47374         gnulib-tool: don't follow dependencies to avoided modules
47375         This fixes a bug that is related to the previous one.
47376         * gnulib-tool (func_modules_transitive_closure)
47377         (func_emit_autoconf_snippets):
47378         Check whether a dependency is acceptable before using it.
47379         (--extract-dependencies): Report an error if --avoid is also used,
47380         since this combination of options is not yet supported.
47382         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47383         Problem reported by Peter Dyballa in
47384         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47385         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47386         when echoing "$condition".
47388 2011-10-07  Bruno Haible  <bruno@clisp.org>
47390         Fix documentation about math functions on MacOS X.
47391         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47392         MacOS X 10.5.
47393         * doc/posix-functions/fdim.texi: Likewise.
47394         * doc/posix-functions/feclearexcept.texi: Likewise.
47395         * doc/posix-functions/fegetenv.texi: Likewise.
47396         * doc/posix-functions/fegetround.texi: Likewise.
47397         * doc/posix-functions/feholdexcept.texi: Likewise.
47398         * doc/posix-functions/feraiseexcept.texi: Likewise.
47399         * doc/posix-functions/fesetenv.texi: Likewise.
47400         * doc/posix-functions/fesetround.texi: Likewise.
47401         * doc/posix-functions/fetestexcept.texi: Likewise.
47402         * doc/posix-functions/feupdateenv.texi: Likewise.
47403         * doc/posix-functions/fmax.texi: Likewise.
47404         * doc/posix-functions/fmin.texi: Likewise.
47405         * doc/posix-functions/log2.texi: Likewise.
47406         * doc/posix-functions/modff.texi: Likewise.
47407         * doc/posix-functions/nan.texi: Likewise.
47408         * doc/posix-functions/nanf.texi: Likewise.
47409         * doc/posix-functions/nextafterf.texi: Likewise.
47410         * doc/posix-functions/remquo.texi: Likewise.
47412 2011-10-07  Bruno Haible  <bruno@clisp.org>
47414         modff: Drop assumption about library that defines modff.
47415         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47416         AC_CHECK_FUNCS.
47417         * modules/modff (Files): Add m4/mathfunc.m4.
47419 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47421         raise tests: Avoid a GCC warning.
47422         * tests/test-raise.c (handler): Use _Noreturn.
47424 2011-10-07  Bruno Haible  <bruno@clisp.org>
47426         Tests for module 'ldexpf'.
47427         * modules/ldexpf-tests: New file.
47428         * tests/test-ldexpf.c: New file.
47430         New module 'ldexpf'.
47431         * lib/math.in.h (ldexpf): New declaration.
47432         * lib/ldexpf.c: New file.
47433         * m4/ldexpf.m4: New file.
47434         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47436         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47437         * modules/ldexpf: New file.
47438         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47439         * doc/posix-functions/ldexpf.texi: Mention the new module.
47441 2011-10-06  Bruno Haible  <bruno@clisp.org>
47443         frexpf: Work around problems on IRIX and mingw.
47444         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47446         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47447         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47448         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47449         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47450         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47452 2011-10-06  Bruno Haible  <bruno@clisp.org>
47454         fabsf: Drop assumption about library that defines fabsf.
47455         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47456         AC_CHECK_FUNCS.
47457         * modules/fabsf (Files): Add m4/mathfunc.m4.
47459 2011-10-06  Bruno Haible  <bruno@clisp.org>
47461         frexpf: Drop assumption about library that defines frexpf.
47462         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47463         'int *', 'float *', 'long double *', 'float', 'long double'.
47464         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47465         AC_CHECK_FUNCS.
47466         * modules/frexpf (Files): Add m4/mathfunc.m4.
47468         Tests for module 'frexpf'.
47469         * modules/frexpf-tests: New file.
47470         * tests/test-frexpf.c: New file.
47472         New module 'frexpf'.
47473         * lib/math.in.h (frexpf): New declaration.
47474         * lib/frexpf.c: New file.
47475         * m4/frexpf.m4: New file.
47476         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47478         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47479         * modules/frexpf: New file.
47480         * tests/test-math-c++.cc: Check the declaration of frexpf.
47481         * doc/posix-functions/frexpf.texi: Mention the new module.
47483 2011-10-06  Bruno Haible  <bruno@clisp.org>
47485         math: Sort function declarations of math.in.h.
47486         * lib/math.in.h (frexp, logb): Move declarations.
47488 2011-10-05  Bruno Haible  <bruno@clisp.org>
47490         Tests for module 'modff'.
47491         * modules/modff-tests: New file.
47492         * tests/test-modff.c: New file.
47494         New module 'modff'.
47495         * lib/math.in.h (modff): New declaration.
47496         * lib/modff.c: New file.
47497         * m4/modff.m4: New file.
47498         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47500         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47501         * modules/modff: New file.
47502         * tests/test-math-c++.cc: Check the declaration of modff.
47503         * doc/posix-functions/modff.texi: Mention the new module.
47505         modf tests: Make test sharper.
47506         * tests/test-modf.c (main): Strengthen upper bound.
47508         modf: Use a .m4 file.
47509         * m4/modf.m4: New file.
47510         * modules/modf (Files): Add it.
47511         (configure.ac): Just invoke gl_FUNC_MODF.
47513 2011-10-05  Bruno Haible  <bruno@clisp.org>
47515         Tests for module 'fmodf'.
47516         * modules/fmodf-tests: New file.
47517         * tests/test-fmodf.c: New file.
47519         New module 'fmodf'.
47520         * lib/math.in.h (fmodf): New declaration.
47521         * lib/fmodf.c: New file.
47522         * m4/fmodf.m4: New file.
47523         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
47524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
47525         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
47526         * modules/fmodf: New file.
47527         * tests/test-math-c++.cc: Check the declaration of fmodf.
47528         * doc/posix-functions/fmodf.texi: Mention the new module.
47530         fmod: Use a .m4 file.
47531         * m4/fmod.m4: New file.
47532         * modules/fmod (Files): Add it.
47533         (configure.ac): Just invoke gl_FUNC_FMOD.
47535 2011-10-05  Bruno Haible  <bruno@clisp.org>
47537         Tests for module 'fabsf'.
47538         * modules/fabsf-tests: New file.
47539         * tests/test-fabsf.c: New file.
47541         New module 'fabsf'.
47542         * lib/math.in.h (fabsf): New declaration.
47543         * lib/fabsf.c: New file.
47544         * m4/fabsf.m4: New file.
47545         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
47546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
47547         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
47548         * modules/fabsf: New file.
47549         * tests/test-math-c++.cc: Check the declaration of fabsf.
47550         * doc/posix-functions/fabsf.texi: Mention the new module.
47552         fabs: Use a .m4 file.
47553         * m4/fabs.m4: New file.
47554         * modules/fabs (Files): Add it.
47555         (configure.ac): Just invoke gl_FUNC_FABS.
47557 2011-10-05  Jim Meyering  <meyering@redhat.com>
47559         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
47560         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
47561         ls -lL regression introduced in coreutils-8.12, it does so at the
47562         cost of an additional stat call in the common case.  Besides, now
47563         that the kernel change that prompted commit 95f7c57f has been reverted
47564         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
47565         we have no use for commit 95f7c57f, "file-has-acl: use
47566         acl_extended_file_nofollow if available".
47568 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
47570         file-has-acl: revert unintended change in behavior of ls -L
47571         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
47572         derived from...
47573         (file_has_acl): ...code here.  Call it.
47574         This problem was introduced with 2011-07-22 commit 95f7c57f,
47575         "file-has-acl: use acl_extended_file_nofollow if available".
47576         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
47578 2011-10-03  Bruno Haible  <bruno@clisp.org>
47580         poll: Avoid link errors on MSVC.
47581         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
47582         * modules/poll (Depends-on): Add sockets.
47583         (Link): New section.
47584         * NEWS: Mention the change.
47585         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
47586         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
47587         $(LIB_POLL) instead of $(LIBSOCKET).
47589 2011-10-03  Bruno Haible  <bruno@clisp.org>
47591         sys_select tests: Fix link error on MSVC 9.
47592         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47593         with $(LIB_SELECT) instead of $(LIBSOCKET).
47595 2011-10-03  Bruno Haible  <bruno@clisp.org>
47597         sys_select: Fix compilation error on mingw.
47598         * lib/sys_select.in.h: On native Windows, include <io.h>.
47600 2011-10-03  Bruno Haible  <bruno@clisp.org>
47602         wmemset: Support for MSVC.
47603         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47604         whether wmemset() exists.
47606 2011-10-03  Bruno Haible  <bruno@clisp.org>
47608         wmemmove: Support for MSVC.
47609         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
47610         whether wmemmove() exists.
47612 2011-10-03  Bruno Haible  <bruno@clisp.org>
47614         wmemcpy: Support for MSVC.
47615         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47616         whether wmemcpy() exists.
47618 2011-10-03  Bruno Haible  <bruno@clisp.org>
47620         wmemcmp: Support for MSVC.
47621         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47622         whether wmemcmp() exists.
47624 2011-10-03  Bruno Haible  <bruno@clisp.org>
47626         wmemchr: Support for MSVC.
47627         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47628         whether wmemchr() exists.
47630 2011-10-03  Bruno Haible  <bruno@clisp.org>
47632         glthread/*, strsignal: Support for MSVC.
47633         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47634         including <winsock.h> on MSVC 9.
47635         * lib/glthread/lock.h: Likewise.
47636         * lib/glthread/thread.h: Likewise.
47637         * lib/glthread/tls.h: Likewise.
47638         * lib/glthread/yield.h: Likewise.
47639         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47640         if HAVE_UNISTD_H is false.
47641         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47643 2011-10-03  Bruno Haible  <bruno@clisp.org>
47645         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47646         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47647         Set to 100000.
47649 2011-10-03  Bruno Haible  <bruno@clisp.org>
47651         acl: Fix specification.
47652         * lib/file-has-acl.c (file_has_acl): Fix specification.
47654 2011-10-03  Bruno Haible  <bruno@clisp.org>
47656         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47657         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47658         (compute_curr_prefix, shared_library_fullname,
47659         find_shared_library_fullname, get_shared_library_fullname, relocate):
47660         Use it together with PIC && INSTALLDIR.
47661         Reported by <jojelino@gmail.com>
47662         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47664 2011-10-01  Jim Meyering  <meyering@redhat.com>
47666         maint.mk: adjust a release-related rule not to require use of gzip
47667         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47668         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47669         projects that build only .tar.xz files.  Also fix an erroneous test.
47671         test-linkat: don't leave behind a temporary file
47672         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47673         Otherwise, coreutils' "make distcheck" would fail with this:
47674           Only in /c/cu/tests/torture/coreutils/test/\
47675             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47676           make[2]: *** [my-distcheck] Error 1
47678         float, math: add omitted file
47679         * lib/itold.c: Add file, required for yesterday's float change.
47681 2011-10-01  Bruno Haible  <bruno@clisp.org>
47683         isinf: Fix for OpenBSD/x86.
47684         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47685         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47686         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47688 2011-10-01  Bruno Haible  <bruno@clisp.org>
47690         isfinite: Fix syntax error in configure test.
47691         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47693         isfinite: Fix typo.
47694         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47695         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47697 2011-10-01  Bruno Haible  <bruno@clisp.org>
47699         nonblocking tests: Fix test failure on Linux/IA-64.
47700         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47701         Set to 270000.
47703 2011-10-01  Bruno Haible  <bruno@clisp.org>
47705         mkfifoat tests: Fix a test failure on mingw.
47706         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47707         with error ENOSYS.
47709 2011-09-30  Bruno Haible  <bruno@clisp.org>
47711         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47712         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47713         'long double'. Set REPLACE_ITOLD.
47714         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47715         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47716         * lib/itold.c: New file.
47717         * modules/float (Files): Add lib/itold.c.
47718         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47719         (Makefile.am): Substitute REPLACE_ITOLD.
47720         * modules/math (Depends-on): Add float.
47721         (Makefile.am): Substitute REPLACE_ITOLD.
47722         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47723         * doc/posix-headers/math.texi: Likewise.
47724         * doc/posix-functions/logl.texi: Likewise.
47726 2011-09-30  Bruno Haible  <bruno@clisp.org>
47728         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47729         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47730         Set to 140000.
47732 2011-09-30  Bruno Haible  <bruno@clisp.org>
47734         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47735         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47736         invocation, say "right after AC_PROG_CC_STDC", not "right after
47737         AC_PROG_CC".
47738         Reported by Gary V. Vaughan <gary@gnu.org>.
47740 2011-09-30  Bruno Haible  <bruno@clisp.org>
47742         Centralize C99 requirement.
47743         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47744         * modules/stdarg (configure.ac-early): Invoke it instead of
47745         AC_PROG_CC_STDC.
47746         Reported by Gary V. Vaughan and Paul Eggert.
47748 2011-09-29  Bruno Haible  <bruno@clisp.org>
47750         float: Fix LDBL_MAX value on Linux/PowerPC.
47751         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47752         on Linux/PowerPC.
47753         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47754         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47755         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47756         platform.
47757         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47759 2011-09-29  Bruno Haible  <bruno@clisp.org>
47761         doc: Improve doc about gl_EARLY.
47762         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47763         AC_PROG_CC_STDC invocation.
47764         Reported by Gary V. Vaughan <gary@gnu.org>.
47766 2011-09-28  Bruno Haible  <bruno@clisp.org>
47768         fgetc, fputc, fread, fwrite tests: Fix link error.
47769         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47770         on non-MSVC platforms.
47771         * tests/test-fputc.c (main): Likewise.
47772         * tests/test-fread.c (main): Likewise.
47773         * tests/test-fwrite.c (main): Likewise.
47774         Reported by Jim Meyering.
47776 2011-09-27  Bruno Haible  <bruno@clisp.org>
47778         fputc, fwrite tests: Avoid test failure on MSVC.
47779         * tests/test-fgetc.c: Include msvc-inval.h.
47780         (main): Invoke gl_msvc_inval_ensure_handler.
47781         * tests/test-fputc.c: Include msvc-inval.h.
47782         (main): Invoke gl_msvc_inval_ensure_handler.
47783         * tests/test-fread.c: Include msvc-inval.h.
47784         (main): Invoke gl_msvc_inval_ensure_handler.
47785         * tests/test-fwrite.c: Include msvc-inval.h.
47786         (main): Invoke gl_msvc_inval_ensure_handler.
47787         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47788         * modules/fputc-tests (Depends-on): Likewise.
47789         * modules/fread-tests (Depends-on): Likewise.
47790         * modules/fwrite-tests (Depends-on): Likewise.
47792 2011-09-27  Bruno Haible  <bruno@clisp.org>
47794         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47795         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47796         (raise): Remove older, duplicated declaration.
47797         (_gl_raise_SIGPIPE): New declaration.
47798         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47799         (rpl_raise): Remove function.
47800         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47801         a gnulib-defined SIGPIPE here.
47802         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47803         'sigprocmask' has detected missing signal-blocking and the module
47804         'sigpipe' is enabled.
47805         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47807 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47809         base64-tests: avoid memory leak
47810         * tests/test-base64.c (main): Plug memory leak.
47812         base32: new module
47813         * modules/base32: New module.
47814         * lib/base32.c: New file.
47815         * lib/base32.h: Likewise.
47816         * m4/base32.m4: Likewise.
47817         * modules/base32-tests: New test.
47818         * tests/test-base32.c: Likewise.
47819         * MODULES.html.sh (Misc): Mention it.
47821 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47823         gnulib: use more-standard license notice wording
47824         * gnulib-tool (func_emit_copyright_notice): When emitting a
47825         license notice into a file, use the standard wording as suggested
47826         by the current information for GNU maintainers, except say "file"
47827         rather than "program".  The new wording gives a license version
47828         number, which addresses an issue raised by Glenn Morris in
47829         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47830         * m4/onceonly.m4: Use that same wording here, too.
47832         dup2: minor simplification
47833         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47834         as lib/dup2.c no longer uses 'inline'.
47836 2011-09-25  Bruno Haible  <bruno@clisp.org>
47838         strings: Fix compilation error on MSVC.
47839         * lib/strings.in.h: Include <stddef.h> for size_t.
47841 2011-09-25  Bruno Haible  <bruno@clisp.org>
47843         fflush et al.: Document limitation on MSVC.
47844         * doc/posix-functions/fflush.texi: Document possible crash in handling
47845         mode other than DEFAULT_HANDLING.
47846         * doc/posix-functions/fgetc.texi: Likewise.
47847         * doc/posix-functions/fputc.texi: Likewise.
47848         * doc/posix-functions/fread.texi: Likewise.
47849         * doc/posix-functions/fwrite.texi: Likewise.
47851 2011-09-25  Bruno Haible  <bruno@clisp.org>
47853         msvc-inval: Allow three invalid parameter handling modes.
47854         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47855         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47856         macros.
47857         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47858         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47859         SANE_LIBRARY_HANDLING as a no-op.
47860         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47861         <stdlib.h>.
47862         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47864 2011-09-25  Bruno Haible  <bruno@clisp.org>
47866         msvc-inval: Make handler multithread-safe.
47867         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47868         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47869         declarations.
47870         (gl_msvc_inval_current): New declaration.
47871         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47872         Operate on the structure returned by gl_msvc_inval_current().
47873         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47874         Remove varaiables.
47875         (tls_index, tls_initialized): New variables.
47876         (not_per_thread): New variable.
47877         (gl_msvc_inval_current): New function.
47878         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47879         returned by gl_msvc_inval_current().
47881 2011-09-25  Bruno Haible  <bruno@clisp.org>
47883         msvc-inval: Install handler globally.
47884         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47885         !_MSC_VER.
47886         (gl_msvc_invalid_parameter_handler): Remove declaration.
47887         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47888         declarations.
47889         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47890         Install the handler globally, don't uninstall it.
47891         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47892         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47893         currently valid, call RaiseException instead.
47894         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47895         for !_MSC_VER.
47897 2011-09-25  Bruno Haible  <bruno@clisp.org>
47899         strerror_r-posix: Fix for MSVC 9.
47900         * lib/strerror_r.c (local_snprintf): New function.
47901         (snprintf): Define to local_snprintf, not to _snprintf.
47903 2011-09-25  Bruno Haible  <bruno@clisp.org>
47905         ftruncate: Support for MSVC 9.
47906         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47907         (chsize_nothrow): New function.
47908         (chsize): Redefine as a macro.
47909         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47910         * modules/ftruncate (Depends-on): Add msvc-inval.
47912 2011-09-25  Bruno Haible  <bruno@clisp.org>
47914         New module 'fstat'.
47915         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47916         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47917         * lib/fchdir.c (rpl_fstat): Remove function.
47918         * m4/fstat.m4: New file.
47919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47921         declared.
47922         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47923         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47924         * modules/fstat: New file.
47925         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47926         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47927         is set.
47928         * doc/posix-functions/fstat.texi: Mention the new module and the
47929         problem on MSVC.
47930         * NEWS: Mention the change.
47931         * modules/acl (Depends-on): Add fstat.
47932         * modules/chdir-safer (Depends-on): Likewise.
47933         * modules/chown (Depends-on): Likewise.
47934         * modules/copy-file (Depends-on): Likewise.
47935         * modules/fchdir (Depends-on): Likewise.
47936         * modules/fdopendir (Depends-on): Likewise.
47937         * modules/fopen (Depends-on): Likewise.
47938         * modules/fts (Depends-on): Likewise.
47939         * modules/getcwd (Depends-on): Likewise.
47940         * modules/isapipe (Depends-on): Likewise.
47941         * modules/linkat (Depends-on): Likewise.
47942         * modules/lseek (Depends-on): Likewise.
47943         * modules/mkdir-p (Depends-on): Likewise.
47944         * modules/open (Depends-on): Likewise.
47945         * modules/openat (Depends-on): Likewise.
47946         * modules/read-file (Depends-on): Likewise.
47947         * modules/renameat (Depends-on): Likewise.
47948         * modules/utimens (Depends-on): Likewise.
47950 2011-09-25  Bruno Haible  <bruno@clisp.org>
47952         linkat: Fix compilation on MSVC 9.
47953         * lib/linkat.c: Don't include <stdint.h>.
47955 2011-09-25  Bruno Haible  <bruno@clisp.org>
47957         fclose: Support for MSVC 9.
47958         * lib/fclose.c: Include msvc-inval.h.
47959         (fclose_nothrow): New function.
47960         (rpl_fclose): Use it.
47961         * modules/fclose (Depends-on): Add msvc-inval.
47962         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47964 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47966         dup2: minor simplifications
47967         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47968         that it's a performance win.
47969         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47970         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47972 2011-09-24  Jim Meyering  <meyering@redhat.com>
47974         test-futimens: avoid a warning from gcc -Wshadow
47975         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47976         to avoid a shadowing warning.
47978 2011-09-24  Bruno Haible  <bruno@clisp.org>
47980         fdopen: Support for MSVC 9.
47981         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47982         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47983         * lib/fdopen.c: Include msvc-inval.h.
47984         (fdopen_nothrow): New function.
47985         (rpl_fdopen): Use it.
47986         * modules/fdopen (Depends-on): Add msvc-inval.
47987         * modules/fclose-tests (Depends-on): Add fdopen.
47988         * modules/fflush-tests (Depends-on): Likewise.
47989         * modules/fgetc-tests (Depends-on): Likewise.
47990         * modules/fputc-tests (Depends-on): Likewise.
47991         * modules/fread-tests (Depends-on): Likewise.
47992         * modules/freopen-tests (Depends-on): Likewise.
47993         * modules/fseeko-tests (Depends-on): Likewise.
47994         * modules/ftello-tests (Depends-on): Likewise.
47995         * modules/fwrite-tests  (Depends-on): Likewise.
47996         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47998 2011-09-24  Bruno Haible  <bruno@clisp.org>
48000         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48001         * modules/fgetc-tests (Depends-on): Add unistd.
48002         * modules/fputc-tests (Depends-on): Likewise.
48003         * modules/fread-tests (Depends-on): Likewise.
48004         * modules/fwrite-tests (Depends-on): Likewise.
48006 2011-09-24  Bruno Haible  <bruno@clisp.org>
48008         dup: Simplify autoconf test.
48009         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48010         on gl_MSVC_INVAL's result.
48012 2011-09-24  Bruno Haible  <bruno@clisp.org>
48014         Tests for function fwrite().
48015         * modules/fwrite-tests: New file.
48016         * tests/test-fwrite.c: New file.
48017         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48019         Tests for function fread().
48020         * modules/fread-tests: New file.
48021         * tests/test-fread.c: New file.
48022         * modules/stdio-tests (Depends-on): Add fread-tests.
48024         Activate fputc tests.
48025         * modules/stdio-tests (Depends-on): Add fputc-tests.
48027         Enhance fgetc, fputc tests.
48028         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48029         * tests/test-fputc.c (main): Likewise.
48031 2011-09-24  Bruno Haible  <bruno@clisp.org>
48033         write: Support for MSVC 9.
48034         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48035         is not 1.
48036         * lib/write.c (write_nothrow): New function.
48037         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48038         not 1. Use write_nothrow.
48039         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48040         invalid parameter handler.
48041         (gl_PREREQ_WRITE): New macro.
48042         * modules/write (Depends-on): Add msvc-inval.
48043         (configure.ac): Invoke gl_PREREQ_WRITE.
48044         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48046 2011-09-24  Bruno Haible  <bruno@clisp.org>
48048         read: Fix last commit.
48049         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48051 2011-09-24  Bruno Haible  <bruno@clisp.org>
48053         dup2: Fix last commit.
48054         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48055         (rpl_dup2): Disable fcntl workaround on native Windows.
48057         sigprocmask: Make code safer.
48058         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48059         section that changes macro definitions for this compilation unit.
48061 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48063         dup2: clarify by coalescing Windows-specific material
48064         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48065         "msvc-nothrow.h"' to the Windows-specific section, so that the
48066         Emacs source need not contain these include files.
48067         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48068         Windows-specific fixes into this function rather than just the
48069         nothrow fix, as this shortens and clarifies the code.  Always
48070         define as a function, as that's a bit cleaner than having it be
48071         sometimes a function and sometimes a macro.
48072         (rpl_dup2): Move the Windows-specific stuff out of here and into
48073         ms_windows_dup2.  Don't protect the Haiku-related fix with
48074         "#if !defined __linux__", as the same code also works around
48075         a Linux kernel bug, and it doesn't add any system calls on any
48076         platform.  Add comment about FreeBSD 6.1.
48078         sigprocmask: move #include directive
48079         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48080         Windows-specific section, so that the Emacs source need not
48081         contain msvc-inval.h.
48083 2011-09-23  Bruno Haible  <bruno@clisp.org>
48085         read: Support for MSVC 9.
48086         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48087         is not 1.
48088         * lib/read.c (read_nothrow): New function.
48089         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48090         read_nothrow.
48091         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48092         invalid parameter handler.
48093         (gl_PREREQ_READ): New macro.
48094         * modules/read (Depends-on): Add msvc-inval.
48095         (configure.ac): Invoke gl_PREREQ_READ.
48096         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48098 2011-09-23  Bruno Haible  <bruno@clisp.org>
48100         close: Support for MSVC 9.
48101         * lib/close.c: Include <errno.h>, msvc-inval.h.
48102         (close_nothrow): New function.
48103         (rpl_close): Use it.
48104         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48105         invalid parameter handler.
48106         * modules/close (Depends-on): Add msvc-inval.
48107         * modules/dup2-tests (Depends-on): Add close.
48108         * modules/dup3-tests (Depends-on): Likewise.
48109         * modules/fcntl-tests (Depends-on): Likewise.
48110         * modules/spawn-pipe-tests (Depends-on): Likewise.
48111         * modules/unistd-safer-tests (Depends-on): Likewise.
48112         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48114 2011-09-23  Bruno Haible  <bruno@clisp.org>
48116         New module 'dup'.
48117         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48118         Allow replacement.
48119         * lib/dup.c: New file.
48120         * lib/fchdir.c (rpl_dup): Remove function.
48121         * m4/dup.m4: New file.
48122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48123         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48124         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48125         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48126         * modules/dup: New file.
48127         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48128         'dup' module is in use.
48129         * modules/fdopendir (Depends-on): Add dup.
48130         * modules/fdutimensat-tests (Depends-on): Likewise.
48131         * modules/fts (Depends-on): Likewise.
48132         * modules/futimens-tests (Depends-on): Likewise.
48133         * modules/posix_spawnp-tests (Depends-on): Likewise.
48134         * modules/unistd-safer-tests (Depends-on): Likewise.
48135         * modules/utimens-tests (Depends-on): Likewise.
48136         * doc/posix-functions/dup.texi: Mention the new module and the problem
48137         on MSVC.
48139 2011-09-23  Bruno Haible  <bruno@clisp.org>
48141         getdtablesize: Support for MSVC 9.
48142         * lib/getdtablesize.c: Include msvc-inval.h.
48143         (_setmaxstdio_nothrow): New function.
48144         (_setmaxstdio): Redefine it.
48145         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48146         * modules/getdtablesize (Depends-on): Add msvc-inval.
48147         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48149 2011-09-23  Bruno Haible  <bruno@clisp.org>
48151         signal-h: Rename from signal.
48152         * modules/signal-h: Renamed from modules/signal.
48153         * modules/pthread_sigmask (Depends-on): Update.
48154         * modules/raise (Depends-on): Likewise.
48155         * modules/sigaction (Depends-on): Likewise.
48156         * modules/sigpipe (Depends-on): Likewise.
48157         * modules/sigprocmask (Depends-on): Likewise.
48158         * modules/sys_select (Depends-on): Likewise.
48159         * modules/signal-h-tests: Renamed from modules/signal-tests.
48160         (Files, Depends-on, Makefile.am): Update.
48161         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48162         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48163         (Files, Makefile.am): Update.
48164         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48165         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48166         * modules/signal: New placeholder file.
48167         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48168         * doc/posix-headers/signal.texi: Update.
48169         * NEWS: Mention the change.
48171 2011-09-23  Bruno Haible  <bruno@clisp.org>
48173         sigprocmask: Avoid crashes through signal() on MSVC 9.
48174         * lib/sigprocmask.c: Include msvc-inval.h.
48175         (signal_nothrow): New function.
48176         (signal): Redefine it.
48177         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48178         * modules/sigprocmask (Depends-on): Add msvc-inval.
48179         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48181 2011-09-23  Bruno Haible  <bruno@clisp.org>
48183         Tests for module 'raise'.
48184         * modules/raise-tests: New file.
48185         * tests/test-raise.c: New file.
48187         raise: Support for MSVC.
48188         * lib/signal.in.h (raise): New declaration.
48189         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48190         for native Windows platforms.
48191         * m4/raise.m4: New file.
48192         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48193         HAVE_RAISE, REPLACE_RAISE.
48194         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48195         REPLACE_RAISE.
48196         * modules/raise (Status, Notice): Remove fields.
48197         (Files): Add m4/raise.m4.
48198         (Depends-on): Add signal, msvc-inval.
48199         (configure.ac): Use the common idioms.
48200         (Maintainer): Add me.
48201         * tests/test-signal-c++.cc: Check the signature of raise.
48202         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48204 2011-09-23  Bruno Haible  <bruno@clisp.org>
48206         pipe2: Fix compilation on pre-C99 compilers.
48207         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48209 2011-09-23  Bruno Haible  <bruno@clisp.org>
48211         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48212         * lib/msvc-nothrow.h: New file.
48213         * lib/msvc-nothrow.c: New file.
48214         * m4/msvc-nothrow.m4: New file.
48215         * modules/msvc-nothrow: New file.
48216         * lib/dup2.c: Include msvc-nothrow.h.
48217         (rpl_dup2): No need to protect _get_osfhandle call here.
48218         * lib/accept4.c: Include msvc-nothrow.h.
48219         * lib/error.c: Likewise.
48220         * lib/fcntl.c: Likewise.
48221         * lib/lseek.c: Likewise.
48222         * lib/nonblocking.c: Likewise.
48223         * lib/poll.c: Likewise.
48224         * lib/read.c: Likewise.
48225         * lib/select.c: Likewise.
48226         * lib/sockets.h: Likewise.
48227         * lib/sockets.c: Likewise.
48228         * lib/stdio-read.c: Likewise.
48229         * lib/stdio-write.c: Likewise.
48230         * lib/write.c: Likewise.
48231         * lib/w32sock.h: Likewise.
48232         * lib/w32spawn.h: Likewise.
48233         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48234         * lib/fsync.c: Likewise.
48235         * lib/isapipe.c: Likewise.
48236         * modules/dup2 (Depends-on): Add msvc-nothrow.
48237         * modules/accept4 (Depends-on): Likewise.
48238         * modules/error (Depends-on): Likewise.
48239         * modules/fcntl (Depends-on): Likewise.
48240         * modules/lseek (Depends-on): Likewise.
48241         * modules/nonblocking (Depends-on): Likewise.
48242         * modules/poll (Depends-on): Likewise.
48243         * modules/read (Depends-on): Likewise.
48244         * modules/select (Depends-on): Likewise.
48245         * modules/sockets (Depends-on): Likewise.
48246         * modules/sigpipe (Depends-on): Likewise.
48247         * modules/write (Depends-on): Likewise.
48248         * modules/accept (Depends-on): Likewise.
48249         * modules/bind (Depends-on): Likewise.
48250         * modules/connect (Depends-on): Likewise.
48251         * modules/gethostname (Depends-on): Likewise.
48252         * modules/getpeername (Depends-on): Likewise.
48253         * modules/getsockname (Depends-on): Likewise.
48254         * modules/getsockopt (Depends-on): Likewise.
48255         * modules/ioctl (Depends-on): Likewise.
48256         * modules/listen (Depends-on): Likewise.
48257         * modules/recv (Depends-on): Likewise.
48258         * modules/recvfrom (Depends-on): Likewise.
48259         * modules/send (Depends-on): Likewise.
48260         * modules/sendto (Depends-on): Likewise.
48261         * modules/setsockopt (Depends-on): Likewise.
48262         * modules/shutdown (Depends-on): Likewise.
48263         * modules/socket (Depends-on): Likewise.
48264         * modules/execute (Depends-on): Likewise.
48265         * modules/spawn-pipe (Depends-on): Likewise.
48266         * modules/flock (Depends-on): Likewise.
48267         * modules/fsync (Depends-on): Likewise.
48268         * modules/isapipe (Depends-on): Likewise.
48269         * tests/test-cloexec.c: Include msvc-nothrow.h.
48270         * tests/test-dup-safer.c: Likewise.
48271         * tests/test-dup2.c: Likewise.
48272         * tests/test-dup3.c: Likewise.
48273         * tests/test-fcntl.c: Likewise.
48274         * tests/test-pipe.c: Likewise.
48275         * tests/test-pipe2.c: Likewise.
48276         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48277         * modules/unistd-safer-tests (Depends-on): Likewise.
48278         * modules/dup2-tests (Depends-on): Likewise.
48279         * modules/dup3-tests (Depends-on): Likewise.
48280         * modules/fcntl-tests (Depends-on): Likewise.
48281         * modules/pipe-posix-tests (Depends-on): Likewise.
48282         * modules/pipe2-tests (Depends-on): Likewise.
48284 2011-09-23  Bruno Haible  <bruno@clisp.org>
48286         dup2: Make code more maintainable.
48287         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48288         (rpl_dup2): Use it.
48289         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48290         * modules/dup2 (configure.ac): Invoke it.
48291         Reported by Paul Eggert.
48293 2011-09-23  Bruno Haible  <bruno@clisp.org>
48295         msvc-inval: Fix compilation error.
48296         * lib/msvc-inval.h: Include <excpt.h>.
48298 2011-09-23  Bruno Haible  <bruno@clisp.org>
48300         mkdir: Tweak for MSVC 9.
48301         * lib/sys_stat.in.h: Update comments.
48302         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48304         Tests for module 'chdir'.
48305         * modules/chdir-tests: New file.
48306         * tests/test-chdir.c: New file.
48308         New module 'chdir'.
48309         * modules/chdir: New file.
48310         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48311         (chdir): New declaration.
48312         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48313         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48314         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48315         * tests/test-unistd-c++.cc: Check signature of chdir.
48316         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48317         * modules/chdir-long (Depends-on): Add chdir.
48318         * modules/fchdir (Depends-on): Likewise.
48319         * modules/rename (Depends-on): Likewise.
48320         * modules/savewd (Depends-on): Likewise.
48322         rmdir: Support for mingw, MSVC 9.
48323         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48324         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48326         getcwd: Tweak for MSVC 9.
48327         * lib/unistd.in.h: Update comments.
48328         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48330 2011-09-22  Bruno Haible  <bruno@clisp.org>
48332         strerror_r-posix: Avoid a link error on MSVC.
48333         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48334         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48336 2011-09-22  Bruno Haible  <bruno@clisp.org>
48338         select: Avoid link errors on MSVC.
48339         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48340         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48341         * modules/pselect (Link): Likewise.
48342         * NEWS: Mention the change.
48343         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48344         test-select-stdin against $(LIB_SELECT).
48345         * modules/pselect-tests (Makefile.am): Link test-pselect against
48346         $(LIB_SELECT).
48348 2011-09-22  Bruno Haible  <bruno@clisp.org>
48350         select: Avoid compilation error on MSVC.
48351         * lib/select.c: Don't include <stdbool.h>.
48353 2011-09-21  Bruno Haible  <bruno@clisp.org>
48355         Consolidate all uses of PATH_MAX in *.m4 files.
48356         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48357         macros.
48358         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48359         and gl_PATHMAX_SNIPPET.
48360         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48361         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48362         * modules/chdir-long (Files): Add m4/pathmax.m4.
48363         * modules/getcwd (Files): Likewise.
48365 2011-09-21  Bruno Haible  <bruno@clisp.org>
48367         ftruncate: Un-deprecate, concentrate on Win32 support.
48368         * modules/ftruncate (Status, Notice): Remove sections.
48369         (Depends-on): Add largefile.
48370         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48371         non-mingw platforms.
48372         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48373         include <io.h>.
48374         * modules/perror-tests (Depends-on): Add ftruncate.
48375         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48376         'ftruncate' module.
48378 2011-09-21  Bruno Haible  <bruno@clisp.org>
48380         Add dependencies to new dirent related modules.
48381         * modules/opendir (Depends-on): Add closedir.
48382         * modules/getcwd (Depends-on): Add opendir, closedir.
48383         * modules/dirent-safer-tests (Depends-on): Likewise.
48384         * modules/fdopendir-tests (Depends-on): Likewise.
48385         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48386         * modules/renameat-tests (Depends-on): Likewise.
48388 2011-09-21  Bruno Haible  <bruno@clisp.org>
48390         opendir: Avoid compilation error on mingw.
48391         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48392         * modules/opendir (Depends-on): Add unistd.
48394 2011-09-21  Bruno Haible  <bruno@clisp.org>
48396         ftruncate tests: Avoid a test failure on mingw.
48397         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48399 2011-09-21  Bruno Haible  <bruno@clisp.org>
48401         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48402         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48403         native Windows.
48405 2011-09-21  Bruno Haible  <bruno@clisp.org>
48407         New module 'fdopen'.
48408         * lib/stdio.in.h (fdopen): New declaration.
48409         * lib/fdopen.c: New file.
48410         * m4/fdopen.m4: New file.
48411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48412         REPLACE_FDOPEN.
48413         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48414         REPLACE_FDOPEN.
48415         * modules/fdopen: New file.
48416         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48417         * tests/test-stdio-c++.cc: Check signature of fdopen.
48418         * doc/posix-functions/fdopen.texi: Mention the new module.
48420 2011-09-21  Bruno Haible  <bruno@clisp.org>
48422         unlockpt tests: Avoid test failure on NetBSD 5.1.
48423         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48424         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48426 2011-09-21  Bruno Haible  <bruno@clisp.org>
48428         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48429         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48430         * tests/test-getlogin_r.c (main): Likewise.
48432 2011-09-20  Bruno Haible  <bruno@clisp.org>
48434         time tests: Don't require pid_t.
48435         * doc/posix-headers/time.texi: Revert last change.
48436         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48437         * tests/test-time.c: Comment out the check for pid_t.
48439 2011-09-20  Bruno Haible  <bruno@clisp.org>
48441         fsync tests: Avoid a test failure on mingw.
48442         * tests/test-fsync.c (main): Allow a failure with EIO.
48444 2011-09-20  Bruno Haible  <bruno@clisp.org>
48446         euidaccess: Update comments.
48447         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48449 2011-09-20  Bruno Haible  <bruno@clisp.org>
48451         Ensure EBADF returns for socket functions on mingw.
48452         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48453         descriptor is invalid.
48454         * lib/bind.c (rpl_bind): Likewise.
48455         * lib/connect.c (rpl_connect): Likewise.
48456         * lib/getpeername.c (rpl_getpeername): Likewise.
48457         * lib/getsockname.c (rpl_getsockname): Likewise.
48458         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48459         * lib/listen.c (rpl_listen): Likewise.
48460         * lib/recv.c (rpl_recv): Likewise.
48461         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48462         * lib/send.c (rpl_send): Likewise.
48463         * lib/sendto.c (rpl_sendto): Likewise.
48464         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48465         * lib/shutdown.c (rpl_shutdown): Likewise.
48467 2011-09-20  Bruno Haible  <bruno@clisp.org>
48469         select tests: EBADF tests.
48470         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48471         test_bad_fd): New functions.
48472         (test_function): Invoke also test_bad_fd.
48474 2011-09-20  Bruno Haible  <bruno@clisp.org>
48476         Tests for module 'posix_spawn_file_actions_addopen.
48477         * modules/posix_spawn_file_actions_addopen-tests: New file.
48478         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48480         Tests for module 'posix_spawn_file_actions_adddup2'.
48481         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48482         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48484         Tests for module 'posix_spawn_file_actions_addclose'.
48485         * modules/posix_spawn_file_actions_addclose-tests: New file.
48486         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48488 2011-09-20  Bruno Haible  <bruno@clisp.org>
48490         Tests for module 'unlockpt'.
48491         * modules/unlockpt-tests: New file.
48492         * tests/test-unlockpt.c: New file.
48493         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48495         Tests for module 'grantpt'.
48496         * modules/grantpt-tests: New file.
48497         * tests/test-grantpt.c: New file.
48498         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48500 2011-09-20  Bruno Haible  <bruno@clisp.org>
48502         freopen tests: EBADF tests.
48503         * tests/test-freopen.c: Include errno.h, unistd.h.
48504         (main): Add tests for EBADF, commented out for the moment.
48506         fclose tests: EBADF tests.
48507         * tests/test-fclose.c (main): Add tests for EBADF.
48509         fflush tests: EBADF tests.
48510         * tests/test-fflush.c: Include errno.h, macros.h.
48511         (main): Add tests for EBADF.
48513         ftello tests: EBADF tests.
48514         * tests/test-ftello4.sh: New file.
48515         * tests/test-ftello4.c: New file.
48516         * modules/ftello-tests (Files): Add them.
48517         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
48519         fseeko tests: EBADF tests.
48520         * tests/test-fseeko4.sh: New file.
48521         * tests/test-fseeko4.c: New file.
48522         * modules/fseeko-tests (Files): Add them.
48523         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
48525         Tests for function fputc().
48526         * modules/fputc-tests: New file.
48527         * tests/test-fputc.c: New file.
48528         * modules/stdio-tests (Depends-on): Add fputc-tests.
48530         Tests for function fgetc().
48531         * modules/fgetc-tests: New file.
48532         * tests/test-fgetc.c: New file.
48533         * modules/stdio-tests (Depends-on): Add fgetc-tests.
48535         Tests for function fdopen().
48536         * modules/fdopen-tests: New file.
48537         * tests/test-fdopen.c: New file.
48538         * modules/stdio-tests (Depends-on): Add fdopen-tests.
48540         Tests for module 'vdprintf'.
48541         * modules/vdprintf-tests: New file.
48542         * tests/test-vdprintf.c: New file.
48544         Tests for module 'dprintf'.
48545         * modules/dprintf-tests: New file.
48546         * tests/test-dprintf.c: New file.
48548 2011-09-20  Bruno Haible  <bruno@clisp.org>
48550         Tests for module 'ioctl'.
48551         * modules/ioctl-tests: New file.
48552         * tests/test-ioctl.c: New file.
48554 2011-09-20  Bruno Haible  <bruno@clisp.org>
48556         fcntl tests: EBADF tests.
48557         * tests/test-fcntl.c (main): Add more tests for EBADF.
48559 2011-09-20  Bruno Haible  <bruno@clisp.org>
48561         utimensat tests: EBADF tests.
48562         * tests/test-utimensat.c (main): Add tests for EBADF.
48564         renameat tests: EBADF tests.
48565         * tests/test-renameat.c (main): Add tests for EBADF.
48567         mkfifoat tests: EBADF tests.
48568         * tests/test-mkfifoat.c (main): Add tests for EBADF.
48570         readlinkat tests: EBADF tests.
48571         * tests/test-readlinkat.c (main): Add tests for EBADF.
48573         symlinkat tests: EBADF tests.
48574         * tests/test-symlinkat.c (main): Add tests for EBADF.
48576         linkat tests: EBADF tests.
48577         * tests/test-linkat.c (main): Add tests for EBADF.
48579         Tests for module 'faccessat'.
48580         * modules/faccessat-tests: New file.
48581         * tests/test-faccessat.c: New file.
48583         fdopendir tests: EBADF tests.
48584         * tests/test-fdopendir.c (main): Add more tests for EBADF.
48586         openat tests: EBADF tests.
48587         * tests/test-fchownat.c (main): Add tests for EBADF.
48588         * tests/test-fstatat.c (main): Likewise.
48589         * tests/test-mkdirat.c (main): Likewise.
48590         * tests/test-openat.c (main): Likewise.
48591         * tests/test-unlinkat.c (main): Likewise.
48592         * tests/test-fchmodat.c: New file.
48593         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48594         (Makefile.am): Also run 'test-fchmodat'.
48596 2011-09-20  Bruno Haible  <bruno@clisp.org>
48598         utimens, futimens, fdutimensat tests: EBADF tests.
48599         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48601         Tests for function fstat().
48602         * modules/fstat-tests: New file.
48603         * tests/test-fstat.c: New file.
48604         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48606 2011-09-20  Bruno Haible  <bruno@clisp.org>
48608         test-ttyname_r tests: EBADF tests.
48609         * tests/test-ttyname_r.c (main): Add tests for EBADF.
48611         Tests for module 'isatty'.
48612         * modules/isatty-tests: New file.
48613         * tests/test-isatty.c: New file.
48615         Tests for module 'write'.
48616         * modules/write-tests: New file.
48617         * tests/test-write.c: New file.
48619         Tests for module 'read'.
48620         * modules/read-tests: New file.
48621         * tests/test-read.c: New file.
48623         pwrite tests: EBADF tests.
48624         * tests/test-pwrite.c (main): Add tests for EBADF.
48626         pread tests: EBADF tests.
48627         * tests/test-pread.c (main): Add tests for EBADF.
48629         lseek tests: EBADF tests.
48630         * tests/test-lseek.c (main): Add more tests for EBADF.
48632         Tests for module 'ftruncate'.
48633         * modules/ftruncate-tests: New file.
48634         * tests/test-ftruncate.sh: New file.
48635         * tests/test-ftruncate.c: New file.
48637         fsync tests: EBADF tests.
48638         * tests/test-fsync.c (main): Add more tests for EBADF.
48640         fdatasync tests: EBADF tests.
48641         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48643         Tests for module 'fchown'.
48644         * modules/fchown-tests: New file.
48645         * tests/test-fchown.c: New file.
48647         Tests for module 'fchmod'.
48648         * modules/fchmod-tests: New file.
48649         * tests/test-fchmod.c: New file.
48651         fchdir tests: EBADF tests.
48652         * tests/test-fchdir.c (main): Add more tests for EBADF.
48654         dup2 tests: EBADF tests.
48655         * tests/test-dup2.c (main): Add more tests for EBADF.
48657         Tests for module 'dup'.
48658         * modules/dup-tests: New file.
48659         * tests/test-dup.c: New file.
48661         Tests for module 'close'.
48662         * modules/close-tests: New file.
48663         * tests/test-close.c: New file.
48665 2011-09-20  Bruno Haible  <bruno@clisp.org>
48667         Tests for module 'shutdown'.
48668         * modules/shutdown-tests: New file.
48669         * tests/test-shutdown.c: New file.
48671         Tests for module 'setsockopt'.
48672         * modules/setsockopt-tests: New file.
48673         * tests/test-setsockopt.c: New file.
48675         Tests for module 'sendto'.
48676         * modules/sendto-tests: New file.
48677         * tests/test-sendto.c: New file.
48679         Tests for module 'send'.
48680         * modules/send-tests: New file.
48681         * tests/test-send.c: New file.
48683         Tests for module 'recvfrom'.
48684         * modules/recvfrom-tests: New file.
48685         * tests/test-recvfrom.c: New file.
48687         Tests for module 'recv'.
48688         * modules/recv-tests: New file.
48689         * tests/test-recv.c: New file.
48691         Tests for module 'listen'.
48692         * modules/listen-tests: New file.
48693         * tests/test-listen.c: New file.
48695         Tests for module 'getsockopt'.
48696         * modules/getsockopt-tests: New file.
48697         * tests/test-getsockopt.c: New file.
48699         Tests for module 'getsockname'.
48700         * modules/getsockname-tests: New file.
48701         * tests/test-getsockname.c: New file.
48703         Tests for module 'getpeername'.
48704         * modules/getpeername-tests: New file.
48705         * tests/test-getpeername.c: New file.
48707         Tests for module 'connect'.
48708         * modules/connect-tests: New file.
48709         * tests/test-connect.c: New file.
48711         Tests for module 'bind'.
48712         * modules/bind-tests: New file.
48713         * tests/test-bind.c: New file.
48715         accept4 tests: Fix for native Windows.
48716         * tests/test-accept4.c: Include sockets.h.
48717         (main): Invoke gl_sockets_startup.
48718         * modules/accept4-tests (Depends-on): Add sockets.
48720         accept tests: Fix for native Windows.
48721         * tests/test-accept.c: Include sockets.h.
48722         (main): Invoke gl_sockets_startup.
48723         * modules/accept-tests (Depends-on): Add sockets.
48725 2011-09-19  Bruno Haible  <bruno@clisp.org>
48727         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48728         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48729         do...while(0).
48730         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48731         Suggested by Paul Eggert.
48733 2011-09-19  Bruno Haible  <bruno@clisp.org>
48735         sched: Ensure pid_t is defined.
48736         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48737         not define pid_t.
48738         * lib/sched.in.h: Include <sys/types.h>.
48739         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48742 2011-09-19  Bruno Haible  <bruno@clisp.org>
48744         msvc-inval: Ensure the entire expansion is a single statement.
48745         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48746         of braces.
48748 2011-09-19  Jim Meyering  <meyering@redhat.com>
48750         tests: use printf, not echo in init.sh's warn_ function
48751         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48752         misbehave when given strings containing a backslash or starting
48753         with e.g., -n.  James Youngman suggested setting IFS.
48755 2011-09-19  Eric Blake  <eblake@redhat.com>
48757         futimens: enhance test
48758         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48759         closed non-negative fd.
48761         date: accept 'hence' as opposite of 'ago'
48762         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48763         * tests/test-parse-datetime.c (main): Enhance test.
48764         Suggested by Jesse Wilson.
48766 2011-09-19  Jim Meyering  <meyering@redhat.com>
48768         getcwd: don't fail in a deep directory on a system without openat
48769         Before this change, getcwd would fail when called from a directory
48770         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48771         the non-openat implementation used "..", "../..", "../../..", etc.
48772         to access ancestor directories.  With too many, that string would
48773         be longer than PATH_MAX.
48774         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48775         using gnulib's openat replacement.
48776         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48777         we're using the replacement function.
48779 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48781         maint.mk: avoid warnings from perl about missing files
48782         * top/maint.mk (def_sym_regex): Ignore files listed in
48783         $(gl_other_headers_) that do not exist, say because a project
48784         does not use a corresponding module.
48786 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48788         stat: use pathmax.h only if needed
48789         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48790         This is better for Emacs, which does not have a mingw port and
48791         therefore can avoid the pathmax module.
48793         utimens: remove dependency on dup2
48794         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48795         to work around the Linux kernel bug.
48796         * modules/utimens (Depends-on): Remove dup2.
48798 2011-09-18  Bruno Haible  <bruno@clisp.org>
48800         inet_ntop, inet_pton: Look for it also in libresolv.
48801         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48802         libnsl, search for it in libresolv.
48803         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48804         Needed on Solaris 7.
48806 2011-09-18  Bruno Haible  <bruno@clisp.org>
48808         accept, accept4 tests: Avoid link error on Solaris.
48809         * modules/accept-tests (Makefile.am): Link test-accept against
48810         $(LIBSOCKET).
48811         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48812         $(LIBSOCKET).
48814         accept4: Avoid link error on Solaris.
48815         * modules/accept4 (Link): New section.
48817         socket functions: Avoid link errors on Solaris.
48818         * modules/accept (Depends-on): Add socketlib.
48819         (Link): New section.
48820         * modules/bind (Depends-on): Add socketlib.
48821         (Link): New section.
48822         * modules/connect (Depends-on): Add socketlib.
48823         (Link): New section.
48824         * modules/getpeername (Depends-on): Add socketlib.
48825         (Link): New section.
48826         * modules/getsockname (Depends-on): Add socketlib.
48827         (Link): New section.
48828         * modules/getsockopt (Depends-on): Add socketlib.
48829         (Link): New section.
48830         * modules/listen (Depends-on): Add socketlib.
48831         (Link): New section.
48832         * modules/recv (Depends-on): Add socketlib.
48833         (Link): New section.
48834         * modules/recvfrom (Depends-on): Add socketlib.
48835         (Link): New section.
48836         * modules/send (Depends-on): Add socketlib.
48837         (Link): New section.
48838         * modules/sendto (Depends-on): Add socketlib.
48839         (Link): New section.
48840         * modules/setsockopt (Depends-on): Add socketlib.
48841         (Link): New section.
48842         * modules/shutdown (Depends-on): Add socketlib.
48843         (Link): New section.
48844         * modules/socket (Depends-on): Add socketlib.
48845         (Link): New section.
48847 2011-09-18  Bruno Haible  <bruno@clisp.org>
48849         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48850         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48851         than 5 seconds.
48852         * modules/ptsname-tests (configure.ac): Test for alarm.
48854 2011-09-18  Bruno Haible  <bruno@clisp.org>
48856         posix_spawn_file_actions_add*: Fix module dependencies.
48857         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48858         posix_spawn_file_actions_init.
48859         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48860         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48862 2011-09-18  Bruno Haible  <bruno@clisp.org>
48864         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48865         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48866         * tests/test-renameat.c (main): Likewise.
48868 2011-09-18  Bruno Haible  <bruno@clisp.org>
48870         Tests for module 'accept4'.
48871         * modules/accept4-tests: New file.
48872         * tests/test-accept4.c: New file.
48874 2011-09-18  Bruno Haible  <bruno@clisp.org>
48876         Tests for module 'accept'.
48877         * modules/accept-tests: New file.
48878         * tests/test-accept.c: New file.
48880 2011-09-18  Bruno Haible  <bruno@clisp.org>
48882         dup2: Support for MSVC.
48883         * lib/dup2.c: Include msvc-inval.h.
48884         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48885         _get_osfhandle calls.
48886         * modules/dup2 (Depends-on): Add msvc-inval.
48887         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48889         New module 'msvc-inval'.
48890         * lib/msvc-inval.h: New file.
48891         * lib/msvc-inval.c: New file.
48892         * m4/msvc-inval.m4: New file.
48893         * modules/msvc-inval: New file.
48895 2011-09-17  Bruno Haible  <bruno@clisp.org>
48897         Tests for module 'pclose'.
48898         * modules/pclose-tests: New file.
48900         New module 'pclose'.
48901         * lib/stdio.in.h (pclose): New declaration.
48902         * lib/pclose.c: New file.
48903         * m4/pclose.m4: New file.
48904         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48905         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48906         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48907         * modules/pclose: New file.
48908         * modules/popen-tests (Depends-on): Add pclose.
48909         * modules/popen-safer-tests (Depends-on): Likewise.
48910         * doc/posix-functions/pclose.texi: Mention the new module.
48912 2011-09-17  Bruno Haible  <bruno@clisp.org>
48914         popen: Support for MSVC.
48915         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48916         * lib/popen.c (popen): Provide alternate definition for native Windows.
48917         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48919         * modules/popen (Depends-on, configure.ac): Update condition.
48920         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48921         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48922         fixed.
48924 2011-09-17  Bruno Haible  <bruno@clisp.org>
48926         isnanl, isnand, isnanf: Work around MSVC bug.
48927         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48929 2011-09-17  Bruno Haible  <bruno@clisp.org>
48931         sys_socket tests: Fix recent mistake.
48932         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48934 2011-09-17  Bruno Haible  <bruno@clisp.org>
48936         putenv: Support for MSVC.
48937         * modules/putenv (Depends-on): Add environ.
48938         * lib/putenv.c (environ): Disable declaration.
48939         * lib/unistd.in.h: Update comment.
48941 2011-09-17  Bruno Haible  <bruno@clisp.org>
48943         math: Avoid macro redefinition warnings on MSVC.
48944         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
48945         Undefine before redefining.
48947 2011-09-17  Bruno Haible  <bruno@clisp.org>
48949         doc: Mention functions which are declared as macros.
48950         * doc/posix-functions/*[fl].texi: Mention that some functions are
48951         defined as macros with arguments only.
48953 2011-09-17  Bruno Haible  <bruno@clisp.org>
48955         Add dependencies to new dirent related modules.
48956         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48957         * modules/fts (Depends-on): Likewise.
48958         * modules/glob (Depends-on): Likewise.
48959         * modules/savedir (Depends-on): Likewise.
48960         * modules/scandir (Depends-on): Likewise.
48961         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48962         * modules/fdopendir (Depends-on): Add opendir.
48964 2011-09-17  Bruno Haible  <bruno@clisp.org>
48966         inet_pton: Support for MSVC on Windows Vista or newer.
48967         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48968         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48969         HAVE_DECL_INET_PTON is defined.
48970         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48971         On platforms with <winsock2.h>, test whether inet_pton is declared in
48972         <ws2tcpip.h>. If so, arrange to replace it.
48973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48974         REPLACE_INET_PTON.
48975         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48976         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48977         (Depends-on, configure.ac): Update condition.
48978         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48980 2011-09-17  Bruno Haible  <bruno@clisp.org>
48982         inet_ntop: Support for MSVC on Windows Vista or newer.
48983         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48984         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48985         HAVE_DECL_INET_NTOP is defined.
48986         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48987         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48988         <ws2tcpip.h>. If so, arrange to replace it.
48989         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48990         REPLACE_INET_NTOP.
48991         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48992         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48993         (Depends-on, configure.ac): Update condition.
48994         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48996 2011-09-16  Eric Blake  <eblake@redhat.com>
48998         test-fsync: yet another enhancement
48999         * tests/test-fsync.c (main): Also test behavior on read-only text
49000         file.
49002 2011-09-16  Bruno Haible  <bruno@clisp.org>
49004         Enhance fsync, fdatasync tests.
49005         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49006         * tests/test-fdatasync.c (main): Likewise.
49008 2011-09-16  Bruno Haible  <bruno@clisp.org>
49010         Support for MSVC compiler: Ensure mode_t gets defined.
49011         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49012         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49014         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49015         * tests/test-fcntl-h.c: Check that mode_t is defined.
49016         * tests/test-sys_stat.c: Likewise.
49017         * tests/test-sys_types.c: Likewise.
49018         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49019         * doc/posix-headers/sys_stat.texi: Likewise.
49020         * doc/posix-headers/sys_types.texi: Likewise.
49022 2011-09-16  Bruno Haible  <bruno@clisp.org>
49024         sys_stat: Support for MSVC.
49025         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49026         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49027         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49028         MSVC.
49030 2011-09-16  Bruno Haible  <bruno@clisp.org>
49032         Support for MSVC compiler: Ensure off_t gets defined.
49033         * lib/unistd.in.h: Include <sys/types.h>.
49034         * tests/test-fcntl-h.c: Check that off_t is defined.
49035         * tests/test-sys_stat.c: Likewise.
49036         * tests/test-sys_types.c: Likewise.
49038 2011-09-16  Eric Blake  <eblake@redhat.com>
49040         fdatasync: port to Solaris
49041         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49042         * modules/fdatasync (Link): Document it.
49043         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49045         fdatasync: port to MacOS X 10.7
49046         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49047         declared.
49048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49049         * modules/unistd (Makefile.am): Substitute it.
49050         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49051         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49053         fdatasync: minor improvements
49054         * modules/fdatasync (Depends-on): Add condition for fsync.
49055         * lib/fdatasync.c (fdatasync): Add comment.
49056         * tests/test-unistd-c++.cc: Test fdatasync.
49058         unistd: update refs to newer POSIX
49059         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49060         Suggested by Bruno Haible.
49062         fdatasync: new module
49063         * modules/fsync (Description): Document difference to fdatasync.
49064         * modules/fdatasync: New module.
49065         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49066         * lib/fdatasync.c (fdatasync): Likewise.
49067         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49068         defaults.
49069         * modules/unistd (Makefile.am): Set witnesses.
49070         * lib/unistd.in.h (fdatasync): Declare.
49071         * MODULES.html.sh: Document it.
49072         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49073         * modules/fdatasync-tests: New test.
49074         * tests/test-fdatasync.c: Likewise.
49076 2011-09-16  Eric Blake  <eblake@redhat.com>
49078         test-fsync: enhance tests
49079         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49080         * tests/test-fsync.c (main): Enhance test.
49082 2011-09-15  Bruno Haible  <bruno@clisp.org>
49084         Support for MSVC compiler: Ensure ssize_t gets defined.
49085         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49086         * doc/posix-headers/stdio.texi: Likewise.
49087         * modules/stdio (Depends-on): Add ssize_t.
49088         * modules/sys_socket (Depends-on): Likewise.
49089         * modules/sys_types (Depends-on): Likewise.
49090         * modules/sys_uio (Depends-on): Likewise.
49091         * modules/unistd (Depends-on): Likewise.
49092         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49093         * tests/test-sys_types.c: Check that ssize_t is defined.
49095 2011-09-14  Bruno Haible  <bruno@clisp.org>
49097         Avoid using #, the m4 comment starter character, near brackets.
49098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49099         delimiter character in sed expressions.
49100         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49101         Suggested by Eric Blake.
49103         Properly quote AC_CHECK_DECLS' 4th argument.
49104         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49105         argument.
49106         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49107         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49108         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49109         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49110         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49111         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49114         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49115         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49116         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49117         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49118         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49119         * m4/isinf.m4 (gl_ISINF): Likewise.
49120         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49121         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49123         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49126         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49127         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49128         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49129         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49130         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49131         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49133         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49135         Reported by Eric Blake.
49137         Properly quote AC_CHECK_DECL's 4th argument.
49138         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49139         argument.
49140         * m4/argp.m4 (gl_ARGP): Likewise.
49141         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49142         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49143         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49144         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49145         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49146         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49147         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49148         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49149         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49150         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49151         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49152         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49153         Reported by Eric Blake.
49155 2011-09-14  Eric Blake  <eblake@redhat.com>
49157         opendir: avoid compile warning
49158         * lib/opendir.c (includes): Always include errno.h.
49159         Reported by Tatsuro MATSUOKA.
49161 2011-09-14  Jim Meyering  <meyering@redhat.com>
49163         maint.mk: sc_tight_scope: propagate failure from sub-make
49164         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49165         Reported by Martin von Gagern.
49167 2011-09-13  Bruno Haible  <bruno@clisp.org>
49169         tempname: Support for MSVC.
49170         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49171         MSVC.
49172         * modules/tempname (Depends-on): Add fcntl-h.
49174 2011-09-13  Bruno Haible  <bruno@clisp.org>
49176         sys_time: Support for MSVC.
49177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49178         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49179         include <winsock2.h>.
49180         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49181         function declarations that collide with POSIX.
49182         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49183         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49185 2011-09-13  Bruno Haible  <bruno@clisp.org>
49187         stat: Support for MSVC.
49188         * lib/stat.c: Include pathmax.h.
49189         * modules/stat (Depends-on): Add pathmax.
49191         pathmax: Support for native Windows.
49192         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49194 2011-09-12  Bruno Haible  <bruno@clisp.org>
49196         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49197         * lib/dirent.in.h (struct dirent): New type.
49198         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49199         DT_WHT): New macros.
49200         (DIR): New type.
49201         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49202         (readdir, rewinddir): New declarations.
49203         * lib/dirent-private.h: New file.
49204         * lib/opendir.c: New file.
49205         * lib/readdir.c: New file.
49206         * lib/rewinddir.c: New file.
49207         * lib/closedir.c: New file.
49208         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49209         * m4/opendir.m4: New file.
49210         * m4/readdir.m4: New file.
49211         * m4/rewinddir.m4: New file.
49212         * m4/closedir.m4: New file.
49213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49214         REPLACE_CLOSEDIR here.
49215         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49216         readdir, rewinddir are declared.
49217         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49218         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49219         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49220         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49221         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49222         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49223         * modules/opendir: New file.
49224         * modules/readdir: New file.
49225         * modules/rewinddir: New file.
49226         * modules/closedir: New file.
49227         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49228         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49229         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49230         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49231         * NEWS: Mention the 'fchdir' change.
49233 2011-09-11  Bruno Haible  <bruno@clisp.org>
49235         asm-underscore.m4: Support for MSVC.
49236         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49237         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49239 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49241         Doc about crypt functions.
49242         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49243         needing for _GNU_SOURCE to get crypt.
49244         * doc/posix-functions/encrypt.texi: Likewise.
49245         * doc/posix-functions/setkey.texi: Likewise.
49247 2011-09-11  Bruno Haible  <bruno@clisp.org>
49249         doc: Update regarding MSVC 9.
49250         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49251         tested".
49252         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49253         * doc/posix-headers/*.texi: Likewise.
49254         * doc/pastposix-functions/*.texi: Likewise.
49255         * doc/glibc-functions/*.texi: Likewise.
49256         * doc/glibc-headers/*.texi: Likewise.
49258 2011-09-11  Bruno Haible  <bruno@clisp.org>
49260         unistd et al.: Don't assume <unistd.h> exists.
49261         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49262         does not exist.
49263         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49264         exist. But include <stdlib.h>.
49265         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49266         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49267         symlink() does not exist.
49268         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49269         include <io.h> instead.
49270         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49271         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49272         include <direct.h> instead.
49273         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49274         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49275         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49276         <io.h> instead.
49277         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49278         correctly if the system does not have hard links.
49279         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49280         <direct.h> instead.
49281         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49282         it when looking for function declarations.
49283         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49284         <direct.h> and <io.h> instead.
49285         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49287 2011-09-11  Bruno Haible  <bruno@clisp.org>
49289         strcase: Support for MSVC.
49290         * modules/strcase (Status, Notice): Remove obsoletion mark.
49291         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49292         * doc/posix-functions/strncasecmp.texi: Likewise.
49294         strings: Don't assume <strings.h> exists.
49295         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49296         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49297         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49298         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49300 2011-09-11  Bruno Haible  <bruno@clisp.org>
49302         dirent: Don't assume <dirent.h> exists.
49303         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49304         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49305         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49306         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49308 2011-09-11  Bruno Haible  <bruno@clisp.org>
49310         Fix wint_t on MSVC.
49311         * lib/wchar.in.h (wint_t): On MSVC, override it.
49312         * lib/wctype.in.h (wint_t): Likewise.
49313         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49314         MSVC.
49315         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49316         * doc/posix-headers/wctype.texi: Likewise.
49318 2011-09-11  Bruno Haible  <bruno@clisp.org>
49320         sys_types: Fix typo.
49321         * lib/sys_types.in.h: Fix typo in comment.
49322         Reported by Paul Eggert.
49324         Support for MSVC compiler: Ensure size_t gets defined.
49325         * modules/strings (Depends-on): Add 'sys_types'.
49326         * modules/sys_uio (Depends-on): Likewise.
49327         * lib/sys_uio.in.h: Update comment.
49329         C++ tests for module 'sys_types'.
49330         * modules/sys_types-c++-tests: New file.
49331         * tests/test-sys_types-c++.cc: New file.
49333         Tests for module 'sys_types'.
49334         * modules/sys_types-tests: New file.
49335         * tests/test-sys_types.c: New file.
49337         New module 'sys_types'.
49338         * lib/sys_types.in.h: New file.
49339         * m4/sys_types_h.m4: New file.
49340         * modules/sys_types: New file.
49341         * doc/posix-headers/sys_types.texi: Mention the new module and the
49342         size_t problem on MSVC 9.
49344 2011-09-11  Bruno Haible  <bruno@clisp.org>
49346         Support for MSVC compiler: Avoid division by a literal 0.
49347         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49349         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49350         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49351         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49352         * tests/infinity.h: New file.
49353         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49354         on MSVC.
49355         * tests/test-ceilf1.c: Include infinity.h.
49356         (main): Use Infinityf.
49357         * tests/test-ceil1.c: Include infinity.h.
49358         (main): Use Infinityd.
49359         * tests/test-ceill.c: Include infinity.h.
49360         (main): Use Infinityl.
49361         * tests/test-dprintf-posix.c: Include infinity.h.
49362         (test_function): Use Infinityd.
49363         * tests/test-floorf1.c: Include infinity.h.
49364         (main): Use Infinityf.
49365         * tests/test-floor1.c: Include infinity.h.
49366         (main): Use Infinityd.
49367         * tests/test-floorl.c: Include infinity.h.
49368         (main): Use Infinityl.
49369         * tests/test-fprintf-posix.c: Include infinity.h.
49370         (test_function): Use Infinityd.
49371         * tests/test-frexp.c: Include infinity.h.
49372         (main): Use Infinityd.
49373         * tests/test-frexpl.c: Include infinity.h.
49374         (main): Use Infinityl.
49375         * tests/test-isfinite.c: Include infinity.h.
49376         (test_isfinitef): Use Infinityf.
49377         (test_isfinited): Use Infinityd.
49378         (test_isfinitel): Use Infinityl.
49379         * tests/test-isinf.c: Include infinity.h.
49380         (test_isinff): Use Infinityf.
49381         (test_isinfd): Use Infinityd.
49382         (test_isinfl): Use Infinityl.
49383         * tests/test-isnan.c: Include infinity.h.
49384         (test_float): Use Infinityf.
49385         (test_double): Use Infinityd.
49386         (test_long_double): Use Infinityl.
49387         * tests/test-isnanf.h: Include infinity.h.
49388         (main): Use Infinityf.
49389         * tests/test-isnand.h: Include infinity.h.
49390         (main): Use Infinityd.
49391         * tests/test-isnanl.h: Include infinity.h.
49392         (main): Use Infinityl.
49393         * tests/test-ldexpl.c: Include infinity.h.
49394         (main): Use Infinityl.
49395         * tests/test-printf-posix.h: Include infinity.h.
49396         (test_function): Use Infinityd.
49397         * tests/test-roundf1.c: Include infinity.h.
49398         (main): Use Infinityf.
49399         * tests/test-round1.c: Include infinity.h.
49400         (main): Use Infinityd.
49401         * tests/test-roundl.c: Include infinity.h.
49402         (main): Use Infinityl.
49403         * tests/test-signbit.c: Include infinity.h.
49404         (test_signbitf): Use Infinityf.
49405         (test_signbitd): Use Infinityd.
49406         (test_signbitl): Use Infinityl.
49407         * tests/test-snprintf-posix.h: Include infinity.h.
49408         (test_function): Use Infinityd, Infinityl.
49409         * tests/test-sprintf-posix.h: Include infinity.h.
49410         (test_function): Use Infinityd, Infinityl.
49411         * tests/test-truncf1.c: Include infinity.h.
49412         (main): Use Infinityf.
49413         * tests/test-trunc1.c: Include infinity.h.
49414         (main): Use Infinityd.
49415         * tests/test-truncl.c: Include infinity.h.
49416         (main): Use Infinityl.
49417         * tests/test-vasnprintf-posix.c: Include infinity.h.
49418         (test_function): Use Infinityd, Infinityl.
49419         * tests/test-vasprintf-posix.c: Include infinity.h.
49420         (test_function): Use Infinityd, Infinityl.
49421         * modules/ceilf-tests (Files): Add tests/infinity.h.
49422         * modules/ceil-tests (Files): Likewise.
49423         * modules/ceill-tests (Files): Likewise.
49424         * modules/dprintf-posix-tests (Files): Likewise.
49425         * modules/floorf-tests (Files): Likewise.
49426         * modules/floor-tests (Files): Likewise.
49427         * modules/floorl-tests (Files): Likewise.
49428         * modules/fprintf-posix-tests (Files): Likewise.
49429         * modules/frexp-tests (Files): Likewise.
49430         * modules/frexp-nolibm-tests (Files): Likewise.
49431         * modules/frexpl-tests (Files): Likewise.
49432         * modules/frexpl-nolibm-tests (Files): Likewise.
49433         * modules/isfinite-tests (Files): Likewise.
49434         * modules/isinf-tests (Files): Likewise.
49435         * modules/isnan-tests (Files): Likewise.
49436         * modules/isnanf-tests (Files): Likewise.
49437         * modules/isnanf-nolibm-tests (Files): Likewise.
49438         * modules/isnand-tests (Files): Likewise.
49439         * modules/isnand-nolibm-tests (Files): Likewise.
49440         * modules/isnanl-tests (Files): Likewise.
49441         * modules/isnanl-nolibm-tests (Files): Likewise.
49442         * modules/ldexpl-tests (Files): Likewise.
49443         * modules/printf-posix-tests (Files): Likewise.
49444         * modules/roundf-tests (Files): Likewise.
49445         * modules/round-tests (Files): Likewise.
49446         * modules/roundl-tests (Files): Likewise.
49447         * modules/signbit-tests (Files): Likewise.
49448         * modules/snprintf-posix-tests (Files): Likewise.
49449         * modules/sprintf-posix-tests (Files): Likewise.
49450         * modules/truncf-tests (Files): Likewise.
49451         * modules/trunc-tests (Files): Likewise.
49452         * modules/truncl-tests (Files): Likewise.
49453         * modules/vasnprintf-posix-tests (Files): Likewise.
49454         * modules/vasprintf-posix-tests (Files): Likewise.
49455         * modules/vdprintf-posix-tests (Files): Likewise.
49456         * modules/vfprintf-posix-tests (Files): Likewise.
49457         * modules/vprintf-posix-tests (Files): Likewise.
49458         * modules/vsnprintf-posix-tests (Files): Likewise.
49459         * modules/vsprintf-posix-tests (Files): Likewise.
49460         * modules/xprintf-posix-tests (Files): Likewise.
49462 2011-09-11  Bruno Haible  <bruno@clisp.org>
49464         Ensure pid_t gets defined.
49465         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49466         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49467         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49468         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49469         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49470         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49471         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49472         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49473         * tests/test-fcntl-h.c: Check that pid_t is defined.
49474         * tests/test-sched.c: Likewise.
49475         * tests/test-termios.c: Likewise.
49476         * tests/test-time.c: Likewise.
49477         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49478         * doc/posix-headers/signal.texi: Likewise.
49479         * doc/posix-headers/sys_types.texi: Likewise.
49480         * doc/posix-headers/time.texi: Likewise.
49482 2011-09-11  Bruno Haible  <bruno@clisp.org>
49484         acl: Fix compilation on Solaris 10 (older version).
49485         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49486         of ACE_EVERYONE.
49487         * lib/set-mode-acl.c (qset_acl): Likewise.
49488         Reported by Christian Jullien <eligis@orange.fr>.
49490 2011-09-10  Bruno Haible  <bruno@clisp.org>
49492         iconv, unsetenv: Add support for MSVC compiler.
49493         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49494         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49496 2011-09-10  Bruno Haible  <bruno@clisp.org>
49498         *printf: Add support for MSVC compiler.
49499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49500         handles the exception caused by the %n directive. When cross-compiling,
49501         guess no on native Windows.
49502         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49503         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49504         emulate it through vsnprintf.
49505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49506         * doc/posix-functions/dprintf.texi: Update documentation regarding
49507         MSVC 9.
49508         * doc/posix-functions/fprintf.texi: Likewise.
49509         * doc/posix-functions/printf.texi: Likewise.
49510         * doc/posix-functions/snprintf.texi: Likewise.
49511         * doc/posix-functions/sprintf.texi: Likewise.
49512         * doc/posix-functions/swprintf.texi: Likewise.
49513         * doc/posix-functions/vdprintf.texi: Likewise.
49514         * doc/posix-functions/vfprintf.texi: Likewise.
49515         * doc/posix-functions/vprintf.texi: Likewise.
49516         * doc/posix-functions/vsnprintf.texi: Likewise.
49517         * doc/posix-functions/vsprintf.texi: Likewise.
49518         * doc/glibc-functions/asprintf.texi: Likewise.
49519         * doc/glibc-functions/obstack_printf.texi: Likewise.
49520         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49521         * doc/glibc-functions/vasprintf.texi: Likewise.
49523 2011-09-10  Bruno Haible  <bruno@clisp.org>
49525         nocrash: Add support for native Windows.
49526         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
49528 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
49529             Bruno Haible  <bruno@clisp.org>
49531         absolute-header, include-next: Add support for MSVC compiler.
49532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
49533         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
49534         directory separator in #line directives.
49535         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
49536         recognize also backslash as directory separator in #line directives.
49538 2011-09-08  Jim Meyering  <meyering@redhat.com>
49540         maint.mk: mark the post-release commit log with "maint: " prefix
49541         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
49542         one-line commit-log summary.
49544 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
49545             Bruno Haible  <bruno@clisp.org>
49547         Doc about crypt functions.
49548         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
49549         systems.
49550         * doc/posix-functions/encrypt.texi: Likewise.
49551         * doc/posix-functions/setkey.texi: Likewise.
49553 2011-09-08  Simon Josefsson  <simon@josefsson.org>
49555         * lib/gc.h: Fix copyright header.
49557 2011-09-07  Bruno Haible  <bruno@clisp.org>
49559         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
49560         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
49561         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
49563 2011-09-07  Bruno Haible  <bruno@clisp.org>
49565         openat: Work around compilation error with OSF/1 5.1 DTK cc.
49566         * lib/fopen.c: Use different syntax for include of <stdio.h>.
49567         * lib/freopen.c: Likewise.
49568         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
49569         * lib/lstat.c: Likewise.
49570         * lib/stat.c: Likewise.
49571         * lib/open.c: Use different syntax for include of <fcntl.h>.
49572         * lib/openat.c: Include fcntl.h again, explicitly.
49574 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
49576         parse-datetime: document the newly accepted format
49577         * doc/parse-datetime.texi (Combined date and time of day items):
49578         New section.
49580 2011-09-06  Bruno Haible  <bruno@clisp.org>
49582         acl: Fix a test failure on newer Solaris 10 with ZFS.
49583         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
49584         ENOSYS as no ACL.
49585         Reported by Jim Meyering.
49587 2011-09-06  Bruno Haible  <bruno@clisp.org>
49589         acl: Update for AIX >= 5.3 with NFS.
49590         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
49591         ENOSYS as no ACL.
49593         acl: Fix a test failure on AIX >= 5.3 with NFS.
49594         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49595         as no ACL.
49597 2011-09-06  Bruno Haible  <bruno@clisp.org>
49599         acl: Fix a test failure on IRIX 6.5 with NFS.
49600         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49601         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49602         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49603         * lib/copy-acl.c (qcopy_acl): Likewise.
49605 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49607         openat: port to AIX 7.1 with large files
49608         AIX 7.1 does a "#define openat open64at" if large files are in use,
49609         so we can't simply #undef openat.  Use the orig_openat trick (similar
49610         to orig_open in lib/open.c) to work around the problem.  Problem
49611         reported by Kevin Brott for GNU tar, in the thread containing
49612         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49613         * lib/openat.c (__need_system_fcntl_h): Define first.
49614         Include <fcntl.h> and <sys/types.h> before undefining.
49615         (orig_openat) [HAVE_OPENAT]: New inline function.
49616         (openat) [HAVE_OPENAT]: Do not undef.
49617         (rpl_openat): Use orig_openat, not openat.
49619 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49620             Bruno Haible  <bruno@clisp.org>
49622         acl: Avoid errors on NonStop Kernel.
49623         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49624         ENOTSUP errors.
49626 2011-09-05  Bruno Haible  <bruno@clisp.org>
49628         acl: Clean up Solaris code.
49629         * lib/acl-internal.h: Remove no-op #if.
49630         * lib/file-has-acl.c: Likewise.
49631         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49632         * lib/copy-acl.c (qcopy_acl): Likewise.
49634 2011-09-05  Bruno Haible  <bruno@clisp.org>
49636         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49637         binaries built on the original Solaris 10.
49638         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49639         trivial.
49641 2011-09-05  Bruno Haible  <bruno@clisp.org>
49643         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49644         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49645         10.
49646         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49647         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49648         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49649         instead of acl_get, facl_get, acl_set, facl_set.
49651 2011-09-05  Bruno Haible  <bruno@clisp.org>
49653         copy-file: Try unit tests on more file systems.
49654         * tests/test-copy-file-1.sh: New file.
49655         * tests/test-copy-file-2.sh: New file.
49656         * modules/copy-file-tests (Files): Add them.
49657         (Makefile.am): Add them to TESTS.
49659         acl: Try unit tests on more file systems.
49660         * tests/test-file-has-acl-1.sh: New file.
49661         * tests/test-file-has-acl-2.sh: New file.
49662         * tests/test-set-mode-acl-1.sh: New file.
49663         * tests/test-set-mode-acl-2.sh: New file.
49664         * tests/test-copy-acl-1.sh: New file.
49665         * tests/test-copy-acl-2.sh: New file.
49666         * modules/acl-tests (Files): Add them.
49667         (Makefile.am): Add them to TESTS.
49669 2011-09-04  Bruno Haible  <bruno@clisp.org>
49671         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49672         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49673         10.
49674         (OLD_ALLOW, OLD_DENY): New macros.
49675         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49676         ACE_ACCESS_ALLOWED_ACE_TYPE.
49677         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49678         ACE_ACCESS_DENIED_ACE_TYPE.
49679         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49680         (NEW_ACE_EXECUTE): Fix value.
49681         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49682         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49683         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49684         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49685         NEW_ACE_SYNCHRONIZE): New macros.
49686         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49687         instead of acl_fromtext, acl_set, facl_set.
49688         Fixes a coreutils/tests/cp/perm failure.
49690 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49692         openat: test for fstatat (..., 0) bug
49693         Further testing with tar suggests that fstatat (..., 0)
49694         does not work in general, on AIX 7.1; see
49695         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49696         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49697         replacement fstatat (which is what older AIX releases were using
49698         anyway).
49699         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49700         use is now changed to orig_fstatat.  This was probably the right
49701         thing to do anyway.
49702         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49703         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49704         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49705         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49706         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49707         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49708         if the bug is found.
49710         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49711         This tests for another fstatat bug on AIX 7.1:
49712         fstatat (AT_FDCWD, ..., 0) does not work.  See
49713         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49714         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49715         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49716         (rpl_fstatat): Adjust so that it works around either (or both)
49717         bugs if present.
49718         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49720 2011-09-03  Karl Berry  <karl@gnu.org>
49722         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49723         in index entries.
49725 2011-09-02  Bruno Haible  <bruno@clisp.org>
49727         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49728         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49729         values of AR, ARFLAGS, RANLIB.
49730         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49732 2011-09-02  Bruno Haible  <bruno@clisp.org>
49734         Find 'ar' program that fits with --host argument.
49735         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49737 2011-09-02  Bruno Haible  <bruno@clisp.org>
49739         tests: init.sh: Support any non-GNU diff.
49740         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49741         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49742         Solaris 8.
49744 2011-09-02  Bruno Haible  <bruno@clisp.org>
49746         tests: init.sh: work also with any non-GNU diff that supports -u
49747         * tests/init.sh: Relax check for diff -u support.
49748         Rather than checking for GNU diff via --version, simply check
49749         for support for -u itself.  Useful at least on OpenBSD 4.9,
49750         AIX 7.1, IRIX 6.5, and Solaris 10.
49752 2011-09-01  Bruno Haible  <bruno@clisp.org>
49754         strtoimax, strtoumax: Document problem on HP-UX 11.
49755         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49756         * doc/posix-functions/strtoumax.texi: Likewise.
49758 2011-09-01  Bruno Haible  <bruno@clisp.org>
49760         strtoumax: Avoid link error on OSF/1 with DTK cc.
49761         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49762         defined as a function.
49763         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49764         strtoumax is defined, not whether it is declared.
49766 2011-09-01  Bruno Haible  <bruno@clisp.org>
49768         strtoimax: Avoid link error on OSF/1 with DTK cc.
49769         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49770         defined as a function.
49771         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49772         strtoimax is defined, not whether it is declared.
49774 2011-09-01  Bruno Haible  <bruno@clisp.org>
49776         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49777         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49778         as a function.
49779         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49780         whether it is declared.
49782 2011-09-01  Bruno Haible  <bruno@clisp.org>
49784         imaxabs: Avoid link error on OSF/1 with DTK cc.
49785         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49786         as a function.
49787         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49788         whether it is declared.
49790 2011-09-01  Bruno Haible  <bruno@clisp.org>
49792         Tests for module 'strtoumax'.
49793         * modules/strtoumax-tests: New file.
49794         * tests/test-strtoumax.c: New file.
49796         Tests for module 'strtoimax'.
49797         * modules/strtoimax-tests: New file.
49798         * tests/test-strtoimax.c: New file.
49800         Tests for module 'imaxdiv'.
49801         * modules/imaxdiv-tests: New file.
49802         * tests/test-imaxdiv.c: New file.
49804         Tests for module 'imaxabs'.
49805         * modules/imaxabs-tests: New file.
49806         * tests/test-imaxabs.c: New file.
49808 2011-09-01  Bruno Haible  <bruno@clisp.org>
49810         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49811         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49812         pthread_create.
49814 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49816         openat: work around AIX 7.1 fstatat issue
49817         This should fix the problem that was not properly fixed
49818         in the previous change, dated 2011-08-30.
49819         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49820         __need_system_stat_h defined.
49821         (orig_fstatat) [HAVE_FSTATAT]: New function.
49822         (rpl_fstatat): Go back to the old way of doing things,
49823         except call orig_fstatat instead of fstatat.
49824         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49825         Remove unnecessary check whether fstatat fills in st_size etc.
49827 2011-09-01  Bruno Haible  <bruno@clisp.org>
49829         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49830         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49831         just include the system's header.
49833 2011-08-31  Jim Meyering  <meyering@redhat.com>
49835         tests: avoid spurious assertion failure in test-float.c on ppc64
49836         * tests/test-float.c (test_long_double): Comment out an assertion,
49837         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49838         with gcc-4.4.4.
49840         maint: indent with spaces, not TABs
49841         I need to get in the habit of running gnulib's "make check".
49842         Both of these would have been caught.
49843         * m4/largefile.m4: Indent with spaces, not TABs.
49844         * lib/parse-datetime.y (iso_8601_time): Likewise.
49845         Spotted by Pádraig Brady.
49847         test-parse-datetime.c: accommodate a relatively strict gcc warning
49848         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49849         to avoid a warning from gcc's -Werror=missing-declarations.
49850         Insert a few spaces-before-funcall-parenthesis.
49852 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49854         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49855         The parser now accepts ISO 8601 date-time strings with "T" as the
49856         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49857         with a space between the date and time strings.  Now it also parses
49858         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49859         variants like "2004-02-29T16:21:42.333-07:00"
49860         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49861         of day representation using the 'T' separator character.
49862         * doc/parse-datetime.texi (General date syntax): replace use of
49863         deprecated --iso-8601 option with --rfc-3339 in example of date
49864         command output formats that can be parsed.
49865         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49866         lib/parse-datetime.y.
49867         (gmt_offset): New function.
49868         (main): Add additional test cases to validate ISO8601 extended
49869         date and time of day parsing.
49871 2011-08-31  Bruno Haible  <bruno@clisp.org>
49873         freopen: Documentation.
49874         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49875         name.
49876         Reported by Claudio Bley <claudio.bley@gmail.com>.
49878 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49880         freopen: Don't crash if the filename argument is NULL.
49881         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49882         NULL.
49884 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49886         openat: work around AIX 7.1 fstatat bug
49887         Problem reported by Kevin Brott for GNU tar, in the thread containing
49888         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49889         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49890         FSTATAT_ST_SIZE_ETC_BROKEN.
49891         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49892         rpl_fstatat.
49893         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49894         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49895         AC_CHECK_FUNCS_ONCE for fstatat.
49896         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49897         fchmodat, mkdirat, openat and unlinkat.
49899 2011-08-30  Bruno Haible  <bruno@clisp.org>
49901         Avoid endless recursions if config.h includes some header files.
49902         * lib/fopen.c (__need_FILE): Define already before including config.h.
49903         * lib/freopen.c (__need_FILE): Likewise.
49904         * lib/open.c (__need_system_fcntl_h): Likewise.
49905         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49906         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49907         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49909 2011-08-25  Karl Berry  <karl@gnu.org>
49911         * config/srclist.txt (ylwrap): new try.
49912         * build-aux/ylwrap: new file.
49914 2011-08-23  Bruno Haible  <bruno@clisp.org>
49916         tmpdir: Use a good default directory on native Windows.
49917         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49918         (P_tmpdir): Default to _P_tmpdir on native Windows.
49919         (path_search): On native Windows, try the value returned by GetTempPath
49920         before trying P_tmpdir.
49921         * modules/tmpdir (Depends-on): Add pathmax.
49922         Suggested by John Darrington <john@darrington.wattle.id.au>.
49924 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49926         doc: fix typo in README-release
49927         * top/README-release: Capitalize first word of a sentence.
49929 2011-08-19  Jim Meyering  <meyering@redhat.com>
49931         fts: do not exhaust memory when processing million-entry directories
49932         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49933         directory would require about 256*N bytes of memory.  Thus, it was
49934         easy to construct a directory too large to be processed by any of
49935         those tools.  With this change, fts' maximum memory utilization is
49936         now limited to around 30MB.
49937         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
49938         (fts_read): When we've processed the final entry (i.e., when
49939         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
49940         using the parent entry to read any remaining entries.  Dispatch
49941         depending on what fts_build returns:
49942         - NULL+stop, aka failure: stop
49943         - NULL otherwise: move up in the dir hierarchy
49944         - non-NULL: handle this new entry
49945         (fts_build): Declare and use new local, continue_readdir.
49946         Prepare to be called from fts_read, when the entries
49947         from a partially-read directory have just been exhausted.
49948         In that case, we'll skip the opendir and instead use the parent's
49949         fts_dirp and derive dir_fd from that.
49950         Finally, in the readdir loop, if we read max_entries entries,
49951         exit the loop ensuring *not* to call closedir.  This is required
49952         so that fts_dirp can be reused on a subsequent call.
49953         Prompted by Ben England's report of memory exhaustion in find
49954         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49956         maint: fts: move decl of `dp' down into while loop; split a long line
49957         * lib/fts.c (fts_build): No semantic change.
49959         fts: add/use new struct member, fts_dirp
49960         We are about to use this to manage any directory with
49961         too many entries to read all of them into memory at once.
49962         To do that, we'll need to save the DIR* pointer in each
49963         affected FTSENT struct.
49964         * lib/fts_.h: Include <dirent.h>.
49965         (struct FTSENT) [fts_dirp]: New member.
49966         * lib/fts.c (closedir_and_clear): Define.
49967         Use it in place of closedir so that we are sure to
49968         clear the new fts_dirp member when done with it.
49969         (fts_alloc): Initialize the new member.
49970         (fts_lfree): Free, if needed.
49972         maint: fts: give __opendir2 a new parameter and rename
49973         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49974         than surreptitiously using sole caller's "dir_fd".
49975         (fts_opendir): Rename from __opendir2.
49977         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49978         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49980         maint: fts.c: correct off-by-one indentation
49981         * lib/fts.c (fts_build): Correct indentation, change style
49982         of a couple of block comments, and bracing style.
49984         maint: fts.c: move __opendir2 #define "up" out of function body
49985         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49987         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49988         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49989         out for a long time and besides was useful only on BSD systems.
49991 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49993         regex: port to Stratus OpenVOS
49994         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49995         define to empty, rather than attempting nonportable optimizations.
49996         Problem reported by Paul Green in:
49997         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49998         and fix suggested by Eric Blake in:
49999         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50001 2011-08-17  Eric Blake  <eblake@redhat.com>
50003         getcwd: fix test failures on mingw
50004         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50005         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50006         test if long directory cannot be created, and allow mingw errno.
50008         getcwd-lgpl: fix m4 to match relaxed test for BSD
50009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50010         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50011         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50012         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50013         signature problem.
50015         getcwd: fix compilation on mingw64
50016         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50017         getcwd.
50018         Reported by Marc-André Lureau.
50020         pipe2: silence compiler warning
50021         * lib/pipe2.c (pipe2): Hide label if it is not used.
50023 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50025         relocatable-prog: fix link error
50026         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50027         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50028         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50029         into modules/relocatable-lib without noticing that
50030         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50031         also needs to build relocatable.c.
50033 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50035         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50037         shell code: it contained a 'break' that was not in a loop.
50038         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50039         via a shell-language loop; this may have been true in old Autoconf
50040         versions, but it's not true in Autoconf 2.68.  I found this bug
50041         when testing coreutils git on Solaris 8, whose shell complains
50042         about the syntax error.
50044 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50046         * lib/base64.c: Fix comment to reference RFC 4648.
50047         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50048         <gvtulder@gmail.com>.
50050 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50052         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50054         po/Makefile.in.in: fix make -q problem
50055         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50056         rule, since there's no file named 'check-macro-version' and its
50057         use as a file breaks make -q.
50058         (all): Don't depend on check-macro-version.
50059         (CHECK_MACRO_VERSION): New macro.
50060         (stamp-po): Use it.
50062         configmake: fix make -q problem
50063         * modules/configmake (configmake.h): Update configmake.h's time stamp
50064         even if the file does not change.  Otherwise, 'make -q' fails.
50065         Problem reported by Simon Josefsson in
50066         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50068 2011-08-11  Jim Meyering  <meyering@redhat.com>
50070         git-version-gen: correct the advice in a comment
50071         * build-aux/git-version-gen: Correct comment.
50072         Don't recommend to list .tarball-version in .gitignore.
50074 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50076         base64: fix off-by-one buffer size bug
50077         Problem and (trivial) fix reported by Gijs van Tulder in
50078         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50079         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50080         * tests/test-base64.c (main): Catch the bug.
50082 2011-08-10  Eric Blake  <eblake@redhat.com>
50084         closein: correct comments
50085         * lib/closein.c (close_stdin): Improve comments.
50087 2011-08-09  Bruno Haible  <bruno@clisp.org>
50089         More tests for 'fseeko'.
50090         * tests/test-fseeko3.c: New file, from Eric Blake.
50091         * tests/test-fseeko3.sh: New file.
50092         * modules/fseeko-tests (Files): Add them.
50093         (TESTS): Add test-fseeko3.sh.
50094         (check_PROGRAMS): Add test-fseeko3.
50096 2011-08-09  Eric Blake  <eblake@redhat.com>
50098         fseeko: remove unneeded hack
50099         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50101         fseeko: fix bug on glibc
50102         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50103         Reported by John W. Eaton.
50105 2011-08-08  Bruno Haible  <bruno@clisp.org>
50107         unictype/base: Fix interoperability with preinstalled libunistring.
50108         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50109         Reported by Simon Josefsson.
50111 2011-08-08  Bruno Haible  <bruno@clisp.org>
50113         iswblank: Detect declaration correctly.
50114         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50115         AC_CHECK_DECLS invocation.
50117 2011-08-08  Bruno Haible  <bruno@clisp.org>
50119         tcgetsid: Detect declaration correctly.
50120         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50121         AC_CHECK_DECLS invocation.
50122         Reported by Simon Josefsson.
50124 2011-08-08  Eric Blake  <eblake@redhat.com>
50126         largefile: fix typo that regressed large file support
50127         * modules/largefile (configure.ac-early): Fix section name.
50129 2011-08-06  Karl Berry  <karl@gnu.org>
50131         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50132         a separate module.
50134 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50136         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50137         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50138         get prototype for free.
50140 2011-08-04  Bruno Haible  <bruno@clisp.org>
50142         Tests for module 'pathmax'.
50143         * modules/pathmax-tests: New file.
50144         * tests/test-pathmax.c: New file.
50146         canonicalize-lgpl: Support larger filenames on the Hurd.
50147         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50148         Reported by Paul Eggert.
50150         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50151         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50152         * lib/chdir-long.h: Include pathmax.h.
50153         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50154         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50155         (PATH_MAX): Remove code that is done by pathmax.h.
50156         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50157         * lib/tmpfile.c: Add a comment.
50158         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50159         * modules/chdir-long (Depends-on): Add pathmax.
50160         * modules/getcwd (Depends-on): Add pathmax.
50161         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50162         is not defined.
50163         * doc/posix-headers/limits.texi: Mention the pathmax module.
50164         * NEWS: Mention the change.
50166 2011-08-02  Bruno Haible  <bruno@clisp.org>
50168         pthread_sigmask: Actually use results of gl_THREADLIB.
50169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50170         gl_THREADLIB, not gl_[]THREADLIB.
50171         Reported by Eric Blake.
50173 2011-08-02  Jim Meyering  <meyering@redhat.com>
50175         maint.mk: relax the default _gl_TS_function_match regexp
50176         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50177         space between function name and "(" in an "extern" declaration.
50178         That would fail to match a decl with no space there: extern void foo();
50180 2011-07-31  Iain Nicol  <iain@thenicols.net>
50182         git-version-gen: document that EXTRA_DIST must include .version
50183         * build-aux/git-version-gen: In the how-to-use comment, document
50184         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50185         will fail when run from an unpacked distribution tarball.
50187 2011-08-01  Bruno Haible  <bruno@clisp.org>
50189         wctype-h: Fix last change.
50190         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50191         REPLACE_TOWLOWER to 0.
50192         Reported by Sam Steingold <sds@gnu.org>.
50194 2011-07-31  Bruno Haible  <bruno@clisp.org>
50196         frexpl: Update autoconf test.
50197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50198         according to changes of 2011-06-20.
50200 2011-07-31  Bruno Haible  <bruno@clisp.org>
50202         sys_utsname: Add support for Minix.
50203         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50204         <sys/utsname.h>.
50205         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50206         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50208 2011-07-31  Bruno Haible  <bruno@clisp.org>
50210         strings: Add support for Minix.
50211         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50212         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50213         * doc/posix-headers/strings.texi: Document the Minix problem.
50215 2011-07-31  Bruno Haible  <bruno@clisp.org>
50217         wctype-h: Add support for Minix.
50218         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50219         REPLACE_TOWLOWER.
50220         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50221         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50222         REPLACE_ISWCNTRL.
50224 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50226         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50227         This is a performance improvement for 64-bit hosts: it causes the
50228         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50230 2011-07-31  Bruno Haible  <bruno@clisp.org>
50232         stdioext: Add support for Minix.
50233         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50234         * lib/fpurge.c (fpurge): Likewise.
50235         * lib/freadahead.c (freadahead): Likewise.
50236         * lib/freadable.c (freadable): Likewise.
50237         * lib/freading.c (freading): Likewise.
50238         * lib/freadptr.c (freadptr): Likewise.
50239         * lib/freadseek.c (freadptrinc): Likewise.
50240         * lib/fseeko.c (rpl_fseeko): Likewise.
50241         * lib/fseterr.c (fseterr): Likewise.
50242         * lib/fwritable.c (fwritable): Likewise.
50243         * lib/fwriting.c (fwriting): Likewise.
50244         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50245         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50247 2011-07-31  Bruno Haible  <bruno@clisp.org>
50249         errno: Port to Minix.
50250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50251         ECONNABORTED are defined.
50252         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50253         GNULIB_defined_ECONNABORTED): New macros.
50254         * lib/strerror-override.h (strerror_override): Test also
50255         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50256         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50257         ECONNABORTED.
50258         * doc/posix-headers/errno.texi: Mention the Minix problem.
50260 2011-07-31  Bruno Haible  <bruno@clisp.org>
50262         Work around declaration collisions on Minix.
50263         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50264         defined, set REPLACE_MBSINIT.
50265         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50266         defined, set REPLACE_MBRTOWC.
50267         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50268         set REPLACE_MBRLEN.
50269         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50270         defined, set REPLACE_MBSRTOWCS.
50271         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50272         defined, set REPLACE_WCRTOMB.
50273         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50274         defined, set REPLACE_WCSRTOMBS.
50276 2011-07-31  Bruno Haible  <bruno@clisp.org>
50278         Add support for Minix with ACK compiler.
50279         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50280         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50281         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50283 2011-07-31  Bruno Haible  <bruno@clisp.org>
50285         Documentation about Minix.
50286         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50287         * doc/glibc-headers/*.texi: Likewise.
50288         * doc/posix-functions/*.texi: Likewise.
50289         * doc/glibc-functions/*.texi: Likewise.
50291 2011-07-31  Bruno Haible  <bruno@clisp.org>
50293         snippet/warn-on-use: Fix indentation.
50294         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50296 2011-07-25  Jim Meyering  <meyering@redhat.com>
50298         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50299         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50300         commands.
50302 2011-07-27  Jim Meyering  <meyering@redhat.com>
50304         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50305         * top/maint.mk (gl_extract_significant_defines_): Now that
50306         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50307         gnulib/lib/signal.in.h, and now that we recommend to
50308         define-if-undefined those two symbols in application code,
50309         we must filter them out of the "significant" list.
50310         This avoids a "make syntax-check" failure in coreutils.
50312 2011-07-26  Eric Blake  <eblake@redhat.com>
50314         warnings: add comments about previous patch
50315         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50316         * m4/include_next.m4: Likewise.
50317         * m4/warn-on-use.m4: Likewise.
50318         * m4/warnings.m4: Likewise, and simplify use.
50319         Suggested by Stefano Lattarini.
50321         include-next, warnings: support older autoconf
50322         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50323         AS_VAR_PUSHDEF in a way that works with older autoconf.
50324         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50325         Reported by Daniel P. Berrange.
50327 2011-07-25  Bruno Haible  <bruno@clisp.org>
50329         fseek, ftell: Fix doc.
50330         * doc/posix-functions/fseek.texi: Reword statement about
50331         AC_SYS_LARGEFILE.
50332         * doc/posix-functions/ftell.texi: Likewise.
50334 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50335             Bruno Haible  <bruno@clisp.org>
50337         Add dependencies to the 'largefile' module.
50338         * modules/fopen (Depends-on): Add 'largefile'.
50339         * modules/freopen (Depends-on): Likewise.
50340         * modules/fseeko (Depends-on): Likewise.
50341         * modules/ftello (Depends-on): Likewise.
50342         * modules/glob (Depends-on): Likewise.
50343         * modules/lseek (Depends-on): Likewise.
50344         * modules/lstat (Depends-on): Likewise.
50345         * modules/mkostemp (Depends-on): Likewise.
50346         * modules/mkostemps (Depends-on): Likewise.
50347         * modules/mkstemp (Depends-on): Likewise.
50348         * modules/mkstemps (Depends-on): Likewise.
50349         * modules/open (Depends-on): Likewise.
50350         * modules/openat (Depends-on): Likewise.
50351         * modules/pread (Depends-on): Likewise.
50352         * modules/pwrite (Depends-on): Likewise.
50353         * modules/scandir (Depends-on): Likewise.
50354         * modules/stat (Depends-on): Likewise.
50355         * modules/tmpfile (Depends-on): Likewise.
50356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50357         since the containing module now depends on the largefile module.
50358         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50359         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50360         off_t is fixed by gnulib.
50361         * doc/posix-functions/freopen.texi: Likewise.
50362         * doc/posix-functions/fseeko.texi: Likewise.
50363         * doc/posix-functions/fstatat.texi: Likewise.
50364         * doc/posix-functions/ftello.texi: Likewise.
50365         * doc/posix-functions/glob.texi: Likewise.
50366         * doc/posix-functions/lseek.texi: Likewise.
50367         * doc/posix-functions/lstat.texi: Likewise.
50368         * doc/posix-functions/mkstemp.texi: Likewise.
50369         * doc/posix-functions/open.texi: Likewise.
50370         * doc/posix-functions/openat.texi: Likewise.
50371         * doc/posix-functions/pread.texi: Likewise.
50372         * doc/posix-functions/pwrite.texi: Likewise.
50373         * doc/posix-functions/scandir.texi: Likewise.
50374         * doc/posix-functions/stat.texi: Likewise.
50375         * doc/posix-functions/tmpfile.texi: Likewise.
50376         * doc/glibc-functions/mkostemp.texi: Likewise.
50377         * doc/glibc-functions/mkostemps.texi: Likewise.
50378         * doc/glibc-functions/mkstemps.texi: Likewise.
50380 2011-07-25  Bruno Haible  <bruno@clisp.org>
50382         fcntl: Move AC_LIBOBJ invocation to module description.
50383         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50384         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50386         fcntl: Remove call-in from fchdir.m4.
50387         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50390         dup3: Remove potential call-in from fchdir.m4.
50391         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50394         dup2: Move AC_LIBOBJ invocation to module description.
50395         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50396         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50397         Don't invoke AC_LIBOBJ.
50398         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50400         dup2: Remove call-in from fchdir.m4.
50401         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50404         fclose: Move AC_LIBOBJ invocation to module description.
50405         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50406         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50407         to 1.
50408         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50410         fclose: Remove call-in from close.m4.
50411         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50412         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50414         close: Move AC_LIBOBJ invocation to module description.
50415         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50416         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50417         1.
50418         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50420         close: Remove call-in from fchdir.m4.
50421         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50424         open: Move AC_LIBOBJ invocation to module description.
50425         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50426         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50427         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50429         open: Remove call-in from fchdir.m4.
50430         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50433         fchdir: Start to remove gl_REPLACE_* idiom.
50434         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50435         (gl_FUNC_FCHDIR): Invoke it.
50437 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50439         * lib/ftell.c (ftell): Comment out cast.
50441         close: use gl_REPLACE_FCLOSE only if defined
50442         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50443         is defined.  The close module doesn't depend on the fclose module
50444         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50445         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50446         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50448 2011-07-24  Jim Meyering  <meyering@redhat.com>
50450         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50451         * tests/test-select.h (test_function): Declare as "static".
50453 2011-07-24  Bruno Haible  <bruno@clisp.org>
50455         doc: Mention the effects of AC_SYS_LARGEFILE.
50456         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50457         on this function.
50458         * doc/posix-functions/aio_error.texi: Likewise.
50459         * doc/posix-functions/aio_fsync.texi: Likewise.
50460         * doc/posix-functions/aio_read.texi: Likewise.
50461         * doc/posix-functions/aio_return.texi: Likewise.
50462         * doc/posix-functions/aio_suspend.texi: Likewise.
50463         * doc/posix-functions/aio_write.texi: Likewise.
50464         * doc/posix-functions/fgetpos.texi: Likewise.
50465         * doc/posix-functions/fopen.texi: Likewise.
50466         * doc/posix-functions/freopen.texi: Likewise.
50467         * doc/posix-functions/fsetpos.texi: Likewise.
50468         * doc/posix-functions/fstatvfs.texi: Likewise.
50469         * doc/posix-functions/ftruncate.texi: Likewise.
50470         * doc/posix-functions/ftw.texi: Likewise.
50471         * doc/posix-functions/getrlimit.texi: Likewise.
50472         * doc/posix-functions/glob.texi: Likewise.
50473         * doc/posix-functions/lio_listio.texi: Likewise.
50474         * doc/posix-functions/lockf.texi: Likewise.
50475         * doc/posix-functions/mkstemp.texi: Likewise.
50476         * doc/posix-functions/mmap.texi: Likewise.
50477         * doc/posix-functions/nftw.texi: Likewise.
50478         * doc/posix-functions/openat.texi: Likewise.
50479         * doc/posix-functions/opendir.texi: Likewise.
50480         * doc/posix-functions/posix_fadvise.texi: Likewise.
50481         * doc/posix-functions/posix_fallocate.texi: Likewise.
50482         * doc/posix-functions/pread.texi: Likewise.
50483         * doc/posix-functions/pwrite.texi: Likewise.
50484         * doc/posix-functions/readdir.texi: Likewise.
50485         * doc/posix-functions/readdir_r.texi: Likewise.
50486         * doc/posix-functions/rewinddir.texi: Likewise.
50487         * doc/posix-functions/scandir.texi: Likewise.
50488         * doc/posix-functions/seekdir.texi: Likewise.
50489         * doc/posix-functions/setrlimit.texi: Likewise.
50490         * doc/posix-functions/statvfs.texi: Likewise.
50491         * doc/posix-functions/telldir.texi: Likewise.
50492         * doc/posix-functions/tmpfile.texi: Likewise.
50493         * doc/posix-functions/truncate.texi: Likewise.
50494         * doc/glibc-functions/fallocate.texi: Likewise.
50495         * doc/glibc-functions/fstatfs.texi: Likewise.
50496         * doc/glibc-functions/fts_children.texi: Likewise.
50497         * doc/glibc-functions/fts_read.texi: Likewise.
50498         * doc/glibc-functions/getdirentries.texi: Likewise.
50499         * doc/glibc-functions/mkostemp.texi: Likewise.
50500         * doc/glibc-functions/mkostemps.texi: Likewise.
50501         * doc/glibc-functions/mkstemps.texi: Likewise.
50502         * doc/glibc-functions/preadv.texi: Likewise.
50503         * doc/glibc-functions/pwritev.texi: Likewise.
50504         * doc/glibc-functions/sendfile.texi: Likewise.
50505         * doc/glibc-functions/statfs.texi: Likewise.
50507 2011-07-24  Bruno Haible  <bruno@clisp.org>
50509         doc: Fix typo.
50510         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50512 2011-07-24  Bruno Haible  <bruno@clisp.org>
50514         doc: Mention fsusage.
50515         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
50517 2011-07-24  Bruno Haible  <bruno@clisp.org>
50519         doc: Mention new glibc headers and functions.
50520         * doc/glibc-headers/gshadow.texi: New file.
50521         * doc/glibc-functions/endsgent.texi: New file.
50522         * doc/glibc-functions/fgetsgent.texi: New file.
50523         * doc/glibc-functions/fgetsgent_r.texi: New file.
50524         * doc/glibc-functions/getsgent.texi: New file.
50525         * doc/glibc-functions/getsgent_r.texi: New file.
50526         * doc/glibc-functions/getsgnam.texi: New file.
50527         * doc/glibc-functions/getsgnam_r.texi: New file.
50528         * doc/glibc-functions/putsgent.texi: New file.
50529         * doc/glibc-functions/setsgent.texi: New file.
50530         * doc/glibc-functions/sgetsgent.texi: New file.
50531         * doc/glibc-functions/sgetsgent_r.texi: New file.
50532         * doc/glibc-functions/malloc_info.texi: New file.
50533         * doc/glibc-functions/preadv.texi: New file.
50534         * doc/glibc-functions/pwritev.texi: New file.
50535         * doc/glibc-functions/register_printf_modifier.texi: New file.
50536         * doc/glibc-functions/register_printf_specifier.texi: New file.
50537         * doc/glibc-functions/register_printf_type.texi: New file.
50538         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
50539         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
50540         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
50541         * doc/glibc-functions/pthread_getname_np.texi: New file.
50542         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
50543         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
50544         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
50545         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
50546         * doc/glibc-functions/pthread_setname_np.texi: New file.
50547         * doc/glibc-functions/pthread_sigqueue.texi: New file.
50548         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
50549         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
50550         * doc/glibc-functions/qsort_r.texi: New file.
50551         * doc/glibc-functions/quick_exit.texi: New file.
50552         * doc/glibc-functions/syncfs.texi: New file.
50553         * doc/gnulib.texi: Include them.
50554         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
50555         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
50556         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
50557         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
50558         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
50559         * doc/glibc-functions/execvpe.texi: Likewise.
50561 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50563         ftell: don't include <unistd.h>
50564         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
50565         guaranteed to define off_t, and the ftell module depends on the
50566         stdio module.
50568         ftell: do not assume wraparound signed arithmetic
50569         * lib/ftell.c: Include <limits.h>.
50570         (ftell): Don't assume wraparound signed arithmetic.
50572 2011-07-24  Bruno Haible  <bruno@clisp.org>
50574         close: No longer depend on module 'fclose'.
50575         * modules/close (Depends-on): Remove fclose.
50576         * NEWS: Mention the change.
50577         Suggested by Sam Steingold <sds@gnu.org>.
50579 2011-07-24  Bruno Haible  <bruno@clisp.org>
50581         fsusage: Enable large volume support on AIX >= 5.2.
50582         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
50583         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
50584         instead of STAT_STATVFS.
50585         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
50587         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
50588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
50589         f_blocks field only on MacOS X.
50591         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50593         * modules/fsusage (Depends-on): Add largefile.
50595 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50597         * README: Modernize discussion of signed integers.
50598         Assuming overflow wraparound is no longer safe.
50599         Mention ones' complement and signed magnitude.
50601 2011-07-22  Bruno Haible  <bruno@clisp.org>
50603         select tests, pselect tests: Refactor.
50604         * tests/test-select.h: New file, extracted from tests/test-select.c.
50605         (select_fn): New type.
50606         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50607         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50608         test_pipe): Add my_select argument.
50609         (test_function): Renamed from main. Add my_select argument.
50610         * tests/test-select.c: Move most code to tests/test-select.h. Include
50611         test-select.h.
50612         * modules/select-tests (Files): Add tests/test-select.h.
50613         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50614         (my_select, main): New functions.
50615         * modules/pselect-tests (Files): Add tests/test-select.h,
50616         tests/macros.h, tests/signature.h.
50617         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50618         (configure.ac): Check for <sys/wait.h>.
50620 2011-07-22  Bruno Haible  <bruno@clisp.org>
50622         sys_select tests: Check the signature of FD_*.
50623         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50624         signature tests from here...
50625         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50626         here.
50627         * modules/sys_select-tests (Files): Add tests/signature.h.
50629 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50631         largefile: new module, replacing large-inode
50632         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50633         * MODULES.html.sh: Add largefile, remove large-inode.
50634         * modules/largefile, m4/largefile.m4: New files.
50635         * modules/large-inode, m4/large-inode.m4: Remove.
50637         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50638         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50639         implementations that use only 32 bits to count blocks.
50640         On typical hosts with 1024-byte blocks, this fails with file
50641         systems as small as 4 TiB.  Problem reported by Herb Wartens
50642         <http://debbugs.gnu.org/9140> and this should also fix a similar
50643         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50645         large-inode: New module
50646         * MODULES.html.sh: Add it.
50647         * modules/large-inode, m4/large-inode.m4: New files.
50649         extensions: Enable extensions on MacOS X 10.5 and later.
50650         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50652 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50654         file-has-acl: use acl_extended_file_nofollow if available
50655         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50656         (acl_extended_file): New macro.
50657         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50658         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50660 2011-07-21  Bruno Haible  <bruno@clisp.org>
50662         Declare system functions in a way that works with C++.
50663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50664         declare fdopendir as extern "C".
50665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50666         declare frexpl as extern "C".
50667         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50668         declare gai_strerror as extern "C".
50669         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50670         programs, declare gai_strerror as extern "C".
50671         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50672         declare getlogin_r as extern "C".
50673         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50674         as extern "C".
50675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50676         declare ldexpl as extern "C".
50677         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50678         as extern "C".
50679         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50680         program, declare getmntinfo as extern "C".
50681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50682         stpncpy as extern "C".
50683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50684         program, declare __xpg_strerror_r as extern "C".
50685         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50686         strndup as extern "C".
50687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50688         declare memset and bzero as extern "C".
50689         Reported by Sam Steingold <sds@gnu.org>.
50691 2011-07-12  Jim Meyering  <meyering@redhat.com>
50693         maint.mk: prohibit inclusion of "verify.h" without use
50694         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50696 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50698         timer-time: A new module to check for timer_settime()
50699         * m4/timer_time.m4: Check for the posix function.
50700         * modules/timer-time: Add the new module.
50701         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50702         Mention it.
50704 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50705             Bruno Haible  <bruno@clisp.org>
50707         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50709         not defined, assume POSIX threads and look for pthread_sigmask in
50710         $LIBS, without changing $CPPFLAGS.
50712 2011-07-19  Bruno Haible  <bruno@clisp.org>
50714         strstr: Update cross-compilation guess.
50715         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50716         CPUs, guess no, in view of glibc
50717         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50718         Suggested by Eric Blake. Reported by Reuben Thomas.
50720 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50722         getopt-gnu: suppress core dumps from detection code
50723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50724         to suppress core dumps that may well occur on glibc systems.
50725         * modules/getopt-gnu: Depend on nocrash.
50727 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50729         pthread_sigmask: ensure usleep is declared
50730         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50731         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50733 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50735         doc: Document NonStop portability issues.
50736         * doc/posix-functions/sigaction.texi (sigaction):
50737         * doc/posix-headers/signal.texi (signal.h):
50738         Document NonStop.  See Joachim Schmitz in
50739         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50741 2011-07-15  Bruno Haible  <bruno@clisp.org>
50743         ffsl, ffsll: Avoid unportable behaviour.
50744         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50746 2011-07-15  Bruno Haible  <bruno@clisp.org>
50748         ffs: More tests.
50749         * tests/test-ffs.c (NBITS): New macro.
50750         (main): Add more tests.
50751         * tests/test-ffsl.c (NBITS): New macro.
50752         (main): Add more tests.
50753         * tests/test-ffsll.c (NBITS): New macro.
50754         (main): Add more tests.
50756 2011-07-15  Eric Blake  <eblake@redhat.com>
50758         ffsl, ffsll: new modules
50759         * modules/ffsl: New file.
50760         * modules/ffsll: Likewise.
50761         * m4/ffsl.m4: Likewise.
50762         * m4/ffsll.m4: Likewise.
50763         * lib/ffsl.c: Likewise.
50764         * lib/ffsl.h: Likewise.
50765         * lib/ffsll.c: Likewise.
50766         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50767         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50768         * modules/string (Makefile.am): Substitute witnesses.
50769         * lib/strings.in.h (ffsl, ffsll): Declare.
50770         * modules/ffsl-tests: New test file.
50771         * modules/ffsll-tests: Likewise.
50772         * tests/test-ffsl.c: Likewise.
50773         * tests/test-ffsll.c: Likewise.
50774         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50775         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50776         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50778         ffs: fix m4 prerequisite
50779         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50781         ffs: avoid undefined behavior
50782         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50783         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50784         Reported by Bruno Haible.
50786 2011-07-12  Bruno Haible  <bruno@clisp.org>
50788         pthread_sigmask: Rely on module 'threadlib'.
50789         * modules/pthread_sigmask (Depends-on): Add threadlib.
50790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50791         is defined.
50793 2011-07-12  Bruno Haible  <bruno@clisp.org>
50795         regex: Depend on module 'strcase'.
50796         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50798 2011-07-12  Jim Meyering  <meyering@redhat.com>
50800         warn-on-use: fix typo in file name
50801         * modules/snippet/warn-on-use (Files): Correct file name:
50802         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50804 2011-07-12  Bruno Haible  <bruno@clisp.org>
50806         strings: Document module.
50807         * doc/posix-headers/strings.texi: Mention module 'strings'.
50809 2011-07-12  Bruno Haible  <bruno@clisp.org>
50811         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50812         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50813         (Files, Makefile.am): Update.
50814         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50815         * modules/stdlib (Depends-on): Update.
50817 2011-07-12  Bruno Haible  <bruno@clisp.org>
50819         * NEWS: Mention the changes.
50821         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50822         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50823         (Files, Makefile.am): Update.
50824         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50825         * modules/arpa_inet (Depends-on): Update.
50826         * modules/ctype (Depends-on): Update.
50827         * modules/dirent (Depends-on): Update.
50828         * modules/fcntl-h (Depends-on): Update.
50829         * modules/glob (Depends-on): Update.
50830         * modules/iconv-h (Depends-on): Update.
50831         * modules/inttypes-incomplete (Depends-on): Update.
50832         * modules/langinfo (Depends-on): Update.
50833         * modules/locale (Depends-on): Update.
50834         * modules/math (Depends-on): Update.
50835         * modules/netdb (Depends-on): Update.
50836         * modules/poll-h (Depends-on): Update.
50837         * modules/pty (Depends-on): Update.
50838         * modules/search (Depends-on): Update.
50839         * modules/signal (Depends-on): Update.
50840         * modules/spawn (Depends-on): Update.
50841         * modules/stdio (Depends-on): Update.
50842         * modules/stdlib (Depends-on): Update.
50843         * modules/string (Depends-on): Update.
50844         * modules/strings (Depends-on): Update.
50845         * modules/sys_file (Depends-on): Update.
50846         * modules/sys_ioctl (Depends-on): Update.
50847         * modules/sys_select (Depends-on): Update.
50848         * modules/sys_socket (Depends-on): Update.
50849         * modules/sys_stat (Depends-on): Update.
50850         * modules/sys_time (Depends-on): Update.
50851         * modules/sys_times (Depends-on): Update.
50852         * modules/sys_utsname (Depends-on): Update.
50853         * modules/sys_wait (Depends-on): Update.
50854         * modules/termios (Depends-on): Update.
50855         * modules/time (Depends-on): Update.
50856         * modules/unistd (Depends-on): Update.
50857         * modules/wchar (Depends-on): Update.
50858         * modules/wctype-h (Depends-on): Update.
50859         * MODULES.html.sh (Support for building libraries and executables):
50860         Update.
50862         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50863         * modules/snippet/unused-parameter: Renamed from
50864         modules/unused-parameter.
50865         (Files, Makefile.am): Update.
50866         * build-aux/snippet/unused-parameter.h: Renamed from
50867         build-aux/unused-parameter.h.
50868         * modules/selinux-h (Depends-on): Update.
50869         * modules/unistr/base (Depends-on): Update.
50870         * MODULES.html.sh (Core language properties): Update.
50872         Rename module 'link-warning' to 'snippet/link-warning'.
50873         * modules/snippet/link-warning: Renamed from modules/link-warning.
50874         (Files, Makefile.am): Update.
50875         * build-aux/snippet/link-warning.h: Renamed from
50876         build-aux/link-warning.h.
50877         * MODULES.html.sh (Support for building libraries and executables):
50878         Update.
50880         Rename module 'c++defs' to 'snippet/c++defs'.
50881         * modules/snippet/c++defs: Renamed from modules/c++defs.
50882         (Files, Makefile.am): Update.
50883         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50884         * modules/arpa_inet (Depends-on): Update.
50885         * modules/ctype (Depends-on): Update.
50886         * modules/dirent (Depends-on): Update.
50887         * modules/fcntl-h (Depends-on): Update.
50888         * modules/glob (Depends-on): Update.
50889         * modules/iconv-h (Depends-on): Update.
50890         * modules/langinfo (Depends-on): Update.
50891         * modules/locale (Depends-on): Update.
50892         * modules/math (Depends-on): Update.
50893         * modules/netdb (Depends-on): Update.
50894         * modules/poll-h (Depends-on): Update.
50895         * modules/pty (Depends-on): Update.
50896         * modules/search (Depends-on): Update.
50897         * modules/signal (Depends-on): Update.
50898         * modules/spawn (Depends-on): Update.
50899         * modules/stdio (Depends-on): Update.
50900         * modules/stdlib (Depends-on): Update.
50901         * modules/string (Depends-on): Update.
50902         * modules/strings (Depends-on): Update.
50903         * modules/sys_ioctl (Depends-on): Update.
50904         * modules/sys_select (Depends-on): Update.
50905         * modules/sys_socket (Depends-on): Update.
50906         * modules/sys_stat (Depends-on): Update.
50907         * modules/sys_time (Depends-on): Update.
50908         * modules/sys_wait (Depends-on): Update.
50909         * modules/termios (Depends-on): Update.
50910         * modules/time (Depends-on): Update.
50911         * modules/unistd (Depends-on): Update.
50912         * modules/wchar (Depends-on): Update.
50913         * modules/wctype-h (Depends-on): Update.
50915         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50916         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50917         (Files, Makefile.am): Update.
50918         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50919         * modules/argv-iter (Depends-on): Update.
50920         * modules/arpa_inet (Depends-on): Update.
50921         * modules/dirent (Depends-on): Update.
50922         * modules/fcntl-h (Depends-on): Update.
50923         * modules/fnmatch (Depends-on): Update.
50924         * modules/getopt-posix (Depends-on): Update.
50925         * modules/glob (Depends-on): Update.
50926         * modules/iconv-h (Depends-on): Update.
50927         * modules/inttypes-incomplete (Depends-on): Update.
50928         * modules/locale (Depends-on): Update.
50929         * modules/math (Depends-on): Update.
50930         * modules/netdb (Depends-on): Update.
50931         * modules/search (Depends-on): Update.
50932         * modules/signal (Depends-on): Update.
50933         * modules/spawn (Depends-on): Update.
50934         * modules/stdio (Depends-on): Update.
50935         * modules/stdlib (Depends-on): Update.
50936         * modules/string (Depends-on): Update.
50937         * modules/strings (Depends-on): Update.
50938         * modules/sys_socket (Depends-on): Update.
50939         * modules/sys_stat (Depends-on): Update.
50940         * modules/sys_time (Depends-on): Update.
50941         * modules/sys_times (Depends-on): Update.
50942         * modules/sys_utsname (Depends-on): Update.
50943         * modules/time (Depends-on): Update.
50944         * modules/unistd (Depends-on): Update.
50945         * modules/wchar (Depends-on): Update.
50946         * MODULES.html.sh (Support for building libraries and executables):
50947         Update.
50949 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50951         Improvements on _Noreturn and related modules.
50953         modules/_Exit-tests: test _Noreturn too
50954         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50955         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50956         (main): Use them.
50958         stdnoreturn, stdnoreturn-tests: remove modules
50959         They're not needed here and a bit premature for use elsewhere.  See
50960         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50961         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50962         * tests/test-stdnoreturn.c: Remove files.
50963         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50964         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50965         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50966         and using noreturn.
50967         * modules/openat, modules/sigpipe-die, modules/xalloc:
50968         * modules/xmemdup0, modules/xstrtol:
50969         Remove dependency on stdnoreturn.
50971         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50972         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50973         Reparenthesize to avoid GCC warning.
50974         Support Microsoft's syntax.
50975         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50977         _Noreturn-tests: remove module
50978         * modules/_Noreturn-tests: Remove.
50979         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50980         * tests/test-_Noreturn.c: Remove.
50981         * tests/test-stdnoreturn.c: Merge from the old
50982         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50984 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50986         _Noreturn, stdnoreturn, and related modules.
50988         * top/maint.mk: Adjust to new noreturn support.
50989         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50990         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50992         xalloc: use stdnoreturn.h
50993         * lib/xalloc.h: Include <stdnoreturn.h>.
50994         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50995         * modules/xalloc (Depends-on): Add stdnoreturn.
50997         xstrtol: use stdnoreturn.h
50998         * lib/xstrtol.h: Include <stdnoreturn.h>.
50999         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51000         * modules/xstrtol (Depends-on): Add stdnoreturn.
51002         xmemdup0: use stdnoreturn.h
51003         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51004         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51005         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51007         sigpipe-die: use stdnoreturn.h
51008         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51009         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51010         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51012         openat: use stdnoreturn.h
51013         * lib/openat.h: Include <stdnoreturn.h>.
51014         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51015         * modules/openat (Depends-on): Add stdnoreturn.
51017         * lib/openat-die.c (openat_save_fail): Modernize comment.
51019         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51021         * lib/glthread/thread.h: Modernize comment.
51023         obstack: use _Noreturn
51024         * lib/obstack.c (__attribute__): Remove macro.
51025         (print_and_abort): Use _Noreturn.
51027         c-stack: use _Noreturn
51028         * lib/c-stack.c (die, overflow_handler, segv_handler):
51029         Use _Noreturn rather than __attribute__((noreturn)).
51031         argmatch-tests, exclude_tests: use _Noreturn
51032         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51033         Remove.
51034         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51036         stdlib: use _Noreturn
51037         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51038         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51039         * modules/stdlib (Depends-on): Add _Noreturn.
51040         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51042         stdnoreturn-tests: new module
51043         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51045         stdnoreturn: new module
51046         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51047         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51049         _Noreturn-tests: new module
51050         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51052         _Noreturn: new module
51053         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51054         New section, mentioning it.
51055         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51057         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51059 2011-07-11  Eric Blake  <eblake@redhat.com>
51061         ffs: new module
51062         * modules/ffs: New file.
51063         * m4/ffs.m4: Likewise.
51064         * lib/ffs.c: Likewise.
51065         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51066         * modules/strings (Makefile.am): Substitute witness.
51067         (Depends-on): Add c++defs.
51068         * lib/strings.in.h (ffs): Declare.
51069         * modules/ffs-tests: New test file.
51070         * tests/test-ffs.c: Test new module.
51071         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51072         * doc/posix-functions/ffs.texi (ffs): Likewise.
51074         regex: avoid compiler warning
51075         * lib/regex.c (includes): Include <strings.h>, for use of
51076         strcasecmp in regcomp.c.
51077         Reported by Joachim Schmitz.
51079 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51081         stdint: respect system's intmax_t if INTMAX_MAX
51082         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51083         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51084         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51085         long but int64_t is long long, and where we will clash with the
51086         system intmax_t if we override it.  See
51087         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51088         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51089         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51090         similarly for UINTMAX_C.
51092 2011-07-08  Bruno Haible  <bruno@clisp.org>
51094         pthread_sigmask tests: Avoid a compiler warning.
51095         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51096         non-zero.
51098         sigprocmask tests: A better way to avoid a compiler warning.
51099         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51100         (main): Complain if system() returns non-zero.
51101         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51103 2011-07-08  Bruno Haible  <bruno@clisp.org>
51105         pthread_sigmask: Work around IRIX bug.
51106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51107         bug.
51108         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51109         there may be unblocked pending signals.
51110         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51112 2011-07-08  Bruno Haible  <bruno@clisp.org>
51114         pthread_sigmask: Work around Cygwin bug.
51115         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51116         bug.
51117         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51118         the system's pthread_sigmask function.
51119         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51121 2011-07-08  Bruno Haible  <bruno@clisp.org>
51123         pthread_sigmask: Work around bug in single-threaded implementation.
51124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51125         FreeBSD, HP-UX, Solaris bug.
51126         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51127         * lib/pthread_sigmask.c: Include <stddef.h>.
51128         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51129         the system's pthread_sigmask function.
51130         * modules/pthread_sigmask (configure.ac): Invoke
51131         gl_PREREQ_PTHREAD_SIGMASK.
51132         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51133         HP-UX, Solaris.
51135 2011-07-08  Eric Blake  <eblake@redhat.com>
51137         test-sigprocmask: avoid compiler warning
51138         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51139         * tests/test-sigprocmask.c (main): Use it to silence warning.
51140         Reported by Jim Meyering.
51142         test-snprintf: avoid compiler warning
51143         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51144         * tests/test-vsnprintf.c (main): Likewise.
51145         Reported by Jim Meyering.
51147 2011-07-08  Bruno Haible  <bruno@clisp.org>
51149         Tests for module 'pthread_sigmask'.
51150         * modules/pthread_sigmask-tests: New file.
51151         * tests/test-pthread_sigmask1.c: New file, based on
51152         tests/test-sigprocmask.c.
51153         * tests/test-pthread_sigmask2.c: New file.
51155 2011-07-08  Jim Meyering  <meyering@redhat.com>
51157         test-getopt.h: avoid warning about an unused variable
51158         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51160 2011-07-07  Jim Meyering  <meyering@redhat.com>
51162         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51163         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51164         now that it no longer contains leading TABs.
51165         Remove unused "url=FIXME" statement.
51167 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51169         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51171         When gl_THREADLIB is not in use, assume that the POSIX sematics
51172         are desired.  This is better for Emacs, which uses POSIX semantics
51173         on GNUish and/or POSIXish platforms, and does not use threads at
51174         all otherwise.
51176         pthread_sigmask: fix typo when testing for libraries
51177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51178         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51180 2011-07-08  Eric Blake  <eblake@redhat.com>
51182         fts: introduce FTS_NOATIME
51183         * lib/fts_.h (FTS_NOATIME): New bit flag.
51184         (FTS_OPTIONMASK): Adjust.
51185         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51186         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51188 2011-07-08  Bruno Haible  <bruno@clisp.org>
51190         Tests for module 'thread'.
51191         * modules/thread-tests: New file.
51192         * tests/test-thread_self.c: New file.
51193         * tests/test-thread_create.cc: New file.
51195 2011-07-08  Bruno Haible  <bruno@clisp.org>
51197         thread: Avoid gcc warnings when using gl_thread_self().
51198         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51199         'void *'.
51200         (gl_thread_self_pointer): Update.
51202 2011-07-07  Bruno Haible  <bruno@clisp.org>
51204         signal-c++-tests: Check declaration of pthread_sigmask.
51205         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51206         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51207         $(LIB_PTHREAD_SIGMASK).
51209 2011-07-07  Bruno Haible  <bruno@clisp.org>
51211         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51212         * lib/signal.in.h (pthread_sigmask): Override if
51213         REPLACE_PTHREAD_SIGMASK is 1.
51214         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51215         REPLACE_PTHREAD_SIGMASK.
51216         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51217         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51218         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51219         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51220         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51222 2011-07-07  Bruno Haible  <bruno@clisp.org>
51224         pthread_sigmask: Ensure declaration in <signal.h>.
51225         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51226         include <pthread.h>.
51227         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51228         problem.
51230 2011-07-07  Bruno Haible  <bruno@clisp.org>
51232         pthread_sigmask: Document the module.
51233         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51235 2011-07-07  Bruno Haible  <bruno@clisp.org>
51237         pthread_sigmask: Follow gnulib conventions.
51238         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51239         gl_PTHREAD_SIGMASK.
51240         * modules/pthread_sigmask (configure.ac): Update.
51242 2011-07-07  Bruno Haible  <bruno@clisp.org>
51244         pthread_sigmask: Make declaration C++ safe.
51245         * lib/signal.in.h: In two special conditions, just do an #include_next.
51246         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51247         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51248         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51249         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51250         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51251         not REPLACE_PTHREAD_MASK.
51252         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51253         not REPLACE_PTHREAD_MASK.
51254         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51256 2011-07-07  Bruno Haible  <bruno@clisp.org>
51258         pthread_sigmask: Fix return value.
51259         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51260         * lib/pthread_sigmask.c: New file.
51261         * modules/pthread_sigmask (Files): Add it.
51262         (configure.ac): Invoke AC_LIBOBJ.
51264 2011-07-07  Eric Blake  <eblake@redhat.com>
51266         getopt: more portable argv creation
51267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51268         const, use char arrays rather than strings.
51269         Suggested by Paul Eggert.
51271 2011-07-07  Bruno Haible  <bruno@clisp.org>
51273         Tests for module 'sigprocmask'.
51274         * modules/sigprocmask-tests: New file.
51275         * tests/test-sigprocmask.c: New file.
51277 2011-07-07  Bruno Haible  <bruno@clisp.org>
51279         float tests: Tweak.
51280         * tests/test-float.c (main): Tweak skip message.
51282 2011-07-07  Eric Blake  <eblake@redhat.com>
51284         getopt: avoid compiler warning during configure
51285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51286         assigning string literals to non-const pointer.
51288         getopt-gnu: avoid crash in glibc getopt
51289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51290         * tests/test-getopt.h (test_getopt): Enhance test.
51291         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51292         * doc/posix-functions/getopt.texi (getopt): Document it.
51293         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51294         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51295         Likewise.
51297 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51299         getopt: handle W; without long options in getopt [BZ #12922]
51300         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51301         but no long options are defined, just return 'W'.
51303 2011-07-07  Bruno Haible  <bruno@clisp.org>
51305         Avoid literal tabs.
51306         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51307         variable containing a tab instead of a literal tab.
51308         Reported by Jim Meyering.
51310 2011-07-07  Bruno Haible  <bruno@clisp.org>
51312         Comments.
51313         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51315 2011-07-06  Bruno Haible  <bruno@clisp.org>
51317         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51318         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51319         <winsock2.h>.
51320         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51321         lib/sys_socket.in.h.
51322         (close, gethostname): Hide declarations from <winsock2.h>.
51323         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51324         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51325         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51326         (select): Don't override if gnulib's <sys/select.h> was already
51327         included.
51328         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51329         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51330         setsockopt, shutdown, select): Tweak indentation.
51332 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51334         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51335         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51336         in an application that does not use the sys_select module.
51338 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51340         poll: do not return 0 on timeout=-1
51341         * lib/poll.c: Loop with yield if no events occurred.
51343 2011-07-06  Eric Blake  <eblake@redhat.com>
51345         pthread_sigmask: always replace when not using pthread
51346         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51347         replacement when using some threading other than pthread.  Fix
51348         logic bug.
51350 2011-07-06  Bruno Haible  <bruno@clisp.org>
51352         Comments.
51353         * m4/printf.m4: Update comments about mingw.
51355 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51357         sys_select: define sigset_t more portably
51358         * lib/sys_select.in.h: Always include <sys/types.h>, since
51359         we now need sigset_t and mingw defines it there.
51360         Include <signal.h> before split inclusion guard, to avoid
51361         mishaps on Solaris, whose <signal.h> eventually includes us.
51362         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51363         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51364         which come from ...
51365         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51366         gl_CHECK_TYPE_SIGSET_T.
51367         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51368         does the real work.
51369         * modules/sys_select (Depends-on): Add 'signal'.
51371         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51372         Suggested by Bruno Haible.
51374         pselect: Use pthread_sigmask, not sigprocmask.
51375         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51376         multithreaded apps better than sigprocmask does.
51377         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51378         sigprocmask directly.
51380 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51382         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51383         Don't #undef,  since we don't need any underlying pselect.
51384         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51385         (Depends-on): Add select.
51386         (Link): Add $(LIBSOCKET).
51387         These changes suggested by Bruno Haible.
51389         pselect: document better
51390         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51391         * doc/posix-functions/pselect.texi (pselect): Document new module.
51393         pthread_sigmask: new module
51394         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51395         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51396         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51397         This is done only as a macro; I don't know how well that'll
51398         work for C++.  Move <sys/types.h> include before the include_next,
51399         to avoid mishap on Solaris.
51400         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51401         * modules/signal (Makefile.am): Substitute the check's results.
51402         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51404         test-pselect: new module
51405         * modules/pselect-tests, tests/test-pselect.c: New files.
51406         * tests/test-select.c, tests/test-sys_select-c++.cc:
51407         If TEST_PSELECT is defined, test pselect instead of testing select.
51409         * tests/test-sys_select.c (sigset_t): Test for it, too.
51410         Suggested by Bruno Haible.
51412 2011-07-05  Eric Blake  <eblake@redhat.com>
51414         snprintf: guarantee %1$d, for libintl
51415         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51417         * doc/posix-functions/snprintf.texi (snprintf): Update.
51418         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51419         * tests/test-snprintf.c (main): Enhance test.
51420         * tests/test-vsnprintf.c (main): Likewise.
51422 2011-07-05  Jim Meyering  <meyering@redhat.com>
51424         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51425         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51426         per Bruno's request, to accommodate this idiom (no space after "#")
51427         even when the function is inside an #if block:
51428         char *
51429         gets (char *s)
51430         #undef gets
51431         {
51432           ...
51433         }
51435 2011-07-04  Jim Meyering  <meyering@redhat.com>
51437         maint: indent with spaces, not TABs, and add a rule to check this
51438         * tests/test-userspec.c: Indent with spaces, not TABs.
51439         * tests/test-argp.c: Likewise.
51440         * tests/test-c-stack2.sh: Likewise.
51441         * tests/test-parse-duration.sh: Likewise
51442         * m4/strtod.m4: Likewise.
51443         * m4/alloca.m4: Likewise.
51444         * m4/pselect.m4: Likewise.
51445         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51447 2011-07-03  Jim Meyering  <meyering@redhat.com>
51449         maint.mk: correct omissions in prohibit_argmatch_without_use check
51450         This rule would mistakenly report that argmatch.h is included without
51451         use even when both the argmatch and invalid_arg macro were used.
51452         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51453         of argmatch and invalid_arg.
51455 2011-07-03  Bruno Haible  <bruno@clisp.org>
51457         Comments about EINTR.
51458         * lib/safe-read.h: Explain the purpose of this module.
51459         * lib/safe-write.h: Likewise.
51460         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51461         module.
51462         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51463         module.
51464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51466 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51468         xnanosleep: Rewrite to use new dtotimespec module.
51469         It has the conversion code that used to be in xnanosleep.
51470         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51471         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51472         (TIME_T_MAX): Remove.
51473         (xnanosleep): Rewrite in terms of dtotimespec.
51474         * modules/xnanosleep (Depends-on): Add dtotimespec.
51475         Remove intprops, stdbool.
51477         timespec-add, timespec-sub: new modules
51478         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51479         * lib/timespec-add.c, lib/timespec-sub.c:
51480         * modules/timespec-add, modules/timespec-sub: New files.
51482         dtotimespec: new module
51483         * lib/timespec.h (dtotimespec): New decl.
51484         * lib/dtotimespec.c, modules/dtotimespec: New files.
51486         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51488         pselect: new module
51489         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51490         (pselect): New decls.
51491         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51492         since the standard pselect decl uses 'restrict'.
51493         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51494         HAVE_PSELECT, REPLACE_PSELECT.
51495         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51496         HAVE_PSELECT, REPLACE_PSELECT.
51497         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51499         sys_select: don't depend on sys_socket
51500         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51501         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51502         This fix works on GNU and GNU-like platforms, but has not been tested
51503         on native Windows.
51504         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51506         gl_HEADER_SYS_SOCKET.
51507         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51508         gl_PREREQ_SYS_H_WINSOCK2.
51510 2011-06-29  Eric Blake  <eblake@redhat.com>
51512         pipe2: fix C89 compile problem
51513         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51514         Reported by Bruno Haible.
51516         pipe, pipe2: don't corrupt fd on error
51517         * lib/pipe.c (pipe): Leave fd unchanged on error.
51518         * lib/pipe2.c (pipe2): Likewise.
51519         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
51520         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51522 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
51524         mmap-anon: do not use regular expressions inadvertently
51525         * m4/mmap-anon.m4: Remove trailing period from strings sought
51526         in the output.
51528 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
51530         nanosleep: fix integer overflow problem
51531         * lib/nanosleep.c (my_usleep): Don't assume signed integer
51532         arithmetic wraps around on overflow.
51534         nanosleep: simplify carrying
51535         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
51536         first call to the underyling nanosleep, not for the last one.
51537         This doesn't fix any bugs, but it simplifies the computation of
51538         the remaining delay.  Found while auditing integer overflow issues.
51540         dup2: remove test for existence of fcntl
51541         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
51542         "#if HAVE_FCNTL", in the configure-time test program.
51543         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
51544         and therefore speeds up "configure" a bit.  Found while
51545         adding the dup2 module to Emacs.
51547 2011-06-24  Eric Blake  <eblake@redhat.com>
51549         maint.mk: enhance useless header checks
51550         * top/maint.mk (_sc_header_without_use): Check both include
51551         styles.
51552         (sc_prohibit_assert_without_use)
51553         (sc_prohibit_close_stream_without_use)
51554         (sc_prohibit_getopt_without_use)
51555         (sc_prohibit_quotearg_without_use)
51556         (sc_prohibit_quote_without_use)
51557         (sc_prohibit_long_options_without_use)
51558         (sc_prohibit_inttostr_without_use)
51559         (sc_prohibit_ignore_value_without_use)
51560         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
51561         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
51562         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
51563         (sc_prohibit_hash_pjw_without_use)
51564         (sc_prohibit_safe_read_without_use)
51565         (sc_prohibit_argmatch_without_use)
51566         (sc_prohibit_canonicalize_without_use)
51567         (sc_prohibit_root_dev_ino_without_use)
51568         (sc_prohibit_openat_without_use)
51569         (sc_prohibit_c_ctype_without_use)
51570         (sc_prohibit_signal_without_use)
51571         (sc_prohibit_stdio--_without_use)
51572         (sc_prohibit_stdio-safer_without_use)
51573         (sc_prohibit_strings_without_use)
51574         (sc_prohibit_intprops_without_use)
51575         (sc_prohibit_stddef_without_use)
51576         (sc_prohibit_xfreopen_without_use): Update clients.
51578 2011-06-24  Jim Meyering  <meyering@redhat.com>
51580         syntax-check: keep one maint.mk rule in sync with its header
51581         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
51582         of the bug Eric has just fixed, with today's commit 25e4c2ec.
51583         I prefer to avoid temporary files here, so use <(...), but that
51584         is not supported by /bin/sh, so...
51585         (SHELL): Define to /bin/bash.
51587 2011-06-24  Eric Blake  <eblake@redhat.com>
51589         maint.mk: update sc_prohibit_intprops_without_use
51590         * top/maint.mk (_intprops_names): Match recent changes.
51592 2011-06-24  Bruno Haible  <bruno@clisp.org>
51594         strerror-override: No-op tweak.
51595         * lib/strerror-override.h (strerror_override): Reorder conditions,
51596         for consistency with lib/strerror-override.c.
51598 2011-06-23  Eric Blake  <eblake@redhat.com>
51600         maint.mk: test further PATH_MAX issues
51601         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51602         (sc_prohibit_path_max_allocation): ...and also test alloca.
51603         Suggested by Jim Meyering.
51605 2011-06-22  Eric Blake  <eblake@redhat.com>
51607         maint.mk: add syntax-check to avoid char[PATH_MAX]
51608         * top/maint.mk (sc_prohibit_path_max_array): New rule.
51610         stat: be robust to PATH_MAX definition
51611         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51612         * modules/stat (Depends-on): Add verify.
51614         link: work around IRIX bug
51615         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51616         * lib/link.c (rpl_link): Work around it.
51617         * tests/test-link.h (test_link): Enhance test.
51618         * doc/posix-functions/link.texi (link): Document the bug.
51620         getopt: silence clang warning
51621         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51622         dereference.
51623         Reported by Gustavo Martin Domato.
51625 2011-06-22  Jim Meyering  <meyering@redhat.com>
51627         bootstrap: do not insert a blank line into each .gitignore file
51628         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51630 2011-06-21  Eric Blake  <eblake@redhat.com>
51632         perror: test for output mismatch
51633         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51634         perror on IRIX.
51636         strerror_r: fix OpenBSD behavior on out-of-range
51637         * lib/strerror_r.c (strerror_r): Always use maximal string.
51638         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51640         strerror_r: fix OpenBSD behavior on 0
51641         * lib/strerror-override.c (strerror_override): Also override 0
51642         when needed.
51643         * lib/strerror-override.h (strerror_override): Likewise.
51644         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51645         earlier.
51646         * lib/strerror_r.c (strerror_r): Likewise.
51647         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51648         behavior...
51649         (gl_FUNC_STRERROR_0): ...into new macro.
51650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51651         is overridden.
51652         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51653         * modules/strerror-override (Files): Add strerror.m4.
51654         (configure.ac): Also provide override for 0 when needed.
51655         * doc/posix-functions/strerror.texi (strerror): Document this.
51656         * doc/posix-functions/perror.texi (perror): Likewise.
51658         perror: adjust array size
51659         * modules/perror (Depends-on): Add strerror-override.
51660         * lib/perror.c (perror): Use it to avoid magic number.
51662         strerror-override: reduce size
51663         * lib/strerror-override.c (strerror_override): Use fewer lines.
51665 2011-06-20  Bruno Haible  <bruno@clisp.org>
51667         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51668         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51670 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51672         alloca: port to compilers that can optimize like GCC 4.6.0
51673         * lib/alloca.c (find_stack_direction): New signature, taken from
51674         Autoconf git.  This works with GCC 4.6.0.  This code should never
51675         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51676         be used with other compilers that optimize as well as GCC 4.6.0 does.
51677         (alloca): Adjust to new signature.
51678         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51679         New macro, which patches Autoconf in a similar way.
51681         c-stack: stop worrying about stack direction
51682         * lib/c-stack.c (find_stack_direction): Remove.
51683         (segv_handler): Don't worry about stack direction growth, as it's
51684         too much of a pain to configure this correctly, given how compilers
51685         are optimizing-away our stack-growth detection code.  Instead, assume
51686         that any access to just before or just after the stack is OK.
51687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51688         Don't require AC_FUNC_ALLOCA; no longer needed.
51690 2011-06-20  Eric Blake  <eblake@redhat.com>
51692         test-stat: don't allocate PATH_MAX bytes
51693         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51694         PATH_MAX-sized buffer.
51695         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51696         * modules/stat-tests (Depends-on): Likewise.
51697         * tests/test-fstatat.c (includes): Drop pathmax.h.
51698         * tests/test-stat.c (includes): Likewise.
51699         Reported by Bruno Haible.
51701 2011-06-20  Bruno Haible  <bruno@clisp.org>
51703         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51704         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51705         * lib/float.c: New file.
51706         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51707         REPLACE_FLOAT_LDBL.
51708         * modules/float (Files): Add lib/float.c.
51709         (configure.ac): Invoke AC_LIBOBJ.
51710         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51712 2011-06-20  Bruno Haible  <bruno@clisp.org>
51714         Tests for module 'float'.
51715         * modules/float-tests: New file.
51716         * tests/test-float.c: New file.
51718 2011-06-19  Bruno Haible  <bruno@clisp.org>
51720         isinf: Coding style.
51721         * lib/isinf.c: Use GNU coding style.
51723 2011-06-19  Bruno Haible  <bruno@clisp.org>
51725         linkat test: Avoid test failure on AIX 7.1.
51726         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51727         * tests/test-link.h (test_link): Likewise.
51729 2011-06-19  Bruno Haible  <bruno@clisp.org>
51731         pread test: Avoid test failure on OpenBSD 4.9.
51732         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51734 2011-06-19  Bruno Haible  <bruno@clisp.org>
51736         sprintf-posix: Fix test failure on AIX 7.1.
51737         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51738         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51739         on AIX.
51740         * doc/posix-functions/fprintf.texi: Likewise.
51741         * doc/posix-functions/printf.texi: Likewise.
51742         * doc/posix-functions/snprintf.texi: Likewise.
51743         * doc/posix-functions/sprintf.texi: Likewise.
51744         * doc/posix-functions/vdprintf.texi: Likewise.
51745         * doc/posix-functions/vfprintf.texi: Likewise.
51746         * doc/posix-functions/vprintf.texi: Likewise.
51747         * doc/posix-functions/vsnprintf.texi: Likewise.
51748         * doc/posix-functions/vsprintf.texi: Likewise.
51750 2011-06-19  Bruno Haible  <bruno@clisp.org>
51752         roundl-ieee: Fix test failure on AIX 7.1.
51753         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51754         * doc/posix-functions/roundl.texi: Mention problem with negative
51755         arguments.
51757 2011-06-19  Bruno Haible  <bruno@clisp.org>
51759         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51760         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51761         * doc/posix-functions/round.texi: Mention problem with negative
51762         arguments.
51763         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51765 2011-06-19  Bruno Haible  <bruno@clisp.org>
51767         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51769         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51770         * doc/posix-functions/roundf.texi: Mention problem with negative
51771         arguments.
51772         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51774 2011-06-19  Bruno Haible  <bruno@clisp.org>
51776         ceilf-ieee: Work around bug on MacOS X 10.5.
51777         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51779         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51780         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51781         IEEE compliant, avoid compiler optimizations.
51782         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51783         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51784         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51785         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51786         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51787         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51790         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51793 2011-06-19  Bruno Haible  <bruno@clisp.org>
51795         ceilf-ieee: Work around bug on AIX 7.1.
51796         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51797         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51799 2011-06-19  Bruno Haible  <bruno@clisp.org>
51801         ceil-ieee: Work around bug on AIX 7.1.
51802         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51803         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51805 2011-06-18  Bruno Haible  <bruno@clisp.org>
51807         fsync test: Avoid test failure on MacOS X and AIX.
51808         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51809         EINVAL.
51811 2011-06-18  Bruno Haible  <bruno@clisp.org>
51813         openat, fdopendir tests: Fix link errors.
51814         * modules/openat-tests (Depends-on): Add progname.
51815         * modules/fdopendir-tests (Depends-on): Likewise.
51816         * tests/test-fchownat.c: Include progname.h.
51817         (main): Call set_program_name.
51818         * tests/test-fstatat.c: Include progname.h.
51819         (main): Call set_program_name.
51820         * tests/test-mkdirat.c: Include progname.h.
51821         (main): Call set_program_name.
51822         * tests/test-openat.c: Include progname.h.
51823         (main): Call set_program_name.
51824         * tests/test-unlinkat.c: Include progname.h.
51825         (main): Call set_program_name.
51826         * tests/test-fdopendir.c: Include progname.h.
51827         (main): Call set_program_name.
51829 2011-06-18  Bruno Haible  <bruno@clisp.org>
51831         Doc update.
51832         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51833         HP-UX.
51834         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51836 2011-06-18  Bruno Haible  <bruno@clisp.org>
51838         getcwd tests: Avoid compilation error on HP-UX 11.31.
51839         * modules/getcwd-tests (Depends-on): Add pathmax.
51840         * tests/test-getcwd.c: Include pathmax.h.
51842 2011-06-18  Bruno Haible  <bruno@clisp.org>
51844         isfinite, isinf: Fix link error on AIX 6 and 7.
51845         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51846         needed, also test the macro with a 'float' argument.
51847         * m4/isinf.m4 (gl_ISINF): Likewise.
51849 2011-06-18  Bruno Haible  <bruno@clisp.org>
51851         getloadavg: Don't clobber LIBS. Regression from previous commit.
51852         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51853         AC_CHECK_LIB from here...
51854         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51855         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51856         gl_func_getloadavg_done.
51857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51859 2011-06-18  Bruno Haible  <bruno@clisp.org>
51861         clean-temp: Improve documentation.
51862         * lib/clean-temp.h: Explain better how to use this module.
51863         Reported by John Darrington <john@darrington.wattle.id.au>.
51865 2011-06-17  Bruno Haible  <bruno@clisp.org>
51867         pread, pwrite: Avoid cc warning on AIX.
51868         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51869         (pwrite): Likewise.
51871 2011-06-17  Bruno Haible  <bruno@clisp.org>
51873         spawn-pipe tests: Fix link error.
51874         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51877 2011-06-17  Bruno Haible  <bruno@clisp.org>
51879         Tests: Remove unnecessary dependency.
51880         * modules/canonicalize-tests (Depends-on): Remove progname.
51881         * modules/chown-tests (Depends-on): Likewise.
51882         * modules/dirname-tests (Depends-on): Likewise.
51883         * modules/fdopendir-tests (Depends-on): Likewise.
51884         * modules/fdutimensat-tests (Depends-on): Likewise.
51885         * modules/hash-tests (Depends-on): Likewise.
51886         * modules/lchown-tests (Depends-on): Likewise.
51887         * modules/linkat-tests (Depends-on): Likewise.
51888         * modules/renameat-tests (Depends-on): Likewise.
51889         * modules/spawn-pipe-tests (Depends-on): Likewise.
51890         * modules/utimensat-tests (Depends-on): Likewise.
51892 2011-06-17  Bruno Haible  <bruno@clisp.org>
51894         spawn-pipe tests: Fix link error.
51895         * tests/test-spawn-pipe-child.c: Undefine fflush.
51897 2011-06-17  Bruno Haible  <bruno@clisp.org>
51899         Fix tests link errors.
51900         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51901         * modules/chown-tests (Makefile.am): Don't link test-chown with
51902         LIBINTL.
51903         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51904         LIBINTL.
51905         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51906         LIBINTL.
51907         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51908         LIBINTL.
51910 2011-06-16  Bruno Haible  <bruno@clisp.org>
51912         crypto/gc-sha1: Fix recent regression.
51913         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51914         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51916         crypto/gc-md5: Fix recent regression.
51917         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51919         crypto/gc-md4: Fix recent regression.
51920         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51921         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51923         crypto/gc-arctwo: Fix recent regression.
51924         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51925         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51927         crypto/gc-rijndael: Fix recent regression.
51928         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51929         (configure.ac): Invoke AC_LIBOBJ here.
51930         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51933         crypto/gc-hmac-sha1: Fix recent regression.
51934         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51935         (configure.ac): Invoke AC_LIBOBJ here.
51936         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
51937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51939         crypto/gc-hmac-md5: Fix recent regression.
51940         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
51941         (configure.ac): Invoke AC_LIBOBJ here.
51942         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
51943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51945         crypto/gc-des: Fix recent regression.
51946         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51947         (configure.ac): Invoke AC_LIBOBJ here.
51948         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51951         crypto/gc-arcfour: Fix recent regression.
51952         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51953         (configure.ac): Invoke AC_LIBOBJ here.
51954         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51957 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51959         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51960         After the 2011-05-21 change, this macro requires
51961         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51962         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51964 2011-06-16  Bruno Haible  <bruno@clisp.org>
51966         fprintftime: Move AC_LIBOBJ invocations to module description.
51967         * m4/fprintftime.m4: Remove file.
51968         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51969         (configure.ac): Remove gl_FPRINTFTIME call.
51970         (Makefile.am): Augment lib_SOURCES.
51971         Reported by Jim Meyering.
51973 2011-06-16  Bruno Haible  <bruno@clisp.org>
51975         tmpfile-safer: Finish 2011-05-23 commit.
51976         * m4/stdio-safer.m4: Really remove file.
51977         Reported by Jim Meyering.
51979 2011-06-16  Bruno Haible  <bruno@clisp.org>
51981         syntax-check: Fix typo.
51982         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51983         printf-posix.m4.
51984         Reported by Jim Meyering.
51986 2011-06-13  Jim Meyering  <meyering@redhat.com>
51988         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51989         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51991 2011-05-23  Bruno Haible  <bruno@clisp.org>
51993         yesno: Move AC_LIBOBJ invocations to module description.
51994         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51995         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51997 2011-05-23  Bruno Haible  <bruno@clisp.org>
51999         xstrtol: Move AC_LIBOBJ invocations to module description.
52000         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52001         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52003 2011-05-23  Bruno Haible  <bruno@clisp.org>
52005         xstrtold: Move AC_LIBOBJ invocations to module description.
52006         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52007         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52009 2011-05-23  Bruno Haible  <bruno@clisp.org>
52011         xstrtod: Move AC_LIBOBJ invocations to module description.
52012         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52013         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52015 2011-05-23  Bruno Haible  <bruno@clisp.org>
52017         xnanosleep: Move AC_LIBOBJ invocations to module description.
52018         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52019         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52021 2011-05-23  Bruno Haible  <bruno@clisp.org>
52023         xgetcwd: Move AC_LIBOBJ invocations to module description.
52024         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52025         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52027 2011-05-23  Bruno Haible  <bruno@clisp.org>
52029         xalloc: Move AC_LIBOBJ invocations to module description.
52030         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52031         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52033 2011-05-23  Bruno Haible  <bruno@clisp.org>
52035         write-any-file: Move AC_LIBOBJ invocations to module description.
52036         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52037         invocation.
52038         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52040 2011-05-23  Bruno Haible  <bruno@clisp.org>
52042         utimens: Move AC_LIBOBJ invocations to module description.
52043         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52044         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52046 2011-05-23  Bruno Haible  <bruno@clisp.org>
52048         utimecmp: Move AC_LIBOBJ invocations to module description.
52049         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52050         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52052 2011-05-23  Bruno Haible  <bruno@clisp.org>
52054         userspec: Move AC_LIBOBJ invocations to module description.
52055         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52056         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52058 2011-05-23  Bruno Haible  <bruno@clisp.org>
52060         unlinkdir: Move AC_LIBOBJ invocations to module description.
52061         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52062         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52064 2011-05-23  Bruno Haible  <bruno@clisp.org>
52066         unistd-safer: Move AC_LIBOBJ invocations to module description.
52067         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52068         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52070 2011-05-23  Bruno Haible  <bruno@clisp.org>
52072         tempname: Move AC_LIBOBJ invocations to module description.
52073         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52074         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52076 2011-05-23  Bruno Haible  <bruno@clisp.org>
52078         strftime: Move AC_LIBOBJ invocations to module description.
52079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52080         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52082 2011-05-23  Bruno Haible  <bruno@clisp.org>
52084         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52085         * m4/stdlib-safer.m4: Remove file.
52086         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52087         (configure.ac): Remove gl_STDLIB_SAFER call.
52088         (Makefile.am): Augment lib_SOURCES.
52090 2011-05-23  Bruno Haible  <bruno@clisp.org>
52092         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52093         * m4/stdio-safer.m4: Remove file.
52094         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52095         (configure.ac): Remove gl_TMPFILE_SAFER call.
52096         (Makefile.am): Augment lib_SOURCES.
52098 2011-05-23  Bruno Haible  <bruno@clisp.org>
52100         popen-safer: Move AC_LIBOBJ invocations to module description.
52101         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52102         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52103         (configure.ac): Remove gl_POPEN_SAFER call.
52104         (Makefile.am): Augment lib_SOURCES.
52106 2011-05-23  Bruno Haible  <bruno@clisp.org>
52108         freopen-safer: Move AC_LIBOBJ invocations to module description.
52109         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52110         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52111         (configure.ac): Remove gl_FREOPEN_SAFER call.
52112         (Makefile.am): Augment lib_SOURCES.
52114 2011-05-23  Bruno Haible  <bruno@clisp.org>
52116         fopen-safer: Move AC_LIBOBJ invocations to module description.
52117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52118         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52119         (configure.ac): Remove gl_FOPEN_SAFER call.
52120         (Makefile.am): Augment lib_SOURCES.
52122 2011-05-23  Bruno Haible  <bruno@clisp.org>
52124         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52125         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52126         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52128 2011-05-23  Bruno Haible  <bruno@clisp.org>
52130         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52131         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52132         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52134 2011-05-23  Bruno Haible  <bruno@clisp.org>
52136         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52137         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52138         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52140 2011-05-23  Bruno Haible  <bruno@clisp.org>
52142         settime: Move AC_LIBOBJ invocations to module description.
52143         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52144         * modules/settime (Makefile.am): Augment lib_SOURCES.
52146 2011-05-23  Bruno Haible  <bruno@clisp.org>
52148         savedir: Move AC_LIBOBJ invocations to module description.
52149         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52150         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52152 2011-05-23  Bruno Haible  <bruno@clisp.org>
52154         save-cwd: Move AC_LIBOBJ invocations to module description.
52155         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52156         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52158 2011-05-23  Bruno Haible  <bruno@clisp.org>
52160         same: Move AC_LIBOBJ invocations to module description.
52161         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52162         * modules/same (Makefile.am): Augment lib_SOURCES.
52164 2011-05-23  Bruno Haible  <bruno@clisp.org>
52166         safe-write: Move AC_LIBOBJ invocations to module description.
52167         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52168         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52169         instead of gl_SAFE_WRITE.
52170         (Makefile.am): Augment lib_SOURCES.
52172 2011-05-23  Bruno Haible  <bruno@clisp.org>
52174         safe-read: Move AC_LIBOBJ invocations to module description.
52175         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52176         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52177         of gl_SAFE_READ.
52178         (Makefile.am): Augment lib_SOURCES.
52180 2011-05-23  Bruno Haible  <bruno@clisp.org>
52182         safe-alloc: Move AC_LIBOBJ invocations to module description.
52183         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52184         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52186 2011-05-23  Bruno Haible  <bruno@clisp.org>
52188         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52189         * m4/rijndael.m4: Remove file.
52190         * modules/crypto/rijndael (Files): Remove it.
52191         (configure.ac): Remove gl_RIJNDAEL call.
52192         (Makefile.am): Augment lib_SOURCES.
52194 2011-05-23  Bruno Haible  <bruno@clisp.org>
52196         readtokens: Move AC_LIBOBJ invocations to module description.
52197         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52198         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52200 2011-05-23  Bruno Haible  <bruno@clisp.org>
52202         read-file: Move AC_LIBOBJ invocations to module description.
52203         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52204         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52205         of gl_FUNC_READ_FILE.
52206         (Makefile.am): Augment lib_SOURCES.
52208 2011-05-23  Bruno Haible  <bruno@clisp.org>
52210         quotearg: Move AC_LIBOBJ invocations to module description.
52211         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52212         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52214 2011-05-23  Bruno Haible  <bruno@clisp.org>
52216         quote: Move AC_LIBOBJ invocations to module description.
52217         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52218         * modules/quote (Makefile.am): Augment lib_SOURCES.
52220 2011-05-23  Bruno Haible  <bruno@clisp.org>
52222         posixver: Move AC_LIBOBJ invocations to module description.
52223         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52224         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52226 2011-05-23  Bruno Haible  <bruno@clisp.org>
52228         posixtm: Move AC_LIBOBJ invocations to module description.
52229         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52230         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52232 2011-05-23  Bruno Haible  <bruno@clisp.org>
52234         physmem: Move AC_LIBOBJ invocations to module description.
52235         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52236         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52238 2011-05-23  Bruno Haible  <bruno@clisp.org>
52240         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52241         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52242         invocation.
52243         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52245 2011-05-23  Bruno Haible  <bruno@clisp.org>
52247         mpsort: Move AC_LIBOBJ invocations to module description.
52248         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52249         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52251 2011-05-23  Bruno Haible  <bruno@clisp.org>
52253         modechange: Move AC_LIBOBJ invocations to module description.
52254         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52255         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52257 2011-05-23  Bruno Haible  <bruno@clisp.org>
52259         mkdir-p: Move AC_LIBOBJ invocations to module description.
52260         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52261         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52263 2011-05-23  Bruno Haible  <bruno@clisp.org>
52265         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52266         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52267         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52269 2011-05-23  Bruno Haible  <bruno@clisp.org>
52271         mgetgroups: Move AC_LIBOBJ invocations to module description.
52272         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52273         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52275 2011-05-23  Bruno Haible  <bruno@clisp.org>
52277         memxor: Move AC_LIBOBJ invocations to module description.
52278         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52279         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52281 2011-05-23  Bruno Haible  <bruno@clisp.org>
52283         memcoll: Move AC_LIBOBJ invocations to module description.
52284         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52285         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52287 2011-05-23  Bruno Haible  <bruno@clisp.org>
52289         memcasecmp: Move AC_LIBOBJ invocations to module description.
52290         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52291         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52293 2011-05-23  Bruno Haible  <bruno@clisp.org>
52295         crypto/md5: Move AC_LIBOBJ invocations to module description.
52296         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52297         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52299 2011-05-23  Bruno Haible  <bruno@clisp.org>
52301         crypto/md4: Move AC_LIBOBJ invocations to module description.
52302         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52303         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52305 2011-05-23  Bruno Haible  <bruno@clisp.org>
52307         crypto/md2: Move AC_LIBOBJ invocations to module description.
52308         * m4/md2.m4: Remove file.
52309         * modules/crypto/md2 (Files): Remove it.
52310         (configure.ac): Remove gl_MD2 call.
52311         (Makefile.am): Augment lib_SOURCES.
52313 2011-05-23  Bruno Haible  <bruno@clisp.org>
52315         long-options: Move AC_LIBOBJ invocations to module description.
52316         * m4/long-options.m4: Remove file.
52317         * modules/long-options (Files): Remove it.
52318         (configure.ac): Remove gl_LONG_OPTIONS call.
52319         (Makefile.am): Augment lib_SOURCES.
52321 2011-05-23  Bruno Haible  <bruno@clisp.org>
52323         i-ring: Move AC_LIBOBJ invocations to module description.
52324         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52325         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52327 2011-05-23  Bruno Haible  <bruno@clisp.org>
52329         idcache: Move AC_LIBOBJ invocations to module description.
52330         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52331         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52333 2011-05-23  Bruno Haible  <bruno@clisp.org>
52335         human: Move AC_LIBOBJ invocations to module description.
52336         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52337         * modules/human (Makefile.am): Augment lib_SOURCES.
52339 2011-05-23  Bruno Haible  <bruno@clisp.org>
52341         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52342         * m4/hmac-sha1.m4: Remove file.
52343         * modules/crypto/hmac-sha1 (Files): Remove it.
52344         (configure.ac): Remove gl_HMAC_SHA1 call.
52345         (Makefile.am): Augment lib_SOURCES.
52347 2011-05-23  Bruno Haible  <bruno@clisp.org>
52349         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52350         * m4/hmac-md5.m4: Remove file.
52351         * modules/crypto/hmac-md5 (Files): Remove it.
52352         (configure.ac): Remove gl_HMAC_MD5 call.
52353         (Makefile.am): Augment lib_SOURCES.
52355 2011-05-23  Bruno Haible  <bruno@clisp.org>
52357         hash: Move AC_LIBOBJ invocations to module description.
52358         * m4/hash.m4: Remove file.
52359         * modules/hash (Files): Remove it.
52360         (configure.ac): Remove gl_HASH call.
52361         (Makefile.am): Augment lib_SOURCES.
52363 2011-05-23  Bruno Haible  <bruno@clisp.org>
52365         hard-locale: Move AC_LIBOBJ invocations to module description.
52366         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52367         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52369 2011-05-23  Bruno Haible  <bruno@clisp.org>
52371         getugroups: Move AC_LIBOBJ invocations to module description.
52372         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52373         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52375 2011-05-23  Bruno Haible  <bruno@clisp.org>
52377         gettime: Move AC_LIBOBJ invocations to module description.
52378         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52379         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52381 2011-05-23  Bruno Haible  <bruno@clisp.org>
52383         getndelim2: Move AC_LIBOBJ invocations to module description.
52384         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52385         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52387 2011-05-23  Bruno Haible  <bruno@clisp.org>
52389         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52390         * m4/gc-pbkdf2-sha1.m4: Remove file.
52391         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52392         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52393         (Makefile.am): Augment lib_SOURCES.
52395 2011-05-23  Bruno Haible  <bruno@clisp.org>
52397         fts: Move AC_LIBOBJ invocations to module description.
52398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52399         * modules/fts (configure.ac): ... to here.
52401 2011-05-23  Bruno Haible  <bruno@clisp.org>
52403         file-type: Move AC_LIBOBJ invocations to module description.
52404         * m4/file-type.m4: Remove file.
52405         * modules/file-type (Files): Remove it.
52406         (configure.ac): Remove gl_FILE_TYPE call.
52407         (Makefile.am): Augment lib_SOURCES.
52409 2011-05-23  Bruno Haible  <bruno@clisp.org>
52411         filenamecat*: Respect rules for use of AC_LIBOBJ.
52412         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52413         Remove AC_LIBOBJ invocation.
52414         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52415         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52417 2011-05-23  Bruno Haible  <bruno@clisp.org>
52419         filemode: Move AC_LIBOBJ invocations to module description.
52420         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52421         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52423 2011-05-23  Bruno Haible  <bruno@clisp.org>
52425         openat-safer: Move AC_LIBOBJ invocations to module description.
52426         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52427         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52429 2011-05-23  Bruno Haible  <bruno@clisp.org>
52431         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52432         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52433         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52435 2011-05-23  Bruno Haible  <bruno@clisp.org>
52437         exclude: Move AC_LIBOBJ invocations to module description.
52438         * m4/exclude.m4: Remove file.
52439         * modules/exclude (Files): Remove it.
52440         (configure.ac): Remove gl_EXCLUDE call.
52441         (Makefile.am): Augment lib_SOURCES.
52443 2011-05-23  Bruno Haible  <bruno@clisp.org>
52445         dirname*: Respect rules for use of AC_LIBOBJ.
52446         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52447         invocations.
52448         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52449         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52451 2011-05-23  Bruno Haible  <bruno@clisp.org>
52453         dirent-safer: Move AC_LIBOBJ invocations to module description.
52454         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52455         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52457 2011-05-23  Bruno Haible  <bruno@clisp.org>
52459         crypto/des: Move AC_LIBOBJ invocations to module description.
52460         * m4/des.m4: Remove file.
52461         * modules/crypto/des (Files): Remove it.
52462         (configure.ac): Remove gl_DES call.
52463         (Makefile.am): Augment lib_SOURCES.
52465 2011-05-23  Bruno Haible  <bruno@clisp.org>
52467         cycle-check: Move AC_LIBOBJ invocations to module description.
52468         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52469         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52471 2011-05-23  Bruno Haible  <bruno@clisp.org>
52473         c-strtold: Move AC_LIBOBJ invocations to module description.
52474         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52475         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52477 2011-05-23  Bruno Haible  <bruno@clisp.org>
52479         c-strtod: Move AC_LIBOBJ invocations to module description.
52480         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52481         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52483 2011-05-23  Bruno Haible  <bruno@clisp.org>
52485         crc: Move AC_LIBOBJ invocations to module description.
52486         * m4/crc.m4: Remove file.
52487         * modules/crc (Files): Remove it.
52488         (configure.ac): Remove gl_CRC call.
52489         (Makefile.am): Augment lib_SOURCES.
52491 2011-05-23  Bruno Haible  <bruno@clisp.org>
52493         close-stream: Move AC_LIBOBJ invocations to module description.
52494         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52495         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52497 2011-05-23  Bruno Haible  <bruno@clisp.org>
52499         closeout: Move AC_LIBOBJ invocations to module description.
52500         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52501         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52503 2011-05-23  Bruno Haible  <bruno@clisp.org>
52505         closein: Move AC_LIBOBJ invocations to module description.
52506         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52507         * modules/closein (Makefile.am): Augment lib_SOURCES.
52509 2011-05-23  Bruno Haible  <bruno@clisp.org>
52511         cloexec: Move AC_LIBOBJ invocations to module description.
52512         * m4/cloexec.m4: Remove file.
52513         * modules/cloexec (Files): Remove it.
52514         (configure.ac): Remove gl_CLOEXEC call.
52515         (Makefile.am): Augment lib_SOURCES.
52517 2011-05-23  Bruno Haible  <bruno@clisp.org>
52519         check-version: Move AC_LIBOBJ invocations to module description.
52520         * m4/check-version.m4: Remove file.
52521         * modules/check-version (Files): Remove it.
52522         (configure.ac): Remove gl_CHECK_VERSION call.
52523         (Makefile.am): Augment lib_SOURCES.
52525 2011-05-23  Bruno Haible  <bruno@clisp.org>
52527         chdir-safer: Move AC_LIBOBJ invocations to module description.
52528         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
52529         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
52531 2011-05-23  Bruno Haible  <bruno@clisp.org>
52533         canonicalize: Move AC_LIBOBJ invocations to module description.
52534         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
52535         AC_LIBOBJ invocation.
52536         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
52538 2011-05-23  Bruno Haible  <bruno@clisp.org>
52540         canon-host: Move AC_LIBOBJ invocations to module description.
52541         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
52542         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
52543         instead of gl_CANON_HOST.
52544         (Makefile.am): Augment lib_SOURCES.
52546 2011-05-23  Bruno Haible  <bruno@clisp.org>
52548         backupfile: Move AC_LIBOBJ invocations to module description.
52549         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
52550         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
52552 2011-05-23  Bruno Haible  <bruno@clisp.org>
52554         argmatch: Move AC_LIBOBJ invocations to module description.
52555         * m4/argmatch.m4: Remove file.
52556         * modules/argmatch (Files): Remove it.
52557         (configure.ac): Remove gl_ARGMATCH call.
52558         (Makefile.am): Augment lib_SOURCES.
52560 2011-05-23  Bruno Haible  <bruno@clisp.org>
52562         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
52563         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
52564         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
52566 2011-05-23  Bruno Haible  <bruno@clisp.org>
52568         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
52569         * m4/arcfour.m4: Remove file.
52570         * modules/crypto/arcfour (Files): Remove it.
52571         (configure.ac): Remove gl_ARCFOUR call.
52572         (Makefile.am): Augment lib_SOURCES.
52574 2011-05-22  Bruno Haible  <bruno@clisp.org>
52576         write: Move AC_LIBOBJ invocations to module description.
52577         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
52578         * modules/write (configure.ac): ... to here.
52580 2011-05-22  Bruno Haible  <bruno@clisp.org>
52582         wmemset: Move AC_LIBOBJ invocations to module description.
52583         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
52584         here...
52585         * modules/wmemset (configure.ac): ... to here.
52587 2011-05-22  Bruno Haible  <bruno@clisp.org>
52589         wmemmove: Move AC_LIBOBJ invocations to module description.
52590         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
52591         here...
52592         * modules/wmemmove (configure.ac): ... to here.
52594 2011-05-22  Bruno Haible  <bruno@clisp.org>
52596         wmemcpy: Move AC_LIBOBJ invocations to module description.
52597         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52598         here...
52599         * modules/wmemcpy (configure.ac): ... to here.
52601 2011-05-22  Bruno Haible  <bruno@clisp.org>
52603         wmemcmp: Move AC_LIBOBJ invocations to module description.
52604         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52605         here...
52606         * modules/wmemcmp (configure.ac): ... to here.
52608 2011-05-22  Bruno Haible  <bruno@clisp.org>
52610         wmemchr: Move AC_LIBOBJ invocations to module description.
52611         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52612         here...
52613         * modules/wmemchr (configure.ac): ... to here.
52615 2011-05-22  Bruno Haible  <bruno@clisp.org>
52617         wcswidth: Move AC_LIBOBJ invocations to module description.
52618         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52619         here...
52620         * modules/wcswidth (configure.ac): ... to here.
52622 2011-05-22  Bruno Haible  <bruno@clisp.org>
52624         wcwidth: Respect rules for use of AC_LIBOBJ.
52625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52626         invocation from here...
52627         * modules/wcwidth (configure.ac): ... to here.
52628         (Depends-on): Update conditions.
52630 2011-05-22  Bruno Haible  <bruno@clisp.org>
52632         wctype: Move AC_LIBOBJ invocations to module description.
52633         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52634         invocation from here...
52635         * modules/wctype (configure.ac): ... to here.
52636         (Depends-on): Update conditions.
52638 2011-05-22  Bruno Haible  <bruno@clisp.org>
52640         wctrans: Move AC_LIBOBJ invocations to module description.
52641         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52642         invocation from here...
52643         * modules/wctrans (configure.ac): ... to here.
52645 2011-05-22  Bruno Haible  <bruno@clisp.org>
52647         wctomb: Move AC_LIBOBJ invocations to module description.
52648         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52649         invocations from here...
52650         * modules/wctomb (configure.ac): ... to here.
52652 2011-05-22  Bruno Haible  <bruno@clisp.org>
52654         wctob: Move AC_LIBOBJ invocations to module description.
52655         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52656         gl_PREREQ_WCTOB invocations from here...
52657         * modules/wctob (configure.ac): ... to here.
52658         (Depends-on): Update conditions.
52660 2011-05-22  Bruno Haible  <bruno@clisp.org>
52662         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52663         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52664         here...
52665         * modules/wcsxfrm (configure.ac): ... to here.
52667 2011-05-22  Bruno Haible  <bruno@clisp.org>
52669         wcstok: Move AC_LIBOBJ invocations to module description.
52670         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52671         * modules/wcstok (configure.ac): ... to here.
52673 2011-05-22  Bruno Haible  <bruno@clisp.org>
52675         wcsstr: Move AC_LIBOBJ invocations to module description.
52676         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52677         * modules/wcsstr (configure.ac): ... to here.
52679 2011-05-22  Bruno Haible  <bruno@clisp.org>
52681         wcsspn: Move AC_LIBOBJ invocations to module description.
52682         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52683         * modules/wcsspn (configure.ac): ... to here.
52685 2011-05-22  Bruno Haible  <bruno@clisp.org>
52687         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52688         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52689         gl_PREREQ_WCSRTOMBS invocations from here...
52690         * modules/wcsrtombs (configure.ac): ... to here.
52692 2011-05-22  Bruno Haible  <bruno@clisp.org>
52694         wcsrchr: Move AC_LIBOBJ invocations to module description.
52695         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52696         here...
52697         * modules/wcsrchr (configure.ac): ... to here.
52699 2011-05-22  Bruno Haible  <bruno@clisp.org>
52701         wcspbrk: Move AC_LIBOBJ invocations to module description.
52702         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52703         here...
52704         * modules/wcspbrk (configure.ac): ... to here.
52706 2011-05-22  Bruno Haible  <bruno@clisp.org>
52708         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52709         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52710         gl_PREREQ_WCSNRTOMBS invocations from here...
52711         * modules/wcsnrtombs (configure.ac): ... to here.
52713 2011-05-22  Bruno Haible  <bruno@clisp.org>
52715         wcsnlen: Move AC_LIBOBJ invocations to module description.
52716         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52717         here...
52718         * modules/wcsnlen (configure.ac): ... to here.
52720 2011-05-22  Bruno Haible  <bruno@clisp.org>
52722         wcsncpy: Move AC_LIBOBJ invocations to module description.
52723         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52724         here...
52725         * modules/wcsncpy (configure.ac): ... to here.
52727 2011-05-22  Bruno Haible  <bruno@clisp.org>
52729         wcsncmp: Move AC_LIBOBJ invocations to module description.
52730         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52731         here...
52732         * modules/wcsncmp (configure.ac): ... to here.
52734 2011-05-22  Bruno Haible  <bruno@clisp.org>
52736         wcsncat: Move AC_LIBOBJ invocations to module description.
52737         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52738         here...
52739         * modules/wcsncat (configure.ac): ... to here.
52741 2011-05-22  Bruno Haible  <bruno@clisp.org>
52743         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52744         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52745         from here...
52746         * modules/wcsncasecmp (configure.ac): ... to here.
52748 2011-05-22  Bruno Haible  <bruno@clisp.org>
52750         wcslen: Move AC_LIBOBJ invocations to module description.
52751         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52752         * modules/wcslen (configure.ac): ... to here.
52754 2011-05-22  Bruno Haible  <bruno@clisp.org>
52756         wcsdup: Move AC_LIBOBJ invocations to module description.
52757         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52758         * modules/wcsdup (configure.ac): ... to here.
52760 2011-05-22  Bruno Haible  <bruno@clisp.org>
52762         wcscspn: Move AC_LIBOBJ invocations to module description.
52763         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52764         here...
52765         * modules/wcscspn (configure.ac): ... to here.
52767 2011-05-22  Bruno Haible  <bruno@clisp.org>
52769         wcscpy: Move AC_LIBOBJ invocations to module description.
52770         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52771         * modules/wcscpy (configure.ac): ... to here.
52773 2011-05-22  Bruno Haible  <bruno@clisp.org>
52775         wcscoll: Move AC_LIBOBJ invocations to module description.
52776         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52777         here...
52778         * modules/wcscoll (configure.ac): ... to here.
52780 2011-05-22  Bruno Haible  <bruno@clisp.org>
52782         wcscmp: Move AC_LIBOBJ invocations to module description.
52783         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52784         * modules/wcscmp (configure.ac): ... to here.
52786 2011-05-22  Bruno Haible  <bruno@clisp.org>
52788         wcschr: Move AC_LIBOBJ invocations to module description.
52789         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52790         * modules/wcschr (configure.ac): ... to here.
52792 2011-05-22  Bruno Haible  <bruno@clisp.org>
52794         wcscat: Move AC_LIBOBJ invocations to module description.
52795         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52796         * modules/wcscat (configure.ac): ... to here.
52798 2011-05-22  Bruno Haible  <bruno@clisp.org>
52800         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52801         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52802         here...
52803         * modules/wcscasecmp (configure.ac): ... to here.
52805 2011-05-22  Bruno Haible  <bruno@clisp.org>
52807         wcrtomb: Move AC_LIBOBJ invocations to module description.
52808         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52809         invocations from here...
52810         * modules/wcrtomb (configure.ac): ... to here.
52812 2011-05-22  Bruno Haible  <bruno@clisp.org>
52814         wcpncpy: Move AC_LIBOBJ invocations to module description.
52815         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52816         here...
52817         * modules/wcpncpy (configure.ac): ... to here.
52819 2011-05-22  Bruno Haible  <bruno@clisp.org>
52821         wcpcpy: Move AC_LIBOBJ invocations to module description.
52822         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52823         * modules/wcpcpy (configure.ac): ... to here.
52825 2011-05-22  Bruno Haible  <bruno@clisp.org>
52827         waitpid: Move AC_LIBOBJ invocations to module description.
52828         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52829         invocation from here...
52830         * modules/waitpid (configure.ac): ... to here.
52832 2011-05-22  Bruno Haible  <bruno@clisp.org>
52834         utimensat: Move AC_LIBOBJ invocations to module description.
52835         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52836         here...
52837         * modules/utimensat (configure.ac): ... to here.
52839 2011-05-22  Bruno Haible  <bruno@clisp.org>
52841         usleep: Move AC_LIBOBJ invocations to module description.
52842         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52843         here...
52844         * modules/usleep (configure.ac): ... to here.
52846 2011-05-22  Bruno Haible  <bruno@clisp.org>
52848         unlockpt: Move AC_LIBOBJ invocations to module description.
52849         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52850         gl_PREREQ_UNLOCKPT invocations from here...
52851         * modules/unlockpt (configure.ac): ... to here.
52853 2011-05-22  Bruno Haible  <bruno@clisp.org>
52855         unlink: Respect rules for use of AC_LIBOBJ.
52856         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52857         * modules/unlink (configure.ac): ... to here.
52859 2011-05-22  Bruno Haible  <bruno@clisp.org>
52861         uname: Move AC_LIBOBJ invocations to module description.
52862         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52864         here...
52865         * modules/uname (configure.ac): ... to here.
52867 2011-05-22  Bruno Haible  <bruno@clisp.org>
52869         ttyname_r: Move AC_LIBOBJ invocations to module description.
52870         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52871         gl_PREREQ_TTYNAME_R invocations from here...
52872         * modules/ttyname_r (configure.ac): ... to here.
52874 2011-05-22  Bruno Haible  <bruno@clisp.org>
52876         tsearch: Move AC_LIBOBJ invocations to module description.
52877         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52878         invocations from here...
52879         * modules/tsearch (configure.ac): ... to here.
52881 2011-05-22  Bruno Haible  <bruno@clisp.org>
52883         towctrans: Move AC_LIBOBJ invocations to module description.
52884         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52885         AC_LIBOBJ invocation from here...
52886         * modules/towctrans (configure.ac): ... to here.
52888 2011-05-22  Bruno Haible  <bruno@clisp.org>
52890         tmpfile: Move AC_LIBOBJ invocations to module description.
52891         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52892         invocations from here...
52893         * modules/tmpfile (configure.ac): ... to here.
52895 2011-05-22  Bruno Haible  <bruno@clisp.org>
52897         times: Move AC_LIBOBJ invocations to module description.
52898         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52899         * modules/times (configure.ac): ... to here.
52901 2011-05-22  Bruno Haible  <bruno@clisp.org>
52903         time_r: Move AC_LIBOBJ invocations to module description.
52904         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52905         invocations from here...
52906         * modules/time_r (configure.ac): ... to here.
52908 2011-05-22  Bruno Haible  <bruno@clisp.org>
52910         timegm: Move AC_LIBOBJ invocations to module description.
52911         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52912         invocations from here...
52913         * modules/timegm (configure.ac): ... to here.
52915 2011-05-22  Bruno Haible  <bruno@clisp.org>
52917         tcgetsid: Move AC_LIBOBJ invocations to module description.
52918         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52919         and gl_PREREQ_TCGETSID invocations from here...
52920         * modules/tcgetsid (configure.ac): ... to here.
52921         (Depends-on): Update conditions.
52923 2011-05-22  Bruno Haible  <bruno@clisp.org>
52925         symlinkat: Move AC_LIBOBJ invocations to module description.
52926         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52927         here...
52928         * modules/symlinkat (configure.ac): ... to here.
52930 2011-05-22  Bruno Haible  <bruno@clisp.org>
52932         symlink: Move AC_LIBOBJ invocations to module description.
52933         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52934         here...
52935         * modules/symlink (configure.ac): ... to here.
52937 2011-05-22  Bruno Haible  <bruno@clisp.org>
52939         strverscmp: Move AC_LIBOBJ invocations to module description.
52940         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
52941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
52942         from here...
52943         * modules/strverscmp (configure.ac): ... to here.
52945 2011-05-22  Bruno Haible  <bruno@clisp.org>
52947         strtok_r: Move AC_LIBOBJ invocations to module description.
52948         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52949         and gl_PREREQ_STRTOK_R invocations from here...
52950         * modules/strtok_r (configure.ac): ... to here.
52951         (Depends-on): Update conditions.
52953 2011-05-22  Bruno Haible  <bruno@clisp.org>
52955         strtoumax: Move AC_LIBOBJ invocations to module description.
52956         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52958         from here...
52959         * modules/strtoumax (configure.ac): ... to here.
52961 2011-05-22  Bruno Haible  <bruno@clisp.org>
52963         strtoimax: Move AC_LIBOBJ invocations to module description.
52964         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52966         from here...
52967         * modules/strtoimax (configure.ac): ... to here.
52969 2011-05-22  Bruno Haible  <bruno@clisp.org>
52971         strtoull: Move AC_LIBOBJ invocations to module description.
52972         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52974         from here...
52975         * modules/strtoull (configure.ac): ... to here.
52977 2011-05-22  Bruno Haible  <bruno@clisp.org>
52979         strtoll: Move AC_LIBOBJ invocations to module description.
52980         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52981         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52982         here...
52983         * modules/strtoll (configure.ac): ... to here.
52985 2011-05-22  Bruno Haible  <bruno@clisp.org>
52987         strtoul: Move AC_LIBOBJ invocations to module description.
52988         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52989         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52990         * modules/strtoul (configure.ac): ... to here.
52992 2011-05-22  Bruno Haible  <bruno@clisp.org>
52994         strtol: Move AC_LIBOBJ invocations to module description.
52995         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52996         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52997         * modules/strtol (configure.ac): ... to here.
52999 2011-05-22  Bruno Haible  <bruno@clisp.org>
53001         strtod: Move AC_LIBOBJ invocations to module description.
53002         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53003         invocations from here...
53004         * modules/strtod (configure.ac): ... to here.
53006 2011-05-22  Bruno Haible  <bruno@clisp.org>
53008         strstr*: Move AC_LIBOBJ invocations to module description.
53009         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53010         invocations from here...
53011         * modules/strstr-simple (configure.ac): ... to here.
53012         * modules/strstr (configure.ac): ... and here.
53014 2011-05-22  Bruno Haible  <bruno@clisp.org>
53016         strsignal: Move AC_LIBOBJ invocations to module description.
53017         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53018         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53019         * modules/strsignal (configure.ac): ... to here.
53020         (Depends-on): Update conditions.
53022 2011-05-22  Bruno Haible  <bruno@clisp.org>
53024         strsep: Move AC_LIBOBJ invocations to module description.
53025         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53026         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53027         here...
53028         * modules/strsep (configure.ac): ... to here.
53030 2011-05-22  Bruno Haible  <bruno@clisp.org>
53032         strptime: Move AC_LIBOBJ invocations to module description.
53033         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53034         gl_PREREQ_STRPTIME invocations from here...
53035         * modules/strptime (configure.ac): ... to here.
53037 2011-05-22  Bruno Haible  <bruno@clisp.org>
53039         strpbrk: Move AC_LIBOBJ invocations to module description.
53040         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53042         here...
53043         * modules/strpbrk (configure.ac): ... to here.
53045 2011-05-22  Bruno Haible  <bruno@clisp.org>
53047         strnlen: Move AC_LIBOBJ invocations to module description.
53048         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53049         invocations from here...
53050         * modules/strnlen (configure.ac): ... to here.
53052 2011-05-22  Bruno Haible  <bruno@clisp.org>
53054         strndup: Move AC_LIBOBJ invocations to module description.
53055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53056         invocations from here...
53057         * modules/strndup (configure.ac): ... to here.
53058         (Depends-on): Update conditions.
53060 2011-05-22  Bruno Haible  <bruno@clisp.org>
53062         strncat: Move AC_LIBOBJ invocations to module description.
53063         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53064         invocations from here...
53065         * modules/strncat (configure.ac): ... to here.
53067 2011-05-22  Bruno Haible  <bruno@clisp.org>
53069         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53070         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53071         invocations from here...
53072         * modules/strdup (configure.ac): ... to here.
53073         * modules/strdup-posix (configure.ac): ... and here.
53075 2011-05-22  Bruno Haible  <bruno@clisp.org>
53077         strcspn: Move AC_LIBOBJ invocations to module description.
53078         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53080         here...
53081         * modules/strcspn (configure.ac): ... to here.
53083 2011-05-22  Bruno Haible  <bruno@clisp.org>
53085         strchrnul: Move AC_LIBOBJ invocations to module description.
53086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53087         gl_PREREQ_STRCHRNUL invocations from here...
53088         * modules/strchrnul (configure.ac): ... to here.
53090 2011-05-22  Bruno Haible  <bruno@clisp.org>
53092         strcasestr*: Move AC_LIBOBJ invocations to module description.
53093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53094         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53095         * modules/strcasestr-simple (configure.ac): ... to here.
53096         * modules/strcasestr (configure.ac): ... and here.
53098 2011-05-22  Bruno Haible  <bruno@clisp.org>
53100         strcase: Move AC_LIBOBJ invocations to module description.
53101         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53102         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53103         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53104         gl_PREREQ_STRNCASECMP invocations from here...
53105         * modules/strcase (configure.ac): ... to here.
53107 2011-05-22  Bruno Haible  <bruno@clisp.org>
53109         stpncpy: Move AC_LIBOBJ invocations to module description.
53110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53111         here...
53112         * modules/stpncpy (configure.ac): ... to here.
53114 2011-05-22  Bruno Haible  <bruno@clisp.org>
53116         stpcpy: Move AC_LIBOBJ invocations to module description.
53117         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53118         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53119         here...
53120         * modules/stpcpy (configure.ac): ... to here.
53122 2011-05-21  Bruno Haible  <bruno@clisp.org>
53124         stat: Move AC_LIBOBJ invocations to module description.
53125         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53126         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53127         here...
53128         * modules/stat (configure.ac): ... to here.
53130 2011-05-21  Bruno Haible  <bruno@clisp.org>
53132         sleep: Move AC_LIBOBJ invocations to module description.
53133         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53134         * modules/sleep (configure.ac): ... to here.
53136 2011-05-21  Bruno Haible  <bruno@clisp.org>
53138         signbit: Move AC_LIBOBJ invocations to module description.
53139         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53140         * modules/signbit (configure.ac): ... to here.
53142 2011-05-21  Bruno Haible  <bruno@clisp.org>
53144         sigprocmask: Move AC_LIBOBJ invocations to module description.
53145         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53146         gl_PREREQ_SIGPROMASK invocations from here...
53147         * modules/sigprocmask (configure.ac): ... to here.
53149 2011-05-21  Bruno Haible  <bruno@clisp.org>
53151         sigaction: Move AC_LIBOBJ invocations to module description.
53152         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53153         gl_PREREQ_SIGACTION invocations from here...
53154         * modules/sigaction (configure.ac): ... to here.
53156 2011-05-21  Bruno Haible  <bruno@clisp.org>
53158         sig2str: Move AC_LIBOBJ invocations to module description.
53159         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53161         here...
53162         * modules/sig2str (configure.ac): ... to here.
53164 2011-05-21  Bruno Haible  <bruno@clisp.org>
53166         setlocale: Move AC_LIBOBJ invocations to module description.
53167         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53168         gl_PREREQ_SETLOCALE invocations from here...
53169         * modules/setlocale (configure.ac): ... to here.
53171 2011-05-21  Bruno Haible  <bruno@clisp.org>
53173         unsetenv: Move AC_LIBOBJ invocations to module description.
53174         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53175         and gl_PREREQ_UNSETENV invocations from here...
53176         * modules/unsetenv (configure.ac): ... to here.
53177         (Depends-on): Update.
53179 2011-05-21  Bruno Haible  <bruno@clisp.org>
53181         setenv: Move AC_LIBOBJ invocations to module description.
53182         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53183         here...
53184         * modules/setenv (configure.ac): ... to here.
53186 2011-05-21  Bruno Haible  <bruno@clisp.org>
53188         selinux-h: Move AC_LIBOBJ invocations to module description.
53189         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53190         AC_LIBOBJ invocation from here...
53191         * modules/selinux-h (configure.ac): ... to here.
53193 2011-05-21  Bruno Haible  <bruno@clisp.org>
53195         select: Respect rules for use of AC_LIBOBJ.
53196         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53197         here...
53198         * modules/select (configure.ac): ... to here.
53200 2011-05-21  Bruno Haible  <bruno@clisp.org>
53202         scandir: Move AC_LIBOBJ invocations to module description.
53203         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53204         invocations from here...
53205         * modules/scandir (configure.ac): ... to here.
53207 2011-05-21  Bruno Haible  <bruno@clisp.org>
53209         rpmatch: Move AC_LIBOBJ invocations to module description.
53210         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53212         here...
53213         * modules/rpmatch (configure.ac): ... to here.
53215 2011-05-21  Bruno Haible  <bruno@clisp.org>
53217         rmdir: Respect rules for use of AC_LIBOBJ.
53218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53219         * modules/rmdir (configure.ac): ... to here.
53221 2011-05-21  Bruno Haible  <bruno@clisp.org>
53223         renameat: Move AC_LIBOBJ invocations to module description.
53224         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53225         here...
53226         * modules/renameat (configure.ac): ... to here.
53228 2011-05-21  Bruno Haible  <bruno@clisp.org>
53230         rename: Respect rules for use of AC_LIBOBJ.
53231         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53232         here...
53233         * modules/rename (configure.ac): ... to here.
53235 2011-05-21  Bruno Haible  <bruno@clisp.org>
53237         remove: Move AC_LIBOBJ invocations to module description.
53238         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53239         here...
53240         * modules/remove (configure.ac): ... to here.
53242 2011-05-21  Bruno Haible  <bruno@clisp.org>
53244         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53245         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53246         macro.
53247         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53248         * modules/relocatable-lib (configure.ac): ... to here.
53249         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53250         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53252 2011-05-21  Bruno Haible  <bruno@clisp.org>
53254         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53255         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53256         here...
53257         * modules/relocatable-prog (configure.ac): ... to here.
53259 2011-05-21  Bruno Haible  <bruno@clisp.org>
53261         regex: Move AC_LIBOBJ invocations to module description.
53262         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53263         invocations from here...
53264         * modules/regex (configure.ac): ... to here.
53266 2011-05-21  Bruno Haible  <bruno@clisp.org>
53268         realloc-*: Move AC_LIBOBJ invocations to module description.
53269         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53270         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53271         AC_LIBOBJ invocations from here...
53272         * modules/realloc-gnu (configure.ac): ... to here.
53273         * modules/realloc-posix (configure.ac): ... and here.
53275 2011-05-21  Bruno Haible  <bruno@clisp.org>
53277         readutmp: Move AC_LIBOBJ invocations to module description.
53278         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53279         * modules/readutmp (configure.ac): ... to here.
53281 2011-05-21  Bruno Haible  <bruno@clisp.org>
53283         readlinkat: Move AC_LIBOBJ invocations to module description.
53284         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53285         here...
53286         * modules/readlinkat (configure.ac): ... to here.
53288 2011-05-21  Bruno Haible  <bruno@clisp.org>
53290         readlink: Move AC_LIBOBJ invocations to module description.
53291         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53292         gl_PREREQ_READLINK invocations from here...
53293         * modules/readlink (configure.ac): ... to here.
53295 2011-05-21  Bruno Haible  <bruno@clisp.org>
53297         readline: Move AC_LIBOBJ invocations to module description.
53298         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53299         gl_PREREQ_READLINE invocations from here...
53300         * modules/readline (configure.ac): ... to here.
53302 2011-05-21  Bruno Haible  <bruno@clisp.org>
53304         read: Move AC_LIBOBJ invocations to module description.
53305         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53306         * modules/read (configure.ac): ... to here.
53308 2011-05-21  Bruno Haible  <bruno@clisp.org>
53310         rawmemchr: Move AC_LIBOBJ invocations to module description.
53311         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53313         from here...
53314         * modules/rawmemchr (configure.ac): ... to here.
53316 2011-05-21  Bruno Haible  <bruno@clisp.org>
53318         random_r: Move AC_LIBOBJ invocations to module description.
53319         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53320         gl_PREREQ_RANDOM_R invocations from here...
53321         * modules/random_r (configure.ac): ... to here.
53323 2011-05-21  Bruno Haible  <bruno@clisp.org>
53325         pwrite: Move AC_LIBOBJ invocations to module description.
53326         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53327         * modules/pwrite (configure.ac): ... to here.
53329 2011-05-21  Bruno Haible  <bruno@clisp.org>
53331         putenv: Move AC_LIBOBJ invocations to module description.
53332         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53333         * modules/putenv (configure.ac): ... to here.
53335 2011-05-21  Bruno Haible  <bruno@clisp.org>
53337         login_tty: Move AC_LIBOBJ invocations to module description.
53338         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53339         * modules/login_tty (configure.ac): ... to here.
53341 2011-05-21  Bruno Haible  <bruno@clisp.org>
53343         openpty: Move AC_LIBOBJ invocations to module description.
53344         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53345         * modules/openpty (configure.ac): ... to here.
53347 2011-05-21  Bruno Haible  <bruno@clisp.org>
53349         forkpty: Move AC_LIBOBJ invocations to module description.
53350         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53351         * modules/forkpty (configure.ac): ... to here.
53353 2011-05-21  Bruno Haible  <bruno@clisp.org>
53355         ptsname: Move AC_LIBOBJ invocations to module description.
53356         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53357         invocations from here...
53358         * modules/ptsname (configure.ac): ... to here.
53360 2011-05-21  Bruno Haible  <bruno@clisp.org>
53362         pread: Move AC_LIBOBJ invocations to module description.
53363         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53364         * modules/pread (configure.ac): ... to here.
53366 2011-05-21  Bruno Haible  <bruno@clisp.org>
53368         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53369         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53370         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53371         * modules/posix_spawn (configure.ac): ... to here.
53372         * modules/posix_spawnp (configure.ac): ... and here.
53374 2011-05-21  Bruno Haible  <bruno@clisp.org>
53376         popen: Move AC_LIBOBJ invocations to module description.
53377         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53378         invocations from here...
53379         * modules/popen (configure.ac): ... to here.
53381 2011-05-21  Bruno Haible  <bruno@clisp.org>
53383         poll: Move AC_LIBOBJ invocations to module description.
53384         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53385         invocations from here...
53386         * modules/poll (configure.ac): ... to here.
53388 2011-05-21  Bruno Haible  <bruno@clisp.org>
53390         pipe-posix: Move AC_LIBOBJ invocations to module description.
53391         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53392         * modules/pipe-posix (configure.ac): ... to here.
53394 2011-05-21  Bruno Haible  <bruno@clisp.org>
53396         openat: Respect rules for use of AC_LIBOBJ.
53397         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53398         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53399         * modules/openat (configure.ac): ... to here.
53401 2011-05-21  Bruno Haible  <bruno@clisp.org>
53403         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53404         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53405         invocation from here...
53406         * modules/obstack-printf (configure.ac): ... to here.
53407         * modules/obstack-printf-posix (configure.ac): ... and here.
53409 2011-05-21  Bruno Haible  <bruno@clisp.org>
53411         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53412         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53413         from here...
53414         * modules/nl_langinfo (configure.ac): ... to here.
53416 2011-05-21  Bruno Haible  <bruno@clisp.org>
53418         nanosleep: Move AC_LIBOBJ invocations to module description.
53419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53420         gl_PREREQ_NANOSLEEP invocations from here...
53421         * modules/nanosleep (configure.ac): ... to here.
53423 2011-05-21  Bruno Haible  <bruno@clisp.org>
53425         mountlist: Move AC_LIBOBJ invocations to module description.
53426         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53427         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53428         * modules/mountlist (configure.ac): ... to here.
53430 2011-05-21  Bruno Haible  <bruno@clisp.org>
53432         mktime: Respect rules for use of AC_LIBOBJ.
53433         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53434         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53435         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53436         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53437         * modules/mktime (configure.ac): ... to here.
53438         * modules/mktime-internal (configure.ac): ... and here.
53439         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53441 2011-05-21  Bruno Haible  <bruno@clisp.org>
53443         mkstemps: Move AC_LIBOBJ invocations to module description.
53444         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53445         here...
53446         * modules/mkstemps (configure.ac): ... to here.
53448 2011-05-21  Bruno Haible  <bruno@clisp.org>
53450         mkstemp: Move AC_LIBOBJ invocations to module description.
53451         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53452         gl_PREREQ_MKSTEMP invocations from here...
53453         * modules/mkstemp (configure.ac): ... to here.
53455 2011-05-21  Bruno Haible  <bruno@clisp.org>
53457         mkostemps: Move AC_LIBOBJ invocations to module description.
53458         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53459         here...
53460         * modules/mkostemps (configure.ac): ... to here.
53462 2011-05-21  Bruno Haible  <bruno@clisp.org>
53464         mkostemp: Move AC_LIBOBJ invocations to module description.
53465         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53466         gl_PREREQ_MKOSTEMP invocations from here...
53467         * modules/mkostemp (configure.ac): ... to here.
53469 2011-05-21  Bruno Haible  <bruno@clisp.org>
53471         mknod: Move AC_LIBOBJ invocations to module description.
53472         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53473         * modules/mknod (configure.ac): ... to here.
53475 2011-05-21  Bruno Haible  <bruno@clisp.org>
53477         mkfifoat: Move AC_LIBOBJ invocations to module description.
53478         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53479         here...
53480         * modules/mkfifoat (configure.ac): ... to here.
53482 2011-05-21  Bruno Haible  <bruno@clisp.org>
53484         mkfifo: Respect rules for use of AC_LIBOBJ.
53485         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53486         here...
53487         * modules/mkfifo (configure.ac): ... to here.
53489 2011-05-21  Bruno Haible  <bruno@clisp.org>
53491         mkdtemp: Move AC_LIBOBJ invocations to module description.
53492         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53493         invocations from here...
53494         * modules/mkdtemp (configure.ac): ... to here.
53496 2011-05-21  Bruno Haible  <bruno@clisp.org>
53498         mkdir: Move AC_LIBOBJ invocations to module description.
53499         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53500         * modules/mkdir (configure.ac): ... to here.
53502 2011-05-21  Bruno Haible  <bruno@clisp.org>
53504         memset: Move AC_LIBOBJ invocations to module description.
53505         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53507         here...
53508         * modules/memset (configure.ac): ... to here.
53510 2011-05-21  Bruno Haible  <bruno@clisp.org>
53512         memrchr: Move AC_LIBOBJ invocations to module description.
53513         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
53515         here...
53516         * modules/memrchr (configure.ac): ... to here.
53518 2011-05-21  Bruno Haible  <bruno@clisp.org>
53520         mempcpy: Move AC_LIBOBJ invocations to module description.
53521         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
53522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
53523         here...
53524         * modules/mempcpy (configure.ac): ... to here.
53526 2011-05-21  Bruno Haible  <bruno@clisp.org>
53528         memmove: Move AC_LIBOBJ invocations to module description.
53529         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
53530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
53531         here...
53532         * modules/memmove (configure.ac): ... to here.
53534 2011-05-21  Bruno Haible  <bruno@clisp.org>
53536         memmem*: Move AC_LIBOBJ invocations to module description.
53537         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
53538         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
53539         here...
53540         (gl_FUNC_MEMMEM): ... and here...
53541         * modules/memmem-simple (configure.ac): ... to here.
53542         * modules/memmem (configure.ac): ... and here.
53544 2011-05-21  Bruno Haible  <bruno@clisp.org>
53546         memcpy: Move AC_LIBOBJ invocations to module description.
53547         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
53548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
53549         here...
53550         * modules/memcpy (configure.ac): ... to here.
53552 2011-05-21  Bruno Haible  <bruno@clisp.org>
53554         memcmp: Simplify autoconf macro.
53555         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
53556         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
53557         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
53559 2011-05-21  Bruno Haible  <bruno@clisp.org>
53561         memcmp: Move AC_LIBOBJ invocations to module description.
53562         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
53563         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
53564         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
53565         * modules/memcmp (configure.ac): ... to here.
53566         (Depends-on): Update conditions.
53568 2011-05-21  Bruno Haible  <bruno@clisp.org>
53570         memchr: Respect rules for use of AC_LIBOBJ.
53571         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
53572         invocations from here...
53573         * modules/memchr (configure.ac): ... to here.
53575 2011-05-21  Bruno Haible  <bruno@clisp.org>
53577         mbtowc: Move AC_LIBOBJ invocations to module description.
53578         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
53579         invocations from here...
53580         * modules/mbtowc (configure.ac): ... to here.
53582 2011-05-21  Bruno Haible  <bruno@clisp.org>
53584         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
53585         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53586         gl_PREREQ_MBSRTOWCS invocations from here...
53587         * modules/mbsrtowcs (configure.ac): ... to here.
53589 2011-05-21  Bruno Haible  <bruno@clisp.org>
53591         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53592         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53593         gl_PREREQ_MBSNRTOWCS invocations from here...
53594         * modules/mbsnrtowcs (configure.ac): ... to here.
53596 2011-05-21  Bruno Haible  <bruno@clisp.org>
53598         mbsinit: Move AC_LIBOBJ invocations to module description.
53599         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53600         invocations from here...
53601         * modules/mbsinit (configure.ac): ... to here.
53603 2011-05-21  Bruno Haible  <bruno@clisp.org>
53605         mbrlen: Move AC_LIBOBJ invocations to module description.
53606         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53607         invocations from here...
53608         * modules/mbrlen (configure.ac): ... to here.
53610 2011-05-21  Bruno Haible  <bruno@clisp.org>
53612         mbrtowc: Respect rules for use of AC_LIBOBJ.
53613         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53614         invocations from here...
53615         * modules/mbrtowc (configure.ac): ... to here.
53617 2011-05-21  Bruno Haible  <bruno@clisp.org>
53619         malloc-*: Move AC_LIBOBJ invocations to module description.
53620         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53621         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53622         AC_LIBOBJ invocations from here...
53623         * modules/malloc-gnu (configure.ac): ... to here.
53624         * modules/malloc-posix (configure.ac): ... and here.
53626 2011-05-21  Bruno Haible  <bruno@clisp.org>
53628         lstat, openat: Respect rules for use of AC_LIBOBJ.
53629         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53630         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53631         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53632         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53633         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53634         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53635         here.
53636         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53638 2011-05-21  Bruno Haible  <bruno@clisp.org>
53640         lseek: Move AC_LIBOBJ invocations to module description.
53641         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53642         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53643         * modules/lseek (configure.ac): ... to here.
53645 2011-05-21  Bruno Haible  <bruno@clisp.org>
53647         linkat: Move AC_LIBOBJ invocations to module description.
53648         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53649         here...
53650         * modules/linkat (configure.ac): ... to here.
53652 2011-05-21  Bruno Haible  <bruno@clisp.org>
53654         link: Respect rules for use of AC_LIBOBJ.
53655         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53656         * modules/link (configure.ac): ... to here.
53658 2011-05-21  Bruno Haible  <bruno@clisp.org>
53660         lchown: Move AC_LIBOBJ invocations to module description.
53661         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53662         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53663         * modules/lchown (configure.ac): ... to here.
53665 2011-05-21  Bruno Haible  <bruno@clisp.org>
53667         iswctype: Move AC_LIBOBJ invocations to module description.
53668         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53669         here...
53670         * modules/iswctype (configure.ac): ... to here.
53672 2011-05-21  Bruno Haible  <bruno@clisp.org>
53674         iswblank: Move AC_LIBOBJ invocations to module description.
53675         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53676         here...
53677         * modules/iswblank (configure.ac): ... to here.
53679 2011-05-21  Bruno Haible  <bruno@clisp.org>
53681         atanl: Move AC_LIBOBJ invocations to module description.
53682         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53683         * modules/atanl (configure.ac): ... to here.
53685 2011-05-21  Bruno Haible  <bruno@clisp.org>
53687         acosl: Move AC_LIBOBJ invocations to module description.
53688         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53689         * modules/acosl (configure.ac): ... to here.
53691 2011-05-21  Bruno Haible  <bruno@clisp.org>
53693         asinl: Respect rules for use of AC_LIBOBJ.
53694         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53695         * modules/asinl (configure.ac): ... to here.
53697 2011-05-21  Bruno Haible  <bruno@clisp.org>
53699         tanl: Move AC_LIBOBJ invocations to module description.
53700         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53701         * modules/tanl (configure.ac): ... to here.
53703 2011-05-21  Bruno Haible  <bruno@clisp.org>
53705         cosl: Move AC_LIBOBJ invocations to module description.
53706         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53707         * modules/cosl (configure.ac): ... to here.
53709 2011-05-21  Bruno Haible  <bruno@clisp.org>
53711         sinl: Move AC_LIBOBJ invocations to module description.
53712         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53713         * modules/sinl (configure.ac): ... to here.
53715 2011-05-21  Bruno Haible  <bruno@clisp.org>
53717         logl: Move AC_LIBOBJ invocations to module description.
53718         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53719         * modules/logl (configure.ac): ... to here.
53721 2011-05-21  Bruno Haible  <bruno@clisp.org>
53723         expl: Move AC_LIBOBJ invocations to module description.
53724         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53725         * modules/expl (configure.ac): ... to here.
53727 2011-05-21  Bruno Haible  <bruno@clisp.org>
53729         roundl: Move AC_LIBOBJ invocations to module description.
53730         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53731         * modules/roundl (configure.ac): ... to here.
53733 2011-05-21  Bruno Haible  <bruno@clisp.org>
53735         round: Move AC_LIBOBJ invocations to module description.
53736         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53737         * modules/round (configure.ac): ... to here.
53739 2011-05-21  Bruno Haible  <bruno@clisp.org>
53741         roundf: Move AC_LIBOBJ invocations to module description.
53742         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53743         * modules/roundf (configure.ac): ... to here.
53745 2011-05-21  Bruno Haible  <bruno@clisp.org>
53747         truncl: Move AC_LIBOBJ invocations to module description.
53748         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53749         * modules/truncl (configure.ac): ... to here.
53751 2011-05-21  Bruno Haible  <bruno@clisp.org>
53753         trunc: Move AC_LIBOBJ invocations to module description.
53754         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53755         * modules/trunc (configure.ac): ... to here.
53757 2011-05-21  Bruno Haible  <bruno@clisp.org>
53759         truncf: Move AC_LIBOBJ invocations to module description.
53760         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53761         * modules/truncf (configure.ac): ... to here.
53763 2011-05-21  Bruno Haible  <bruno@clisp.org>
53765         ceill: Move AC_LIBOBJ invocations to module description.
53766         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53767         * modules/ceill (configure.ac): ... to here.
53769 2011-05-21  Bruno Haible  <bruno@clisp.org>
53771         ceil: Move AC_LIBOBJ invocations to module description.
53772         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53773         * modules/ceil (configure.ac): ... to here.
53775 2011-05-21  Bruno Haible  <bruno@clisp.org>
53777         ceilf: Move AC_LIBOBJ invocations to module description.
53778         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53779         * modules/ceilf (configure.ac): ... to here.
53781 2011-05-21  Bruno Haible  <bruno@clisp.org>
53783         floorl: Respect rules for use of AC_LIBOBJ.
53784         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53785         * modules/floorl (configure.ac): ... to here.
53787 2011-05-21  Bruno Haible  <bruno@clisp.org>
53789         floor: Respect rules for use of AC_LIBOBJ.
53790         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53791         * modules/floor (configure.ac): ... to here.
53793 2011-05-21  Bruno Haible  <bruno@clisp.org>
53795         floorf: Move AC_LIBOBJ invocations to module description.
53796         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53797         * modules/floorf (configure.ac): ... to here.
53799 2011-05-20  Bruno Haible  <bruno@clisp.org>
53801         sqrtl: Respect rules for use of AC_LIBOBJ.
53802         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53803         * modules/sqrtl (configure.ac): ... to here.
53805 2011-05-20  Bruno Haible  <bruno@clisp.org>
53807         ldexpl: Respect rules for use of AC_LIBOBJ.
53808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53809         * modules/ldexpl (configure.ac): ... to here.
53811 2011-05-20  Bruno Haible  <bruno@clisp.org>
53813         frexpl*: Respect rules for use of AC_LIBOBJ.
53814         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53815         invocation from here...
53816         * modules/frexpl (configure.ac): ... to here.
53817         * modules/frexpl-nolibm (configure.ac): ... and here.
53819 2011-05-20  Bruno Haible  <bruno@clisp.org>
53821         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53822         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53823         invocation from here...
53824         * modules/frexp (configure.ac): ... to here.
53825         * modules/frexp-nolibm (configure.ac): ... and here.
53827 2011-05-20  Bruno Haible  <bruno@clisp.org>
53829         isnan: Respect rules for use of AC_LIBOBJ.
53830         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53831         invocations here.
53832         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53833         REPLACE_ISNAN.
53834         * modules/isnand (configure.ac): Likewise.
53835         * modules/isnanl (configure.ac): Likewise.
53837 2011-05-20  Bruno Haible  <bruno@clisp.org>
53839         isnanl*: Respect rules for use of AC_LIBOBJ.
53840         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53841         invocation from here...
53842         * modules/isnanl (configure.ac): ... to here.
53843         * modules/isnanl-nolibm (configure.ac): ... and here.
53845 2011-05-20  Bruno Haible  <bruno@clisp.org>
53847         isnand*: Move AC_LIBOBJ invocations to module description.
53848         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53849         invocation from here...
53850         * modules/isnand (configure.ac): ... to here.
53851         * modules/isnand-nolibm (configure.ac): ... and here.
53853 2011-05-20  Bruno Haible  <bruno@clisp.org>
53855         isnanf*: Move AC_LIBOBJ invocations to module description.
53856         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53857         invocation from here...
53858         * modules/isnanf (configure.ac): ... to here.
53859         * modules/isnanf-nolibm (configure.ac): ... and here.
53861 2011-05-20  Bruno Haible  <bruno@clisp.org>
53863         isnan*: Separate the AC_LIBOBJ invocations.
53864         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53865         AC_LIBOBJ invocation.
53866         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53867         here.
53868         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53869         AC_LIBOBJ invocation.
53870         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53871         here.
53872         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53873         AC_LIBOBJ invocation.
53874         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53875         here.
53876         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53878 2011-05-08  Bruno Haible  <bruno@clisp.org>
53880         isinf: Move AC_LIBOBJ invocations to module description.
53881         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53882         * modules/isinf (configure.ac): ... to here.
53884 2011-05-08  Bruno Haible  <bruno@clisp.org>
53886         isfinite: Move AC_LIBOBJ invocations to module description.
53887         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53888         * modules/isfinite (configure.ac): ... to here.
53890 2011-05-08  Bruno Haible  <bruno@clisp.org>
53892         isblank: Move AC_LIBOBJ invocations to module description.
53893         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53894         here...
53895         * modules/isblank (configure.ac): ... to here.
53897 2011-05-08  Bruno Haible  <bruno@clisp.org>
53899         isapipe: Move AC_LIBOBJ invocations to module description.
53900         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53901         gl_PREREQ_ISAPIPE invocations from here...
53902         * modules/isapipe (configure.ac): ... to here.
53903         (Depends-on): Update condition.
53905 2011-05-08  Bruno Haible  <bruno@clisp.org>
53907         ioctl: Move AC_LIBOBJ invocations to module description.
53908         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53909         invocations from here...
53910         * modules/ioctl (configure.ac): ... to here.
53911         (Depends-on): Update condition.
53913 2011-05-08  Bruno Haible  <bruno@clisp.org>
53915         imaxdiv: Move AC_LIBOBJ invocations to module description.
53916         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53917         invocations from here...
53918         * modules/imaxdiv (configure.ac): ... to here.
53920 2011-05-08  Bruno Haible  <bruno@clisp.org>
53922         imaxabs: Move AC_LIBOBJ invocations to module description.
53923         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53924         invocations from here...
53925         * modules/imaxabs (configure.ac): ... to here.
53927 2011-05-08  Bruno Haible  <bruno@clisp.org>
53929         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53930         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53931         AC_LIBOBJ invocations from here...
53932         * modules/getaddrinfo (configure.ac): ... to here.
53933         (Depends-on): Add conditions.
53935 2011-05-08  Bruno Haible  <bruno@clisp.org>
53937         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53938         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
53939         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53940         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
53941         (gl_PREREQ_INET_PTON): ... from here.
53942         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
53943         gl_PREREQ_INET_PTON here.
53944         (Depends-on): Update condition.
53946 2011-05-08  Bruno Haible  <bruno@clisp.org>
53948         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53949         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53950         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53951         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53952         (gl_PREREQ_INET_NTOP): ... from here.
53953         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53954         gl_PREREQ_INET_NTOP here.
53955         (Depends-on): Update condition.
53957 2011-05-08  Bruno Haible  <bruno@clisp.org>
53959         iconv_open: Move AC_LIBOBJ invocations to module description.
53960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53961         AC_LIBOBJ invocations from here...
53962         * modules/iconv_open (configure.ac): ... to here.
53964 2011-05-08  Bruno Haible  <bruno@clisp.org>
53966         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53967         If module 'iconv_open' is among the main modules and module
53968         'iconv_open-utf' is among the tests dependencies, then
53969         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53970         return the special iconv_t values. Therefore iconv() and iconv_close()
53971         must support these special iconv_t values, already in lib, not only in
53972         tests.
53973         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53975         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53976         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53977         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53978         (Depends-on): Add the dependencies of iconv_open-utf.
53979         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53980         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53981         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53983 2011-05-08  Bruno Haible  <bruno@clisp.org>
53985         group-member: Move AC_LIBOBJ invocations to module description.
53986         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53987         gl_PREREQ_GROUP_MEMBER invocations from here...
53988         * modules/group-member (configure.ac): ... to here.
53990 2011-05-08  Bruno Haible  <bruno@clisp.org>
53992         grantpt: Move AC_LIBOBJ invocations to module description.
53993         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53994         invocations from here...
53995         * modules/grantpt (configure.ac): ... to here.
53997 2011-05-08  Bruno Haible  <bruno@clisp.org>
53999         glob: Move AC_LIBOBJ invocations to module description.
54000         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54001         from here...
54002         * modules/glob (configure.ac): ... to here.
54004 2011-05-08  Bruno Haible  <bruno@clisp.org>
54006         getusershell: Move AC_LIBOBJ invocations to module description.
54007         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54008         Move AC_LIBOBJ invocation from here...
54009         * modules/getusershell (configure.ac): ... to here.
54010         (Depends-on): Update condition.
54012 2011-05-08  Bruno Haible  <bruno@clisp.org>
54014         gettimeofday: Move AC_LIBOBJ invocations to module description.
54015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54016         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54017         gl_PREREQ_GETTIMEOFDAY invocations from here...
54018         * modules/gettimeofday (configure.ac): ... to here.
54020 2011-05-08  Bruno Haible  <bruno@clisp.org>
54022         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54023         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54024         just gl_FUNC_TZSET.
54025         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54026         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54028         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54030 2011-05-08  Bruno Haible  <bruno@clisp.org>
54032         getsubopt: Move AC_LIBOBJ invocations to module description.
54033         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54034         gl_PREREQ_GETSUBOPT invocations from here...
54035         * modules/getsubopt (configure.ac): ... to here.
54037 2011-05-08  Bruno Haible  <bruno@clisp.org>
54039         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54040         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54041         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54042         * modules/getpass-gnu (configure.ac): ... to here.
54044 2011-05-08  Bruno Haible  <bruno@clisp.org>
54046         getpass: Move AC_LIBOBJ invocations to module description.
54047         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54048         gl_PREREQ_GETPASS invocations from here...
54049         * modules/getpass (configure.ac): ... to here.
54051 2011-05-08  Bruno Haible  <bruno@clisp.org>
54053         getpagesize: Move AC_LIBOBJ invocations to module description.
54054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54055         from here...
54056         * modules/getpagesize (configure.ac): ... to here.
54058 2011-05-08  Bruno Haible  <bruno@clisp.org>
54060         getopt: Move AC_LIBOBJ invocations to module description.
54061         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54062         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54063         invocations from here...
54064         * modules/getopt-gnu (configure.ac): ... to here.
54065         * modules/getopt-posix (configure.ac): ... and here.
54066         (Depends-on): Update condition.
54068 2011-05-08  Bruno Haible  <bruno@clisp.org>
54070         getopt, argp: Respect rules for use of AC_LIBOBJ.
54071         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54072         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54073         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54074         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54076 2011-05-08  Bruno Haible  <bruno@clisp.org>
54078         getlogin_r: Move AC_LIBOBJ invocations to module description.
54079         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54080         gl_PREREQ_GETLOGIN_R invocations from here...
54081         * modules/getlogin_r (configure.ac): ... to here.
54083 2011-05-08  Bruno Haible  <bruno@clisp.org>
54085         getlogin: Move AC_LIBOBJ invocations to module description.
54086         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54087         here...
54088         * modules/getlogin (configure.ac): ... to here.
54090 2011-05-08  Bruno Haible  <bruno@clisp.org>
54092         getloadavg: Move AC_LIBOBJ invocations to module description.
54093         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54094         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54095         * modules/getloadavg (configure.ac): ... to here.
54097 2011-05-08  Bruno Haible  <bruno@clisp.org>
54099         gethrxtime: Move AC_LIBOBJ invocations to module description.
54100         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54101         LIB_GETHRXTIME from here...
54102         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54103         invocations from here...
54104         * modules/gethrxtime (configure.ac): ... to here.
54106 2011-05-08  Bruno Haible  <bruno@clisp.org>
54108         gethostname: Move AC_LIBOBJ invocations to module description.
54109         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54110         gl_PREREQ_GETHOSTNAME invocations from here...
54111         * modules/gethostname (configure.ac): ... to here.
54113 2011-05-08  Bruno Haible  <bruno@clisp.org>
54115         getgroups: Move AC_LIBOBJ invocations to module description.
54116         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54117         here...
54118         * modules/getgroups (configure.ac): ... to here.
54120 2011-05-08  Bruno Haible  <bruno@clisp.org>
54122         getdtablesize: Move AC_LIBOBJ invocations to module description.
54123         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54124         invocation from here...
54125         * modules/getdtablesize (configure.ac): ... to here.
54127 2011-05-08  Bruno Haible  <bruno@clisp.org>
54129         getdomainname: Move AC_LIBOBJ invocations to module description.
54130         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54131         gl_PREREQ_GETDOMAINNAME invocations from here...
54132         * modules/getdomainname (configure.ac): ... to here.
54134 2011-05-08  Bruno Haible  <bruno@clisp.org>
54136         getline: Move AC_LIBOBJ invocations to module description.
54137         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54138         invocations from here...
54139         * modules/getline (configure.ac): ... to here.
54141 2011-05-08  Bruno Haible  <bruno@clisp.org>
54143         getline: Simplify.
54144         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54145         It's already handled through the module dependency.
54147 2011-05-08  Bruno Haible  <bruno@clisp.org>
54149         getdelim: Move AC_LIBOBJ invocations to module description.
54150         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54151         and gl_PREREQ_GETDELIM invocations from here...
54152         * modules/getdelim (configure.ac): ... to here.
54153         (Depends-on): Fix condition.
54155 2011-05-08  Bruno Haible  <bruno@clisp.org>
54157         getcwd: Move AC_LIBOBJ invocations to module description.
54158         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54159         invocations from here...
54160         * modules/getcwd (configure.ac): ... to here.
54162 2011-05-08  Bruno Haible  <bruno@clisp.org>
54164         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54165         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54166         here...
54167         * modules/getcwd-lgpl (configure.ac): ... to here.
54169 2011-05-07  Bruno Haible  <bruno@clisp.org>
54171         crypto/gc: Move AC_LIBOBJ invocations to module description.
54172         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54173         * modules/crypto/gc (configure.ac): ... to here.
54175 2011-05-07  Bruno Haible  <bruno@clisp.org>
54177         fwriting: Move AC_LIBOBJ invocations to module description.
54178         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54179         here...
54180         * modules/fwriting (configure.ac): ... to here.
54182 2011-05-07  Bruno Haible  <bruno@clisp.org>
54184         fwritable: Move AC_LIBOBJ invocations to module description.
54185         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54186         here...
54187         * modules/fwritable (configure.ac): ... to here.
54189 2011-05-07  Bruno Haible  <bruno@clisp.org>
54191         futimens: Move AC_LIBOBJ invocations to module description.
54192         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54193         here...
54194         * modules/futimens (configure.ac): ... to here.
54196 2011-05-07  Bruno Haible  <bruno@clisp.org>
54198         ftruncate: Move AC_LIBOBJ invocations to module description.
54199         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54200         gl_PREREQ_FTRUNCATE invocations from here...
54201         * modules/ftruncate (configure.ac): ... to here.
54203 2011-05-07  Bruno Haible  <bruno@clisp.org>
54205         fsync: Move AC_LIBOBJ invocations to module description.
54206         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54207         invocations from here...
54208         * modules/fsync (configure.ac): ... to here.
54210 2011-05-07  Bruno Haible  <bruno@clisp.org>
54212         fsusage: Move AC_LIBOBJ invocations to module description.
54213         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54214         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54215         * modules/fsusage (configure.ac): ... to here.
54217 2011-05-07  Bruno Haible  <bruno@clisp.org>
54219         freopen: Move AC_LIBOBJ invocations to module description.
54220         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54221         invocations from here...
54222         * modules/freopen (configure.ac): ... to here.
54224 2011-05-07  Bruno Haible  <bruno@clisp.org>
54226         free: Move AC_LIBOBJ invocations to module description.
54227         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54228         invocations from here...
54229         * modules/free (configure.ac): ... to here.
54231 2011-05-07  Bruno Haible  <bruno@clisp.org>
54233         freadable: Move AC_LIBOBJ invocations to module description.
54234         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54235         here...
54236         * modules/freadable (configure.ac): ... to here.
54238 2011-05-07  Bruno Haible  <bruno@clisp.org>
54240         fpurge: Move AC_LIBOBJ invocations to module description.
54241         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54242         invocations from here...
54243         * modules/fpurge (configure.ac): ... to here.
54245 2011-05-07  Bruno Haible  <bruno@clisp.org>
54247         fpending: Move AC_LIBOBJ invocations to module description.
54248         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54249         gl_FUNC_FPENDING.
54250         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54251         invocations from here...
54252         * modules/fpending (configure.ac): ... to here.
54254 2011-05-07  Bruno Haible  <bruno@clisp.org>
54256         fopen: Move AC_LIBOBJ invocations to module description.
54257         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54258         invocations from here...
54259         * modules/fopen (configure.ac): ... to here.
54261 2011-05-07  Bruno Haible  <bruno@clisp.org>
54263         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54264         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54265         gl_FUNC_FNMATCH_POSIX.
54266         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54267         invocations from here...
54268         * modules/fnmatch (configure.ac): ... to here.
54269         * modules/fnmatch-gnu (configure.ac): ... and here.
54271 2011-05-07  Bruno Haible  <bruno@clisp.org>
54273         flock: Move AC_LIBOBJ invocations to module description.
54274         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54275         invocations from here...
54276         * modules/flock (configure.ac): ... to here.
54278 2011-05-07  Bruno Haible  <bruno@clisp.org>
54280         fileblocks: Move AC_LIBOBJ invocations to module description.
54281         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54282         gl_PREREQ_FILEBLOCKS invocations from here...
54283         * modules/fileblocks (configure.ac): ... to here.
54285 2011-05-06  Bruno Haible  <bruno@clisp.org>
54287         fflush: Move AC_LIBOBJ invocations to module description.
54288         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54289         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54290         invocations from here...
54291         * modules/fflush (configure.ac): ... to here.
54293 2011-05-06  Bruno Haible  <bruno@clisp.org>
54295         fdopendir: Move AC_LIBOBJ invocations to module description.
54296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54297         here...
54298         * modules/fdopendir (configure.ac): ... to here.
54299         (Depends-on): Improve conditions.
54301 2011-05-06  Bruno Haible  <bruno@clisp.org>
54303         _Exit: Move AC_LIBOBJ invocations to module description.
54304         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54305         invocations from here...
54306         * modules/_Exit (configure.ac): ... to here.
54308 2011-05-21  Bruno Haible  <bruno@clisp.org>
54310         euidaccess: Respect rules for use of AC_LIBOBJ.
54311         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54313         from here...
54314         * modules/euidaccess (configure.ac): ... to here.
54316 2011-05-06  Bruno Haible  <bruno@clisp.org>
54318         error: Move AC_LIBOBJ invocations to module description.
54319         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54320         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54321         invocations from here...
54322         * modules/error (configure.ac): ... to here.
54324 2011-05-06  Bruno Haible  <bruno@clisp.org>
54326         duplocale: Move AC_LIBOBJ invocations to module description.
54327         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54328         gl_PREREQ_DUPLOCALE invocations from here...
54329         * modules/duplocale (configure.ac): ... to here.
54331 2011-05-05  Bruno Haible  <bruno@clisp.org>
54333         dirfd: Move AC_LIBOBJ invocations to module description.
54334         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54335         gl_FUNC_DIRFD.
54336         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54337         here...
54338         * modules/dirfd (configure.ac): ... to here.
54339         (Depends-on): Fix condition.
54341 2011-05-05  Bruno Haible  <bruno@clisp.org>
54343         chown: Respect rules for use of AC_LIBOBJ.
54344         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54345         * modules/chown (configure.ac): ... to here.
54347 2011-05-05  Bruno Haible  <bruno@clisp.org>
54349         chdir-long: Move AC_LIBOBJ invocations to module description.
54350         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54351         gl_PREREQ_CHDIR_LONG invocations from here...
54352         * modules/chdir-long (configure.ac): ... to here.
54354 2011-05-05  Bruno Haible  <bruno@clisp.org>
54356         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54357         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54358         from here...
54359         * modules/canonicalize-lgpl (configure.ac): ... to here.
54361 2011-05-05  Bruno Haible  <bruno@clisp.org>
54363         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54364         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54365         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54366         REPLACE_CALLOC.
54367         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54368         * modules/calloc-gnu (configure.ac): Likewise.
54370 2011-05-05  Bruno Haible  <bruno@clisp.org>
54372         btowc: Move AC_LIBOBJ invocations to module description.
54373         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54374         invocations from here...
54375         * modules/btowc (configure.ac): ... to here.
54377 2011-05-21  Bruno Haible  <bruno@clisp.org>
54379         atexit: Move AC_LIBOBJ invocations to module description.
54380         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54382         here...
54383         * modules/atexit (configure.ac): ... to here.
54385 2011-05-05  Bruno Haible  <bruno@clisp.org>
54387         atoll: Move AC_LIBOBJ invocations to module description.
54388         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54389         invocations from here...
54390         * modules/atoll (configure.ac): ... to here.
54392 2011-05-05  Bruno Haible  <bruno@clisp.org>
54394         argz: Move AC_LIBOBJ invocations to module description.
54395         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54396         * modules/argz (configure.ac): ... to here.
54398 2011-05-05  Bruno Haible  <bruno@clisp.org>
54400         alphasort: Move AC_LIBOBJ invocations to module description.
54401         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54402         gl_PREREQ_ALPHASORT invocations from here...
54403         * modules/alphasort (configure.ac): ... to here.
54405 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54407         verify: new macro verify_expr; verify_true deprecated
54408         * NEWS: Mention this.
54409         * doc/verify.texi (Compile-time Assertions): Document this.
54410         * lib/verify.h (verify_true): Deprecate.
54411         (verify_expr): New macro.
54412         * tests/test-verify.c (function): Test verify_expr.
54414 2011-06-14  Jim Meyering  <meyering@redhat.com>
54416         init.sh: give more portable redirection-related advice in a comment
54417         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54418         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54419         for lots of discussion.  Stefano Lattarini suggested the solution
54420         of putting "9>&2" after the command.  Reported by Bruno Haible.
54422 2011-06-13  Bruno Haible  <bruno@clisp.org>
54424         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54425         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54426         'none'.
54428 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54430         ftoastr: use strtof only if HAVE_STRTOF
54431         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54432         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54433         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54434         * modules/ftoastr (configure.ac): Check for strtof.
54436 2011-06-13  Bruno Haible  <bruno@clisp.org>
54438         gnulib-tool: Addendum to 2011-06-08 commit.
54439         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54440         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54442 2011-06-13  Bruno Haible  <bruno@clisp.org>
54444         fseeko: Provide a non-inline replacement of fseek().
54445         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54446         * modules/fseeko (Depends-on): Add fseek.
54447         * modules/fseek (License): Change to LGPLv2+.
54449 2011-06-13  Bruno Haible  <bruno@clisp.org>
54451         ftello: Provide a non-inline replacement of ftell().
54452         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54453         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54454         not have ftello() (such as on mingw).
54455         * modules/ftello (Depends-on): Add ftell.
54456         * modules/ftell (License): Change to LGPLv2+.
54458 2011-05-07  Bruno Haible  <bruno@clisp.org>
54460         ftell: Move AC_LIBOBJ invocations to module description.
54461         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54462         * modules/ftell (configure.ac): ... to here.
54464 2011-05-07  Bruno Haible  <bruno@clisp.org>
54466         ftello: Respect rules for use of AC_LIBOBJ.
54467         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54468         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54469         here...
54470         * modules/ftello (configure.ac): ... to here.
54472 2011-05-07  Bruno Haible  <bruno@clisp.org>
54474         fseeko: Simplify.
54475         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54476         (gl_FUNC_FSEEKO): Inline it here.
54478 2011-05-07  Bruno Haible  <bruno@clisp.org>
54480         fseek: Move AC_LIBOBJ invocations to module description.
54481         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54482         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54483         * modules/fseek (configure.ac): ... to here.
54485 2011-05-07  Bruno Haible  <bruno@clisp.org>
54487         fseek: Respect rules for use of AC_LIBOBJ.
54488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54489         here...
54490         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54492 2011-05-07  Bruno Haible  <bruno@clisp.org>
54494         fseeko: Respect rules for use of AC_LIBOBJ.
54495         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54496         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54497         here...
54498         * modules/fseeko (configure.ac): ... to here.
54500 2011-06-13  Bruno Haible  <bruno@clisp.org>
54502         gnulib-tool: Allow comments in the 'Depends-on' section.
54503         * doc/gnulib.texi (Module description): Mention comment syntax in the
54504         Depends-on section.
54505         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54507 2011-06-13  Bruno Haible  <bruno@clisp.org>
54509         file-set.h: guard __attibute__ use, now that it's not always defined
54510         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54511         versions that support it.  This fixes a coreutils build failure with
54512         the vendor cc on HP-UX 11.31.
54514 2011-06-12  Bruno Haible  <bruno@clisp.org>
54516         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54517         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
54518         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
54519         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
54520         (acl, aclsort): New declarations.
54521         (aclv_nontrivial): New declaration.
54522         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
54523         (file_has_acl): Read also the second kind of HP-UX ACLs.
54524         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
54525         kind of HP-UX ACLs if the first kind fails.
54526         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
54527         second kind of HP-UX ACLs.
54528         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
54529         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
54530         agree.
54531         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54532         hpuxjfs.
54533         Handle hpuxjfs.
54534         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54535         hpuxjfs.
54536         Handle hpuxjfs.
54537         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54538         (func_test_same_acls): Use both lsacl and getacl.
54539         Handle hpuxjfs.
54540         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54541         (func_test_same_acls): Use both lsacl and getacl.
54542         Handle hpuxjfs.
54544 2011-06-12  Bruno Haible  <bruno@clisp.org>
54546         acl: Complete the 2010-08-10 fix.
54547         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
54548         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
54549         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
54550         explicitly.
54551         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
54552         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
54554 2011-06-12  Bruno Haible  <bruno@clisp.org>
54556         spawn-pipe tests: Comments.
54557         * tests/test-spawn-pipe-child.c (main): Update comment.
54558         Reported by James Youngman <jay@gnu.org>.
54560 2011-06-11  James Youngman  <jay@gnu.org>
54562         New module 'stat-size'.
54563         * modules/stat-size: New module.  Provides macros for accessing
54564         file size information in instances of struct stat.  Depends on the
54565         fileblocks module because it calls st_blocks.
54566         * lib/stat-size.h: New file, adapted from coreutils' system.h.
54567         * doc/gnulib.texi: Include stat-size.texi.
54568         * doc/stat-size.texi: Documentation for this module.
54569         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
54570         * m4/fileblocks.m4: Mention that stat-size depends on the call to
54571         AC_STRUCT_ST_BLOCKS.
54573 2011-06-09  Bruno Haible  <bruno@clisp.org>
54575         thread: Support pthreads-win32.
54576         * lib/glthread/thread.h (gl_thread_self): Define differently on
54577         pthreads-win32.
54578         (gl_null_thread): New declaration.
54579         (gl_thread_self_pointer): New macro.
54580         * lib/glthread/thread.c (gl_null_thread): New constant.
54581         * tests/test-lock.c: Use gl_thread_self_pointer instead of
54582         gl_thread_self.
54583         * tests/test-tls.c: Likewise.
54584         Suggested by Paul Eggert. Reported by Eric Blake.
54586 2011-06-09  Bruno Haible  <bruno@clisp.org>
54588         thread: Fix confusion between NULL and 0.
54589         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
54590         Reported by Paul Eggert.
54592 2011-06-09  Bruno Haible  <bruno@clisp.org>
54594         spawn-pipe tests: Avoid test failure on HP-UX 11.
54595         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54596         is closed.
54598 2011-06-09  Bruno Haible  <bruno@clisp.org>
54600         acl tests: Fix compilation error on HP-UX 11.
54601         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54603 2011-06-09  Bruno Haible  <bruno@clisp.org>
54605         rmdir: Avoid test failure on HP-UX 10.20.
54606         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54607         EEXIST.
54609 2011-06-08  Eric Blake  <eblake@redhat.com>
54611         perror: fix test on mingw
54612         * modules/perror-tests (Depends-on): Add dup2.
54614         strerror_r-posix: fix on MacOS
54615         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54617         logic bug.
54618         * lib/strerror_r.c (strerror_r): Fix the bug.
54619         * lib/strerror.c (strerror): Likewise.
54620         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54621         problem.
54622         * doc/posix-functions/strerror.texi (strerror): Likewise.
54623         * doc/posix-functions/perror.texi (perror): Likewise.
54624         * tests/test-strerror.c (main): Enhance test.
54625         * tests/test-strerror_r.c (main): Likewise.
54627 2011-06-08  Bruno Haible  <bruno@clisp.org>
54629         gnulib-tool: Better isolation between different gnulib-tool invocations.
54630         * gnulib-tool: New option --witness-c-macro.
54631         (witness_c_macro): New variable.
54632         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54633         AM_CPPFLAGS define it as a C macro.
54634         (func_emit_tests_Makefile_am): Likewise.
54635         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54636         read it from there.
54637         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54638         m4_define, not AC_DEFUN.
54639         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54640         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54641         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54642         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54643         s|...|...|, to substitute the values of the GNULIB_* module indicator
54644         variables.
54645         * modules/dirent (Makefile.am): Likewise.
54646         * modules/fcntl-h (Makefile.am): Likewise.
54647         * modules/iconv-h (Makefile.am): Likewise.
54648         * modules/langinfo (Makefile.am): Likewise.
54649         * modules/locale (Makefile.am): Likewise.
54650         * modules/math (Makefile.am): Likewise.
54651         * modules/netdb (Makefile.am): Likewise.
54652         * modules/poll-h (Makefile.am): Likewise.
54653         * modules/pty (Makefile.am): Likewise.
54654         * modules/search (Makefile.am): Likewise.
54655         * modules/signal (Makefile.am): Likewise.
54656         * modules/spawn (Makefile.am): Likewise.
54657         * modules/stdio (Makefile.am): Likewise.
54658         * modules/stdlib (Makefile.am): Likewise.
54659         * modules/string (Makefile.am): Likewise.
54660         * modules/sys_ioctl (Makefile.am): Likewise.
54661         * modules/sys_select (Makefile.am): Likewise.
54662         * modules/sys_socket (Makefile.am): Likewise.
54663         * modules/sys_stat (Makefile.am): Likewise.
54664         * modules/sys_times (Makefile.am): Likewise.
54665         * modules/sys_utsname (Makefile.am): Likewise.
54666         * modules/sys_wait (Makefile.am): Likewise.
54667         * modules/termios (Makefile.am): Likewise.
54668         * modules/time (Makefile.am): Likewise.
54669         * modules/unistd (Makefile.am): Likewise.
54670         * modules/wchar (Makefile.am): Likewise.
54672 2011-06-08  Eric Blake  <eblake@redhat.com>
54674         strerror: simplify replacement
54675         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54676         * modules/strerror (configure.ac): No prereqs needed here...
54677         * modules/strerror-override (configure.ac): ...but this needs it.
54678         (Files): Add file for needed prereq macro.
54680 2011-06-08  Bruno Haible  <bruno@clisp.org>
54682         strerror_r-posix: Tweaks.
54683         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54684         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54685         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54686         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54687         (gl_FUNC_STRERROR_R): ... to here.
54688         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54690 2011-06-07  Eric Blake  <eblake@redhat.com>
54692         perror: document fixed bugs
54693         * doc/posix-functions/perror.texi (perror): Document recent
54694         patches.
54696 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54698         stat-time: get_stat_birthtime failure is better-defined
54699         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54700         return a timestamp whose tv_sec and tv_nsec values are both -1.
54701         Previously, the spec said only that the tv_nsec value was negative.
54702         This upward-compatible change simplifies GNU tar a bit.
54704 2011-06-07  Eric Blake  <eblake@redhat.com>
54706         strerror_r-posix: work around cygwin 1.7.9
54707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54708         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54709         bug without replacing strerror_r.
54710         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54711         strerror_r is buggy, but without requiring strerror_r compilation.
54712         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54714         test-perror: relax test to ignore cygwin bug
54715         * tests/test-perror2.c (main): Relax test on requiring detection
54716         of stream errors, and use unbuffered stream.
54717         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54718         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54719         * doc/posix-functions/fputc.texi (fputc): Likewise.
54720         * doc/posix-functions/fputs.texi (fputs): Likewise.
54721         * doc/posix-functions/fputws.texi (fputws): Likewise.
54722         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54723         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54724         * doc/posix-functions/getopt.texi (getopt): Likewise.
54725         * doc/posix-functions/perror.texi (perror): Likewise.
54726         * doc/posix-functions/printf.texi (printf): Likewise.
54727         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54728         * doc/posix-functions/psignal.texi (psignal): Likewise.
54729         * doc/posix-functions/putc.texi (putc): Likewise.
54730         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54731         Likewise.
54732         * doc/posix-functions/putchar.texi (putchar): Likewise.
54733         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54734         Likewise.
54735         * doc/posix-functions/puts.texi (puts): Likewise.
54736         * doc/posix-functions/putwc.texi (putwc): Likewise.
54737         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54738         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54739         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54740         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54741         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54742         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54743         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54744         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54746 2011-05-22  Bruno Haible  <bruno@clisp.org>
54748         strerror: Move AC_LIBOBJ invocations to module description.
54749         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54750         gl_PREREQ_STRERROR invocations from here...
54751         * modules/strerror (configure.ac): ... to here.
54753 2011-05-21  Bruno Haible  <bruno@clisp.org>
54755         perror: Use common idiom.
54756         * modules/perror (configure.ac): Reorder statements.
54758 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54760         tests: fix usage message in 'mktempd_'
54761         * tests/init.sh (mktempd_): In the usage message, use literal
54762         'mktempd_', not '$ME' (which is even undefined), as the name of
54763         the subroutine.
54765 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54767         tests init: new function 'fatal_', for hard errors
54768         Before this patch, the only way offered by tests/init.sh to
54769         properly signal a hard error was the `framework_failure_'
54770         function.  But the error message issued by that function,
54771         as its name would suggest, refers to a set-up failure in the
54772         testsuite, while hard errors can obviously also be due to
54773         other reasons.  The best way to fix this inconsistency is to
54774         introduce a new function with a more general error message.
54775         * tests/init.sh (fatal_): New function.
54777 2011-06-06  Eric Blake  <eblake@redhat.com>
54779         canonicalize-lgpl: use common idiom
54780         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54781         over newer POSIX -Rf.
54782         Reported by Bruno Haible.
54784         canonicalize-lgpl: work around AIX realpath bug
54785         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54786         * doc/posix-functions/realpath.texi (realpath): Document it.
54787         Reported by Bruno Haible.
54789         strerror: work around FreeBSD bug
54790         * lib/strerror.c (strerror): Special case 0.
54791         Reported by Bruno Haible.
54793         strerror-override: avoid bloating errno module
54794         * modules/errno (Files, configure.ac): Move replacement strings...
54795         * modules/strerror-override: ...to new module.
54796         * modules/strerror (Depends-on): Add strerror-override.
54797         * modules/strerror_r-posix (Depends-on): Likewise.
54798         * MODULES.html.sh: Document new module.
54799         Reported by Bruno Haible.
54801 2011-06-06  Bruno Haible  <bruno@clisp.org>
54803         spawn-pipe tests: Rename program.
54804         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54805         * tests/test-spawn-pipe-child.c: Update comment.
54806         * tests/test-spawn-pipe.sh: Update.
54807         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54809         spawn-pipe tests: Link the child program only against libc.
54810         * tests/test-spawn-pipe-child.c: New file, extracted from
54811         tests/test-spawn-pipe.c.
54812         (main): Expect only one argument.
54813         (is_open): New function, copied from tests/test-pipe.c.
54814         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54815         (child_main): Remove function.
54816         (test_pipe): Pass only one argument to the child program.
54817         (main): Remove child process code. Expect the child program's name as
54818         first argument.
54819         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54820         argument.
54821         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54822         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54823         test-spawn-pipe-child against no libraries.
54825 2011-06-06  Bruno Haible  <bruno@clisp.org>
54827         careadlinkat: Avoid mismatch between ssize_t and int.
54828         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54829         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54831 2011-06-06  Jim Meyering  <meyering@redhat.com>
54833         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54834         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54835         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54837 2011-06-05  Bruno Haible  <bruno@clisp.org>
54839         ansi-c++-opt: Interoperability with libtool.
54840         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54841         set the variable to "no", not to ":".
54842         * NEWS: Mention the change.
54844 2011-06-05  Bruno Haible  <bruno@clisp.org>
54846         acl: Fix test failure on AIX 7.
54847         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54848         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54850 2011-06-05  Bruno Haible  <bruno@clisp.org>
54852         pipe-filter-ii: Fix test failure on AIX and IRIX.
54853         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54854         with EAGAIN, retry with a smaller buffer size.
54856 2011-06-05  Bruno Haible  <bruno@clisp.org>
54858         localename: Fix link dependencies.
54859         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54860         * modules/localename-tests (Makefile.am): Link test-localename with
54861         $(LIBTHREAD).
54863 2011-06-05  Bruno Haible  <bruno@clisp.org>
54865         error: Avoid gcc warning.
54866         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54868 2011-06-05  Bruno Haible  <bruno@clisp.org>
54870         unsetenv: Avoid gcc warning.
54871         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54873 2011-06-05  Bruno Haible  <bruno@clisp.org>
54875         setenv: Avoid gcc warning.
54876         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54878 2011-06-05  Bruno Haible  <bruno@clisp.org>
54880         sys_select: Ensure memset is declared also on AIX 7.
54881         * lib/sys_select.in.h: Include <string.h> also on AIX.
54882         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54883         self-contained also on AIX 7.1.
54885 2011-06-04  Jim Meyering  <meyering@redhat.com>
54887         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54888         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54889         function name, "error".
54890         (_gl_translatable_diag_func_re): New configurable variable.
54892 2011-06-04  Bruno Haible  <bruno@clisp.org>
54894         getopt: Avoid gcc warning.
54895         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54897 2011-06-04  Bruno Haible  <bruno@clisp.org>
54899         strerror_r: Fix comments.
54900         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54901         commit.
54903 2011-06-04  Bruno Haible  <bruno@clisp.org>
54905         perror: Fix compilation error.
54906         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54907         Undefine fprintf, not sprintf.
54908         * modules/perror (Depends-on): Remove intprops, verify.
54910 2011-06-04  Bruno Haible  <bruno@clisp.org>
54912         setlocale: Enable replacement on Cygwin 1.5.
54913         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54914         Cygwin 1.5.x.
54915         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54916         LC_CTYPE category also exists on Cygwin 1.5.x.
54918 2011-06-04  Bruno Haible  <bruno@clisp.org>
54920         strerror-override: Don't disable symbol renamings.
54921         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54922         * lib/strerror-override.c: Include config.h.
54923         (strerror_override): Don't undefine.
54925 2011-06-03  Bruno Haible  <bruno@clisp.org>
54927         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54928         * lib/localename.h: Update copyright header.
54929         * lib/localename.c: Likewise.
54930         * lib/relocatable.h: Likewise.
54931         * lib/relocatable.c: Likewise.
54933 2011-06-02  Bruno Haible  <bruno@clisp.org>
54935         doc: Fix a module name.
54936         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
54938 2011-06-02  Bruno Haible  <bruno@clisp.org>
54940         pipe2: Remove dependency on 'nonblocking' module.
54941         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
54942         O_NONBLOCK is defined by gnulib.
54943         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
54944         is zero.
54945         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
54946         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54947         defined by gnulib.
54948         (get_nonblocking_flag): New function.
54949         (main): Test O_NONBLOCK flag only if it is nonzero.
54950         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54952 2011-06-03  Jim Meyering  <meyering@redhat.com>
54954         maint: three new prohibit-header-without-use rules
54955         Prohibit use of cloexec.h, posixver.h, same.h without use.
54956         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54957         (sc_prohibit_posixver_without_use): Likewise.
54958         (sc_prohibit_same_without_use): Likewise.
54960 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54962         allocator: 'die' routine is now given requested size
54963         * lib/allocator.h (struct allocator.die): New size arg.
54964         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54965         If the actual problem is an ssize_t limitation, not a size_t or
54966         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54968 2011-06-01  Eric Blake  <eblake@redhat.com>
54970         strerror: drop strerror_r dependency
54971         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54972         * lib/strerror-override.c (strerror_override): ...to new file.
54973         * lib/strerror-override.h: Add prototype.
54974         * lib/strerror-impl.h: Delete.
54975         * lib/strerror.c (strerror): New implementation.
54976         * modules/errno (Files): Add new files.
54977         (configure.ac): Compile new file as appropriate.
54978         * modules/strerror (Files): Drop unused file.
54979         (Depends-on): Drop strerror_r-posix.
54980         * MODULES.html.sh: Document strerror_r-posix.
54981         Requested by Sam Steingold.
54983         perror: call strerror_r directly
54984         * modules/perror (Files): Drop strerror-impl.h.
54985         * lib/perror.c (perror): Use our own stack buffer, rather than
54986         calling a wrapper that uses static storage.
54987         * doc/posix-functions/perror.texi (perror): Document a limitation
54988         of our replacement.
54990         strerror_r: fix includes for FreeBSD
54991         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54992         since we use abort on some platforms.
54993         Reported by Matthias Bolte.
54995 2011-05-31  Bruno Haible  <bruno@clisp.org>
54997         Fix link errors in tests: openat-die uses gettext-h.
54998         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54999         against $(LIBINTL).
55000         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55001         against $(LIBINTL).
55002         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55003         $(LIBINTL).
55004         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55005         against $(LIBINTL).
55006         * modules/linkat-tests (Makefile.am): Link test-linkat against
55007         $(LIBINTL).
55008         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55009         $(LIBINTL).
55010         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55011         against $(LIBINTL).
55012         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55013         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55014         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55015         $(LIBINTL).
55016         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55017         $(LIBINTL).
55018         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55019         $(LIBINTL).
55020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55022 2011-05-31  Bruno Haible  <bruno@clisp.org>
55024         Fix link errors in tests: wait-process uses gettext-h.
55025         * modules/nonblocking-pipe-tests (Makefile.am): Set
55026         test_nonblocking_pipe_main_LDADD.
55027         * modules/nonblocking-socket-tests (Makefile.am): Link
55028         test-nonblocking-socket-main against $(LIBINTL).
55029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55031 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55033         assert-h: work around 'verify' incompatibility
55034         * lib/verify.h: Use @...@ directives, not ifdef.
55035         * modules/assert-h (assert.h): Implement the directives.
55036         (assert.h): Substitute the symbol-prefix more consistently.
55038 2011-05-29  Jim Meyering  <meyering@redhat.com>
55040         trim: remove three superfluous assignments
55041         * lib/trim.c (trim2): Remove three superfluous assignments
55042         and correct brace positioning.
55044 2011-05-29  Bruno Haible  <bruno@clisp.org>
55046         wctype-h: Avoid namespace pollution on Solaris 2.6.
55047         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55048         identifiers.
55049         * doc/posix-headers/wctype.texi: Mention the problem.
55050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55052 2011-05-28  Jim Meyering  <meyering@redhat.com>
55054         parse-datetime.y: accommodate -Wstrict-overflow
55055         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55056         placate -Wstrict-overflow.
55058         trim: avoid a warning from -O2 -Wstrict-overflow
55059         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55061 2011-05-29  Bruno Haible  <bruno@clisp.org>
55063         gnulib-tool: Fix bug in yesterday's commit.
55064         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55065         twice.
55067 2011-05-29  Bruno Haible  <bruno@clisp.org>
55069         Allow multiple gnulib generated include files to be combined.
55070         * gnulib-tool (func_compute_include_guard_prefix): New function.
55071         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55072         ${gl_include_guard_prefix} references.
55073         (func_import, func_create_testdir): Invoke
55074         func_compute_include_guard_prefix.
55075         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55076         * lib/ctype.in.h: Likewise.
55077         * lib/dirent.in.h: Likewise.
55078         * lib/errno.in.h: Likewise.
55079         * lib/fcntl.in.h: Likewise.
55080         * lib/float.in.h: Likewise.
55081         * lib/getopt.in.h: Likewise.
55082         * lib/iconv.in.h: Likewise.
55083         * lib/langinfo.in.h: Likewise.
55084         * lib/locale.in.h: Likewise.
55085         * lib/math.in.h: Likewise.
55086         * lib/netdb.in.h: Likewise.
55087         * lib/netinet_in.in.h: Likewise.
55088         * lib/poll.in.h: Likewise.
55089         * lib/pthread.in.h: Likewise.
55090         * lib/pty.in.h: Likewise.
55091         * lib/sched.in.h: Likewise.
55092         * lib/se-selinux.in.h: Likewise.
55093         * lib/search.in.h: Likewise.
55094         * lib/signal.in.h: Likewise.
55095         * lib/spawn.in.h: Likewise.
55096         * lib/stdarg.in.h: Likewise.
55097         * lib/stddef.in.h: Likewise.
55098         * lib/stdint.in.h: Likewise.
55099         * lib/stdio.in.h: Likewise.
55100         * lib/stdlib.in.h: Likewise.
55101         * lib/string.in.h: Likewise.
55102         * lib/strings.in.h: Likewise.
55103         * lib/sys_file.in.h: Likewise.
55104         * lib/sys_ioctl.in.h: Likewise.
55105         * lib/sys_select.in.h: Likewise.
55106         * lib/sys_socket.in.h: Likewise.
55107         * lib/sys_stat.in.h: Likewise.
55108         * lib/sys_time.in.h: Likewise.
55109         * lib/sys_times.in.h: Likewise.
55110         * lib/sys_uio.in.h: Likewise.
55111         * lib/sys_utsname.in.h: Likewise.
55112         * lib/sys_wait.in.h: Likewise.
55113         * lib/sysexits.in.h: Likewise.
55114         * lib/termios.in.h: Likewise.
55115         * lib/time.in.h: Likewise.
55116         * lib/unistd.in.h: Likewise.
55117         * lib/wchar.in.h: Likewise.
55118         * lib/wctype.in.h: Likewise.
55119         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55120         * modules/ctype (Makefile.am): Likewise.
55121         * modules/dirent (Makefile.am): Likewise.
55122         * modules/errno (Makefile.am): Likewise.
55123         * modules/fcntl-h (Makefile.am): Likewise.
55124         * modules/float (Makefile.am): Likewise.
55125         * modules/getopt-posix (Makefile.am): Likewise.
55126         * modules/iconv-h (Makefile.am): Likewise.
55127         * modules/langinfo (Makefile.am): Likewise.
55128         * modules/locale (Makefile.am): Likewise.
55129         * modules/math (Makefile.am): Likewise.
55130         * modules/netdb (Makefile.am): Likewise.
55131         * modules/netinet_in (Makefile.am): Likewise.
55132         * modules/poll-h (Makefile.am): Likewise.
55133         * modules/pthread (Makefile.am): Likewise.
55134         * modules/pty (Makefile.am): Likewise.
55135         * modules/sched (Makefile.am): Likewise.
55136         * modules/search (Makefile.am): Likewise.
55137         * modules/selinux-h (Makefile.am): Likewise.
55138         * modules/signal (Makefile.am): Likewise.
55139         * modules/spawn (Makefile.am): Likewise.
55140         * modules/stdarg (Makefile.am): Likewise.
55141         * modules/stddef (Makefile.am): Likewise.
55142         * modules/stdint (Makefile.am): Likewise.
55143         * modules/stdio (Makefile.am): Likewise.
55144         * modules/stdlib (Makefile.am): Likewise.
55145         * modules/string (Makefile.am): Likewise.
55146         * modules/strings (Makefile.am): Likewise.
55147         * modules/sys_file (Makefile.am): Likewise.
55148         * modules/sys_ioctl (Makefile.am): Likewise.
55149         * modules/sys_select (Makefile.am): Likewise.
55150         * modules/sys_socket (Makefile.am): Likewise.
55151         * modules/sys_stat (Makefile.am): Likewise.
55152         * modules/sys_time (Makefile.am): Likewise.
55153         * modules/sys_times (Makefile.am): Likewise.
55154         * modules/sys_uio (Makefile.am): Likewise.
55155         * modules/sys_utsname (Makefile.am): Likewise.
55156         * modules/sys_wait (Makefile.am): Likewise.
55157         * modules/sysexits (Makefile.am): Likewise.
55158         * modules/termios (Makefile.am): Likewise.
55159         * modules/time (Makefile.am): Likewise.
55160         * modules/unistd (Makefile.am): Likewise.
55161         * modules/wchar (Makefile.am): Likewise.
55162         * modules/wctype-h (Makefile.am): Likewise.
55163         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55165 2011-05-29  Bruno Haible  <bruno@clisp.org>
55167         assert-h: Allow multiple gnulib generated replacements to coexist.
55168         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55170 2011-05-29  Bruno Haible  <bruno@clisp.org>
55172         argp: Allow coexistence with strerror_r-posix module.
55173         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55174         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55175         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55176         not the glibc signature.
55178 2011-05-28  Bruno Haible  <bruno@clisp.org>
55180         gnulib-tool: Alternative structure of testdirs, similar to --import.
55181         * gnulib-tool: New option --single-configure.
55182         (func_usage): Document it.
55183         (single_configure): New variable.
55184         (func_modules_transitive_closure_separately,
55185         func_modules_transitive_closure_separately,
55186         func_determine_use_libtests, func_modules_add_dummy_separately,
55187         func_modules_to_filelist_separately): New functions, extracted from
55188         func_import.
55189         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55190         (func_import): Use the new functions.
55191         (func_create_testdir): Set final_modules. Handle $single_configure =
55192         true case.
55194 2011-05-28  Bruno Haible  <bruno@clisp.org>
55196         getloadavg: Remove an unreliable safety check.
55197         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55198         getloadavg.c is in place.
55199         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55200         Reported by Sam Steingold <sds@gnu.org>.
55202 2011-05-28  Bruno Haible  <bruno@clisp.org>
55204         doc: Cleanup yet another file produced by texinfo.tex.
55205         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55207 2011-05-28  Bruno Haible  <bruno@clisp.org>
55209         Finish the conditional dependencies mechanism.
55210         * gnulib-tool: New option --no-conditional-dependencies.
55211         (func_usage): Document it. Don't mark --conditional-dependencies as
55212         experimental.
55213         (cond_dependencies): The possible values can now be true, false, empty.
55214         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55215         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55216         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55218 2011-05-28  Bruno Haible  <bruno@clisp.org>
55220         doc: Use a recent texinfo.tex.
55221         * doc/Makefile (tex_opts): New variable.
55222         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55224 2011-05-28  Jim Meyering  <meyering@redhat.com>
55226         intprops.h: adjust comment to match code change
55227         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55228         only once, it *may* have side effects.  Also fix an unrelated typo.
55229         (_GL_INT_SIGNED): Likewise.
55231 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55233         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55235 2011-05-26  Bruno Haible  <bruno@clisp.org>
55237         mbsrchr: Avoid collision with system function on Interix.
55238         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55239         Reported by Markus Duft <mduft@gentoo.org>.
55241 2011-05-15  James Youngman  <jay@gnu.org>
55243         getopt: for ambiguous options, enumerate the possibilities.
55244         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55245         the ambiguous options when an ambiguous prefix is given. This was
55246         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55247         glibc change was
55248         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55250 2011-05-25  Eric Blake  <eblake@redhat.com>
55252         getcwd: work around mingw bug
55253         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55254         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55255         Reported by Matthias Bolte.
55257 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55259         test-intprops: disable -Wtype-limits diagnostics
55260         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55261         diagnostics.  Otherwise, the integer overflow macros generate many
55262         diagnostics.  Reported by Jim Meyering in
55263         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55265         intprops: shorten, to pacify gcc -Woverlength-strings
55266         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55267         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55268         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55269         likely to run afoul of C compiler limits for string constant lengths.
55270         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55272 2011-05-24  Eric Blake  <eblake@redhat.com>
55274         docs: document recently fixed glibc printf bug
55275         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55276         * doc/posix-functions/printf.texi (printf): Likewise.
55277         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55278         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55280         closein-tests: convert to init.sh
55281         * modules/closein-tests (Files): Add init.sh
55282         * tests/test-closein.sh Use it.
55284         yesno-tests: convert to init.sh
55285         * modules/yesno-tests (Files): Add init.sh.
55286         * tests/test-yesno.sh: Use it.
55288         atexit-tests: ensure reliable exit status
55289         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55290         Reported by Bruno Haible.
55292 2011-05-24  Bruno Haible  <bruno@clisp.org>
55294         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55296         gl_PREREQ_STRERROR_R invocations from here...
55297         * modules/strerror_r-posix (configure.ac): ... to here.
55299 2011-05-24  Eric Blake  <eblake@redhat.com>
55301         strerror_r: fix missing header
55302         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55304         strerror_r: fix AIX test failures
55305         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55306         ERANGE failure.
55308         strerror_r: fix Solaris test failures
55309         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55310         failures.
55311         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55313         strerror_r: enforce POSIX recommendations
55314         * lib/strerror_r.c (safe_copy): New helper method.
55315         (strerror_r): Guarantee a non-empty string.
55316         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55317         recent POSIX rulings and to match our strerror guarantees.
55318         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55320 2011-05-24  Jim Meyering  <meyering@redhat.com>
55322         test-perror2.c: avoid warning about unused variable
55323         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55325 2011-05-24  Eric Blake  <eblake@redhat.com>
55327         perror: avoid spurious test failure on HP-UX
55328         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55330         tests: fix logic bug in init.sh
55331         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55332         shell.
55334 2011-05-24  Jim Meyering  <meyering@redhat.com>
55336         utimensat: do not reference an out-of-scope buffer
55337         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55338         declared in an inner scope, yet "times" would be dereferenced outside
55339         the scope in which "ts" was valid.
55340         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55341         of ts[2] "out/up", so that the use of aliased "times" (via
55342         "times = ts;") does not end up referencing an out-of-scope "ts"
55344         opendir-safer.c: don't clobber errno; don't close negative FD
55345         * lib/opendir-safer.c (opendir_safer):
55346         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55347         file descriptor, and more importantly, don't clobber the
55348         offending errno value with EINVAL.  Before, upon failure
55349         of dup_safer, we would pass the negative file descriptor to
55350         fdopendir, which would clobber errno.
55352 2011-05-23  Bruno Haible  <bruno@clisp.org>
55354         idcache: Fix module description.
55355         * modules/idcache (Include): Set to "idcache.h".
55357 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55359         gnulib-tool: fix portability problem with MacOS sed
55360         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55361         before the "}".  Problem reported by Leo in
55362         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55363         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55364         sed_extract_condition1, sed_extract_condition2.
55366 2011-05-23  Bruno Haible  <bruno@clisp.org>
55368         hash: Simplify autoconf macro.
55369         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55371 2011-05-23  Bruno Haible  <bruno@clisp.org>
55373         getugroups: Fix module description.
55374         * modules/getugroups (Include): Set to "getugroups.h".
55376 2011-05-23  Bruno Haible  <bruno@clisp.org>
55378         linkat: Simplify autoconf macro.
55379         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55381 2011-05-23  Bruno Haible  <bruno@clisp.org>
55382             Eric Blake  <eblake@redhat.com>
55384         linkat, renameat: Update dependencies.
55385         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55386         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55387         symlinkat.
55389 2011-05-23  Jim Meyering  <meyering@redhat.com>
55391         maint.mk: more tight_scope improvements
55392         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55393         (_gl_TS_headers): Define only in if-0'd block.
55394         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55395         sometimes we must *not* use it.  Adjust uses accordingly.
55396         (sc_tight_scope): Use much simpler grep-based test to determine
55397         whether we skip this rule.
55399         maint.mk: generalize/improve the tight-scope rule
55400         * top/maint.mk: Emit a warning when the test is skipped.
55401         (_gl_TS_dir): Add $(srcdir)/ prefix.
55402         (_gl_TS_function_match): Simplify, rather than trying
55403         to enumerate common types.  Otherwise, it would fail to match an
55404         "extern unsigned char const *" declaration in idutils.
55405         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55406         a way to support use of that type of macro.
55407         (_gl_TS_var_match): Simplify regexp.
55408         (_gl_TS_obj_files): New configurable variable.
55409         (_gl_TS_headers): Likewise.
55411 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55413         verify: fix bug when gnulib <assert.h> is also included
55414         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55415         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55416         Perhaps there's a better way, but this fixes the immediate problem.
55417         Problem reported by Bruno Haible in
55418         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55420 2011-05-22  Bruno Haible  <bruno@clisp.org>
55422         xgetcwd: Simplify autoconf macro.
55423         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55425 2011-05-22  Bruno Haible  <bruno@clisp.org>
55427         New module 'mktime-internal'.
55428         * modules/mktime-internal: New file.
55429         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55430         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55431         mktime_internal as a C macro if libc has __mktime_internal.
55432         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55433         conditions.
55434         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55436 2011-05-22  Bruno Haible  <bruno@clisp.org>
55438         timegm: Correct mktime replacement statements.
55439         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55440         defining mktime as a C macro. This completes a 2009-07-28 commit.
55442 2011-05-22  Bruno Haible  <bruno@clisp.org>
55444         timegm: Simplify autoconf macro.
55445         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55447 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55449         clock-time: change to LGPLv2+.
55450         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55451         BSD-like but we have no mark for that; this is good enough for now.
55453 2011-05-21  Bruno Haible  <bruno@clisp.org>
55455         strerror_r: Fix comments.
55456         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55458 2011-05-21  Bruno Haible  <bruno@clisp.org>
55460         relocatable-prog-wrapper: Fix possible link error.
55461         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55462         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55463         (gl_FUNC_SETENV): ... to here.
55464         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55465         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55467 2011-05-21  Bruno Haible  <bruno@clisp.org>
55469         relocatable-prog-wrapper: Assume strerror() exists.
55470         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55471         m4/strerror.m4.
55472         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55473         * lib/relocwrapper.c: Remove mention of strerror module.
55474         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55476         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55477         C macro.
55479 2011-05-21  Bruno Haible  <bruno@clisp.org>
55481         select: Simplify replacement idiom.
55482         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55483         Win32 platforms.
55484         * lib/sys_select.in.h (select): Simplify accordingly.
55485         * modules/select (Depends-on): Likewise.
55487 2011-05-21  Bruno Haible  <bruno@clisp.org>
55489         mkdir-p: Simplify autoconf macro.
55490         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55491         gl_FUNC_LCHOWN.
55493 2011-05-21  Eric Blake  <eblake@redhat.com>
55495         strerror_r: avoid clobbering strerror on cygwin
55496         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55497         fall back instead to sys_errlist.
55498         * modules/strerror (configure.ac): Add witness.
55499         * tests/test-strerror_r.c (main): Enhance test.
55500         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55501         * tests/test-perror2.c (main): Free memory before exit.
55503 2011-05-21  Bruno Haible  <bruno@clisp.org>
55505         mkdtemp: Use gnulib naming conventions.
55506         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55507         * modules/mkdtemp (configure.ac): Update.
55509 2011-05-20  Eric Blake  <eblake@redhat.com>
55511         strerror_r: avoid corrupting errno on Solaris
55512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55513         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55515         strerror_r: avoid compiler warning
55516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
55518         strerror_r: simplify AIX code
55519         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
55521         test-perror: avoid spurious failure on FreeBSD
55522         * modules/perror-tests (Depends-on): Add strerror, now that
55523         strerror_r no longer pulls it in.
55525 2011-05-20  Bruno Haible  <bruno@clisp.org>
55527         strerror_r-posix: Remove unused dependencies.
55528         * modules/strerror_r-posix (Depends-on): Remove strerror.
55529         Reported by Eric Blake.
55531 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55533         intprops: remove assumption about A|B representation
55534         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
55535         is a valid integer if both A and B are.  Although this is true for
55536         all known practical hosts, the C standard doesn't guarantee it,
55537         and the code need not assume it.  Also, this change may work around
55538         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
55539         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
55541 2011-05-20  Eric Blake  <eblake@redhat.com>
55543         perror: work around FreeBSD bug
55544         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
55545         is broken.  Move AC_LIBOBJ...
55546         * modules/perror (configure.ac): Here.
55547         * doc/posix-functions/perror.texi (perror): Document this.
55548         * tests/test-perror2.c (main): Enhance test.
55550         test-perror: check for strerror interactions
55551         * tests/macros.h (STREQ): Add macro.
55552         * modules/perror-tests (Files): Add second test.
55553         * tests/test-perror2.c (main): New file.
55554         * doc/posix-functions/perror.texi (perror): Document glibc bug.
55556         test-perror: rewrite to use init script
55557         * modules/perror-tests (Files): Add init.sh.
55558         * tests/test-perror.sh: Use temporary directory.
55560 2011-05-20  Jim Meyering  <meyering@redhat.com>
55562         maint: replace misused "a" with "an"
55563         * doc/intprops.texi: "a integer"
55564         * doc/regex.texi: "a explanation"
55565         * lib/alignof.h: "a object"
55566         * lib/argmatch.h: "a explanation"
55567         * lib/argp-help.c: "a option" and "a OPTION_DOC"
55568         * lib/stdint.in.h: "a integer"
55569         * lib/userspec.c: "a owner"
55570         * doc/gnulib.texi: Fix "a idea", and reword.
55572 2011-05-19  Jim Meyering  <meyering@redhat.com>
55574         maint: correct misuse of "a" and "an"
55575         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
55576         * lib/argp-help.c: "an docum...": s/an/a/
55577         * lib/argp-parse.c: "An vector": s/An/A/
55578         * lib/execute.c: "an native": s/an/a/
55579         * lib/spawn-pipe.c: Likewise.
55580         * lib/gc.h: "an Gc_rc": s/an/a/
55581         * lib/unigbrk.in.h: "an grapheme": s/an/a/
55582         * lib/fts.c: "an stat.st_dev": s/an/a/
55584 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55586         intprops-tests: work around HP-UX 11.23 cc bug with constants
55587         * tests/test-intprops.c (VERIFY): New macro.
55588         (main): Use it, instead of verify, to work around the compiler bug; see
55589         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55591         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55592         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55593         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55594         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55595         (_GL_REMAINDER_OVERFLOW): Use it.
55597         intprops-tests: revert unsigned part of previous change
55598         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55599         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55600         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55601         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55603 2011-05-19  Bruno Haible  <bruno@clisp.org>
55605         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55606         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55607         strerror_r() returned without filling the buffer.
55608         Reported by Eric Blake.
55610 2011-05-19  Eric Blake  <eblake@redhat.com>
55612         strerror_r: guarantee unchanged errno
55613         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55614         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55615         failure.
55616         * tests/test-strerror_r.c (main): Enhance test.
55618 2011-05-19  Bruno Haible  <bruno@clisp.org>
55620         strerror_r: Reorder #if blocks.
55621         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55622         for consistency with the previous commit.
55624 2011-05-19  Bruno Haible  <bruno@clisp.org>
55626         perror: Avoid clobbering the strerror buffer when possible.
55627         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55628         * lib/strerror.c: Include it.
55629         * modules/strerror (Files): Add lib/strerror-impl.h.
55630         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55631         (my_strerror): New function, defined through lib/strerror-impl.h.
55632         (perror): Use it instead of strerror.
55633         * modules/perror (Files): Add lib/strerror-impl.h.
55634         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55636 2011-05-19  Eric Blake  <eblake@redhat.com>
55638         strerror_r: fix on newer cygwin
55639         * lib/strerror_r.c (strerror_r): Cygwin now has
55640         __xpg_strerror_r, use it.
55642 2011-05-19  Bruno Haible  <bruno@clisp.org>
55644         strerror_r: Avoid clobbering the strerror buffer when possible.
55645         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55646         (sys_nerr, sys_errlist): New declarations.
55647         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55648         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55649         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55651 2011-05-19  Bruno Haible  <bruno@clisp.org>
55653         strerror_r: Fix test failure on mingw.
55654         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55655         EXTEND_STRERROR_R.
55656         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55657         macros from errno.in.h instead.
55659 2011-05-19  Eric Blake  <eblake@redhat.com>
55661         strerror: relax test for Solaris
55662         * tests/test-strerror.c (main): Permit Solaris behavior.
55663         * tests/test-strerror_r.c (main): Likewise.
55665         strerror: enforce POSIX ruling on strerror(0)
55666         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55668         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55669         * doc/posix-functions/strerror.texi (strerror): Document it.
55670         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55671         * tests/test-strerror.c (main): Strengthen test.
55672         * tests/test-strerror_r.c (main): Likewise.
55674 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55676         intprop-tests: port to older and more-pedantic compilers
55677         * modules/intprops-tests (Files): Add tests/macros.h.
55678         * tests/test-intprops.c: Include macros.h.
55679         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55680         it's no longer documented to expand to an integer constant expression.
55681         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55682         argument is floating point, as it's no longer documented to expand
55683         to an integer constant expression in that case.
55684         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55685         compiler bugs reported by Bruno Haible.  See
55686         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55687         (U0, U1): New constants, to work around the same bugs.  Also,
55688         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55690         intprops: work around C compiler bugs
55691         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55692         bug in Sun C 5.11 2010/08/13 and other compilers; see
55693         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55695         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55696         * doc/intprops.texi (Integer Type Determination): Fix
55697         documentation for TYPE_IS_INTEGER: it returns an constant
55698         expression, not an integer constant expression.  Fix doc for
55699         TYPE_SIGNED: it returns an integer constant expression only if its
55700         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55701         hardly worth documented that way....)
55703 2011-05-18  Bruno Haible  <bruno@clisp.org>
55705         strerror_r: Avoid clobbering the strerror buffer when possible.
55706         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55707         Handle gnulib defined errno values here. When strerror() returns NULL
55708         or an empty string, return EINVAL.
55709         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55710         gnulib defined errno values here.
55711         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55713 2011-05-18  Eric Blake  <eblake@redhat.com>
55715         fnmatch: avoid compiler warning
55716         * lib/fnmatch_loop.c (FCT): Use correct type.
55717         Reported by Matthias Bolte.
55719 2011-05-13  Jim Meyering  <meyering@redhat.com>
55721         maint.mk: three new prohibit_<HDR>_without_use rules
55722         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55723         (sc_prohibit_stdio-safer_without_use): Likewise.
55724         (sc_prohibit_xfreopen_without_use): Likewise.
55726 2011-05-17  Jim Meyering  <meyering@redhat.com>
55728         announce-gen: fail if the NEWS delta is empty
55729         If there's nothing noteworthy in NEWS, then either you forgot
55730         or you shouldn't be releasing.
55731         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55733 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55735         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55736         reserved symbols starting with double underscore from the check.
55738 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55740         intprops: add doc
55741         * doc/intprops.texi: New file, documenting intprops.
55742         * doc/gnulib.texi (Particular Modules): Include it.
55744         verify: add doc to gnulib manual and fix example
55745         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55746         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55747         (Compile-time Assertions): Fix example so it can't overflow.
55749 2011-05-17  Jim Meyering  <meyering@redhat.com>
55751         warnings.m4: don't usurp save_CPPFLAGS variable name
55752         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55754         doc: fix typo
55755         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55757 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55758             Bruno Haible  <bruno@clisp.org>
55760         doc: Tweak recent change.
55761         * README (Portability guidelines): Tweak new text.
55762         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55763         Interix 6.1.
55765 2011-05-16  Eric Blake  <eblake@redhat.com>
55767         inttypes: avoid autoconf warning
55768         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55769         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55771 2011-05-16  Sam Steingold  <sds@gnu.org>
55772         and Eric Blake  <eblake@redhat.com>
55774         vc-list-files: accept multiple directory operands
55775         * build-aux/vc-list-files: Iterate over all remaining operands.
55777 2011-05-16  Bruno Haible  <bruno@clisp.org>
55779         Fix confusion regarding deprecated modules.
55780         * modules/calloc (Status, Notice): Mark module as deprecated, not
55781         obsolete.
55782         * modules/fnmatch-posix (Status, Notice): Likewise.
55783         * modules/getdate (Status, Notice): Likewise.
55784         * modules/getopt (Status, Notice): Likewise.
55785         * modules/malloc (Status, Notice): Likewise.
55786         * modules/pipe (Status, Notice): Likewise.
55787         * modules/realloc (Status, Notice): Likewise.
55788         * modules/rename-dest-slash (Status, Notice): Likewise.
55789         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55790         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55791         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55792         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55793         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55795 2011-05-16  Bruno Haible  <bruno@clisp.org>
55797         doc: List the target platforms.
55798         * doc/gnulib-intro.texi (Target Platforms): New section.
55799         * doc/gnulib.texi (Introduction): Update menu.
55800         * README (Portability guidelines): Refer to the new section. Update
55801         statement about oldest supported environment. Remove rationale why
55802         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55803         unportable C89 function.
55804         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55805         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55807 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55809         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55811 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55813         intprops-tests: new module
55814         * modules/intprops-tests, tests/test-intprops.c: New files.
55816         intprops: add safe, portable integer overflow checking
55817         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55818         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55819         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55820         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55821         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55822         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55823         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55824         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55825         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55826         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55827         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55829 2011-05-12  James Youngman  <jay@gnu.org>
55831         Add a test for glibc's Bugzilla bug #12378.
55832         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55833         doesn't allow the literal matching of a lone "[" (which is
55834         required by POSIX).
55835         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55837 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55839         Sync glibc change fixing Bugzilla bug #12378.
55840         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55841         beginning and fall back to matching as normal character if the
55842         string ends before the matching ']' is found.  This is what POSIX
55843         requires.
55845 2011-05-13  Eric Blake  <eblake@redhat.com>
55847         getcwd-lgpl: relax test for FreeBSD
55848         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55849         issue.
55850         * tests/test-getcwd-lgpl.c (main): Relax test.
55851         Reported by Matthias Bolte.
55853 2011-05-11  Eric Blake  <eblake@redhat.com>
55855         test-fflush: silence compiler warning
55856         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55858 2011-05-11  Bruno Haible  <bruno@clisp.org>
55860         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55861         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55862         * modules/canonicalize (Depends-on): Add 'nocrash'.
55863         * modules/canonicalize-lgpl (Depends-on): Likewise.
55864         * doc/posix-functions/realpath.texi: Update platforms list.
55865         Reported by Ryan Schmidt <ryandesign@macports.org>.
55867 2011-05-11  Bruno Haible  <bruno@clisp.org>
55869         group-member: Declare function in <unistd.h>.
55870         * lib/unistd.in.h (group_member): New declaration.
55871         * lib/group-member.h: Remove file.
55872         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55873         * tests/test-unistd-c++.cc: Check signature of group_member.
55874         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55875         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55876         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55877         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55878         HAVE_GROUP_MEMBER.
55879         * modules/group-member (Files): Remove lib/group-member.h.
55880         (Depends-on): Add unistd. Specify conditions.
55881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55882         (Include): Change to <unistd.h>.
55883         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55884         HAVE_GROUP_MEMBER.
55885         * NEWS: Mention the change.
55886         * lib/euidaccess.c: Don't include group-member.h.
55888 2011-05-11  Bruno Haible  <bruno@clisp.org>
55890         group-member: Document module.
55891         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55892         module.
55894 2011-05-11  Bruno Haible  <bruno@clisp.org>
55896         fclose: Fix mistake earlier today.
55897         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55899 2011-05-11  Eric Blake  <eblake@redhat.com>
55901         fclose: preserve fflush errors
55902         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55903         Reported by Jim Meyering.
55905         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55906         * build-aux/bootstrap (check_versions): When no specific version
55907         is required, merely check that the app produces an exit status
55908         that indicates its existence.
55910         maint.mk: drop redundant check
55911         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55912         the same but better.
55914 2011-05-11  Bruno Haible  <bruno@clisp.org>
55916         fclose: Fix possible link error.
55917         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55918         unregister_shadow_fd. Improve comments.
55919         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55920         Eric Blake.
55922 2011-05-11  Jim Meyering  <meyering@redhat.com>
55924         maint.mk: improve "can not" detection and generalize rule name
55925         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55926         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55927         Use the same technique as in sc_prohibit_doubled_word, so that
55928         we recognize "can not" also when the words are separated by a newline.
55929         Suggested by Eric Blake.
55930         (perl_filename_lineno_text_): Define.  Factored out of...
55931         (prohibit_doubled_word_): ...here.  Use the new definition.
55932         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55933         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55934         (ignore_undesirable_word_sequence_RE_): New overridable variable.
55936 2011-05-10  Eric Blake  <eblake@redhat.com>
55938         fclose: avoid double close race when possible
55939         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
55940         all but WINDOWS_SOCKETS.
55942 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
55944         openat: correct new comment
55945         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55947 2011-05-10  Jim Meyering  <meyering@redhat.com>
55949         openat: add comments
55950         * lib/openat-proc.c (openat_proc_name): Add comments,
55951         mostly from Eric Blake.
55953 2011-05-09  Eric Blake  <eblake@redhat.com>
55955         openat: reduce syscalls in first probe of /proc
55956         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55957         be a directory.  Simplify the probe for .. bugs.
55958         * modules/openat (Depends-on): Drop same-inode.
55959         Reported by Bastien ROUCARIES.
55961 2011-05-09  Jim Meyering  <meyering@redhat.com>
55963         maint.mk: change semantics/name of tight_scope variables
55964         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55965         Rename variables to align with semantics that make them more useful.
55967         maint.mk: tweak new rule's name not to impinge
55968         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55969         (sc_tight_scope): Use new rule name rather than $@-0.
55971         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55972         * top/maint.mk (sc_tight_scope): New rule.
55973         (sc_tight_scope-0): New rule, ifdef'd out.
55974         (_gl_TS_dir): Default.
55975         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55976         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55978 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55980         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55981         Haible <bruno@clisp.org>.
55983 2011-05-08  Bruno Haible  <bruno@clisp.org>
55985         Comments.
55986         * m4/isnanf.m4: Add comment.
55987         * m4/isnanl.m4: Likewise.
55989 2011-05-08  Bruno Haible  <bruno@clisp.org>
55991         glob: Remove obsolete macro.
55992         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55994 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55996         intprops: Sun C 5.11 supports __typeof__
55997         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55998         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55999         which is new.
56000         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56002         intprops: switch to usual gnulib indenting and naming
56003         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56004         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56006         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56008 2011-05-08  Jim Meyering  <meyering@redhat.com>
56010         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56011         * top/maint.mk (release-prep): Use make's --no-print-directory
56012         option when generating the announcement.  This eliminates the
56013         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56014         generated announcement template.
56016 2011-05-08  Bruno Haible  <bruno@clisp.org>
56018         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56019         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56020         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56022 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56024         ignore-value, verify: Omit include files from lib_SOURCES.
56025         * modules/ignore-value, modules/verify (Makefile.am):
56026         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56027         that leads Automake to duplicate use of am__objects_... variables
56028         in Makefile.in.  See
56029         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56031 2011-05-07  Bruno Haible  <bruno@clisp.org>
56033         fclose: Simplify autoconf macro.
56034         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56035         defined.
56037 2011-05-07  Bruno Haible  <bruno@clisp.org>
56039         canonicalize-lgpl: Fix autoconf macro ordering bug.
56040         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56041         gl_STDLIB_H_DEFAULTS.
56043 2011-05-06  Eric Blake  <eblake@redhat.com>
56045         maintainer-makefile: make sc_po_check easier to tune
56046         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56047         to probe for strings, such as an alternate location for gnulib.
56049         fclose: guarantee behavior on seekable stdin
56050         * modules/fclose (Depends-on): Add fflush.
56051         * doc/posix-functions/fclose.texi (fclose): Document this.
56052         * tests/test-fclose.c (main): Make test for this unconditional.
56054 2011-05-06  Bruno Haible  <bruno@clisp.org>
56056         fflush, fpurge: Relicense under LGPLv2+.
56057         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56058         * modules/fpurge (License): Likewise.
56059         With permission from Eric Blake and Jim Meyering.
56060         Suggested by Eric Blake.
56062 2011-05-06  Karl Berry  <karl@gnu.org>
56064         * MODULES.html.sh (func_all_modules): remove exit.
56066 2011-05-06  Jim Meyering  <meyering@redhat.com>
56068         maint.mk: use info-gnu@ as the default only for a stable release
56069         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56070         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56071         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56074 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56076         assert-h: new module, which supports C1X-style static_assert
56077         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56078         * lib/verify.h: Revamp so that this can be copied into assert.h,
56079         while retaining the ability to use it standalone as before.
56080         Rename private identifiers so as not to encroach on the
56081         standard C namespace, since this is now used by assert.h.
56082         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56083         the old verify_true.
56084         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56085         the old verify_true.  Use _GL_VERIFY_TYPE.
56086         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56087         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56088         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56089         defined when this file is copied into the replacement assert.h.
56090         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56091         and _Static_assert is not built in.
56092         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56093         defined, and use the new macros mentioned above.
56094         * doc/posix-headers/assert.texi: Document this.
56096 2011-05-05  Bruno Haible  <bruno@clisp.org>
56098         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56100         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56101         gl_REPLACE_FCLOSE here.
56102         * modules/fflush (Depends-on): Remove fclose.
56103         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56104         combination with module 'fclose'.
56106 2011-05-05  Bruno Haible  <bruno@clisp.org>
56108         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56109         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56110         gl_FUNC_FFLUSH.
56111         (gl_FUNC_FFLUSH): Use it.
56112         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56114         gl_REPLACE_FSEEKO here.
56116 2011-05-05  Bruno Haible  <bruno@clisp.org>
56118         tzset: Relicense under LGPL.
56119         * modules/tzset (License): Change to LGPL.
56120         No agreement needed; it's a no-op.
56122         strtoimax, strtoumax: Relicense under LGPL.
56123         * modules/strtoimax (License): Change to LGPL.
56124         * modules/strtoumax (License): Likewise.
56125         With permission from Jim Meyering, Paul Eggert:
56126         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56127         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56129         getgroups: Relicense under LGPL.
56130         * modules/getgroups (License): Change to LGPL.
56131         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56132         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56133         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56134         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56136         nanosleep: Relicense under LGPL.
56137         * modules/nanosleep (License): Change to LGPL.
56138         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56139         Haible:
56140         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56141         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56142         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56143         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56145         futimens: Relicense under LGPL.
56146         * modules/futimens (License): Change to LGPL.
56147         With permission from Eric Blake:
56148         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56150         fflush: Relicense under LGPL.
56151         * modules/fflush (License): Change to LGPL.
56152         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56153         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56154         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56155         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56157         tmpfile: Relicense under LGPL.
56158         * modules/tmpfile (License): Change to LGPL.
56159         With permission from Ben Pfaff:
56160         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56162         isfinite: Relicense under LGPL.
56163         * modules/isfinite (License): Change to LGPL.
56164         With permission from Ben Pfaff, Bruno Haible:
56165         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56166         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56168         acosl..tanl: Relicense under LGPL.
56169         * modules/acosl (License): Change to LGPL.
56170         * modules/asinl (License): Likewise.
56171         * modules/atanl (License): Likewise.
56172         * modules/cosl (License): Likewise.
56173         * modules/expl (License): Likewise.
56174         * modules/logl (License): Likewise.
56175         * modules/sinl (License): Likewise.
56176         * modules/sqrtl (License): Likewise.
56177         * modules/tanl (License): Likewise.
56178         Source code originally from glibc and Paolo Bonzini. Agreements:
56179         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56180         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56182 2011-05-05  Bruno Haible  <bruno@clisp.org>
56184         signal: Define sighandler_t.
56185         * lib/signal.in.h (sighandler_t): New type.
56186         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56187         whether sighandler_t is defined.
56188         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56189         * modules/signal (Depends-on): Add extensions.
56190         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56191         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56192         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56194 2011-05-05  Eric Blake  <eblake@redhat.com>
56196         maint: remove useless REPLACE_*_H macros
56197         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56198         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56199         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56200         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56201         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56202         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56203         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56204         * m4/btowc.m4: Update callers.
56205         * m4/dirfd.m4: Likewise.
56206         * m4/duplocale.m4: Likewise.
56207         * m4/fchdir.m4: Likewise.
56208         * m4/fdopendir.m4: Likewise.
56209         * m4/inet_ntop.m4: Likewise.
56210         * m4/inet_pton.m4: Likewise.
56211         * m4/ioctl.m4: Likewise.
56212         * m4/mbrlen.m4: Likewise.
56213         * m4/mbrtowc.m4: Likewise.
56214         * m4/mbsinit.m4: Likewise.
56215         * m4/mbsnrtowcs.m4: Likewise.
56216         * m4/mbsrtowcs.m4: Likewise.
56217         * m4/poll.m4: Likewise.
56218         * m4/setlocale.m4: Likewise.
56219         * m4/wcrtomb.m4: Likewise.
56220         * m4/wcsnrtombs.m4: Likewise.
56221         * m4/wcsrtombs.m4: Likewise.
56222         * m4/wctob.m4: Likewise.
56223         * m4/wcwidth.m4: Likewise.
56224         * modules/posix_spawn: Likewise.
56225         * modules/posix_spawn_file_actions_addclose: Likewise.
56226         * modules/posix_spawn_file_actions_adddup2: Likewise.
56227         * modules/posix_spawn_file_actions_addopen: Likewise.
56228         * modules/posix_spawn_file_actions_destroy: Likewise.
56229         * modules/posix_spawn_file_actions_init: Likewise.
56230         * modules/posix_spawnattr_destroy: Likewise.
56231         * modules/posix_spawnattr_getflags: Likewise.
56232         * modules/posix_spawnattr_getpgroup: Likewise.
56233         * modules/posix_spawnattr_getschedparam: Likewise.
56234         * modules/posix_spawnattr_getschedpolicy: Likewise.
56235         * modules/posix_spawnattr_getsigdefault: Likewise.
56236         * modules/posix_spawnattr_getsigmask: Likewise.
56237         * modules/posix_spawnattr_init: Likewise.
56238         * modules/posix_spawnattr_setflags: Likewise.
56239         * modules/posix_spawnattr_setpgroup: Likewise.
56240         * modules/posix_spawnattr_setschedparam: Likewise.
56241         * modules/posix_spawnattr_setschedpolicy: Likewise.
56242         * modules/posix_spawnattr_setsigdefault: Likewise.
56243         * modules/posix_spawnattr_setsigmask: Likewise.
56244         * modules/posix_spawnp: Likewise.
56246 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56248         Add option to do-release-commit-and-tag to specify branch.
56249         * build-aux/do-release-commit-and-tag: Add --branch.
56251 2011-05-03  Bruno Haible  <bruno@clisp.org>
56253         Avoid unnecessary compilation units, through conditional dependencies.
56254         * modules/accept (Depends-on): Add conditions to the dependencies.
56255         * modules/acosl (Depends-on): Likewise.
56256         * modules/argz (Depends-on): Likewise.
56257         * modules/asinl (Depends-on): Likewise.
56258         * modules/atanl (Depends-on): Likewise.
56259         * modules/atoll (Depends-on): Likewise.
56260         * modules/bind (Depends-on): Likewise.
56261         * modules/btowc (Depends-on): Likewise.
56262         * modules/canonicalize-lgpl (Depends-on): Likewise.
56263         * modules/ceil (Depends-on): Likewise.
56264         * modules/ceilf (Depends-on): Likewise.
56265         * modules/ceill (Depends-on): Likewise.
56266         * modules/chdir-long (Depends-on): Likewise.
56267         * modules/chown (Depends-on): Likewise.
56268         * modules/close (Depends-on): Likewise.
56269         * modules/connect (Depends-on): Likewise.
56270         * modules/cosl (Depends-on): Likewise.
56271         * modules/dirfd (Depends-on): Likewise.
56272         * modules/dprintf (Depends-on): Likewise.
56273         * modules/dprintf-posix (Depends-on): Likewise.
56274         * modules/error (Depends-on): Likewise.
56275         * modules/euidaccess (Depends-on): Likewise.
56276         * modules/expl (Depends-on): Likewise.
56277         * modules/faccessat (Depends-on): Likewise.
56278         * modules/fchdir (Depends-on): Likewise.
56279         * modules/fclose (Depends-on): Likewise.
56280         * modules/fcntl (Depends-on): Likewise.
56281         * modules/fdopendir (Depends-on): Likewise.
56282         * modules/fflush (Depends-on): Likewise.
56283         * modules/floor (Depends-on): Likewise.
56284         * modules/floorf (Depends-on): Likewise.
56285         * modules/floorl (Depends-on): Likewise.
56286         * modules/fnmatch (Depends-on): Likewise.
56287         * modules/fopen (Depends-on): Likewise.
56288         * modules/fprintf-posix (Depends-on): Likewise.
56289         * modules/frexp (Depends-on): Likewise.
56290         * modules/frexp-nolibm (Depends-on): Likewise.
56291         * modules/frexpl (Depends-on): Likewise.
56292         * modules/frexpl-nolibm (Depends-on): Likewise.
56293         * modules/fseek (Depends-on): Likewise.
56294         * modules/fsusage (Depends-on): Likewise.
56295         * modules/ftell (Depends-on): Likewise.
56296         * modules/ftello (Depends-on): Likewise.
56297         * modules/futimens (Depends-on): Likewise.
56298         * modules/getcwd (Depends-on): Likewise.
56299         * modules/getcwd-lgpl (Depends-on): Likewise.
56300         * modules/getdelim (Depends-on): Likewise.
56301         * modules/getdomainname (Depends-on): Likewise.
56302         * modules/getgroups (Depends-on): Likewise.
56303         * modules/gethostname (Depends-on): Likewise.
56304         * modules/getline (Depends-on): Likewise.
56305         * modules/getlogin_r (Depends-on): Likewise.
56306         * modules/getopt-posix (Depends-on): Likewise.
56307         * modules/getpeername (Depends-on): Likewise.
56308         * modules/getsockname (Depends-on): Likewise.
56309         * modules/getsockopt (Depends-on): Likewise.
56310         * modules/getsubopt (Depends-on): Likewise.
56311         * modules/getusershell (Depends-on): Likewise.
56312         * modules/glob (Depends-on): Likewise.
56313         * modules/grantpt (Depends-on): Likewise.
56314         * modules/iconv_open (Depends-on): Likewise.
56315         * modules/iconv_open-utf (Depends-on): Likewise.
56316         * modules/inet_ntop (Depends-on): Likewise.
56317         * modules/inet_pton (Depends-on): Likewise.
56318         * modules/ioctl (Depends-on): Likewise.
56319         * modules/isapipe (Depends-on): Likewise.
56320         * modules/isfinite (Depends-on): Likewise.
56321         * modules/isinf (Depends-on): Likewise.
56322         * modules/lchown (Depends-on): Likewise.
56323         * modules/ldexpl (Depends-on): Likewise.
56324         * modules/link (Depends-on): Likewise.
56325         * modules/linkat (Depends-on): Likewise.
56326         * modules/listen (Depends-on): Likewise.
56327         * modules/logl (Depends-on): Likewise.
56328         * modules/lstat (Depends-on): Likewise.
56329         * modules/mbrlen (Depends-on): Likewise.
56330         * modules/mbrtowc (Depends-on): Likewise.
56331         * modules/mbsinit (Depends-on): Likewise.
56332         * modules/mbsnrtowcs (Depends-on): Likewise.
56333         * modules/mbsrtowcs (Depends-on): Likewise.
56334         * modules/mbtowc (Depends-on): Likewise.
56335         * modules/memcmp (Depends-on): Likewise.
56336         * modules/mkdir (Depends-on): Likewise.
56337         * modules/mkdtemp (Depends-on): Likewise.
56338         * modules/mkfifo (Depends-on): Likewise.
56339         * modules/mkfifoat (Depends-on): Likewise.
56340         * modules/mknod (Depends-on): Likewise.
56341         * modules/mkostemp (Depends-on): Likewise.
56342         * modules/mkostemps (Depends-on): Likewise.
56343         * modules/mkstemp (Depends-on): Likewise.
56344         * modules/mkstemps (Depends-on): Likewise.
56345         * modules/mktime (Depends-on): Likewise.
56346         * modules/nanosleep (Depends-on): Likewise.
56347         * modules/open (Depends-on): Likewise.
56348         * modules/openat (Depends-on): Likewise.
56349         * modules/perror (Depends-on): Likewise.
56350         * modules/poll (Depends-on): Likewise.
56351         * modules/popen (Depends-on): Likewise.
56352         * modules/posix_spawn (Depends-on): Likewise.
56353         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56354         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56355         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56356         * modules/posix_spawnp (Depends-on): Likewise.
56357         * modules/pread (Depends-on): Likewise.
56358         * modules/printf-posix (Depends-on): Likewise.
56359         * modules/ptsname (Depends-on): Likewise.
56360         * modules/putenv (Depends-on): Likewise.
56361         * modules/pwrite (Depends-on): Likewise.
56362         * modules/readline (Depends-on): Likewise.
56363         * modules/readlink (Depends-on): Likewise.
56364         * modules/readlinkat (Depends-on): Likewise.
56365         * modules/recv (Depends-on): Likewise.
56366         * modules/recvfrom (Depends-on): Likewise.
56367         * modules/regex (Depends-on): Likewise.
56368         * modules/remove (Depends-on): Likewise.
56369         * modules/rename (Depends-on): Likewise.
56370         * modules/renameat (Depends-on): Likewise.
56371         * modules/rmdir (Depends-on): Likewise.
56372         * modules/round (Depends-on): Likewise.
56373         * modules/roundf (Depends-on): Likewise.
56374         * modules/roundl (Depends-on): Likewise.
56375         * modules/rpmatch (Depends-on): Likewise.
56376         * modules/select (Depends-on): Likewise.
56377         * modules/send (Depends-on): Likewise.
56378         * modules/sendto (Depends-on): Likewise.
56379         * modules/setenv (Depends-on): Likewise.
56380         * modules/setlocale (Depends-on): Likewise.
56381         * modules/setsockopt (Depends-on): Likewise.
56382         * modules/shutdown (Depends-on): Likewise.
56383         * modules/sigaction (Depends-on): Likewise.
56384         * modules/signbit (Depends-on): Likewise.
56385         * modules/sigprocmask (Depends-on): Likewise.
56386         * modules/sinl (Depends-on): Likewise.
56387         * modules/sleep (Depends-on): Likewise.
56388         * modules/snprintf (Depends-on): Likewise.
56389         * modules/snprintf-posix (Depends-on): Likewise.
56390         * modules/socket (Depends-on): Likewise.
56391         * modules/sprintf-posix (Depends-on): Likewise.
56392         * modules/sqrtl (Depends-on): Likewise.
56393         * modules/stat (Depends-on): Likewise.
56394         * modules/strchrnul (Depends-on): Likewise.
56395         * modules/strdup-posix (Depends-on): Likewise.
56396         * modules/strerror (Depends-on): Likewise.
56397         * modules/strerror_r-posix (Depends-on): Likewise.
56398         * modules/strndup (Depends-on): Likewise.
56399         * modules/strnlen (Depends-on): Likewise.
56400         * modules/strptime (Depends-on): Likewise.
56401         * modules/strsep (Depends-on): Likewise.
56402         * modules/strsignal (Depends-on): Likewise.
56403         * modules/strstr-simple (Depends-on): Likewise.
56404         * modules/strtod (Depends-on): Likewise.
56405         * modules/strtoimax (Depends-on): Likewise.
56406         * modules/strtok_r (Depends-on): Likewise.
56407         * modules/strtoumax (Depends-on): Likewise.
56408         * modules/symlink (Depends-on): Likewise.
56409         * modules/symlinkat (Depends-on): Likewise.
56410         * modules/tanl (Depends-on): Likewise.
56411         * modules/tcgetsid (Depends-on): Likewise.
56412         * modules/tmpfile (Depends-on): Likewise.
56413         * modules/trunc (Depends-on): Likewise.
56414         * modules/truncf (Depends-on): Likewise.
56415         * modules/truncl (Depends-on): Likewise.
56416         * modules/uname (Depends-on): Likewise.
56417         * modules/unlink (Depends-on): Likewise.
56418         * modules/unlockpt (Depends-on): Likewise.
56419         * modules/unsetenv (Depends-on): Likewise.
56420         * modules/usleep (Depends-on): Likewise.
56421         * modules/utimensat (Depends-on): Likewise.
56422         * modules/vasprintf (Depends-on): Likewise.
56423         * modules/vdprintf (Depends-on): Likewise.
56424         * modules/vdprintf-posix (Depends-on): Likewise.
56425         * modules/vfprintf-posix (Depends-on): Likewise.
56426         * modules/vprintf-posix (Depends-on): Likewise.
56427         * modules/vsnprintf (Depends-on): Likewise.
56428         * modules/vsnprintf-posix (Depends-on): Likewise.
56429         * modules/vsprintf-posix (Depends-on): Likewise.
56430         * modules/wcrtomb (Depends-on): Likewise.
56431         * modules/wcscasecmp (Depends-on): Likewise.
56432         * modules/wcscspn (Depends-on): Likewise.
56433         * modules/wcsdup (Depends-on): Likewise.
56434         * modules/wcsncasecmp (Depends-on): Likewise.
56435         * modules/wcsnrtombs (Depends-on): Likewise.
56436         * modules/wcspbrk (Depends-on): Likewise.
56437         * modules/wcsrtombs (Depends-on): Likewise.
56438         * modules/wcsspn (Depends-on): Likewise.
56439         * modules/wcsstr (Depends-on): Likewise.
56440         * modules/wcstok (Depends-on): Likewise.
56441         * modules/wcswidth (Depends-on): Likewise.
56442         * modules/wctob (Depends-on): Likewise.
56443         * modules/wctomb (Depends-on): Likewise.
56444         * modules/wctype (Depends-on): Likewise.
56445         * modules/wcwidth (Depends-on): Likewise.
56446         * modules/write (Depends-on): Likewise.
56448 2011-05-03  Bruno Haible  <bruno@clisp.org>
56450         Support for conditional dependencies.
56451         * doc/gnulib.texi (Module description): Document the syntax of
56452         conditional dependencies.
56453         * gnulib-tool: New option --conditional-dependencies.
56454         (func_usage): Document it.
56455         (cond_dependencies): New variable.
56456         (func_get_automake_snippet_conditional,
56457         func_get_automake_snippet_unconditional): New functions, extracted from
56458         func_get_automake_snippet.
56459         (func_get_automake_snippet): Use them.
56460         (sed_first_32_chars): New variable.
56461         (func_module_shellfunc_name): New function.
56462         (func_module_shellvar_name): New function.
56463         (func_module_conditional_name): New function.
56464         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56465         func_cond_module_condition): New functions.
56466         (func_modules_transitive_closure): Add support for conditional
56467         dependencies.
56468         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56469         conditional automake snippet in an automake conditional.
56470         (func_emit_autoconf_snippets): Emit shell functions that contain the
56471         code for conditional modules.
56472         (func_import, func_create_testdir): Update specification.
56474 2011-05-03  Eric Blake  <eblake@redhat.com>
56476         test-getaddrinfo: report error information
56477         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56479 2011-05-03  Jim Meyering  <meyering@redhat.com>
56481         bootstrap: avoid build failure when $GZIP is set
56482         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56483         program name.  If defined at all, it is supposed to list gzip options.
56484         Reported by Alan Curry in http://debbugs.gnu.org/8609
56486 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56488         readme-release: new module with release instructions
56489         * modules/readme-release: New module.
56490         * top/README-release: New file, from coreutils, grep, diffutils.
56491         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56493 2011-05-02  Eric Blake  <eblake@redhat.com>
56495         fflush: also replace fclose when fixing fflush
56496         * modules/fflush (Depends-on): Add fclose.
56497         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56498         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56499         memstreams with no backing fd.
56500         * doc/posix-functions/fclose.texi (fclose): Document the use of
56501         fflush module to fix the bug.
56502         * tests/test-fclose.c (main): Relax test when fclose is used in
56503         isolation.
56505         fclose: add some tests
56506         * modules/fclose-tests: New test module.
56507         * tests/test-fclose.c: New file.
56508         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56510         fclose: reduced dependencies
56511         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56512         simpler lseek.
56513         * lib/fclose.c (rpl_fclose): Likewise.
56514         Reported by Simon Josefsson.
56516         exit: drop remaining clients
56517         * modules/argmatch (Depends-on): Replace exit with stdlib.
56518         * modules/copy-file (Depends-on): Likewise.
56519         * modules/execute (Depends-on): Likewise.
56520         * modules/exitfail (Depends-on): Likewise.
56521         * modules/obstack (Depends-on): Likewise.
56522         * modules/pagealign_alloc (Depends-on): Likewise.
56523         * modules/pipe-filter-gi (Depends-on): Likewise.
56524         * modules/pipe-filter-ii (Depends-on): Likewise.
56525         * modules/savewd (Depends-on): Likewise.
56526         * modules/spawn-pipe (Depends-on): Likewise.
56527         * modules/wait-process (Depends-on): Likewise.
56528         * modules/xsetenv (Depends-on): Likewise.
56529         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
56530         * modules/git-merge-changelog (Depends-on): Likewise.
56531         * modules/long-options (Depends-on): Likewise.
56532         * modules/pt_chown (Depends-on): Likewise.
56533         * modules/sysexits (Depends-on): Likewise.
56535         freading: relax license from LGPLv3+ to LGPLv2+
56536         * modules/freading (License): Relax LGPL version.
56538 2011-05-02  Bruno Haible  <bruno@clisp.org>
56540         fchdir: Remove unused dependencies.
56541         * modules/fchdir (Depends-on): Remove include_next.
56543 2011-05-02  Bruno Haible  <bruno@clisp.org>
56545         gnulib-tool: Refactor.
56546         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
56547         from func_emit_autoconf_snippets.
56548         (func_emit_autoconf_snippets): Use it.
56550 2011-05-02  Simon Josefsson  <simon@josefsson.org>
56552         * NEWS: Document removal of 'exit'.
56553         * modules/exit: Remove file.
56555 2011-05-01  Bruno Haible  <bruno@clisp.org>
56557         Update DEPENDENCIES.
56558         * DEPENDENCIES (gettext): Recommend the newest release.
56559         Reported by Simon Josefsson.
56561 2011-05-01  Bruno Haible  <bruno@clisp.org>
56563         gnulib-tool: Reduce code duplication.
56564         * gnulib-tool (func_emit_autoconf_snippets): New function.
56565         (func_import, func_create_testdir): Use it.
56567 2011-04-30  Eric Blake  <eblake@redhat.com>
56569         fclose: don't fail on non-seekable input stream
56570         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
56571         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
56572         since fflush is allowed to fail in that case.
56574 2011-04-30  Bruno Haible  <bruno@clisp.org>
56576         dup3: cleanup
56577         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
56579 2011-04-30  Bruno Haible  <bruno@clisp.org>
56581         netdb: Make it work in C++ mode.
56582         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
56583         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
56584         module.
56585         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
56586         gl_MODULE_INDICATOR_FOR_TESTS.
56587         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
56588         * modules/netdb-c++-tests: New file.
56589         * tests/test-netdb-c++.cc: New file.
56591 2011-04-30  Bruno Haible  <bruno@clisp.org>
56593         New modules 'vfscanf', 'vscanf'.
56594         * modules/vfscanf: New file.
56595         * modules/vscanf: New file.
56596         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56597         here.
56598         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56599         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56601 2011-04-30  Bruno Haible  <bruno@clisp.org>
56603         passfd: Add comments.
56604         * lib/passfd.c: Add comments about platforms.
56606 2011-04-30  Bruno Haible  <bruno@clisp.org>
56608         sys_uio: Make <sys/uio.h> self-contained.
56609         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
56610         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56612 2011-04-30  Bruno Haible  <bruno@clisp.org>
56614         sys_socket: Ensure 'struct iovec' definition.
56615         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56616         <sys/socket.h>.
56617         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56619 2011-04-30  Bruno Haible  <bruno@clisp.org>
56621         sys_uio: Protect definition of 'struct iovec'.
56622         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56623         it as a C struct.
56625 2011-04-30  Bruno Haible  <bruno@clisp.org>
56627         manywarnings: fix indentation
56628         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56630 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56632         manywarnings: add -Wno-missing-field-initializers if needed.
56633         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56634         option if it's needed to allow initialization with { 0, }
56636 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56638         announce-gen: cosmetic improvement
56639         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56641 2011-04-29  Jim Meyering  <meyering@redhat.com>
56643         vc-list-files: indent with spaces, not TABs
56644         * build-aux/vc-list-files: Convert leading TABs to spaces,
56645         to match the style of most other files in gnulib.
56647         announce-gen: indent with spaces, not TABs
56648         * build-aux/announce-gen: Convert all TABs to spaces, to match
56649         the style of most other files in gnulib.
56651 2011-04-29  Eric Blake  <eblake@redhat.com>
56653         quotearg: avoid uninitialized variable use
56654         * lib/quotearg.c (quoting_options_from_style): Initialize
56655         remaining fields, and ensure that custom styles are only used via
56656         quoting_options rather than quoting_style.
56658 2011-04-29  Jim Meyering  <meyering@redhat.com>
56660         maint.mk: remove unused VC-tag variable
56661         * top/maint.mk (VC-tag): Remove unused variable.
56663 2011-04-29  Bruno Haible  <bruno@clisp.org>
56665         netdb: fix gai_strerror replacements
56666         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56667         * modules/netdb: Substitute it.
56669 2011-04-29  Jim Meyering  <meyering@redhat.com>
56671         test-getcwd.c: avoid new set-but-not-used warning
56672         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56673         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56674         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56675         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56677         test-hash.c: avoid a new shadowing warning
56678         * tests/test-hash.c (main): Don't shadow "dup".
56680 2011-04-28  Eric Blake  <eblake@redhat.com>
56682         getaddrinfo: fix gai_strerror signature
56683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56684         and work around mingw with UNICODE defined.
56685         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56686         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56687         * modules/netdb (Makefile.am): Substitute it.
56688         * lib/netdb.in.h (gai_strerror): Declare replacement.
56689         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56690         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56691         the fix.
56693         getsockopt: avoid compiler warning
56694         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56695         Reported by Matthias Bolte.
56697         tests: drop unused link dependency
56698         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56699         * modules/dirent-safer-tests (Makefile.am): Likewise.
56700         * modules/fdopendir-tests (Makefile.am): Likewise.
56701         * modules/mkfifoat-tests (Makefile.am): Likewise.
56702         * modules/openat-safer-tests (Makefile.am): Likewise.
56703         * modules/openat-tests (Makefile.am): Likewise.
56704         * modules/readlinkat-tests (Makefile.am): Likewise.
56705         * modules/symlinkat-tests (Makefile.am): Likewise.
56706         * modules/linkat-tests (Makefile.am): Likewise.
56707         (Depends-on): Switch to filenamecat-lgpl.
56708         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56709         LIBINTL.
56710         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56711         * tests/test-linkat.c (main): Don't require xalloc.
56713         hash, mgetgroups: drop xalloc dependency
56714         * lib/hash.c (includes): Adjust includes.
56715         * lib/mgetgroups.c (includes): Likewise.
56716         (xgetgroups): Move...
56717         * lib/xgetgroups.c: ...to new file.
56718         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56719         * modules/xgetgroups: New file, split from...
56720         * modules/mgetgroups: ...here.
56721         (Depends-on): Add xalloc-oversized.
56722         * modules/hash (Depends-on): Likewise.
56723         * modules/hash-tests (Depends-on): Drop xalloc.
56724         (test_hash_LDADD): Drop unused library.
56725         * tests/test-hash.c (main): Break xalloc dependency.
56726         (includes): Drop unused include.
56728         xalloc-oversized: new module
56729         * modules/xalloc-oversized: New module.
56730         * modules/xalloc (Depends-on): Add it.
56731         * lib/xalloc.h (xalloc_oversized): Move...
56732         * lib/xalloc-oversized.h: ...into new file.
56734         utimecmp: drop dependency on xmalloc
56735         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56736         due to memory pressure.
56737         * modules/utimecmp (Depends-on): Drop xalloc.
56739 2011-04-27  Eric Blake  <eblake@redhat.com>
56741         getcwd: fix mingw bugs
56742         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56743         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56744         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56746 2011-04-27  Bruno Haible  <bruno@clisp.org>
56748         mkstemps: Ensure declaration on MacOS X 10.5.
56749         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56750         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56751         MacOS X.
56753 2011-04-27  Bruno Haible  <bruno@clisp.org>
56755         mkstemp: More documentation.
56756         * doc/posix-functions/mkstemp.texi: Document header file problem on
56757         MacOS X.
56759 2011-04-27  Bruno Haible  <bruno@clisp.org>
56761         mkstemp: Tweak configure message when cross-compiling.
56762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56763         result as a guess.
56765 2011-04-27  Bruno Haible  <bruno@clisp.org>
56767         clean-temp: Clarify what it does.
56768         * lib/clean-temp.h: Add more comments.
56769         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56770         module.
56771         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56772         * doc/glibc-functions/mkstemps.texi: Likewise.
56773         * doc/glibc-functions/mkostemps.texi: Likewise.
56775 2011-04-27  Eric Blake  <eblake@redhat.com>
56777         fchdir: avoid extra chdir and fix test
56778         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56779         getcwd-lgpl.
56780         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56781         have to be canonical.
56782         (canonicalize_file_name): Drop unused macro.
56783         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56785         filenamecat-lgpl: fix licence
56786         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56787         when it was first created.
56789         linkat, renameat: add missing dependency
56790         * modules/linkat (Depends-on): Require getcwd-lgpl.
56791         * modules/renameat (Depends-on): Likewise.
56793         tests: reduce dependencies
56794         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56795         * tests/test-renameat.c (main): Likewise.
56796         * modules/linkat-tests (Depends-on): Relax dependency.
56797         * modules/renameat-tests (Depends-on): Likewise.
56798         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56799         dependency explicit.
56801         save-cwd: reduce default dependency
56802         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56803         * lib/save-cwd.c: Update comments.
56804         * NEWS: Document the semantic change.
56806         getcwd: enhance tests
56807         * tests/test-getcwd-lgpl.c: New file, taken from...
56808         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56809         repeat long path stress tests from m4 probe.
56810         * modules/getcwd-lgpl-tests: New module.
56811         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56812         * m4/getcwd-abort-bug.m4: Update comment.
56813         * m4/getcwd-path-max.m4: Likewise.
56815         getcwd-lgpl: new module
56816         * modules/getcwd-lgpl: New module.
56817         * lib/getcwd-lgpl.c: New file.
56818         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56819         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56820         * modules/getcwd (configure.ac): Set C witness.
56821         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56823         getcwd: tweak comments
56824         * m4/getcwd-abort-bug.m4: Fix comments.
56825         * m4/getcwd-path-max.m4: Likewise.
56826         * m4/getcwd.m4: Likewise.
56828 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56829         and Eric Blake  <eblake@redhat.com>
56831         mkstemp: replace if system version uses wrong permissions
56832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56833         read/write mode bits set in file created by mkstemp.
56834         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56836 2011-04-27  Eric Blake  <eblake@redhat.com>
56838         passfd: avoid compiler warning
56839         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56840         Reported by Laine Stump.
56842 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56844         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56845         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56847 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56848         and Eric Blake  <eblake@redhat.com>
56850         mkstemp: mention clean-temp module
56851         * lib/mkstemp.c: Add comment.
56852         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56854 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56856         inttypes: also provide default values for 32-bit tests
56857         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56858         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56860 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56862         strtoumax: remove dependency on strtoimax
56863         This is like the strtoull change of yesterday.
56864         * modules/strtoumax (Files): Add lib/strtoimax.c.
56865         (Depends-on): Remove strtoimax and add verify.
56867         inttypes-incomplete: new module
56868         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56869         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56870         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56871         of gl_INTTYPES_H.
56872         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56873         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56874         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56875         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56876         * modules/strtoumax, modules/xstrtol (Depends-on):
56877         Depend on inttypes-incomplete, not inttypes.
56878         * modules/inttypes-incomplete: New module, containing the contents
56879         of the old modules/inttypes module, except that the Files: section
56880         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56881         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56882         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56883         (Depends-on): Depend only on inttypes-incomplete.
56884         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56886         inttypes: omit now-redundant strtoimax and strtoumax work
56887         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56888         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56890         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56891         This supports apps that need pointers to strtoimax and strtoumax,
56892         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56893         nonexistent functions.  See
56894         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56895         et seq.
56896         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56897         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56898         a macro.
56899         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56901 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56903         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56905 2011-04-25  Bruno Haible  <bruno@clisp.org>
56907         strtol, strtoul: Mark modules as obsolete.
56908         * modules/strtol (Status, Notice): New sections.
56909         * modules/strtoul (Status, Notice): New sections.
56911 2011-04-25  Bruno Haible  <bruno@clisp.org>
56913         strtod: Remove check for strtod, unless supporting old platforms.
56914         * modules/strtod-obsolete: New file.
56915         * m4/strtod-obsolete.m4: New file.
56916         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56917         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56918         * modules/strtod (Depends-on): Add strtod-obsolete.
56919         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56921 2011-04-25  Bruno Haible  <bruno@clisp.org>
56923         strcase: Make module obsolete.
56924         * modules/strcase (Status, Notice): New sections.
56926 2011-04-25  Bruno Haible  <bruno@clisp.org>
56928         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56929         * modules/dup2-obsolete: New file.
56930         * m4/dup2-obsolete.m4: New file.
56931         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56932         gl_FUNC_DUP2_OBSOLETE is not also defined.
56933         * modules/dup2 (Depends-on): Add dup2-obsolete.
56934         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
56936 2011-04-25  Bruno Haible  <bruno@clisp.org>
56938         strnlen: Avoid memchr related link error on old obsolete platforms.
56939         * modules/memchr-obsolete: New file.
56940         * m4/memchr-obsolete.m4: New file.
56941         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
56942         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
56943         * modules/memchr (Depends-on): Add memchr-obsolete.
56944         * modules/strnlen (Depends-on): Likewise.
56945         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56947 2011-04-25  Jim Meyering  <meyering@redhat.com>
56949         maint.mk: makefile_at_at_check extend and clean up
56950         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56951         in addition to */Makefile.am.
56952         Exempt legitimate uses of @VAR@ notation, e.g.,
56953         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56954         Remove obsolete coreutils-specific comment.
56955         Prompted by discussion here:
56956         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56958 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56960         strtoul: remove dependency on strtol
56961         This is so that 'configure' need not check for strtol merely because
56962         the application needs strtoul.
56963         * modules/strtoul (Files): Add lib/strtol.c.
56964         (Depends-on): Remove strtol.
56966         strtoull: remove dependency on strtoul
56967         This is like the strtoll change.
56968         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56969         (Depends-on): Remove strtoul.
56971         strtoll: remove dependency on strtol
56972         This is so that 'configure' need not check for strtol merely because
56973         the application needs strtoll.
56974         * modules/strtoll (Files): Add lib/strtol.c.
56975         (Depends-on): Remove strtol.
56977 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56979         inttypes: Move some configure check to module 'imaxdiv'.
56980         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56981         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56982         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56984 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56986         inttypes: Move some configure check to module 'imaxabs'.
56987         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56988         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56989         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56991 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56993         inttypes: Remove configure tests that are not needed since 2009-12-31.
56994         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56995         gl_cv_header_working_inttypes_h.
56997 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56999         * modules/strnlen (Depends-on): Remove memchr.
57000         The strnlen implementation doesn't need the memchr module's fixes; see
57001         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57003         strtol: remove dependency on wchar
57004         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57005         * modules/strtol (Depends-on): Remove wchar.
57007 2011-04-21  Eric Blake  <eblake@redhat.com>
57009         passfd: fix test regression on Linux
57010         * modules/passfd-tests (configure.ac): Correct socketpair check.
57012         passfd: speed up configure and drop unused code
57013         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57014         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57015         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57016         Instead of probing at configure for unix_scm_rights_bsd44_way,
57017         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57018         check to a struct member probe.
57019         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57020         (sendfd, recvfd): Update preprocessor checks.
57021         * modules/passfd (Files): Reflect rename, and drop unused file.
57022         (Depends-on): Drop unused dependency.
57024         passfd: allow compilation on mingw
57025         * modules/sys_socket (Depends-on): Add sys_uio.
57026         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57027         iovec and a minimal struct msghdr.
57028         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57029         * tests/test-sys_socket.c (main): Enhance test.
57030         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57031         guaranteed to provide what we need.
57032         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57033         * modules/passfd-tests (Depends-on): Add sys_wait.
57034         * tests/test-passfd.c (main): Skip test on mingw, for now.
57035         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57036         partial 'struct msghdr' implementation.
57038         sys_uio: new module
57039         * modules/sys_uio: New module.
57040         * modules/sys_uio-tests: Likewise.
57041         * lib/sys_uio.in.h: New file.
57042         * m4/sys_uio_h.m4: Likewise.
57043         * tests/test-sys_uio.c: Likewise.
57044         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57045         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57047 2011-04-20  Jim Meyering  <meyering@redhat.com>
57049         useless-if-before-free: avoid false-positive
57050         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57051         disjunct so that it too requires a terminating ";".  Without that,
57052         this script would identify as useless one statement from gcc that
57053         was not:
57054           if (aligned_ptr)
57055             free (((void **) aligned_ptr) [-1]);
57057 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57059         doc: update users.txt.
57060         * users.txt: Add barcode.
57062 2011-04-19  Bruno Haible  <bruno@clisp.org>
57064         ioctl: Remove link dependency on native Windows.
57065         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57066         (gl_close_fn, gl_ioctl_fn): New types.
57067         (struct fd_hook): Renamed from struct close_hook. Change type of
57068         private_close_fn field. Add private_ioctl_fn field.
57069         (close_hook_fn): Add parameter for primary close method.
57070         (execute_close_hooks, execute_all_close_hooks): Likewise.
57071         (ioctl_hook_fn): New type.
57072         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57073         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57074         argument.
57075         (unregister_fd_hook): Renamed from unregister_close_hook.
57076         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57077         Don't include <unistd.h>.
57078         (close): Remove undef.
57079         (anchor): Update.
57080         (execute_close_hooks): Add argument for primary close method.
57081         (execute_all_close_hooks): Likewise.
57082         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57083         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57084         argument. Allow each argument to be NULL.
57085         (unregister_fd_hook): Renamed from unregister_close_hook.
57086         * lib/close.c (rpl_close): Pass 'close' function pointer to
57087         execute_all_close_hooks.
57088         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57089         (primary_ioctl): New function.
57090         (ioctl): Don't call ioctlsocket here. Instead, call
57091         execute_all_ioctl_hooks.
57092         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57093         close method.
57094         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57095         (fd_sockets_hook): Renamed from close_sockets_hook.
57096         (gl_sockets_startup, gl_sockets_cleanup): Update.
57097         * modules/fd-hook: Renamed from modules/close-hook. Update.
57098         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57099         * modules/sockets (Depends-on): Likewise.
57100         * modules/ioctl (Depends-on): Add fd-hook.
57101         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57102         GNULIB_SOCKET.
57104 2011-04-19  Bruno Haible  <bruno@clisp.org>
57106         Move the support of O_NONBLOCK in open() to the 'open' module.
57107         * modules/nonblocking (Depends-on): Remove 'open'.
57108         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57109         gl_cv_have_open_O_NONBLOCK.
57110         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57111         O_NONBLOCK support.
57112         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57114 2011-04-17  Bruno Haible  <bruno@clisp.org>
57116         pipe2: Simplify code.
57117         * lib/pipe2.c (pipe2): Reduce code duplication.
57119 2011-04-17  Bruno Haible  <bruno@clisp.org>
57121         nonblocking: Add comment.
57122         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57124 2011-04-17  Bruno Haible  <bruno@clisp.org>
57126         nonblocking: Add tests for sockets.
57127         * tests/test-nonblocking-socket.sh: New file.
57128         * tests/test-nonblocking-socket-main.c: New file.
57129         * tests/test-nonblocking-socket-child.c: New file.
57130         * tests/test-nonblocking-socket.h: New file.
57131         * tests/socket-server.h: New file.
57132         * tests/socket-client.h: New file.
57133         * modules/nonblocking-socket-tests: New file.
57134         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57136 2011-04-17  Bruno Haible  <bruno@clisp.org>
57138         nonblocking: Add tests for pipes.
57139         * tests/test-nonblocking-pipe.sh: New file.
57140         * tests/test-nonblocking-pipe-main.c: New file.
57141         * tests/test-nonblocking-pipe-child.c: New file.
57142         * tests/test-nonblocking-pipe.h: New file.
57143         * tests/test-nonblocking-writer.h: New file.
57144         * tests/test-nonblocking-reader.h: New file.
57145         * tests/test-nonblocking-misc.h: New file.
57146         * modules/nonblocking-pipe-tests: New file.
57147         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57149 2011-04-16  Bruno Haible  <bruno@clisp.org>
57151         gettext: Clarify the needed programmer actions.
57152         * modules/gettext (Notice): New field.
57153         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57155 2011-04-16  Bruno Haible  <bruno@clisp.org>
57157         strchrnul: Tweak last commit.
57158         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57159         bug.
57160         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57161         as in _GL_FUNCDECL_SYS.
57162         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57163         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57165 2011-04-15  Eric Blake  <eblake@redhat.com>
57167         strchrnul: work around cygwin bug
57168         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57171         * modules/string (Makefile.am): Substitute it.
57172         * lib/string.in.h (strchrnul): Use it.
57174 2011-04-15  Bruno Haible  <bruno@clisp.org>
57176         Don't require lib/stdio-write.c when only module 'stdio' is used.
57177         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57178         invocation.
57179         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57181 2011-04-14  Bruno Haible  <bruno@clisp.org>
57183         Support non-blocking pipe I/O in read() on native Windows.
57184         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57185         (read): New declaration.
57186         * lib/read.c: New file.
57187         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57188         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57189         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57190         vscanf): New declarations.
57191         * lib/stdio-read.c: New file.
57192         * m4/read.m4: New file.
57193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57194         REPLACE_READ.
57195         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57196         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57197         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57198         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57199         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57200         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57201         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57202         * modules/read: New file.
57203         * modules/nonblocking (Files): Add lib/stdio-read.c.
57204         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57205         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57206         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57207         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57208         * modules/pread (Depends-on): Add read.
57209         * modules/safe-read (Depends-on): Likewise.
57210         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57211         gets, scanf, vfscanf, vscanf): Verify signatures.
57212         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57213         problem with non-blocking pipes.
57214         * doc/posix-functions/fgetc.texi: Likewise.
57215         * doc/posix-functions/fgets.texi: Likewise.
57216         * doc/posix-functions/fread.texi: Likewise.
57217         * doc/posix-functions/fscanf.texi: Likewise.
57218         * doc/posix-functions/getc.texi: Likewise.
57219         * doc/posix-functions/getchar.texi: Likewise.
57220         * doc/posix-functions/gets.texi: Likewise.
57221         * doc/posix-functions/scanf.texi: Likewise.
57222         * doc/posix-functions/vfscanf.texi: Likewise.
57223         * doc/posix-functions/vscanf.texi: Likewise.
57225 2011-04-14  Bruno Haible  <bruno@clisp.org>
57227         Support non-blocking pipe I/O in write() on native Windows.
57228         * lib/write.c (rpl_write): Split a write request that failed merely
57229         because the byte count was larger than the pipe buffer's size.
57230         * doc/posix-functions/write.texi: Mention the problem with large byte
57231         counts.
57233 2011-04-14  Bruno Haible  <bruno@clisp.org>
57235         wchar: Ensure that wchar_t gets defined on uClibc.
57236         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57237         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57239 2011-04-13  Bruno Haible  <bruno@clisp.org>
57241         safe-write, full-read: Avoid unnecessary compilation units.
57242         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57243         (Depends-on): Remove safe-read. Add ssize_t.
57244         * modules/full-read (Files): Add lib/full-write.c.
57245         (Depends-on): Add full-write.
57247 2011-04-13  Bruno Haible  <bruno@clisp.org>
57249         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57250         * modules/pwrite (Depends-on): Add 'write'.
57252 2011-04-13  Bruno Haible  <bruno@clisp.org>
57254         Support non-blocking pipe I/O in write() on native Windows.
57255         * lib/unistd.in.h (write): Enable replacement also if
57256         GNULIB_UNISTD_H_NONBLOCKING is 1.
57257         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57258         (rpl_write): When failing to write on a non-blocking pipe, change
57259         errno from ENOSPC to EAGAIN.
57260         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57261         putchar, puts, vfprintf, vprintf): Enable replacement also if
57262         GNULIB_STDIO_H_NONBLOCKING is 1.
57263         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57264         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57265         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57266         CALL_WITH_SIGPIPE_EMULATION.
57267         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57268         * m4/nonblocking.m4: New file.
57269         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57270         for non-blocking I/O support.
57271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57272         GNULIB_UNISTD_H_NONBLOCKING.
57273         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57274         required for non-blocking I/O support.
57275         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57276         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57277         lib/stdio-write.c, m4/asm-underscore.m4.
57278         (Depends-on): Add stdio, unistd.
57279         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57280         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57281         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57282         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57283         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57284         problem with non-blocking pipes.
57285         * doc/posix-functions/fputc.texi: Likewise.
57286         * doc/posix-functions/fputs.texi: Likewise.
57287         * doc/posix-functions/fwrite.texi: Likewise.
57288         * doc/posix-functions/printf.texi: Likewise.
57289         * doc/posix-functions/putc.texi: Likewise.
57290         * doc/posix-functions/putchar.texi: Likewise.
57291         * doc/posix-functions/puts.texi: Likewise.
57292         * doc/posix-functions/vfprintf.texi: Likewise.
57293         * doc/posix-functions/vprintf.texi: Likewise.
57294         * doc/posix-functions/write.texi: Likewise.
57296 2011-04-10  Jim Meyering  <meyering@redhat.com>
57298         maint.mk: prohibit doubled words
57299         Detect them also when they're separated by a newline.
57300         There are 3 ways to customize it:
57301           - disable the test on a per file basis, as usual with rules using
57302             $(VC_LIST_EXCEPT)
57303           - replace the default doubled-word-selecting regexp (affects all files)
57304           - ignore a particular file-vs-doubled-word match
57305         I nearly used that last one to ignore the "is is" match in
57306         coreutils' NEWS file, since the text was "ls -is is ..."
57307         To do that, I would have added this line to cfg.mk:
57308           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57309         but it would have ignored any "is is" match in NEWS.
57310         Low probability, but still...
57311         Instead, I changed the text, slightly:
57312           -  ls -is is now consistent with ls -lis in ignoring values returned
57313           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57314         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57315         (prohibit_doubled_word_): Define.
57316         (sc_prohibit_doubled_word): New rule.
57317         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57319 2011-04-10  Jim Meyering  <meyering@redhat.com>
57321         maint: fix doubled-word typo in comment
57322         * m4/gethostname.m4: s/is is/it is/
57323         * m4/getdomainname.m4: Likewise.
57325 2011-04-10  Jim Meyering  <meyering@redhat.com>
57327         maint: remove doubled word: s/it it/it/
57328         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57330 2011-04-10  Jim Meyering  <meyering@redhat.com>
57332         maint.mk: remove useless semicolon and backslash
57333         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57334         semicolon and backslash.
57336 2011-04-10  Bruno Haible  <bruno@clisp.org>
57338         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57339         * modules/stdint-tests (Depends-on): Add wchar.
57341 2011-04-10  Jim Meyering  <meyering@redhat.com>
57343         maint: remove doubled words in comments, e.g., s/a a/a/
57344         * lib/strptime.c (day_of_the_week): s/the the/the/
57345         * tests/test-chown.h (test_chown): s/a a/a/
57347         test-chown.h: correct a cast
57348         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57349         when the destination is a stat.st_gid.
57351 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57353         getaddrinfo: Fix test for sa_len member.
57354         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57355         include <sys/types.h> before <sys/socket.h>.
57357 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57359         maint: change "can not" to "cannot"
57360         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57361         boundaries.
57363 2011-04-09  Jim Meyering  <meyering@redhat.com>
57365         maint: change "a a" to "a"
57366         * tests/test-lchown.h (test_lchown): s/a a/a/
57368         maint.mk: prohibit \<the the\>
57369         * top/maint.mk (sc_prohibit_the_the): New rule.
57371         maint: fix "the the" in comment
57372         * lib/count-one-bits.h: s/the the/the/
57374         maint: change "can not" to "cannot"
57375         But do not change the occurrences in maintain.texi or in
57376         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57377         * doc/gnulib-tool.texi: s/can not/cannot/
57378         * doc/posix-functions/accept.texi (accept): Likewise.
57379         * doc/posix-functions/socket.texi (socket): Likewise.
57380         * lib/mbrtowc.c: Likewise.
57382         maint.mk: prohibit use of "can not"
57383         * top/maint.mk (sc_prohibit_can_not): New rule.
57384         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57386 2011-04-09  Bruno Haible  <bruno@clisp.org>
57388         careadlinkat: Guard against misuse of careadlinkatcwd.
57389         * lib/careadlinkat.c: Include <stdlib.h>.
57390         (careadlinkatcwd): Check that the fd argument is as expected.
57392 2011-04-09  Bruno Haible  <bruno@clisp.org>
57394         careadlinkat: Use common coding style.
57395         * lib/careadlinkat.c: Move gnulib includes after system includes.
57397 2011-04-09  Bruno Haible  <bruno@clisp.org>
57399         careadlinkat: Clarify specification.
57400         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57401         (careadlinkatcwd): Add comment.
57402         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57404 2011-04-09  Bruno Haible  <bruno@clisp.org>
57406         areadlinkat: Avoid link error on many platforms.
57407         * modules/areadlinkat (Depends-on): Add areadlink.
57409 2011-04-09  Bruno Haible  <bruno@clisp.org>
57411         allocator, careadlinkat: Fix double-inclusion guard.
57412         * lib/allocator.h: Fix double-inclusion guard.
57413         * lib/careadlinkat.h: Likewise.
57415 2011-04-09  Bruno Haible  <bruno@clisp.org>
57417         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57418         * lib/relocwrapper.c: Update dependencies hierarchy.
57419         * build-aux/install-reloc: Update list of files to be compiled.
57420         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57421         lib/allocator.[hc].
57423 2011-04-08  Eric Blake  <eblake@redhat.com>
57425         strftime: silence gnulib-tool warning
57426         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57428 2011-04-08  Bruno Haible  <bruno@clisp.org>
57430         verify: Fix syntax error with GCC 4.6 in C++ mode.
57431         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57432         (HAVE_STATIC_ASSERT): New macro.
57433         (verify_true, verify): Use 'static_assert' if it is supported and
57434         '_Static_assert' is not supported.
57436 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57438         allocator: New module.
57439         * modules/allocator, lib/allocator.c: New files.
57440         * lib/allocator.h (stdlib_allocator): New decl.
57441         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57442         Remove.  Do not include <stdlib.h>.
57443         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57444         * modules/careadlinkat (Files): Remove lib/allocator.h.
57445         (Depends-on): Add allocator.
57447         stdlib: let modules use system malloc, realloc
57448         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57449         if !_GL_USE_STDLIB_ALLOC.
57450         (malloc, realloc): Limit this change to a smaller scope.
57452         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57453         (malloc, realloc): Don't #undef; no longer needed.
57454         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57455         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57456         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57457         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57458         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57459         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57460         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57461         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57463         careadlinkat: rename members to avoid problem
57464         * lib/allocator.h (struct allocator): Rename members from
57465         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57466         and realloc are #define'd.  Reported by Eric Blake in
57467         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57468         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57470 2011-04-08  Eric Blake  <eblake@redhat.com>
57472         nonblocking: reduce dependency
57473         * tests/test-nonblocking.c: Only test sockets when in use.
57474         * modules/nonblocking-tests (Depends-on): Drop socket.
57475         (Makefile.am): Link even if sockets are not present.
57476         * modules/pipe2-tests (Makefile.am): Likewise.
57477         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57479         pipe2: fix O_NONBLOCK support on mingw
57480         * modules/pipe2 (Depends-on): Add nonblocking.
57481         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57482         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57483         * tests/test-nonblocking.c (main): Likewise.
57484         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57486         fcntl-h: fix O_ACCMODE on cygwin
57487         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57488         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57490         pipe-filter: drop O_NONBLOCK workarounds
57491         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57492         * modules/pipe-filter-ii (Depends-on): Likewise.
57493         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57495         nonblocking: provide O_NONBLOCK for mingw
57496         * modules/nonblocking (Depends-on): Add open.
57497         (configure.ac): Set new witness macro.
57498         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57499         * modules/fcntl-h (Makefile.am): Substitute it.
57500         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57501         nonblocking module is in use.
57502         * lib/nonblocking.c: Adjust portability test.
57503         * lib/open.c (open): Don't let native open see gnulib flag.
57504         * tests/test-fcntl-h.c (main): Enhance test.
57505         * tests/test-open.h (test_open): Likewise.
57506         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57508         careadlinkat: fix compilation error on mingw
57509         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57510         within struct allocator.
57512 2011-04-06  Eric Blake  <eblake@redhat.com>
57514         binary-io: relicense under LGPLv2+
57515         * modules/binary-io (License): Relax to LGPLv2+.
57516         Requested for libvirt, and required by pipe2.
57518 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
57520         verify: use _Static_assert if available
57521         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
57522         (verify_true, verify): Use it if available.  This generates better
57523         diagnostics with GCC 4.6.0 and later.
57525 2011-04-05  Bruno Haible  <bruno@clisp.org>
57527         Remove leftover generated .h files after config.status changed.
57529         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
57530         GL_GENERATE_ALLOCA_H.
57531         * modules/alloca-opt (Makefile.am): Remove alloca.h if
57532         GL_GENERATE_ALLOCA_H evaluates to false.
57534         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
57535         GL_GENERATE_ARGZ_H.
57536         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
57537         evaluates to false.
57539         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
57540         GL_GENERATE_BYTESWAP_H.
57541         * modules/byteswap (Makefile.am): Remove byteswap.h if
57542         GL_GENERATE_BYTESWAP_H evaluates to false.
57544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
57545         GL_GENERATE_ERRNO_H.
57546         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
57547         evaluates to false.
57549         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
57550         GL_GENERATE_FLOAT_H.
57551         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
57552         evaluates to false.
57554         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
57555         GL_GENERATE_FNMATCH_H.
57556         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
57557         GL_GENERATE_FNMATCH_H evaluates to false.
57559         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
57560         GL_GENERATE_GLOB_H.
57561         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
57562         evaluates to false.
57564         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
57565         automake conditional GL_GENERATE_ICONV_H.
57566         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
57567         evaluates to false.
57569         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
57570         GL_GENERATE_NETINET_IN_H.
57571         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
57572         GL_GENERATE_NETINET_IN_H evaluates to false.
57574         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
57575         conditional GL_GENERATE_PTHREAD_H.
57576         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
57577         * modules/pthread (Makefile.am): Remove pthread.h if
57578         GL_GENERATE_PTHREAD_H evaluates to false.
57580         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
57581         GL_GENERATE_SCHED_H.
57582         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
57583         evaluates to false.
57585         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
57586         conditional GL_GENERATE_SELINUX_CONTEXT_H.
57587         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
57588         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
57590         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
57591         GL_GENERATE_STDARG_H.
57592         * modules/stdarg (Makefile.am): Remove stdarg.h if
57593         GL_GENERATE_STDARG_H evaluates to false.
57595         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57596         GL_GENERATE_STDBOOL_H.
57597         * modules/stdbool (Makefile.am): Remove stdbool.h if
57598         GL_GENERATE_STDBOOL_H evaluates to false.
57600         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57601         conditional GL_GENERATE_STDDEF_H.
57602         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57603         * modules/stddef (Makefile.am): Remove stddef.h if
57604         GL_GENERATE_STDDEF_H evaluates to false.
57606         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57607         GL_GENERATE_STDINT_H.
57608         * modules/stdint (Makefile.am): Remove stdint.h if
57609         GL_GENERATE_STDINT_H evaluates to false.
57611         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57612         GL_GENERATE_SYSEXITS_H.
57613         * modules/sysexits (Makefile.am): Remove sysexits.h if
57614         GL_GENERATE_SYSEXITS_H evaluates to false.
57616         Reported by Karl Berry and Ralf Wildenhues.
57618 2011-04-05  Bruno Haible  <bruno@clisp.org>
57620         Ensure to rebuild generated .h files when config.status has changed.
57621         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57622         config.status.
57623         * modules/ctype (Makefile.am): Likewise.
57624         * modules/dirent (Makefile.am): Likewise.
57625         * modules/errno (Makefile.am): Likewise.
57626         * modules/fcntl-h (Makefile.am): Likewise.
57627         * modules/float (Makefile.am): Likewise.
57628         * modules/getopt-posix (Makefile.am): Likewise.
57629         * modules/glob (Makefile.am): Likewise.
57630         * modules/iconv-h (Makefile.am): Likewise.
57631         * modules/inttypes (Makefile.am): Likewise.
57632         * modules/langinfo (Makefile.am): Likewise.
57633         * modules/locale (Makefile.am): Likewise.
57634         * modules/math (Makefile.am): Likewise.
57635         * modules/netdb (Makefile.am): Likewise.
57636         * modules/netinet_in (Makefile.am): Likewise.
57637         * modules/poll-h (Makefile.am): Likewise.
57638         * modules/pthread (Makefile.am): Likewise.
57639         * modules/pty (Makefile.am): Likewise.
57640         * modules/sched (Makefile.am): Likewise.
57641         * modules/search (Makefile.am): Likewise.
57642         * modules/selinux-h (Makefile.am): Likewise.
57643         * modules/signal (Makefile.am): Likewise.
57644         * modules/spawn (Makefile.am): Likewise.
57645         * modules/stdarg (Makefile.am): Likewise.
57646         * modules/stdbool (Makefile.am): Likewise.
57647         * modules/stddef (Makefile.am): Likewise.
57648         * modules/stdint (Makefile.am): Likewise.
57649         * modules/stdio (Makefile.am): Likewise.
57650         * modules/stdlib (Makefile.am): Likewise.
57651         * modules/string (Makefile.am): Likewise.
57652         * modules/strings (Makefile.am): Likewise.
57653         * modules/sys_file (Makefile.am): Likewise.
57654         * modules/sys_ioctl (Makefile.am): Likewise.
57655         * modules/sys_select (Makefile.am): Likewise.
57656         * modules/sys_socket (Makefile.am): Likewise.
57657         * modules/sys_stat (Makefile.am): Likewise.
57658         * modules/sys_time (Makefile.am): Likewise.
57659         * modules/sys_times (Makefile.am): Likewise.
57660         * modules/sys_utsname (Makefile.am): Likewise.
57661         * modules/sys_wait (Makefile.am): Likewise.
57662         * modules/sysexits (Makefile.am): Likewise.
57663         * modules/termios (Makefile.am): Likewise.
57664         * modules/time (Makefile.am): Likewise.
57665         * modules/unistd (Makefile.am): Likewise.
57666         * modules/wchar (Makefile.am): Likewise.
57667         * modules/wctype-h (Makefile.am): Likewise.
57668         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57670 2011-04-05  Bruno Haible  <bruno@clisp.org>
57672         pipe2: Relicense under LGPLv2+.
57673         * modules/pipe2 (License): Change to LGPLv2+.
57674         Requested by Eric Blake, for libvirt.
57676 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57678         bootstrap: compute gnulib_extra_files after updating build_aux
57679         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57680         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57682 2011-04-05  Eric Blake  <eblake@redhat.com>
57684         bootstrap: preserve git whitelist item sorting
57685         * build-aux/bootstrap (sort_patterns): New function.
57686         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57688 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57690         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57691         sc_space_tab check.
57693 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57695         areadlink, areadlinkat: rewrite in terms of careadlinkat
57696         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57697         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57698         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57699         (malloc, realloc): Remove #undefs.
57700         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57701         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57702         readlink, ssize_t, stdint, unistd.
57703         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57704         areadlink, stdint.
57706         careadlinkat: new module
57707         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57708         * modules/careadlinkat: New files, written by me with
57709         a review and feedback from Ben Pfaff in
57710         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57712 2011-04-01  Bruno Haible  <bruno@clisp.org>
57714         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57715         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57716         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57717         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57718         Reported by Bruce Korb <bruce.korb@gmail.com>.
57720 2011-04-01  Bruno Haible  <bruno@clisp.org>
57722         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57723         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57724         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57725         * modules/wcpcpy (Depends-on): Add extensions.
57726         * modules/wcpncpy (Depends-on): Likewise.
57727         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57728         systems.
57729         * doc/posix-functions/wcpncpy.texi: Likewise.
57730         * doc/posix-functions/wcwidth.texi: Likewise.
57732 2011-03-31  Eric Blake  <eblake@redhat.com>
57734         nonblocking: fix mingw test failures
57735         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57736         non-blocking flag on regular file.
57737         (get_nonblocking_flag): Set errno on invalid fd.
57738         * tests/test-nonblocking.c (main): Avoid test failure on
57739         directories if fchdir is not active.
57740         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57742 2011-03-31  Bruno Haible  <bruno@clisp.org>
57744         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57745         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57746         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57747         Reported by Simon Josefsson <simon@josefsson.org>.
57749 2011-03-31  Bruno Haible  <bruno@clisp.org>
57750         and Eric Blake  <eblake@redhat.com>
57752         nonblocking: new module
57753         * modules/nonblocking: New module.
57754         * modules/nonblocking-tests: Likewise.
57755         * lib/nonblocking.h: New file.
57756         * lib/nonblocking.c: Likewise.
57757         * tests/test-nonblocking.c: New test.
57758         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57760 2011-03-30  Bruno Haible  <bruno@clisp.org>
57762         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57763         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57764         instead of 'printf' format for GCC >= 4.4.
57765         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57766         (fprintf, printf, vfprintf, vprintf): Declare with
57767         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57768         the system's vfprintf() function.
57769         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57771 2011-03-30  Eric Blake  <eblake@redhat.com>
57773         passfd: fix scoping bug
57774         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57775         before sendmsg/recvmsg.
57777         passfd: standardize coding conventions
57778         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57779         can be learned at compile time.
57780         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57781         ifdefs.
57782         (sendfd, recvfd): Follow gnulib code conventions.
57784         passfd: fix incorrect sendmsg arguments
57785         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57786         incorrect msg_controllen value.
57787         * modules/passfd-tests (Depends-on): Check for alarm.
57788         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57789         Reported by Bastien ROUCARIES.
57791 2011-03-30  Bruno Haible  <bruno@clisp.org>
57793         c-strcasestr: Relicense under LGPLv2+.
57794         * modules/c-strcasestr (License): Change to LGPLv2+.
57795         Requested by Eric Blake, for libvirt.
57797 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57799         * users.txt: Add libidn2.  Fix libtasn1 link.
57801 2011-03-30  Jim Meyering  <meyering@redhat.com>
57803         tests: readlink* ("",... fails with EINVAL on newer kernels
57804         readlink and readlinkat have typically failed with ENOENT for
57805         the invalid, empty file name,  "".  However, with the advent
57806         of linux-2.6.39, they fail with EINVAL.
57807         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57808         when operating on the empty file name.
57809         * tests/test-readlink.h (test_readlink): Likewise.
57811 2011-03-29  Bruno Haible  <bruno@clisp.org>
57813         Relicense some modules under LGPLv2+, for libidn2.
57814         * modules/array-mergesort (License): Change to LGPLv2+.
57815         * modules/c-strcaseeq (License): Likewise.
57816         * modules/striconveh (License): Likewise.
57817         * modules/striconveha (License): Likewise.
57818         * modules/uniconv/base (License): Likewise.
57819         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57820         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57821         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57822         * modules/unictype/base (License): Likewise.
57823         * modules/unictype/bidiclass-of (License): Likewise.
57824         * modules/unictype/category-M (License): Likewise.
57825         * modules/unictype/category-none (License): Likewise.
57826         * modules/unictype/category-of (License): Likewise.
57827         * modules/unictype/category-test (License): Likewise.
57828         * modules/unictype/category-test-withtable (License): Likewise.
57829         * modules/unictype/combining-class (License): Likewise.
57830         * modules/unictype/joiningtype-of (License): Likewise.
57831         * modules/unictype/scripts (License): Likewise.
57832         * modules/uninorm/base (License): Likewise.
57833         * modules/uninorm/canonical-decomposition (License): Likewise.
57834         * modules/uninorm/composition (License): Likewise.
57835         * modules/uninorm/decompose-internal (License): Likewise.
57836         * modules/uninorm/decomposition-table (License): Likewise.
57837         * modules/uninorm/nfc (License): Likewise.
57838         * modules/uninorm/nfd (License): Likewise.
57839         * modules/uninorm/u32-normalize (License): Likewise.
57840         * modules/unistr/base (License): Likewise.
57841         * modules/unistr/u32-cpy (License): Likewise.
57842         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57843         * modules/unistr/u32-to-u8 (License): Likewise.
57844         * modules/unistr/u32-uctomb (License): Likewise.
57845         * modules/unistr/u8-check (License): Likewise.
57846         * modules/unistr/u8-mblen (License): Likewise.
57847         * modules/unistr/u8-mbtouc (License): Likewise.
57848         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57849         * modules/unistr/u8-mbtoucr (License): Likewise.
57850         * modules/unistr/u8-prev (License): Likewise.
57851         * modules/unistr/u8-strlen (License): Likewise.
57852         * modules/unistr/u8-to-u32 (License): Likewise.
57853         * modules/unistr/u8-uctomb (License): Likewise.
57854         * modules/unitypes (License): Likewise.
57855         Requested by Simon Josefsson.
57857 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57859         lib-symbol-visibility: Add a notice.
57860         * modules/lib-symbol-visibility (Notice): New field.
57862 2011-03-29  Bruno Haible  <bruno@clisp.org>
57864         getaddrinfo: Doc fix.
57865         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57866         section "fixed in Gnulib".
57868 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57870         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57871         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57873 2011-03-26  Bruno Haible  <bruno@clisp.org>
57875         unictype/property-byname: Reduce the number of load-time relocations.
57876         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57877         (UC_PROPERTY_INDEX_*): New enumeration values.
57878         (uc_property_byname): Convert an index from the lookup table to an
57879         uc_property_t.
57880         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57881         values.
57883 2011-03-26  Bruno Haible  <bruno@clisp.org>
57885         unictype/property-byname: Allow omitted word separators and aliases.
57886         * lib/unictype/pr_byname.gperf: Add property names without word
57887         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57888         for 'space'.
57890 2011-03-26  Bruno Haible  <bruno@clisp.org>
57892         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57893         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57894         also hyphens to space.
57895         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57896         without spaces.
57897         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57899 2011-03-26  Bruno Haible  <bruno@clisp.org>
57901         unictype/joiningtype-byname: Recognize long names as well.
57902         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57903         a long name.
57904         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57905         unictype/joiningtype_byname.h.
57906         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57907         * lib/unictype/joiningtype_byname.gperf: New file.
57908         * modules/unictype/joiningtype-byname (Files): Add
57909         lib/unictype/joiningtype_byname.gperf.
57910         (Depends-on): Add gperf.
57911         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57912         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57913         long names.
57915         Tests for module 'unictype/joiningtype-longname'.
57916         * modules/unictype/joiningtype-longname-tests: New file.
57917         * tests/unictype/test-joiningtype_longname.c: New file.
57919         New module 'unictype/joiningtype-longname'.
57920         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57921         * lib/unictype/joiningtype_longname.c: New file.
57922         * modules/unictype/joiningtype-longname: New file.
57923         * modules/unictype/joiningtype-all (Depends-on): Add
57924         unictype/joiningtype-longname.
57926 2011-03-26  Bruno Haible  <bruno@clisp.org>
57928         unictype/bidiclass-byname: Recognize long names as well.
57929         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57930         name.
57931         * lib/unictype/bidi_byname.c: Include <string.h>,
57932         unictype/bidi_byname.h.
57933         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57934         * lib/unictype/bidi_byname.gperf: New file.
57935         * modules/unictype/bidiclass-byname (Files): Add
57936         lib/unictype/bidi_byname.gperf.
57937         (Depends-on): Add gperf.
57938         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
57939         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
57940         long names.
57942         Tests for module 'unictype/bidiclass-longname'.
57943         * modules/unictype/bidiclass-longname-tests: New file.
57944         * tests/unictype/test-bidi_longname.c: New file.
57946         New module 'unictype/bidiclass-longname'.
57947         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57948         * lib/unictype/bidi_longname.c: New file.
57949         * modules/unictype/bidiclass-longname: New file.
57950         * modules/unictype/bidiclass-all (Depends-on): Add
57951         unictype/bidiclass-longname.
57953 2011-03-26  Bruno Haible  <bruno@clisp.org>
57955         unictype/bidi*: Rename modules.
57956         * modules/unictype/bidiclass-all: Renamed from
57957         modules/unictype/bidicategory-all.
57958         * modules/unictype/bidiclass-name: Renamed from
57959         modules/unictype/bidiclass-name.
57960         (Description): Update.
57961         * modules/unictype/bidiclass-name-tests: Renamed from
57962         modules/unictype/bidicategory-name-tests.
57963         * modules/unictype/bidiclass-byname: Renamed from
57964         modules/unictype/bidicategory-byname.
57965         (Description): Update.
57966         * modules/unictype/bidiclass-byname-tests: Renamed from
57967         modules/unictype/bidicategory-byname-tests.
57968         * modules/unictype/bidiclass-of: Renamed from
57969         modules/unictype/bidicategory-of.
57970         (Description): Update.
57971         * modules/unictype/bidiclass-of-tests: Renamed from
57972         modules/unictype/bidicategory-of-tests.
57973         * modules/unictype/bidiclass-test: Renamed from
57974         modules/unictype/bidicategory-test.
57975         (Description): Update.
57976         * modules/unictype/bidiclass-test-tests: Renamed from
57977         modules/unictype/bidicategory-test-tests.
57978         * modules/unictype/bidicategory-all: New file, a simple redirection.
57979         * modules/unictype/bidicategory-name: Likewise.
57980         * modules/unictype/bidicategory-byname: Likewise.
57981         * modules/unictype/bidicategory-of: Likewise.
57982         * modules/unictype/bidicategory-test: Likewise.
57983         * modules/unictype/property-bidi-* (Dependencies): Update.
57984         * lib/unictype/bidi_*.c: Update comment.
57986 2011-03-26  Bruno Haible  <bruno@clisp.org>
57988         unictype/bidi*: Rename functions, part 2.
57989         * modules/unictype/bidicategory-name (configure.ac): Update required
57990         libunistring version.
57991         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57993 2011-03-25  Bruno Haible  <bruno@clisp.org>
57995         New module 'unictype/combining-class-all'.
57996         * modules/unictype/combining-class-all: New file.
57998         Tests for module 'unictype/combining-class-byname'.
57999         * modules/unictype/combining-class-byname-tests: New file.
58000         * tests/unictype/test-combiningclass_byname.c: New file.
58002         New module 'unictype/combining-class-byname'.
58003         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58004         * lib/unictype/combiningclass_byname.c: New file.
58005         * lib/unictype/combiningclass_byname.gperf: New file.
58006         * modules/unictype/combining-class-byname: New file.
58008         Tests for module 'unictype/combining-class-longname'.
58009         * modules/unictype/combining-class-longname-tests: New file.
58010         * tests/unictype/test-combiningclass_longname.c: New file.
58012         New module 'unictype/combining-class-longname'.
58013         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58014         * lib/unictype/combiningclass_longname.c: New file.
58015         * modules/unictype/combining-class-longname: New file.
58017         Tests for module 'unictype/combining-class-name'.
58018         * modules/unictype/combining-class-name-tests: New file.
58019         * tests/unictype/test-combiningclass_name.c: New file.
58021         New module 'unictype/combining-class-name'.
58022         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58023         * lib/unictype/combiningclass_name.c: New file.
58024         * modules/unictype/combining-class-name: New file.
58026 2011-03-25  Bruno Haible  <bruno@clisp.org>
58028         unictype/combining-class: Rename source files.
58029         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58030         of unictype/combining.h.
58031         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58032         Update.
58033         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58034         * modules/unictype/combining-class (Description): Fix.
58035         (Files, Makefile.am): Update.
58036         * tests/unictype/test-combiningclass.c: Renamed from
58037         tests/unictype/test-combining.c.
58038         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58040 2011-03-25  Bruno Haible  <bruno@clisp.org>
58042         unictype: Update list of canonical combining classes.
58043         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58045 2011-03-25  Bruno Haible  <bruno@clisp.org>
58047         unictype/category-byname: Recognize long names as well.
58048         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58049         a long name.
58050         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58051         unictype/categ_byname.h.
58052         (UC_CATEGORY_INDEX_*): New enumeration values.
58053         (uc_general_category_byname): Use uc_general_category_lookup and
58054         convert from index to value.
58055         * lib/unictype/categ_byname.gperf: New file.
58056         * modules/unictype/category-byname (Files): Add
58057         lib/unictype/categ_byname.gperf.
58058         (Depends-on): Add gperf.
58059         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58060         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58061         long names.
58063         Tests for module 'unictype/category-longname'.
58064         * modules/unictype/category-longname-tests: New file.
58065         * tests/unictype/test-categ_longname.c: New file.
58067         New module 'unictype/category-longname'.
58068         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58069         * lib/unictype/categ_longname.c: New file.
58070         * modules/unictype/category-longname: New file.
58071         * modules/unictype/category-all (Depends-on): Add it.
58073 2011-03-25  Bruno Haible  <bruno@clisp.org>
58075         Tests for module 'unictype/category-LC'.
58076         * modules/unictype/category-LC-tests: New file.
58077         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58079         New module 'unictype/category-LC'.
58080         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58081         (UC_CATEGORY_LC): New declaration.
58082         (UC_CASED_LETTER): New macro.
58083         * lib/gen-uni-tables.c (is_category_LC): New function.
58084         (output_categories): Also handle category LC.
58085         (UC_CATEGORY_MASK_LC): New enumeration value.
58086         (general_category_byname): Also handle category LC.
58087         * lib/unictype/categ_LC.c: New file.
58088         * lib/unictype/categ_LC.h: New file, automatically generated.
58089         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58090         category LC.
58091         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58092         * modules/unictype/category-LC: New file.
58093         * modules/unictype/category-byname (Depends-on): Add
58094         unictype/category-LC.
58095         * modules/unictype/category-all (Depends-on): Likewise.
58097 2011-03-25  Eric Blake  <eblake@redhat.com>
58099         xmalloc: revert yesterday's regression
58100         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58101         realloc's underlying behavior (allowing allocation of zero-size
58102         objects, especially if malloc-gnu is also in use).
58104 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58106         maint.mk: add missing version to VC-tag
58107         * top/maint.mk: git tag was missing actual tag name; add it.
58109         valgrind: do leak checking, and exit with code 1 on error (not 0)
58110         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58111         to VALGRIND.
58113 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58115         posix-modules: say what it does.
58116         * posix-modules: Add a line to the --help output saying what it does.
58118 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58120         xmalloc: Do not leak if underlying realloc is C99 compatible.
58121         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58122         This avoids a leak on C99-based systems.  See
58123         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58125 2011-03-24  Eric Blake  <eblake@redhat.com>
58127         realloc: document portability problem
58128         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58129         passing 0 size to realloc.
58131 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58133         doc: update users.txt
58134         * users.txt: Add cvsps, tmpwatch
58136 2011-03-23  Matt Rice  <ratmice@gmail.com>
58138         doc: update users.txt
58139         * users.txt: Add gdb.
58141 2011-03-23  Jim Meyering  <meyering@redhat.com>
58143         doc: update users.txt
58144         Looking through matches up to the following URL (there are still
58145         several more pages), I found several projects that use gnulib:
58146         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58147         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58148         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58150 2011-03-22  Bruno Haible  <bruno@clisp.org>
58152         unictype/bidi*: Rename functions.
58153         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58154         uc_bidi_class, uc_is_bidi_class): New declarations.
58155         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58156         uc_bidi_category_byname.
58157         (uc_bidi_category_byname): New function.
58158         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58159         u_bidi_category_name.
58160         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58161         (uc_bidi_category_name): New function.
58162         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58163         uc_bidi_category.
58164         (uc_bidi_category): New function.
58165         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58166         uc_is_bidi_category. Invoke uc_bidi_class.
58167         (uc_is_bidi_category): New function.
58168         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58169         instead of uc_bidi_category_byname.
58170         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58171         instead of uc_bidi_category_name.
58172         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58173         uc_bidi_category.
58174         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58175         instead of uc_is_bidi_category.
58177 2011-03-21  Bruno Haible  <bruno@clisp.org>
58179         New module 'unictype/joininggroup-all'.
58180         * modules/unictype/joininggroup-all: New file.
58182         Tests for module 'unictype/joininggroup-of'.
58183         * modules/unictype/joininggroup-of-tests: New file.
58184         * tests/unictype/test-joininggroup_of.c: New file.
58185         * tests/unictype/test-joininggroup_of.h: New file, automatically
58186         generated by gen-uni-tables.
58188         New module 'unictype/joininggroup-of'.
58189         * modules/unictype/joininggroup-of: New file.
58190         * lib/unictype/joininggroup_of.c: New file.
58191         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58192         gen-uni-tables.
58194         Tests for module 'unictype/joininggroup-byname'.
58195         * modules/unictype/joininggroup-byname-tests: New file.
58196         * tests/unictype/test-joininggroup_byname.c: New file.
58198         New module 'unictype/joininggroup-byname'.
58199         * modules/unictype/joininggroup-byname: New file.
58200         * lib/unictype/joininggroup_byname.c: New file.
58201         * lib/unictype/joininggroup_byname.gperf: New file.
58203         Tests for module 'unictype/joininggroup-name'.
58204         * modules/unictype/joininggroup-name-tests: New file.
58205         * tests/unictype/test-joininggroup_name.c: New file.
58207         New module 'unictype/joininggroup-name'.
58208         * modules/unictype/joininggroup-name: New file.
58209         * lib/unictype/joininggroup_name.c: New file.
58210         * lib/unictype/joininggroup_name.h: New file.
58212         New module 'unictype/joiningtype-all'.
58213         * modules/unictype/joiningtype-all: New file.
58215         Tests for module 'unictype/joiningtype-of'.
58216         * modules/unictype/joiningtype-of-tests: New file.
58217         * tests/unictype/test-joiningtype_of.c: New file.
58218         * tests/unictype/test-joiningtype_of.h: New file, automatically
58219         generated by gen-uni-tables.
58221         New module 'unictype/joiningtype-of'.
58222         * modules/unictype/joiningtype-of: New file.
58223         * lib/unictype/joiningtype_of.c: New file.
58224         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58225         gen-uni-tables.
58227         Tests for module 'unictype/joiningtype-byname'.
58228         * modules/unictype/joiningtype-byname-tests: New file.
58229         * tests/unictype/test-joiningtype_byname.c: New file.
58231         New module 'unictype/joiningtype-byname'.
58232         * modules/unictype/joiningtype-byname: New file.
58233         * lib/unictype/joiningtype_byname.c: New file.
58235         Tests for module 'unictype/joiningtype-name'.
58236         * modules/unictype/joiningtype-name-tests: New file.
58237         * tests/unictype/test-joiningtype_name.c: New file.
58239         New module 'unictype/joiningtype-name'.
58240         * modules/unictype/joiningtype-name: New file.
58241         * lib/unictype/joiningtype_name.c: New file.
58243         unictype: Add support for Arabic shaping properties.
58244         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58245         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58246         declarations.
58247         (UC_JOINING_GROUP_*): New enumeration values.
58248         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58249         declarations.
58250         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58251         (unicode_joining_type): New variable.
58252         (UC_JOINING_GROUP_*): New enumeration values.
58253         (unicode_joining_group): New variable.
58254         (fill_arabicshaping, joining_type_as_c_identifier,
58255         output_joining_type_test, output_joining_type,
58256         joining_group_as_c_identifier, output_joining_group_test,
58257         output_joining_group): New functions.
58258         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58259         fill_arabicshaping and output_joining_type_test, output_joining_type,
58260         output_joining_group_test, output_joining_group.
58261         Reported by Simon Josefsson.
58263 2011-03-21  Jim Meyering  <meyering@redhat.com>
58265         strftime: fix a bug in yesterday's change
58266         * lib/strftime.c (add): Accommodate width's initial value of -1.
58267         Otherwise, nstrftime would copy uninitialized data into
58268         the result buffer.
58270 2011-03-21  Jim Meyering  <meyering@redhat.com>
58272         tests: add strftime-tests module
58273         * tests/test-strftime.c: New file.
58274         * modules/strftime-tests: New module.
58276 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58278         strftime: don't assume a byte count fits in 'int'
58279         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58280         found this problem by static analysis, using gcc -Wstrict-overflow
58281         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58282         on an integer overflow having undefined behavior, but it turns out
58283         that the argument is a size, which might not fit in 'int' anyway,
58285 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58287         stdio: don't require ignore_value around fwrite
58289         This patch works around libc bug 11959
58290         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58291         Without this patch, applications must often write
58292         ignore_value (fwrite (...)) even though the ignore_value is
58293         not helpful here.  It's common to write many objects, using
58294         fwrite/printf/etc., and then use ferror to detect output error.
58296         I considered making this patch optional, but decided against it,
58297         because libc is obviously being inconsistent here: there is no
58298         reason libc should insist that user code must inspect fwrite
58299         return's value without also insisting that it inspect printf's,
58300         putchar's, etc.  If user code wants to have a strict style where
58301         all these functions' values are checked (so that ferror need not
58302         be checked), we could add support for that style in a new gnulib
58303         module, but in the meantime it's better to be consistent and to
58304         support common usage.
58306         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58307         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58308         that we are compiling in checking mode, and if not C++, and
58309         if not already wrapping fwrite for some other reason.
58310         (fwrite): #define to rpl_fwrite if the latter is defined.
58312 2011-03-20  Bruno Haible  <bruno@clisp.org>
58314         verror: Fix compilation error introduced on 2011-02-13.
58315         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58316         instead of __attribute__.
58317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58319 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58320             Bruno Haible  <bruno@clisp.org>
58322         socklen: do not depend on sys_socket
58323         While trying to modify Emacs to use gnulib's socklen module,
58324         I discovered a circular dependency: socklen depends on sys_socket
58325         and vice versa.  Emacs can use socklen, but it does not need
58326         sys_socket because it has its own substitute for sys/socket.h.
58327         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58328         gl_TYPE_SOCKLEN_T.
58329         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58330         gl_PREREQ_SYS_H_SOCKET.
58331         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58332         gl_PREREQ_SYS_H_SOCKET.
58333         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58334         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58335         * modules/socklen (Depends-on): Do not depend on sys_socket.
58336         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58338 2011-03-20  Jim Meyering  <meyering@redhat.com>
58340         maint.mk: sort file names *after* new transformation
58341         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58342         prefix would have led to an unwarranted failure in GNU parted.
58343         Sort after that transformation.
58345 2011-03-19  Jim Meyering  <meyering@redhat.com>
58347         maint.mk: fix po-file syntax-check rule
58348         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58349         Patch by Bruno Haible.
58351 2011-03-19  Bruno Haible  <bruno@clisp.org>
58353         socklen: Update comment.
58354         * m4/socklen.m4: Update comment about platforms.
58356 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58357             Bruno Haible  <bruno@clisp.org>
58359         inet_ntop, inet_pton: Simplify.
58360         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58361         documented to provide socklen_t and we already depend on sys_socket.
58362         * modules/inet_pton (Depends-on): Likewise.
58363         * lib/arpa_inet.in.h: Adjust comment.
58365 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58366             Bruno Haible  <bruno@clisp.org>
58368         netdb: Simplify.
58369         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58370         documented to provide socklen_t and we already depend on sys_socket.
58371         * lib/netdb.in.h: Adjust comment.
58373 2011-03-19  Bruno Haible  <bruno@clisp.org>
58375         sys_socket, netdb: Document problem with socklen_t.
58376         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58377         platforms.
58378         * doc/posix-headers/netdb.texi: Likewise.
58380 2011-03-18  Eric Blake  <eblake@redhat.com>
58382         maint.mk: let po check work in VPATH build
58383         * top/maint.mk (po_file): Allow cfg.mk override.
58384         (sc_po_check): Allow VPATH use.
58385         Reported by Jiri Denemark.
58387 2011-03-16  Jim Meyering  <meyering@redhat.com>
58389         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58390         Before, you would have had to create one .x-sc_ file per rule in order
58391         to exempt offending files.  Now, you may instead use a Make variable --
58392         usually defined in cfg.mk -- whose name identifies the affected rule.
58393         * top/maint.mk (_sc_excl): Define.
58394         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58395         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58397 2011-03-13  Bruno Haible  <bruno@clisp.org>
58399         ignore-value tests: Avoid warnings.
58400         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58401         empty for gcc < 3.4.
58403 2011-03-13  Bruno Haible  <bruno@clisp.org>
58405         passfd: Fix link error on Solaris.
58406         * modules/passfd (Description): Correct.
58407         (Depends-on): Add socketlib.
58408         (Link): New section.
58409         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58411 2011-03-13  Bruno Haible  <bruno@clisp.org>
58413         passfd: Fix link error on AIX 5.2.
58414         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58416 2011-03-13  Bruno Haible  <bruno@clisp.org>
58418         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58419         * lib/sys_socket.in.h: Include <stddef.h>.
58420         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58421         CMSG_FIRSTHDR. Remove unused variable.
58423 2011-03-13  Bruno Haible  <bruno@clisp.org>
58425         passfd: Fix compilation error on OpenBSD.
58426         * lib/passfd.c: Include <sys/uio.h>.
58428 2011-03-13  Bruno Haible  <bruno@clisp.org>
58430         passfd test: Fix warnings.
58431         * tests/test-passfd.c: Include <sys/wait.h>.
58432         (main): Fix typo.
58434 2011-03-13  Bruno Haible  <bruno@clisp.org>
58436         passfd module, part 4, tweaks.
58437         * tests/test-passfd.c: Reorder includes.
58438         (main): Fix perror and printf calls.
58440 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58442         passfd module, part 4.
58443         * modules/passfd-tests: New file.
58444         * tests/test-passfd.c: New file.
58446 2011-03-13  Jim Meyering  <meyering@redhat.com>
58448         Makefile: rely on GNU make; derive syntax-check rule names
58449         Rather than requiring that each sc_ rule be listed as a dependent
58450         of "check", use features of GNU make to derive the list.
58451         * Makefile (syntax-check-rules): Define.
58452         (check): Depend on the new variable, not the hard-coded list.
58454 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58455             Bruno Haible  <bruno@clisp.org>
58457         passfd module, part 3.
58458         * lib/passfd.h (recvfd): Add a flags argument.
58459         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58460         (recvfd): Add a flags argument.
58461         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58462         exists.
58463         * modules/passfd (Depends-on): Add cloexec.
58464         Suggested by Eric Blake.
58466 2011-03-13  Bruno Haible  <bruno@clisp.org>
58468         passfd module, part 2, tweaks.
58469         * modules/passfd (Files): Reorder.
58470         (Depends-on): Remove errno.
58471         (Include): Remove <sys/socket.h>, <sys/un.h>.
58472         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58473         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58474         specification header. Include <sys/socket.h> always. Don't include
58475         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58476         (sendfd): Clarify that it sets errno when it fails.
58477         (recvfd): Fix specification.
58479 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58481         passfd module, part 2.
58482         * modules/passfd: New file.
58483         * lib/passfd.h: New file.
58484         * lib/passfd.c: New file.
58486 2011-03-12  Bruno Haible  <bruno@clisp.org>
58488         wcswidth, mbswidth: Avoid integer overflow.
58489         * lib/wcswidth.c: Include <limits.h>.
58490         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58491         * lib/mbswidth.c: Include <limits.h>.
58492         (mbsnwidth): Avoid 'int' overflow.
58493         Reported by Jim Meyering.
58495 2011-03-12  Bruno Haible  <bruno@clisp.org>
58497         futimens, utimensat: Avoid endless recursion on Solaris 10.
58498         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58499         Solaris.
58500         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58501         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58503 2011-03-11  Jim Meyering  <meyering@redhat.com>
58505         maint.mk: relax a regexp to accommodate other formatting styles
58506         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58507         between "ngettext" and the following "(".
58509 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58511         maint.mk: suppress a false positive warning
58512         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58513         diagnostics are marked with ngettext.
58515 2011-03-10  Eric Blake  <eblake@redhat.com>
58517         wchar: add explicit dependencies, for Tru64
58518         * modules/mbmemcasecoll (Depends-on): Add wchar.
58519         * modules/mbtowc (Depends-on): Likewise.
58520         * modules/vasnprintf (Depends-on): Likewise.
58521         * modules/unistdio/u-printf-args (Depends-on): Likewise.
58522         * modules/wctomb (Depends-on): Likewise.
58523         Reported by Peter O'Gorman.
58525 2011-03-08  Bruno Haible  <bruno@clisp.org>
58527         passfd module, part 1, tweaks.
58528         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
58529         Improve indentation. Improve AC_MSG_CHECKING messages.
58530         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
58531         gl_SOCKET_FAMILIES.
58533 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58535         passfd module, part 1.
58536         * m4/afunix.m4: New file.
58537         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
58538         sockets.
58540 2011-03-08  Bruno Haible  <bruno@clisp.org>
58542         regex-quote: New API.
58543         * lib/regex-quote.h: Include <stdbool.h>.
58544         (struct regex_quote_spec): New type.
58545         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58546         New declarations.
58547         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58548         'const struct regex_quote_spec *' argument.
58549         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
58550         (pcre_special): New constant.
58551         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58552         New functions.
58553         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58554         'const struct regex_quote_spec *' argument.
58555         * modules/regex-quote (Depends-on): Add stdbool.
58556         * tests/test-regex-quote.c (check): Update for new API. Add test for
58557         anchored results.
58558         * NEWS: Mention the API change.
58559         Reported by Reuben Thomas and Eric Blake.
58561 2011-03-06  Bruno Haible  <bruno@clisp.org>
58563         regex-quote: Fix creation of POSIX extended regular expressions.
58564         * lib/regex-quote.c (ere_special): Add grouping and alternation
58565         operators.
58567 2011-03-05  Bruno Haible  <bruno@clisp.org>
58569         doc: Improve doc regarding autopoint vs. gnulib.
58570         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
58571         disable autopoint while running autoreconf.
58572         Suggested by Ralf Wildenhues.
58574 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58576         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
58577         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
58579 2011-03-03  Bruce Korb  <bkorb@gnu.org>
58581         parse-duration: remove xalloc.h dependency
58582         * lib/parse-duration.c (parse_period): handle NULL return from
58583         strdup instead of calling xstrdup().
58584         * modules/parse-duration: remove "xalloc" dependency
58586 2011-03-03  Matthew Booth  <mbooth@redhat.com>
58588         bootstrap: honor m4_base when running aclocal
58589         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
58591 2011-03-02  Jim Meyering  <meyering@redhat.com>
58593         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58594         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58595         on request from Matt Booth.
58597 2011-03-01  Eric Blake  <eblake@redhat.com>
58599         test-link: work on Hurd
58600         * tests/test-link.h (test_link): Hurd rejects linking directories
58601         with EISDIR instead of the POSIX-mandated EPERM.
58603 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58605         stdio: simplify by moving files to printf-posix, sigpipe
58606         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58607         since this symbol is needed only if printf is replaced.
58608         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
58609         Require gl_ASM_SYMBOL_PREFIX.
58610         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
58611         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58612         (Depends-on): Add 'raise'.
58613         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58614         * modules/stdio (Files): Remove lib/stdio-write.c,
58615         m4/asm-underscore.m4.
58616         (Depends-on): Remove 'raise'.
58618         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58619         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58620         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58621         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58623 2011-02-28  Bruno Haible  <bruno@clisp.org>
58625         localcharset: Assume ANSI C behaviour of free().
58626         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58627         calling free().
58628         Suggested by Simon Josefsson <simon@josefsson.org>.
58630 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58631             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58632             Bruno Haible  <bruno@clisp.org>  (tiny change)
58634         On Cygwin, use /proc file system instead of win32 API.
58635         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58636         Win32 file names.
58637         (DllMain): Simplify by removing Cygwin specific code.
58638         (find_shared_library_fullname): Use Linux specific implementation also
58639         for Cygwin.
58640         (get_shared_library_fullname): Update accordingly.
58641         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58642         Win32 file names.
58643         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58644         Cygwin specific code.
58646 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58647             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58649         Fix OpenMP flag detection for various Fortran compilers.
58650         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58651         OpenMP-conditional compilation construct, to force compile
58652         failure with missing OpenMP flag.
58653         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58655 2011-02-25  Eric Blake  <eblake@redhat.com>
58657         strstr: expand test coverage
58658         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58659         compilation.
58660         * tests/test-memmem.c (main): Duplicate tests.
58661         * tests/test-strcasestr.c (main): Likewise.
58662         * tests/test-c-strcasestr.c (main): Likewise.
58664 2011-02-25  Jim Meyering  <meyering@redhat.com>
58666         maint.mk: detect missing-NL-at-EOF, too
58667         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58668         it also detects when a file lacks a newline at EOF.
58669         (require_exactly_one_NL_at_EOF_): Renamed from
58670         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58671         since people may well have .x-sc_... file names tied to the
58672         existing name.  Suggested by Eric Blake.
58674 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58676         dirname: move m4/dos.m4 functionality into lib/dosname.h
58678         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58679         extracts symbols from it, puts them into config.h; but it's much
58680         easier to use the symbols directly.  filename.h already does this,
58681         but it disagrees with dos.m4 in some respects.  This patch
58682         introduces a different include file dosname.h that packages up
58683         dos.m4, and then later we can work on merging filename.h and
58684         dosname.h.  Applications that need only the easy-to-configure
58685         symbols should consider including dosname.h rather than dirname.h.
58686         * NEWS: Mention incompatible changes.
58687         * m4/dos.m4: Remove.
58688         * lib/dosname.h, modules/dosname: New files.
58689         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58690         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58691         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58692         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58693         Include dosname.h, not dirname.h.
58694         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58695         Include dosname.h, for definitions of symbols like ISSLASH
58696         that used to be in config.h.
58697         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58698         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58699         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58700         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58701         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58702         * modules/rmdir (Files): Likewise.
58703         * modules/stat (Files): Likewise.
58704         * modules/unlink (Files): Likewise.
58705         * modules/dirname-lgpl (Depends-on): Add dosname.
58706         * modules/lstat (Depends-on): Likewise.
58707         * modules/openat (Depends-on): Likewise.
58708         * modules/rmdir (Depends-on): Likewise.
58709         * modules/savewd (Depends-on): Likewise.
58710         * modules/stat (Depends-on): Likewise.
58711         * modules/unlink (Depends-on): Likewise.
58712         * modules/openat (Depends-on): Remove dirname-lgpl.
58713         * modules/savewd (Depends-on): Likewise.
58714         * tests/test-dirname.c: Do not use removed symbols like
58715         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58716         the remaining symbols, e.g., ISSLASH ('\\').
58718 2011-02-25  Eric Blake  <eblake@redhat.com>
58720         strstr: revert patches that introduced bug and pessimization
58721         * lib/str-two-way.h: Add another reference.
58722         (two_way_short_needle, two_way_long_needle): Revert changes from
58723         2011-02-24; they pessimize search speed.
58724         (critical_factorization): Partially revert changes from
58725         2010-06-22; they violate the requirement that the left half of the
58726         needle be smaller than the period of the needle.
58728 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58730         filenamecat: remove unnecessary dependency on dirname-lgpl
58731         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58732         is no direct dependency, just an indirect one via filenamecat-lgpl.
58734         remove: remove unnecessary use of m4/dos.m4
58735         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58736         * modules/remove (FILES): Remove m4/dos.m4.
58738         * lib/openat-proc.c: Don't include dirname.h; not needed.
58740         backupfile: remove unnecessary use of m4/dos.m4
58741         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58742         of its symbols are used by the backupfile code.  backupfile.c does
58743         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58744         for the rare case of programs that want all their backup file
58745         names to live within 8+3 limits, and dos.m4 doesn't address that.
58746         * modules/backupfile (Files): Remove m4/dos.m4.
58748 2011-02-24  Jim Meyering  <meyering@redhat.com>
58750         strstr: fix a bug whereby strstr would mistakenly return NULL
58751         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58752         in period calculation.
58753         (two_way_long_needle): Likewise.
58754         The original problem was reported by Mike Stump in
58755         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58756         Ralf Wildenhues provided the short needle and haystack.
58757         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58758         Add a more involved test to trigger the bug in two_way_long_needle.
58760 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58762         gnulib-tool: remove use of bold display in help screen
58763         * gnulib-tool (func_usage): Do not use bold display anymore in the
58764         help screen.  That was just meant to be a temporary emphasis for a
58765         backward-incompatible change.
58767 2011-02-23  Bruno Haible  <bruno@clisp.org>
58769         Fix misindentation of preprocessor directives.
58770         * lib/argp-namefrob.h: Reindent preprocessor directives.
58771         * lib/getopt_int.h (struct _getopt_data): Likewise.
58772         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58773         * lib/vasnprintf.c (decode_long_double): Likewise.
58774         * tests/test-argmatch.c: Insert blank lines, for clarity.
58775         * tests/test-exclude.c: Likewise.
58777 2011-02-22  Bruno Haible  <bruno@clisp.org>
58779         ioctl: Fix for MacOS X in 64-bit mode.
58780         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58781         value.
58782         Suggested by Eric Blake.
58783         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58785 2011-02-22  Jim Meyering  <meyering@redhat.com>
58787         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58788         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58789         in lib/.
58791 2011-02-22  Eric Blake  <eblake@redhat.com>
58793         maint: avoid any CDPATH issue
58794         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58796         maint: adjust cpp indentation for my modules, as well
58797         * Makefile (sc_cpp_indent_check): Add my name.
58798         * lib/fbufmode.c: Filter through cppi.
58799         * lib/fpurge.c: Likewise.
58800         * lib/freadable.c: Likewise.
58801         * lib/freading.c: Likewise.
58802         * lib/fwritable.c: Likewise.
58803         * lib/fwriting.c: Likewise.
58804         * lib/sigaction.c: Likewise.
58806 2011-02-22  Jim Meyering  <meyering@redhat.com>
58808         maint: adjust cpp indentation to reflect nesting depth
58809         I.e., in a block of code that begins with an unnested "#if",
58810         put one space between the "#" in column 1 and following token.
58811         For example,
58812         -#include <sys/vfs.h>
58813         +# include <sys/vfs.h>
58814         Do this only in .c files that are part of a module I maintain.
58815         * lib/linkat.c: Filter through cppi.
58816         * lib/nanosleep.c: Likewise.
58817         * lib/openat.c: Likewise.
58818         * lib/openat-die.c: Likewise.
58819         * lib/dup3.c: Likewise.
58820         * lib/fchownat.c: Likewise.
58821         * lib/flock.c: Likewise.
58822         * lib/fsync.c: Likewise.
58823         * lib/fts.c: Likewise.
58824         * lib/getpass.c: Likewise.
58825         * lib/gettimeofday.c: Likewise.
58826         * lib/userspec.c: Likewise.
58827         * Makefile (sc_cpp_indent_check): New rule, to check this.
58829 2011-02-22  Bruno Haible  <bruno@clisp.org>
58831         New module 'wctomb'.
58832         * lib/stdlib.in.h (wctomb): New declaration.
58833         * lib/wctomb.c: New file.
58834         * lib/wctomb-impl.h: New file.
58835         * m4/wctomb.m4: New file.
58836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58837         REPLACE_WCTOMB.
58838         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58839         REPLACE_WCTOMB.
58840         * modules/wctomb: New file.
58841         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58842         * doc/posix-functions/wctomb.texi: Mention the new module.
58843         * modules/wctob (Depends-on): Add wctomb.
58845 2011-02-22  Bruno Haible  <bruno@clisp.org>
58847         New module 'mbtowc'.
58848         * lib/stdlib.in.h (mbtowc): New declaration.
58849         * lib/mbtowc.c: New file.
58850         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58851         * m4/mbtowc.m4: New file.
58852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58853         REPLACE_MBTOWC.
58854         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58855         REPLACE_MBTOWC.
58856         * modules/mbtowc: New file.
58857         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58858         * doc/posix-functions/mbtowc.texi: Mention the new module.
58859         * modules/btowc (Depends-on): Add mbtowc.
58861 2011-02-22  Bruno Haible  <bruno@clisp.org>
58863         wcrtomb: Add more tests for native Windows platforms.
58864         * tests/test-wcrtomb-w32-1.sh: New file.
58865         * tests/test-wcrtomb-w32-2.sh: New file.
58866         * tests/test-wcrtomb-w32-3.sh: New file.
58867         * tests/test-wcrtomb-w32-4.sh: New file.
58868         * tests/test-wcrtomb-w32-5.sh: New file.
58869         * tests/test-wcrtomb-w32.c: New file.
58870         * modules/wcrtomb-tests (Files): Add them.
58871         (Makefile.am): Arrange to run these tests.
58872         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58873         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58875 2011-02-20  Bruno Haible  <bruno@clisp.org>
58877         wcrtomb: Enhance test.
58878         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58880 2011-02-20  Bruno Haible  <bruno@clisp.org>
58882         mbrtowc: Tiny optimization.
58883         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58885 2011-02-20  Jim Meyering  <meyering@redhat.com>
58887         test-exclude.c: remove unmatched #endif
58888         * tests/test-exclude.c: Remove stray #endif, left over from
58889         the change of a week ago.
58891 2011-02-19  Jim Meyering  <meyering@redhat.com>
58893         git-version-gen: skip "-dirty" check when appropriate
58894         * build-aux/git-version-gen: Don't run any git commands when the
58895         version string comes from .tarball-version.  Prior to this, we
58896         would run git update-index --refresh even from a just-unpacked
58897         tarball directory, and that could affect a .git/ directory in a
58898         parent of the build directory.  Reported by Mike Frysinger.
58900 2011-02-19  Bruno Haible  <bruno@clisp.org>
58902         unictype/property-byname: Reduce the size of the 'data' segment.
58903         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58905 2011-02-19  Bruno Haible  <bruno@clisp.org>
58907         unictype/scripts: Reduce the size of the 'data' segment.
58908         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58909         '%pic'.
58910         * lib/unictype/scripts_byname.gperf: Regenerated.
58912 2011-02-19  Bruno Haible  <bruno@clisp.org>
58914         stdint: Update documentation.
58915         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58917 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58919         stdint: omit redundant check for wchar.h
58920         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58921         always tests whether wchar.h exists, so remove the now-redundant test.
58923 2011-02-18  Bruno Haible  <bruno@clisp.org>
58925         stdint: Cut dependency to module 'wchar'.
58926         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58927         include the necessary prerequisites.
58928         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58929         * modules/stdint (Depends-on): Remove wchar.
58930         (Makefile.am): Substitute HAVE_WCHAR_H.
58931         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58933 2011-02-18  Eric Blake  <eblake@redhat.com>
58935         longlong: skip, rather than fail, on cross-compilation
58936         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
58937         when cross-compiling; regression from 2011-02-16.
58939 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58941         * NEWS: Mention 2011-02-08 change to stdlib.
58943 2011-02-17  Bruno Haible  <bruno@clisp.org>
58945         getloadavg: Add comments about platforms.
58946         * m4/getloadavg.m4: Add comment.
58947         * lib/getloadavg.c: Likewise.
58949 2011-02-17  Bruno Haible  <bruno@clisp.org>
58951         getloadavg: Fix link error on Solaris 2.6.
58952         * modules/getloadavg (Link): New section.
58953         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58954         linking test-getloadavg.
58955         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58956         getloadavg.
58958 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58960         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58961         It was 'int', but this doesn't match the IRIX 6.5 manual.
58962         Suggested by Bruno Haible in
58963         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58965 2011-02-17  Bruno Haible  <bruno@clisp.org>
58967         havelib: Fix comments.
58968         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58969         change.
58971 2011-02-17  Bruno Haible  <bruno@clisp.org>
58973         havelib: Update config.rpath.
58974         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58976 2011-02-17  Bruno Haible  <bruno@clisp.org>
58978         getloadavg test: Add some plausibility checks.
58979         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58980         is improbable.
58982 2011-02-16  Eric Blake  <eblake@redhat.com>
58984         maintainer-makefile: make syntax-check a no-op from tarballs
58985         * top/maint.mk (no-vc-detected): New rule.
58986         (local-checks-available): Use it to avoid hanging if someone tries
58987         'make syntax-check' from a tarball.  Also append to any non-syntax
58988         checks already defined in cfg.mk.
58990 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58992         longlong: tune, particularly for common case of c99
58994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58995         or running anything if c99, or if unsigned long long int does not
58996         work.  In either case, we know the answer without further tests.
58997         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58998         it at most once, and use its results for both long long int and
58999         unsigned long long int.  This is more likely to be efficient in
59000         the common case where the program wants to check for both long
59001         long int and unsigned long long int.
59002         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59003         since the answer is already known.
59005 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59007         getloadavg: set errno
59008         * lib/getloadavg.c: Set errno when returning -1.  If no other
59009         error number looks appropriate, set it to ENOSYS if the getloadavg
59010         looks like it can't possibly ever work, ENOTSUP otherwise.
59011         Suggested by Bruno Haible in
59012         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59014         getloadavg: trim unused parts and speed up 'configure'
59015         * NEWS: Document this.
59016         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59017         always compiled if getloadavg is absent.
59018         Move test code to ...
59019         * tests/test-getloadavg.c: New file, containing previous
59020         contents of test from lib/getloadavg.c.  It also contains
59021         suggestions by Bruno Haible in
59022         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59023         * modules/getloadavg-tests: New file.
59024         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59025         Do tests in the same order as they're needed for getloadavg.c.
59026         Omit setgid-related tests that generate symbols KMEM_GROUP,
59027         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59028         Do only the tests that are needed to see whether the system has
59029         getloadavg, moving the other tests into ...
59030         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59031         NLIST_NAME_UNION; nobody should be using it.  Do not define
59032         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59033         relevant, as the user of this module shouldn't care how getloadavg
59034         is implemented.
59036         getloadavg: omit unused var
59037         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59039 2011-02-15  Jim Meyering  <meyering@redhat.com>
59041         doc: update users.txt
59042         * users.txt: Update iwhd's URL.
59044 2011-02-13  Bruno Haible  <bruno@clisp.org>
59046         Consistent macro naming for macros that use GCC __attribute__.
59047         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59048         _ATTRIBUTE_NONNULL_.
59049         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59050         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59051         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59052         ATTRIBUTE_DEPRECATED.
59053         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59054         ATTRIBUTE_NORETURN.
59055         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59056         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59057         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59058         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59059         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59060         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59061         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59062         ATTRIBUTE_SENTINEL.
59063         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59064         ATTRIBUTE_RETURN_CHECK.
59065         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59066         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59067         ATTRIBUTE_NORETURN.
59068         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59069         Reported by Paul Eggert.
59071 2011-02-13  Bruno Haible  <bruno@clisp.org>
59073         Don't interfere with a program's definition of __attribute__.
59074         * lib/argp.h (__attribute__): Remove definition.
59075         (_GL_ATTRIBUTE_FORMAT): New macro.
59076         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59077         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59078         (_GL_ATTRIBUTE_FORMAT): New macro.
59079         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59080         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59081         GCC 3 or newer.
59082         * lib/error.h (__attribute__): Remove definition.
59083         (_GL_ATTRIBUTE_FORMAT): New macro.
59084         (error, error_at_line): Use it.
59085         * lib/hash.h (__attribute__): Remove definition.
59086         (ATTRIBUTE_WUR): Update definition. Define always.
59087         * lib/openat.h (__attribute__): Remove definition.
59088         (ATTRIBUTE_NORETURN): Update definition. Define always.
59089         * lib/sigpipe-die.h (__attribute__): Remove definition.
59090         (ATTRIBUTE_NORETURN): Update definition. Define always.
59091         * lib/vasnprintf.h (__attribute__): Remove definition.
59092         (_GL_ATTRIBUTE_FORMAT): New macro.
59093         (asnprintf, vasnprintf): Use it.
59094         * lib/xalloc.h (__attribute__): Remove definition.
59095         (ATTRIBUTE_NORETURN): Update definition. Define always.
59096         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59097         * lib/xmemdup0.h (__attribute__): Remove definition.
59098         (ATTRIBUTE_NORETURN): Update definition. Define always.
59099         * lib/xprintf.h (__attribute__): Remove definition.
59100         (_GL_ATTRIBUTE_FORMAT): New macro.
59101         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59102         * lib/xstrtol.h (__attribute__): Remove definition.
59103         (ATTRIBUTE_NORETURN): Update definition. Define always.
59104         * lib/xvasprintf.h (__attribute__): Remove definition.
59105         (_GL_ATTRIBUTE_FORMAT): New macro.
59106         (xasprintf, xvasprintf): Use it.
59107         * tests/test-argmatch.c (__attribute__): Remove definition.
59108         (ATTRIBUTE_NORETURN): Update definition. Define always.
59109         * tests/test-exclude.c (__attribute__): Remove definition.
59110         (ATTRIBUTE_NORETURN): Update definition. Define always.
59111         Reported by Paul Eggert.
59113 2011-02-13  Bruno Haible  <bruno@clisp.org>
59115         mbrtowc: Add more tests for native Windows platforms.
59116         * tests/test-mbrtowc-w32-1.sh: New file.
59117         * tests/test-mbrtowc-w32-2.sh: New file.
59118         * tests/test-mbrtowc-w32-3.sh: New file.
59119         * tests/test-mbrtowc-w32-4.sh: New file.
59120         * tests/test-mbrtowc-w32-5.sh: New file.
59121         * tests/test-mbrtowc-w32.c: New file.
59122         * modules/mbrtowc-tests (Files): Add them.
59123         (Makefile.am): Arrange to run these tests.
59124         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59125         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59127 2011-02-13  Bruno Haible  <bruno@clisp.org>
59129         mbrtowc: Work around native Windows bug.
59130         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59131         guess when no suitable locale for testing was found.
59132         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59134 2011-02-13  Bruno Haible  <bruno@clisp.org>
59136         mbsinit: Work around mingw bug.
59137         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59138         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59139         Windows.
59140         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59142 2011-02-13  Bruno Haible  <bruno@clisp.org>
59144         mbsinit: Don't crash for a NULL argument.
59145         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59146         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59148 2011-02-13  Bruno Haible  <bruno@clisp.org>
59150         Don't interfere with a program's definition of __attribute__.
59151         * lib/stdio.in.h (__attribute__): Remove definition.
59152         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59153         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59154         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59155         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59156         * lib/string.in.h (__attribute__): Remove definition.
59157         Reported by Paul Eggert.
59159 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59161         stdlib: don't get in the way of non-GCC __attribute__
59162         See thread starting at
59163         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59164         Revert previous stdlib change, installing the following instead:
59165         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59166         to get in the way of a non-GCC compiler that supports __attribute__.
59167         (_GL_ATTRIBUTE_RETURN): New macro.
59168         (_Exit): Use it instead of __attribute__.
59170 2011-02-12  Bruno Haible  <bruno@clisp.org>
59172         quotearg test: Avoid test failure on mingw.
59173         * tests/test-quotearg.sh: Convert the locale identifier from native
59174         Windows syntax to Unix syntax.
59176 2011-02-12  Bruno Haible  <bruno@clisp.org>
59178         setlocale: Prefer gnulib's override over libintl's override.
59179         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59180         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59181         GNULIB_defined_setlocale is set.
59183 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59185         stdlib: support non-GCC __attribute__
59187         Fix a serious and tricky problem encountered when attempting to
59188         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59189         5.5, but it crashed due to memory corruption on Solaris 10 with
59190         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59191         bits that are otherwise zero.  This tagging is optional inside
59192         Emacs but is preferred and is used when __attribute__ ((__aligned
59193         (8))) works, as it does with both recent-enough GCC and with Sun C
59194         5.11.  However, Sun C 5.11 is not GCC and does not #define
59195         __GNUC__ and __GNUC_MINOR__.
59197         When I added the getloadavg module to Emacs, it brought in
59198         stdlib.in.h, which contained this fragment:
59200            #ifndef __attribute__
59201            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59202            #  define __attribute__(Spec)   /* empty */
59203            # endif
59204            #endif
59206         When files that include <stdlib.h> were compiled with Sun C 5.11,
59207         the above code disabled __attribute__ ((__aligned (8))), which
59208         caused variables to not be properly aligned, which eventually led
59209         to the pointer corruption mentioned above.  (This was a bit hard
59210         to diagnose, unfortunately.)
59212         Several "#define __attribute__(X) /* empty */" code snippets need
59213         to be eradicated from Gnulib to work with non-GCC compilers that
59214         support __attribute__.  The Autoconf way to do this is to test for
59215         each kind of attribute that we want support for, and selectively
59216         enable that in source code.
59218         Fix this problem just for stdlib.h, by adding a test for the
59219         __noreturn__ attribute, and change stdlib.in.h to use that test
59220         when needed.  This technique can be easily generalized to the
59221         other *.in.h files and attributes, and a similar technique can be
59222         used for *.h and *.c files.  This patch is enough to solve the
59223         problem for Emacs + getloadavg, and I thought I'd publish it for
59224         feedback before undertaking further, similar fixes in other
59225         modules.
59227         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59228         because it's not needed for stdlib.h.  It merely substitutes the
59229         value directly into stdlib.h.  We may well need to #define it, or
59230         similar symbols, for other modules, but it's nice to also have an
59231         option to not #define it for applications like Emacs that do not
59232         need it.
59234         * lib/stdlib.in.h (__attribute__): Do not #define.
59235         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59236         be defined only if the _Exit module is also used.
59237         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59239         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59240         platforms.
59241         * modules/_Exit (Files): Add m4/attribute.m4.
59242         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59243         * m4/attribute.m4: New file.
59245 2011-02-12  Bruno Haible  <bruno@clisp.org>
59247         wcsrtombs: Work around bug on native Windows.
59248         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59249         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59250         instead of len.
59251         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59253 2011-02-12  Bruno Haible  <bruno@clisp.org>
59255         mbsrtowcs: Work around bug on native Windows.
59256         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59257         against mingw bug.
59258         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59260 2011-02-12  Bruno Haible  <bruno@clisp.org>
59262         Avoid setlocale bugs in tests.
59263         * modules/btowc (Dependencies): Add setlocale.
59264         * modules/c-strcase (Dependencies): Likewise.
59265         * modules/mbmemcasecmp (Dependencies): Likewise.
59266         * modules/mbmemcasecoll (Dependencies): Likewise.
59267         * modules/mbrtowc (Dependencies): Likewise.
59268         * modules/mbscasecmp (Dependencies): Likewise.
59269         * modules/mbscasestr (Dependencies): Likewise.
59270         * modules/mbschr (Dependencies): Likewise.
59271         * modules/mbscspn (Dependencies): Likewise.
59272         * modules/mbsinit (Dependencies): Likewise.
59273         * modules/mbsncasecmp (Dependencies): Likewise.
59274         * modules/mbsnrtowcs (Dependencies): Likewise.
59275         * modules/mbspbrk (Dependencies): Likewise.
59276         * modules/mbspcasecmp (Dependencies): Likewise.
59277         * modules/mbsrchr (Dependencies): Likewise.
59278         * modules/mbsrtowcs (Dependencies): Likewise.
59279         * modules/mbsspn (Dependencies): Likewise.
59280         * modules/mbsstr (Dependencies): Likewise.
59281         * modules/nl_langinfo (Dependencies): Likewise.
59282         * modules/quotearg (Dependencies): Likewise.
59283         * modules/unicase/locale-language (Dependencies): Likewise.
59284         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59285         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59286         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59287         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59288         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59289         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59290         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59291         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59292         * modules/vasnprintf-posix (Dependencies): Likewise.
59293         * modules/wcrtomb (Dependencies): Likewise.
59294         * modules/wcsnrtombs (Dependencies): Likewise.
59295         * modules/wcsrtombs (Dependencies): Likewise.
59297 2011-02-12  Bruno Haible  <bruno@clisp.org>
59299         setlocale: Workaround native Windows bug.
59300         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59301         succeeds but sets LC_CTYPE to "C", report a failure.
59302         * tests/test-setlocale2.sh: New file.
59303         * tests/test-setlocale2.c: New file.
59304         * modules/setlocale-tests (Files): Add the new files.
59305         (Makefile.am): Enable test-setlocale2.sh test.
59306         * doc/posix-functions/setlocale.texi: Mention workaround.
59308 2011-02-11  Bruno Haible  <bruno@clisp.org>
59310         Tests for module 'setlocale'.
59311         * modules/setlocale-tests: New file.
59312         * tests/test-setlocale1.sh: New file.
59313         * tests/test-setlocale1.c: New file.
59315         New module 'setlocale'.
59316         * lib/locale.in.h (setlocale): New declaration.
59317         * lib/setlocale.c: New file, based on
59318         gettext/gettext-runtime/intl/setlocale.c.
59319         * m4/setlocale.m4: New file.
59320         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59321         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59322         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59323         REPLACE_SETLOCALE.
59324         * modules/setlocale: New file.
59325         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59326         * doc/posix-functions/setlocale.texi: Mention the new module.
59328 2011-02-11  Bruno Haible  <bruno@clisp.org>
59330         Prepare for locale dependent tests on mingw.
59331         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59332         because it has the wrong locale encoding.
59333         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59334         French_France.1252 instead of "fr".
59335         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59336         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59337         because it has the wrong locale encoding.
59338         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59339         native Windows, try Turkish_Turkey.65001.
59340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59341         Chinese_China.54936.
59343         Prepare for locale dependent tests on mingw.
59344         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59345         differently.
59346         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59347         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59348         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59349         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59351 2011-02-11  Eric Blake  <eblake@redhat.com>
59353         strptime: avoid compiler warnings
59354         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59355         compiler warnings about dead code.
59356         Reported by Daniel P. Berrange.
59358 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59360         doc: update users.txt
59361         * users.txt: Add rcs.
59363 2011-02-10  John W. Eaton  <jwe@gnu.org>
59365         doc: update users.txt
59366         * users.txt: Add octave.
59368 2011-02-10  Jim Meyering  <meyering@redhat.com>
59370         doc: update users.txt
59371         * users.txt: Add iwhd.
59373 2011-02-09  Bruno Haible  <bruno@clisp.org>
59375         gnulib-tool: Make copyright notice adjustment more robust.
59376         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59377         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59378         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59379         License".
59380         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59382 2011-02-06  Bruno Haible  <bruno@clisp.org>
59384         New module 'towctrans'.
59385         * modules/towctrans: New file.
59386         * lib/wctype.in.h (towctrans): New declaration.
59387         * lib/towctrans.c: New file.
59388         * lib/towctrans-impl.h: New file.
59389         * m4/towctrans.m4: New file.
59390         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59391         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59392         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59393         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59394         * doc/posix-functions/towctrans.texi: Mention the new module.
59396 2011-02-06  Bruno Haible  <bruno@clisp.org>
59398         New module 'wctrans'.
59399         * modules/wctrans: New file.
59400         * lib/wctype.in.h (wctrans): New declaration.
59401         * lib/wctrans.c: New file.
59402         * lib/wctrans-impl.h: New file.
59403         * m4/wctrans.m4: New file.
59404         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59405         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59406         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59407         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59408         * doc/posix-functions/wctrans.texi: Mention the new module.
59410 2011-02-06  Bruno Haible  <bruno@clisp.org>
59412         New module 'iswctype'.
59413         * modules/iswctype: New file.
59414         * lib/wctype.in.h (iswctype): New declaration.
59415         * lib/iswctype.c: New file.
59416         * lib/iswctype-impl.h: New file.
59417         * m4/iswctype.m4: New file.
59418         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59419         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59420         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59421         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59422         * doc/posix-functions/iswctype.texi: Mention the new module and the
59423         HP-UX 11.00 problem.
59425 2011-02-06  Bruno Haible  <bruno@clisp.org>
59427         New module 'wctype'.
59428         * modules/wctype: Change to represent the wctype() substitute.
59429         * lib/wctype.in.h (wctype): New declaration.
59430         * lib/wctype.c: New file.
59431         * lib/wctype-impl.h: New file.
59432         * m4/wctype.m4: New file.
59433         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59434         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59435         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59436         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59437         * doc/posix-functions/wctype.texi: Mention the new module and the
59438         HP-UX 11.00 problem.
59440 2011-02-06  Bruno Haible  <bruno@clisp.org>
59442         wctype-h: Ensure wctype_t and wctrans_t are defined.
59443         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59444         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59445         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59446         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59447         HAVE_WCTRANS_T.
59448         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59450 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59452         flock: fix license typo
59454         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59455         omitted.
59457 2011-02-08  Bruno Haible  <bruno@clisp.org>
59459         Split large sed scripts, for HP-UX sed.
59460         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59461         to avoid HP-UX limit of 99 commands, in the near future.
59462         * modules/stdlib (Makefile.am): Likewise.
59463         * modules/unistd (Makefile.am): Likewise.
59464         * modules/wchar (Makefile.am): Likewise.
59465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59466         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59467         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59469 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59470             Bruno Haible  <bruno@clisp.org>
59472         stdlib: improve random_r modularization
59473         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59474         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59475         you also need the random_r module to get this material right.
59476         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59477         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59478         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59480 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59482         stdlib: don't depend on stdint
59483         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59484         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59485         be independent of whether stdint.h is needed.
59486         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59487         here, instead of ...
59488         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59489         struct random_data should be using the random_r module, not just
59490         the stdlib module (which wouldn't make sense: what package needs
59491         just struct random_data without also needing random_r?).
59492         * modules/stdlib (Depends-on): Remove stdint.
59494         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59495         See the thread rooted at
59496         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59497         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59498         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59499         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59500         __VMS)); previously it was always included (via fcntl--.h).
59501         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59502         hand; this is good enough for load averages.  Also, do not use
59503         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59504         flags directly if available and don't bother otherwise.  (Packages
59505         that need the extra reliability should use the modules that define
59506         these flags on older platforms that lack them.)
59507         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59508         fcntl-safer.
59510 2011-02-08  Jim Meyering  <meyering@redhat.com>
59512         di-set.h, ino-map.h: add multiple-inclusion guard
59513         Technically, the guard is required only for ino-map.h, due to its
59514         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
59515         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
59516         * lib/ino-map.h: Likewise.
59518 2011-02-06  Bruno Haible  <bruno@clisp.org>
59520         iswblank: Ensure declaration on glibc systems.
59521         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
59522         * modules/iswblank (Dependencies): Add 'extensions'.
59523         * doc/posix-functions/iswblank.texi: Document the glibc problem.
59525 2011-02-06  Bruno Haible  <bruno@clisp.org>
59527         New module 'iswblank'.
59528         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
59529         * modules/iswblank: New file.
59530         * modules/wctype-h (Files): Remove lib/iswblank.c.
59531         (Makefile.am): Substitute GNULIB_ISWBLANK.
59532         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
59533         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
59534         (gl_WCTYPE_H_DEFAULTS): New macro.
59535         (gl_WCTYPE_H): Require it. Remove iswblank related code.
59536         * modules/iswblank-tests: New file.
59537         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
59538         * tests/test-wctype-h.c (main): Remove iswblank tests.
59539         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
59540         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
59541         of 'wctype-h'.
59542         * NEWS: Mention the change.
59543         * modules/mbchar (Depends-on): Add iswblank.
59545 2011-02-08  Bruno Haible  <bruno@clisp.org>
59547         di-set tests: Refactor.
59548         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
59549         unnecessary includes.
59550         (ASSERT): Remove macro.
59551         (main): Make C90 compliant by avoiding variable declaration after
59552         statement.
59553         * modules/di-set-tests (Files): Add tests/macros.h.
59555 2011-02-08  Bruno Haible  <bruno@clisp.org>
59557         ino-map tests: Refactor.
59558         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
59559         unnecessary includes.
59560         (ASSERT): Remove macro.
59561         (main): Make C90 compliant by avoiding variable declaration after
59562         statement.
59563         * modules/ino-map-tests (Files): Add tests/macros.h.
59565 2011-02-08  Jim Meyering  <meyering@redhat.com>
59567         di-set: add "const" to a cast
59568         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
59569         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
59571 2011-02-06  Bruno Haible  <bruno@clisp.org>
59573         Rename module 'wctype' to 'wctype-h'.
59574         * modules/wctype-h: Renamed from modules/wctype.
59575         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59576         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
59577         (Files, Depends-on, Makefile.am): Update.
59578         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
59579         (Files, Makefile.am): Update.
59580         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
59581         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
59582         * doc/posix-headers/wctype.texi: Update.
59583         * doc/posix-functions/iswalnum.texi: Update.
59584         * doc/posix-functions/iswalpha.texi: Update.
59585         * doc/posix-functions/iswblank.texi: Update.
59586         * doc/posix-functions/iswcntrl.texi: Update.
59587         * doc/posix-functions/iswdigit.texi: Update.
59588         * doc/posix-functions/iswgraph.texi: Update.
59589         * doc/posix-functions/iswlower.texi: Update.
59590         * doc/posix-functions/iswprint.texi: Update.
59591         * doc/posix-functions/iswpunct.texi: Update.
59592         * doc/posix-functions/iswspace.texi: Update.
59593         * doc/posix-functions/iswupper.texi: Update.
59594         * doc/posix-functions/iswxdigit.texi: Update.
59595         * doc/posix-functions/towlower.texi: Update.
59596         * doc/posix-functions/towupper.texi: Update.
59597         * NEWS: Mention the change.
59598         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59599         * modules/mbchar (Dependencies): Likewise.
59600         * modules/mbswidth (Dependencies): Likewise.
59601         * modules/quotearg (Dependencies): Likewise.
59602         * modules/regex (Dependencies): Likewise.
59603         * modules/wcscasecmp (Dependencies): Likewise.
59604         * modules/wcsncasecmp (Dependencies): Likewise.
59605         * modules/wcwidth (Dependencies): Likewise.
59607 2011-02-06  Bruno Haible  <bruno@clisp.org>
59609         New module 'wcswidth'.
59610         * modules/wcswidth: New file.
59611         * lib/wchar.in.h (wcswidth): New declaration.
59612         * lib/wcswidth.c: New file.
59613         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59614         * m4/wcswidth.m4: New file.
59615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59617         REPLACE_WCSWIDTH.
59618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59619         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59620         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59621         * doc/posix-functions/wcswidth.texi: Mention the new module.
59623 2011-02-06  Bruno Haible  <bruno@clisp.org>
59625         New module 'wcstok'.
59626         * modules/wcstok: New file.
59627         * lib/wchar.in.h (wcstok): New declaration.
59628         * lib/wcstok.c: New file.
59629         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59630         * m4/wcstok.m4: New file.
59631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59634         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59635         * doc/posix-functions/wcstok.texi: Mention the new module.
59637 2011-02-06  Bruno Haible  <bruno@clisp.org>
59639         New module 'wcsstr'.
59640         * modules/wcsstr: New file.
59641         * lib/wchar.in.h (wcsstr): New declaration.
59642         * lib/wcsstr.c: New file.
59643         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59644         * m4/wcsstr.m4: New file.
59645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59648         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59649         * doc/posix-functions/wcsstr.texi: Mention the new module.
59651 2011-02-06  Bruno Haible  <bruno@clisp.org>
59653         New module 'wcspbrk'.
59654         * modules/wcspbrk: New file.
59655         * lib/wchar.in.h (wcspbrk): New declaration.
59656         * lib/wcspbrk.c: New file.
59657         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59658         * m4/wcspbrk.m4: New file.
59659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59662         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59663         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59665 2011-02-06  Bruno Haible  <bruno@clisp.org>
59667         New module 'wcsspn'.
59668         * modules/wcsspn: New file.
59669         * lib/wchar.in.h (wcsspn): New declaration.
59670         * lib/wcsspn.c: New file.
59671         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59672         * m4/wcsspn.m4: New file.
59673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59676         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59677         * doc/posix-functions/wcsspn.texi: Mention the new module.
59679 2011-02-06  Bruno Haible  <bruno@clisp.org>
59681         New module 'wcscspn'.
59682         * modules/wcscspn: New file.
59683         * lib/wchar.in.h (wcscspn): New declaration.
59684         * lib/wcscspn.c: New file.
59685         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59686         * m4/wcscspn.m4: New file.
59687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59690         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59691         * doc/posix-functions/wcscspn.texi: Mention the new module.
59693 2011-02-06  Bruno Haible  <bruno@clisp.org>
59695         New module 'wcsrchr'.
59696         * modules/wcsrchr: New file.
59697         * lib/wchar.in.h (wcsrchr): New declaration.
59698         * lib/wcsrchr.c: New file.
59699         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59700         * m4/wcsrchr.m4: New file.
59701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59704         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59705         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59707 2011-02-06  Bruno Haible  <bruno@clisp.org>
59709         New module 'wcschr'.
59710         * modules/wcschr: New file.
59711         * lib/wchar.in.h (wcschr): New declaration.
59712         * lib/wcschr.c: New file.
59713         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59714         * m4/wcschr.m4: New file.
59715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59718         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59719         * doc/posix-functions/wcschr.texi: Mention the new module.
59721 2011-02-06  Bruno Haible  <bruno@clisp.org>
59723         New module 'wcsdup'.
59724         * modules/wcsdup: New file.
59725         * lib/wchar.in.h (wcsdup): New declaration.
59726         * lib/wcsdup.c: New file.
59727         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59728         * m4/wcsdup.m4: New file.
59729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59732         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59733         * doc/posix-functions/wcsdup.texi: Mention the new module.
59735 2011-02-06  Bruno Haible  <bruno@clisp.org>
59737         New module 'wcsxfrm'.
59738         * modules/wcsxfrm: New file.
59739         * lib/wchar.in.h (wcsxfrm): New declaration.
59740         * lib/wcsxfrm.c: New file.
59741         * lib/wcsxfrm-impl.h: New file.
59742         * m4/wcsxfrm.m4: New file.
59743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59746         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59747         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59749 2011-02-06  Bruno Haible  <bruno@clisp.org>
59751         New module 'wcscoll'.
59752         * modules/wcscoll: New file.
59753         * lib/wchar.in.h (wcscoll): New declaration.
59754         * lib/wcscoll.c: New file.
59755         * lib/wcscoll-impl.h: New file.
59756         * m4/wcscoll.m4: New file.
59757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59760         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59761         * doc/posix-functions/wcscoll.texi: Mention the new module.
59763 2011-02-06  Bruno Haible  <bruno@clisp.org>
59765         New module 'wcsncasecmp'.
59766         * modules/wcsncasecmp: New file.
59767         * lib/wchar.in.h (wcsncasecmp): New declaration.
59768         * lib/wcsncasecmp.c: New file.
59769         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59770         * m4/wcsncasecmp.m4: New file.
59771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59774         HAVE_WCSNCASECMP.
59775         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59776         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59778 2011-02-06  Bruno Haible  <bruno@clisp.org>
59780         New module 'wcscasecmp'.
59781         * modules/wcscasecmp: New file.
59782         * lib/wchar.in.h (wcscasecmp): New declaration.
59783         * lib/wcscasecmp.c: New file.
59784         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59785         * m4/wcscasecmp.m4: New file.
59786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59789         HAVE_WCSCASECMP.
59790         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59791         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59793 2011-02-05  Bruno Haible  <bruno@clisp.org>
59795         New module 'wcsncmp'.
59796         * modules/wcsncmp: New file.
59797         * lib/wchar.in.h (wcsncmp): New declaration.
59798         * lib/wcsncmp.c: New file.
59799         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59800         * m4/wcsncmp.m4: New file.
59801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59804         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59805         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59807 2011-02-05  Bruno Haible  <bruno@clisp.org>
59809         New module 'wcscmp'.
59810         * modules/wcscmp: New file.
59811         * lib/wchar.in.h (wcscmp): New declaration.
59812         * lib/wcscmp.c: New file.
59813         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59814         * m4/wcscmp.m4: New file.
59815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59818         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59819         * doc/posix-functions/wcscmp.texi: Mention the new module.
59821 2011-02-05  Bruno Haible  <bruno@clisp.org>
59823         New module 'wcsncat'.
59824         * modules/wcsncat: New file.
59825         * lib/wchar.in.h (wcsncat): New declaration.
59826         * lib/wcsncat.c: New file.
59827         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59828         * m4/wcsncat.m4: New file.
59829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59832         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59833         * doc/posix-functions/wcsncat.texi: Mention the new module.
59835 2011-02-05  Bruno Haible  <bruno@clisp.org>
59837         New module 'wcscat'.
59838         * modules/wcscat: New file.
59839         * lib/wchar.in.h (wcscat): New declaration.
59840         * lib/wcscat.c: New file.
59841         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59842         * m4/wcscat.m4: New file.
59843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59846         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59847         * doc/posix-functions/wcscat.texi: Mention the new module.
59849 2011-02-05  Bruno Haible  <bruno@clisp.org>
59851         New module 'wcpncpy'.
59852         * modules/wcpncpy: New file.
59853         * lib/wchar.in.h (wcpncpy): New declaration.
59854         * lib/wcpncpy.c: New file.
59855         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59856         * m4/wcpncpy.m4: New file.
59857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59859         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59860         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59861         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59863 2011-02-05  Bruno Haible  <bruno@clisp.org>
59865         New module 'wcsncpy'.
59866         * modules/wcsncpy: New file.
59867         * lib/wchar.in.h (wcsncpy): New declaration.
59868         * lib/wcsncpy.c: New file.
59869         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59870         * m4/wcsncpy.m4: New file.
59871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59874         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59875         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59877 2011-02-05  Bruno Haible  <bruno@clisp.org>
59879         New module 'wcpcpy'.
59880         * modules/wcpcpy: New file.
59881         * lib/wchar.in.h (wcpcpy): New declaration.
59882         * lib/wcpcpy.c: New file.
59883         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59884         * m4/wcpcpy.m4: New file.
59885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59887         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59888         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59889         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59891 2011-02-05  Bruno Haible  <bruno@clisp.org>
59893         New module 'wcscpy'.
59894         * modules/wcscpy: New file.
59895         * lib/wchar.in.h (wcscpy): New declaration.
59896         * lib/wcscpy.c: New file.
59897         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59898         * m4/wcscpy.m4: New file.
59899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59902         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59903         * doc/posix-functions/wcscpy.texi: Mention the new module.
59905 2011-02-05  Bruno Haible  <bruno@clisp.org>
59907         New module 'wcsnlen'.
59908         * modules/wcsnlen: New file.
59909         * lib/wchar.in.h (wcsnlen): New declaration.
59910         * lib/wcsnlen.c: New file.
59911         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59912         * m4/wcsnlen.m4: New file.
59913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59916         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59917         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59919 2011-02-05  Bruno Haible  <bruno@clisp.org>
59921         New module 'wcslen'.
59922         * modules/wcslen: New file.
59923         * lib/wchar.in.h (wcslen): New declaration.
59924         * lib/wcslen.c: New file.
59925         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59926         * m4/wcslen.m4: New file.
59927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59930         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59931         * doc/posix-functions/wcslen.texi: Mention the new module.
59933 2011-02-05  Bruno Haible  <bruno@clisp.org>
59935         New module 'wmemset'.
59936         * modules/wmemset: New file.
59937         * lib/wchar.in.h (wmemset): New declaration.
59938         * lib/wmemset.c: New file.
59939         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
59940         * m4/wmemset.m4: New file.
59941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
59942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
59943         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
59944         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
59945         * doc/posix-functions/wmemset.texi: Mention the new module.
59947 2011-02-05  Bruno Haible  <bruno@clisp.org>
59949         New module 'wmemmove'.
59950         * modules/wmemmove: New file.
59951         * lib/wchar.in.h (wmemmove): New declaration.
59952         * lib/wmemmove.c: New file.
59953         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59954         * m4/wmemmove.m4: New file.
59955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59957         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59958         HAVE_WMEMMOVE.
59959         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59960         * doc/posix-functions/wmemmove.texi: Mention the new module.
59962 2011-02-05  Bruno Haible  <bruno@clisp.org>
59964         New module 'wmemcpy'.
59965         * modules/wmemcpy: New file.
59966         * lib/wchar.in.h (wmemcpy): New declaration.
59967         * lib/wmemcpy.c: New file.
59968         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59969         * m4/wmemcpy.m4: New file.
59970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59972         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59973         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59974         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59976 2011-02-05  Bruno Haible  <bruno@clisp.org>
59978         New module 'wmemcmp'.
59979         * modules/wmemcmp: New file.
59980         * lib/wchar.in.h (wmemcmp): New declaration.
59981         * lib/wmemcmp.c: New file.
59982         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59983         * m4/wmemcmp.m4: New file.
59984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59986         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59987         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59988         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59990 2011-02-07  Jim Meyering  <meyering@redhat.com>
59992         di-set, ino-map: new modules, from coreutils
59993         * lib/di-set.c: New file.
59994         * lib/di-set.h: Likewise.
59995         * lib/ino-map.c: Likewise.
59996         * lib/ino-map.h: Likewise.
59997         * modules/di-set: Likewise.
59998         * modules/di-set-tests: Likewise.
59999         * modules/ino-map: Likewise.
60000         * modules/ino-map-tests: Likewise.
60001         * tests/test-di-set.c: Likewise.
60002         * tests/test-ino-map.c: Likewise.
60004 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60006         getloadavg: merge minor changes from Emacs
60008         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60009         (getloadavg): Use memset, not bzero.
60011         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60012         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60013         clash (bug#86).
60015 2010-11-14  Bruno Haible  <bruno@clisp.org>
60017         Allow multiple gnulib generated replacements to coexist.
60018         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60019         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60020         * lib/langinfo.in.h (nl_item): Likewise.
60021         * lib/math.in.h (_NaN, NAN): Likewise.
60022         * lib/netdb.in.h (struct addrinfo): Likewise.
60023         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60024         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60025         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60026         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60027         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60028         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60029         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60030         pthread_mutexattr_init, pthread_mutexattr_settype,
60031         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60032         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60033         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60034         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60035         * lib/sched.in.h (struct sched_param): Likewise.
60036         * lib/se-selinux.in.h (security_class_t, security_context_t,
60037         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60038         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60039         lsetfilecon, fsetfilecon, security_check_context,
60040         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60041         Likewise.
60042         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60043         Likewise.
60044         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60045         _gl_function_taking_int_returning_void_t, union sigval,
60046         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60047         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60048         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60049         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60050         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60051         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60052         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60053         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60054         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60055         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60056         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60057         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60058         socklen_t, rpl_fd_isset): Likewise.
60059         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60060         * lib/sys_time.in.h (struct timeval): Likewise.
60061         * lib/sys_times.in.h (struct tms): Likewise.
60062         * lib/sys_utsname.in.h (struct utsname):
60063         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60064         * lib/unistd.in.h (getpagesize): Likewise.
60065         * lib/wchar.in.h (mbstate_t): Likewise.
60066         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60067         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60068         towlower, towupper): Likewise.
60069         Reported by Sam Steingold <sds@gnu.org>.
60071 2011-02-05  Eric Blake  <eblake@redhat.com>
60073         unsetenv: work around Haiku issues
60074         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60075         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60077 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60079         libposix: avoid calling error() within libposix
60080         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60081         is defined.
60083 2011-02-05  Eric Blake  <eblake@redhat.com>
60085         strerror_r-posix: port to cygwin
60086         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60087         implementation.
60088         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60089         * tests/test-strerror_r.c (main): Fix test.
60090         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60091         issue.
60093 2011-02-05  Bruno Haible  <bruno@clisp.org>
60095         New module 'wmemchr'.
60096         * modules/wmemchr: New file.
60097         * lib/wchar.in.h (wmemchr): New declaration.
60098         * lib/wmemchr.c: New file.
60099         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60100         * m4/wmemchr.m4: New file.
60101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60103         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60104         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60105         * doc/posix-functions/wmemchr.texi: Mention the new module.
60107 2011-02-04  Eric Blake  <eblake@redhat.com>
60109         fdopendir: detect FreeBSD bug
60110         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60111         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60113 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60115         stdbool: do not define HAVE_STDBOOL_H
60116         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60117         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60118         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60119         imported from the latest Autoconf git.  It was motivated by Emacs,
60120         which uses gnulib but does not need HAVE_STDBOOL_H.
60122 2011-02-04  Bruno Haible  <bruno@clisp.org>
60124         wcsnrtombs: Prepare for new module wwcsnrtombs.
60125         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60126         * lib/wcsnrtombs.c: Include it.
60127         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60129         wcsrtombs: Prepare for new module wwcsrtombs.
60130         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60131         * lib/wcsrtombs.c: Include it.
60132         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60134         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60135         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60136         * lib/mbsnrtowcs.c: Include it.
60137         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60139         mbsrtowcs: Prepare for new module mbsrtowwcs.
60140         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60141         * lib/mbsrtowcs.c: Include it.
60142         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60144 2011-02-04  Bruno Haible  <bruno@clisp.org>
60146         vasnprintf: Reduce use of malloc for small format strings.
60147         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60148         (arguments): Add room for the first 7 arguments.
60149         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60150         (char_directives, u8_directives, u16_directives, u32_directives): Add
60151         room for the first 7 directives.
60152         * lib/printf-parse.c: Include <string.h>.
60153         (PRINTF_PARSE): Change memory handling code so that it uses the first
60154         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60155         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60156         Reported by Pádraig Brady <P@draigbrady.com>.
60158 2011-01-31  Eric Blake  <eblake@redhat.com>
60160         dup2: work around Haiku bug
60161         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60162         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60163         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60164         * tests/test-dup2.c (main): Enhance test.
60166 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60168         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60169         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60170         declared by eglibc 2.11.2.
60171         * lib/stdio.in.h: Likewise.
60173 2011-01-31  Eric Blake  <eblake@redhat.com>
60175         ignore-value: add missing test dependency
60176         * tests/test-ignore-value.c: Revert previous change; stdio.h
60177         provides off_t.
60178         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60180 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60182         mktime: clarify long_int width checking
60183         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60184         the top level, to make it clearer that the assumption about
60185         long_int width is being checked.  See
60186         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60188 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60190         ignore-value: Fix self-test.
60191         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60193 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60195         TYPE_MAXIMUM: avoid theoretically undefined behavior
60196         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60197         negative number, which the C Standard says has undefined behavior.
60198         In practice this is not a problem, but might as well do it by the book.
60199         Reported by Rich Felker and Eric Blake; see
60200         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60201         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60202         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60204         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60205         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60206         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60208         mktime: #undef mktime before #defining it
60209         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60211         mktime: systematically normalize tm_isdst comparisons
60212         * lib/mktime.c (isdst_differ): New function.
60213         (__mktime_internal): Use it systematically for all isdst comparisons.
60214         This completes the fix for libc BZ #6723, and removes the need for
60215         normalizing tm_isdst.  See
60216         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60217         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60219         mktime: fix some integer overflow issues and sidestep the rest
60221         This was prompted by a bug report by Benjamin Lindner for MinGW
60222         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60223         His bug is due to signed integer overflow (0 - INT_MIN), and I
60224         I scanned through mktime.c looking for other integer overflow
60225         problems, fixing all the bugs I found.
60227         Although the C Standard says the resulting code is still not safe
60228         in the presence of integer overflow, in practice it should be good
60229         enough for all real-world two's-complement implementations, except
60230         for debugging environments that deliberately trap on integer
60231         overflow (e.g., gcc -ftrapv).
60233         * lib/mktime.c (WRAPV): New macro.
60234         (SHR): Also check that long_int and time_t shift right in the
60235         usual way, before using the fast-but-unportable method.
60236         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60237         used.  The code already assumed two's complement, so there's
60238         no need to test for alternatives.  All uses removed.
60239         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60240         the C standard.  Problem reported by Rich Felker in
60241         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60242         (twos_complement_arithmetic): Also check long_int and time_t.
60243         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60244         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60245         (__mktime_internal): Avoid integer overflow with unary subtraction
60246         in two instances where -1 - X is an adequate replacement for -X,
60247         since the calculations are approximate.
60249 2011-01-29  Eric Blake  <eblake@redhat.com>
60251         mktime: avoid infinite loop
60252         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60253         type; behavior is still undefined but portable to all known targets.
60254         Reported by Rich Felker.
60256 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60258         rename, unlink, same-inode: Relicense.
60259         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60260         * modules/unlink (License): Likewise.
60261         * modules/same-inode (License): Likewise.
60263 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60265         mktime: avoid problems on NetBSD 5 / i386
60266         * lib/mktime.c (long_int): New type.  This works around a problem
60267         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60268         but time_t is 64 bits, and where I expect the existing code is
60269         wrong in some cases.
60270         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60271         (ydhms_diff): Bring back the compile-time check for wide-enough
60272         year and yday.
60274         mktime: fix misspelling in comment
60275         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60276         This merges all recent glibc changes of importance.
60278 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60280         move-if-change: cope with concurrent mv of identical file.
60281         * build-aux/move-if-change (CMPPROG): Accept environment
60282         variable as an override for `cmp'.
60283         (usage): Document CMPPROG.
60284         Adjust comparison to drop stdout.  Cope with failure of mv if
60285         the target file exists and is identical to the source, for
60286         parallel builds.
60287         Report from H.J. Lu against binutils in PR binutils/12283.
60289 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60291         * users.txt: Mention sharutils.
60293 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60295         * users.txt: Mention OATH Toolkit.
60297 2011-01-27  Bruno Haible  <bruno@clisp.org>
60299         Prepare for supporting FreeBSD 10.
60300         * build-aux/config.libpath: Remove handling of freebsd1*.
60302 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60304         Prepare for supporting FreeBSD 10.
60305         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60306         match FreeBSD 10.0.
60308 2011-01-27  Bruno Haible  <bruno@clisp.org>
60310         vma-iter, get-rusage-as: Add OpenBSD support.
60311         * modules/vma-iter (configure.ac): Test for mquery.
60312         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60313         * lib/vma-iter.c: Include <sys/mman.h>.
60314         (vma_iterate): Add an implementation based on mquery().
60315         * lib/resource-ext.h (get_rusage_as): Update comments.
60316         * lib/get-rusage-as.c: Likewise.
60317         * lib/get-rusage-data.c: Likewise.
60319 2011-01-26  Karl Berry  <karl@gnu.org>
60321         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60322         variables to make it easier to override the makeinfo program used.
60324 2011-01-26  Eric Blake  <eblake@redhat.com>
60326         fcntl: work around Haiku F_DUPFD bugs
60327         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60328         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60329         cloexec bit on duplication.
60330         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60332 2011-01-26  Bruno Haible  <bruno@clisp.org>
60334         Enable memory leak tests on AIX.
60335         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60336         * tests/test-fprintf-posix3.c (main): Likewise.
60338 2011-01-26  Bruno Haible  <bruno@clisp.org>
60340         Tests for module 'get-rusage-data'.
60341         * modules/get-rusage-data-tests: New file.
60342         * tests/test-get-rusage-data.c: New file.
60344         New module 'get-rusage-data'.
60345         * lib/resource-ext.h (get_rusage_data): New declaration.
60346         * lib/get-rusage-data.c: New file.
60347         * modules/get-rusage-data: New file.
60349 2011-01-25  Bruno Haible  <bruno@clisp.org>
60351         get-rusage-as: Allow for easier testing.
60352         * lib/resource-ext.h (get_rusage_as): Add comment.
60353         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60354         (main): New function for interactive testing.
60356 2011-01-25  Bruno Haible  <bruno@clisp.org>
60358         vma-iter: Treat Haiku like BeOS.
60359         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60360         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60362 2011-01-25  Eric Blake  <eblake@redhat.com>
60364         c-stack: fix regression on cygwin when libsigsegv is present
60365         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60367 2011-01-24  Bruno Haible  <bruno@clisp.org>
60369         vma-iter: Avoid empty intervals.
60370         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60371         on an empty interval.
60373 2011-01-24  Jim Meyering  <meyering@redhat.com>
60375         u64: remove unnecessary #include
60376         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60378 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60380         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60381         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60383 2011-01-23  Bruno Haible  <bruno@clisp.org>
60385         New module 'vma-iter'.
60386         * lib/vma-iter.h: New file.
60387         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60388         * modules/vma-iter: New file.
60389         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60390         for get_rusage_as_via_iterator.
60391         (vma_iterate_callback): New function.
60392         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60393         * modules/get-rusage-as (Depends-on): Add vma-iter.
60395 2011-01-23  Bruno Haible  <bruno@clisp.org>
60397         uninorm: Tweak includes.
60398         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60399         Reported by Jim Meyering.
60401 2011-01-23  Bruno Haible  <bruno@clisp.org>
60403         get-rusage-as: Improve on NetBSD.
60404         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60405         /proc, like on FreeBSD.
60407 2011-01-23  Jim Meyering  <meyering@redhat.com>
60409         xreadlink.h: remove unnecessary #include
60410         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60412         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60413         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60415 2011-01-23  Bruno Haible  <bruno@clisp.org>
60417         get-rusage-as: Fix bug.
60418         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60419         original limit when aborting the first loop.
60421 2011-01-23  Bruno Haible  <bruno@clisp.org>
60423         wctype: Ensure valid C syntax.
60424         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60425         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60427 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60429         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60431         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60432         as they are needed only for configure's test case.
60433         This removes two unnecessary symbols from config.h.
60435         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60436         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60438         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60439         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60440         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60442         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60443         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60444         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60445         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60446         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60447         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60448         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60449         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60450         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60451         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60452         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60454 2011-01-21  Eric Blake  <eblake@redhat.com>
60456         maintainer-makefile: work with older git for submodule check
60457         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60458         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60459         Reported by Matthias Bolte.
60461         bootstrap: minor portability fixes
60462         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60463         (usage): Omit leading capital and trailing . on help phrases, per
60464         GNU Coding Standards.
60465         (check_versions, top level): Prefix messages with script name.
60467 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60469         bootstrap: support --no-git option
60470         * build-aux/bootstrap: Add --no-git option, to be used when
60471         --gnulib-srcdir points to the exact desired checkout.
60473 2011-01-21  Eric Blake  <eblake@redhat.com>
60475         strerror_r-posix: work with glibc 2.13
60476         * lib/strerror_r.c (strerror_r): Fix return type.
60478 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60479             Bruno Haible  <bruno@clisp.org>
60481         uN_strstr: New unit tests.
60482         * modules/unistr/u8-strstr-tests: New file.
60483         * modules/unistr/u16-strstr-tests: New file.
60484         * modules/unistr/u32-strstr-tests: New file.
60485         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60486         * tests/unistr/test-u8-strstr.c: New file.
60487         * tests/unistr/test-u16-strstr.c: New file.
60488         * tests/unistr/test-u32-strstr.c: New file.
60490 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60491             Bruno Haible  <bruno@clisp.org>
60493         Make uN_strstr functions O(n) worst-case.
60494         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60495         16-bit and 32-bit unit cases, use the unibyte algorithm from
60496         lib/mbsstr.c.
60497         * lib/unistr/u8-strstr.c: Include <string.h>.
60498         (UNIT_IS_UINT8_T): New macro.
60499         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60500         (U_STRLEN, U_STRNLEN): New macros.
60501         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60502         (U_STRLEN, U_STRNLEN): New macros.
60503         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60504         (configure.ac): Update required libunistring version.
60505         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60506         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60507         malloca.
60508         (configure.ac): Update required libunistring version.
60509         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60510         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60511         malloca.
60512         (configure.ac): Update required libunistring version.
60514 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60515             Bruno Haible  <bruno@clisp.org>
60517         Prepare for faster uN_strstr functions.
60518         * lib/str-kmp.h: Support definable UNITs.
60519         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
60520         needle_len argument.
60521         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
60522         * lib/mbscasestr.c (mbscasestr): Likewise.
60524 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60526         malloca-tests: make faster by unsetting MALLOC_PERTURB_
60527         * tests/test-malloca.c (main): Unset the environment variable
60528         to greatly speed up the test.
60529         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
60530         * modules/malloca-tests: Depend on unsetenv.
60532 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60534         ignore-value: remove stdint dependency
60535         * lib/ignore-value.h: Remove <stdint.h>
60536         * modules/ignore-value: Remove stdint dependency.
60538 2011-01-21  Jim Meyering  <meyering@redhat.com>
60540         maint.mk: adjust variable name to be consistent with other gl_ vars
60541         * top/maint.mk (gl_public_submodule_commit): Rename the variable
60542         to be lower case.
60544 2011-01-20  Jim Meyering  <meyering@redhat.com>
60546         maint.mk: make "check" depend on public-submodule-commit by default
60547         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
60549 2011-01-20  Bruno Haible  <bruno@clisp.org>
60551         mbfile, mbiter: Complete change from 2008-12-21.
60552         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
60553         * m4/mbiter.m4 (gl_MBITER): Likewise.
60555 2011-01-20  Jim Meyering  <meyering@redhat.com>
60557         init.sh: insert space between each function name and "()"
60558         * tests/init.sh: Make it a little easier to see that a function's
60559         name is "warn_", and not "warn" when looking at the first part of
60560         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
60562 2011-01-20  Jim Meyering  <meyering@redhat.com>
60564         mountlist: clean up code formatting
60565         * lib/mountlist.c (read_file_system_list): Split a long line,
60566         correct bracing style, use NULL in place of "(struct statfs *)0",
60567         don't parenthesize return value, add spaces around "=" and after
60568         ";-in-for-stmt".
60570 2011-01-14  Markus Duft  <mduft@gentoo.org>
60572         mountlist: add support for Interix
60573         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
60574         Apply statvfs to all entries of /dev/fs.
60575         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
60576         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
60578 2011-01-20  Jim Meyering  <meyering@redhat.com>
60580         maint.mk: improve the public-submodule-commit rule
60581         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
60582         to suppress printing of its commands... unless V=1.
60583         Add git submodule's --quiet option to suppress printing of e.g.,
60584         "Entering gnulib" output.
60585         "cd" into $(srcdir) before running git submodule.
60587 2011-01-20  Bruno Haible  <bruno@clisp.org>
60589         include_next: Fix bug introduced on 2011-01-18.
60590         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
60591         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60592         ac_cv_header_... variable if the second argument is not 'check'.
60593         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60594         gl_NEXT_HEADERS_INTERNAL.
60596 2011-01-20  Bruno Haible  <bruno@clisp.org>
60598         Allow the user to avoid the GNULIB_TEST_* macros.
60599         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60600         Suggested by Paul Eggert.
60602 2011-01-14  Jim Meyering  <meyering@redhat.com>
60604         bootstrap: avoid failure when there is no .gitmodules file
60605         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60606         has been assigned to, even when its value is the empty string.
60607         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60608         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
60609         Reported by John W. Eaton <jwe@gnu.org>.
60611 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60613         assume <ctype.h>, ..., <time.h> exist
60614         For years gnulib has been assuming the existence of the headers
60615         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60616         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60617         them, since they don't appear to be needed.
60618         * README (Portability guidelines): Document this.
60619         * lib/flock.c: Assume <fcntl.h> exists.
60620         * lib/regex_internal.h: Assume <locale.h> exists.
60621         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60623         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60624         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60625         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60626         * m4/regex.m4 (gl_REGEX): Likewise.
60627         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60628         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60629         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60630         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60631         * tests/test-argp.c: Likewise.
60632         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60634         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60635         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60636         AA_APPLE_UNIVERSAL_BUILD.  See
60637         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60638         * NEWS: Document this.
60640 2011-01-19  Eric Blake  <eblake@redhat.com>
60642         c-stack: assume stack overflow if SA_SIGINFO unsupported
60643         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60644         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60645         sigaction will work.
60646         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60647         behavior match Linux.
60648         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60650         stdbool-tests: accommodate Haiku
60651         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60653         binary-io: fix O_TEXT on Haiku
60654         * modules/binary-io (Depends-on): Add fcntl-h.
60655         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60656         than blindly undefining O_TEXT.
60657         Reported by Scott McCreary.
60659 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60661         include_next: do not check for standard headers like stddef.h
60663         I found this problem when modifying Emacs to use gnulib.
60664         I noticed that it added HAVE_STDDEF_H to config.h, even though
60665         gnulib always assumes <stddef.h> exists as per README and this
60666         symbol is unnecessary.
60667         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60668         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60669         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60670         faster for headers like stddef.h that are known to exist.
60671         (gl_CHECK_NEXT_HEADERS): Use it.
60672         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60673         rather than gl_CHECK_NEXT_HEADERS.
60674         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60675         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60677 2011-01-18  Eric Blake  <eblake@redhat.com>
60679         ansi-c++-opt: skip C++ dependency style if C++ is unused
60680         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60681         tests when we know C++ compilation is not desired.
60682         Reported by Scott McCreary.
60684 2011-01-18  Bruno Haible  <bruno@clisp.org>
60686         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60687         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60688         (main): Perform test also when getrlimit and setrlimit don't exist or
60689         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60690         limiting the address space size using setrlimit, compare the address
60691         space size before and after the test.
60692         * tests/test-dprintf-posix2.c: Likewise.
60693         * tests/test-fprintf-posix3.sh: Update skip messages.
60694         * tests/test-dprintf-posix2.sh: Likewise.
60695         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60696         * modules/dprintf-posix-tests (Depends-on): Likewise.
60697         Reported by Bruce Korb <bkorb@gnu.org> and
60698         Gary V. Vaughan <gary@gnu.org>.
60700 2011-01-18  Bruno Haible  <bruno@clisp.org>
60702         get-rusage-as: Improvement for Cygwin.
60703         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60704         areas that are merely reserved.
60706 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60708         strftime: remove dependencies on multibyte modules
60710         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60711         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60712         only if __osf__ is defined, and I suspect OSF doesn't need these
60713         other modules.  If my guess is wrong, we'll need to come up with a
60714         variant of strftime that doesn't need the multibyte modules.
60716         I discovered this problem when attempting modify Emacs to use the
60717         strftime module.  With the previous gnulib, this caused Emacs to
60718         need 31 new files, ranging from lib/config.charset to
60719         m4/wint_t.m4.  This was overkill and I expect would be offputting
60720         to the Emacs maintainers.  After this change, only 6 new files are
60721         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60722         stdbool.m4, and tm_gmtoff.m4.
60724         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60725         Suggested by Bruno Haible in
60726         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60728         and do not check for wchar.h.
60729         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60730         (Depends-on): Remove mbrlen, mbsinit, wchar.
60732 2011-01-18  Bruno Haible  <bruno@clisp.org>
60734         Tests for module 'get-rusage-as'.
60735         * modules/get-rusage-as-tests: New file.
60736         * tests/test-get-rusage-as.c: New file.
60738         New module 'get-rusage-as'.
60739         * modules/get-rusage-as: New file.
60740         * lib/resource-ext.h: New file.
60741         * lib/get-rusage-as.c: New file.
60743 2011-01-17  Eric Blake  <eblake@redhat.com>
60745         sigaction: relax license from LGPLv3+ to LGPLv2+
60746         * modules/sigaction (License): Relax to LGPLv2+.
60748 2011-01-14  Bruno Haible  <bruno@clisp.org>
60750         filemode: Make function declarations usable in C++ mode.
60751         * lib/filemode.h: Enclose function declarations in extern "C" block.
60752         Reported by John W. Eaton <jwe@gnu.org>.
60754 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60756         save-cwd: no longer include "xgetcwd.h"
60757         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60758         This avoids a compilation failure in projects that use save-cwd
60759         without also using the xgetcwd module.
60761 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60763         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60764         This is so that a program like Emacs, which needs only dtoastr,
60765         does not have to bother with distributing and compiling ftoastr
60766         and ldtoastr.
60767         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60768         * modules/dtoastr, modules/ldtoastr: New files.
60769         * modules/ftoastr: Now works just for 'float'.
60770         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60771         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60772         dtoastr.c, ldtoastr.c.
60774 2011-01-11  Jim Meyering  <meyering@redhat.com>
60776         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60777         There is no need to work around the lack of the fchdir function,
60778         since gnulib can now provide a replacement when required.
60779         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60780         * modules/save-cwd (Depends-on): Add fchdir.
60782 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60784         openat, save-cwd: avoid xmalloc
60786         This removes a direct (but undocumented) dependency of openat on
60787         xalloc, along with an indirect dependency via save-cwd.  It also
60788         removes a dependency of save-cwd on xgetcwd, and thereby
60789         indirectly on xalloc.  This change causes the openat substitute
60790         to fall back on save_cwd when memory is tight, and for save_cwd to
60791         fail instead of dying when memory is tight, but that's good enough.
60792         Problem and initial idea for fix reported by Bastien Roucaries in
60793         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60795         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60796         xalloc.h (for xmalloc).
60797         (openat_proc_name): Use malloc, not xmalloc.
60798         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60799         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60801         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60802         This avoids heap allocation for file names whose lengths are in
60803         the range 512..1023, with the upper bound increasing to at most
60804         4031 depending on the platform's PATH_MAX.  (We do not want
60805         pathmax.h here as it might supply a non-constant PATH_MAX.)
60806         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60807         Perhaps they should be moved to malloca.h?
60808         (OPENAT_BUFFER_SIZE): Use them.
60810 2011-01-10  Bruno Haible  <bruno@clisp.org>
60812         doc: Update users.txt.
60813         * users.txt: Add recutils.
60815 2011-01-09  Karl Berry  <karl@gnu.org>
60817         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60819         * doc/configmake.texi: New file.
60820         * doc/gnulib.texi: Include it.
60821         * modules/configmake: Move documentation from here.
60823 2011-01-09  Bruno Haible  <bruno@clisp.org>
60825         Update to Unicode 6.0.0.
60826         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60827         (get_lbp): Update for Unicode 6.0.0.
60828         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60829         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60830         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60831         U+11001, U+11038..U+11046. Remove U+06DE.
60832         (uc_width): Fix bounds of planes.
60833         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60834         lib/uniwidth/width.c.
60835         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60836         trailing whitespace removed.
60837         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60838         without comments, but with the original copyright notice.
60839         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60840         * lib/unicase/ignorable.h: Likewise.
60841         * lib/unicase/tocasefold.h: Likewise.
60842         * lib/unicase/tolower.h: Likewise.
60843         * lib/unicase/totitle.h: Likewise.
60844         * lib/unicase/toupper.h: Likewise.
60845         * lib/unictype/bidi_of.h: Likewise.
60846         * lib/unictype/blocks.h: Likewise.
60847         * lib/unictype/categ_C.h: Likewise.
60848         * lib/unictype/categ_Cn.h: Likewise.
60849         * lib/unictype/categ_L.h: Likewise.
60850         * lib/unictype/categ_Ll.h: Likewise.
60851         * lib/unictype/categ_Lm.h: Likewise.
60852         * lib/unictype/categ_Lo.h: Likewise.
60853         * lib/unictype/categ_Lu.h: Likewise.
60854         * lib/unictype/categ_M.h: Likewise.
60855         * lib/unictype/categ_Mc.h: Likewise.
60856         * lib/unictype/categ_Me.h: Likewise.
60857         * lib/unictype/categ_Mn.h: Likewise.
60858         * lib/unictype/categ_N.h: Likewise.
60859         * lib/unictype/categ_Nd.h: Likewise.
60860         * lib/unictype/categ_No.h: Likewise.
60861         * lib/unictype/categ_P.h: Likewise.
60862         * lib/unictype/categ_Po.h: Likewise.
60863         * lib/unictype/categ_S.h: Likewise.
60864         * lib/unictype/categ_Sc.h: Likewise.
60865         * lib/unictype/categ_Sk.h: Likewise.
60866         * lib/unictype/categ_Sm.h: Likewise.
60867         * lib/unictype/categ_So.h: Likewise.
60868         * lib/unictype/categ_of.h: Likewise.
60869         * lib/unictype/combining.h: Likewise.
60870         * lib/unictype/ctype_alnum.h: Likewise.
60871         * lib/unictype/ctype_alpha.h: Likewise.
60872         * lib/unictype/ctype_graph.h: Likewise.
60873         * lib/unictype/ctype_lower.h: Likewise.
60874         * lib/unictype/ctype_print.h: Likewise.
60875         * lib/unictype/ctype_punct.h: Likewise.
60876         * lib/unictype/ctype_upper.h: Likewise.
60877         * lib/unictype/decdigit.h: Likewise.
60878         * lib/unictype/digit.h: Likewise.
60879         * lib/unictype/numeric.h: Likewise.
60880         * lib/unictype/pr_alphabetic.h: Likewise.
60881         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60882         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60883         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60884         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60885         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60886         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60887         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60888         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60889         * lib/unictype/pr_case_ignorable.h: Likewise.
60890         * lib/unictype/pr_cased.h: Likewise.
60891         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60892         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60893         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60894         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60895         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60896         * lib/unictype/pr_combining.h: Likewise.
60897         * lib/unictype/pr_composite.h: Likewise.
60898         * lib/unictype/pr_currency_symbol.h: Likewise.
60899         * lib/unictype/pr_decimal_digit.h: Likewise.
60900         * lib/unictype/pr_deprecated.h: Likewise.
60901         * lib/unictype/pr_format_control.h: Likewise.
60902         * lib/unictype/pr_grapheme_base.h: Likewise.
60903         * lib/unictype/pr_grapheme_extend.h: Likewise.
60904         * lib/unictype/pr_grapheme_link.h: Likewise.
60905         * lib/unictype/pr_id_continue.h: Likewise.
60906         * lib/unictype/pr_id_start.h: Likewise.
60907         * lib/unictype/pr_ideographic.h: Likewise.
60908         * lib/unictype/pr_lowercase.h: Likewise.
60909         * lib/unictype/pr_math.h: Likewise.
60910         * lib/unictype/pr_numeric.h: Likewise.
60911         * lib/unictype/pr_other_alphabetic.h: Likewise.
60912         * lib/unictype/pr_other_id_continue.h: Likewise.
60913         * lib/unictype/pr_other_math.h: Likewise.
60914         * lib/unictype/pr_punctuation.h: Likewise.
60915         * lib/unictype/pr_sentence_terminal.h: Likewise.
60916         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60917         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60918         * lib/unictype/pr_unified_ideograph.h: Likewise.
60919         * lib/unictype/pr_uppercase.h: Likewise.
60920         * lib/unictype/pr_xid_continue.h: Likewise.
60921         * lib/unictype/pr_xid_start.h: Likewise.
60922         * lib/unictype/scripts.h: Likewise.
60923         * lib/unictype/scripts_byname.gperf: Likewise.
60924         * lib/unictype/sy_java_ident.h: Likewise.
60925         * lib/unigbrk/gbrkprop.h: Likewise.
60926         * lib/unilbrk/lbrkprop1.h: Likewise.
60927         * lib/unilbrk/lbrkprop2.h: Likewise.
60928         * lib/uninorm/decomposition-table2.h: Likewise.
60929         * lib/uniwbrk/wbrkprop.h: Likewise.
60930         * tests/unicase/test-cased.c: Likewise.
60931         * tests/unicase/test-ignorable.c: Likewise.
60932         * tests/unicase/test-uc_tolower.c: Likewise.
60933         * tests/unicase/test-uc_totitle.c: Likewise.
60934         * tests/unicase/test-uc_toupper.c: Likewise.
60935         * tests/unictype/test-categ_C.c: Likewise.
60936         * tests/unictype/test-categ_Cn.c: Likewise.
60937         * tests/unictype/test-categ_L.c: Likewise.
60938         * tests/unictype/test-categ_Ll.c: Likewise.
60939         * tests/unictype/test-categ_Lm.c: Likewise.
60940         * tests/unictype/test-categ_Lo.c: Likewise.
60941         * tests/unictype/test-categ_Lu.c: Likewise.
60942         * tests/unictype/test-categ_M.c: Likewise.
60943         * tests/unictype/test-categ_Mc.c: Likewise.
60944         * tests/unictype/test-categ_Me.c: Likewise.
60945         * tests/unictype/test-categ_Mn.c: Likewise.
60946         * tests/unictype/test-categ_N.c: Likewise.
60947         * tests/unictype/test-categ_Nd.c: Likewise.
60948         * tests/unictype/test-categ_No.c: Likewise.
60949         * tests/unictype/test-categ_P.c: Likewise.
60950         * tests/unictype/test-categ_Po.c: Likewise.
60951         * tests/unictype/test-categ_S.c: Likewise.
60952         * tests/unictype/test-categ_Sc.c: Likewise.
60953         * tests/unictype/test-categ_Sk.c: Likewise.
60954         * tests/unictype/test-categ_Sm.c: Likewise.
60955         * tests/unictype/test-categ_So.c: Likewise.
60956         * tests/unictype/test-ctype_alnum.c: Likewise.
60957         * tests/unictype/test-ctype_alpha.c: Likewise.
60958         * tests/unictype/test-ctype_graph.c: Likewise.
60959         * tests/unictype/test-ctype_lower.c: Likewise.
60960         * tests/unictype/test-ctype_print.c: Likewise.
60961         * tests/unictype/test-ctype_punct.c: Likewise.
60962         * tests/unictype/test-ctype_upper.c: Likewise.
60963         * tests/unictype/test-decdigit.h: Likewise.
60964         * tests/unictype/test-digit.h: Likewise.
60965         * tests/unictype/test-numeric.h: Likewise.
60966         * tests/unictype/test-pr_alphabetic.c: Likewise.
60967         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60968         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60969         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60970         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60971         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60972         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60973         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60974         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60975         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60976         * tests/unictype/test-pr_cased.c: Likewise.
60977         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60978         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60979         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60980         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60981         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60982         * tests/unictype/test-pr_combining.c: Likewise.
60983         * tests/unictype/test-pr_composite.c: Likewise.
60984         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60985         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60986         * tests/unictype/test-pr_deprecated.c: Likewise.
60987         * tests/unictype/test-pr_format_control.c: Likewise.
60988         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60989         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60990         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60991         * tests/unictype/test-pr_id_continue.c: Likewise.
60992         * tests/unictype/test-pr_id_start.c: Likewise.
60993         * tests/unictype/test-pr_ideographic.c: Likewise.
60994         * tests/unictype/test-pr_lowercase.c: Likewise.
60995         * tests/unictype/test-pr_math.c: Likewise.
60996         * tests/unictype/test-pr_numeric.c: Likewise.
60997         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60998         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60999         * tests/unictype/test-pr_other_math.c: Likewise.
61000         * tests/unictype/test-pr_punctuation.c: Likewise.
61001         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61002         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61003         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61004         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61005         * tests/unictype/test-pr_uppercase.c: Likewise.
61006         * tests/unictype/test-pr_xid_continue.c: Likewise.
61007         * tests/unictype/test-pr_xid_start.c: Likewise.
61008         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61009         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61010         changes.
61011         * lib/unictype/categ_Cc.h: Likewise.
61012         * lib/unictype/categ_Cf.h: Likewise.
61013         * lib/unictype/categ_Co.h: Likewise.
61014         * lib/unictype/categ_Cs.h: Likewise.
61015         * lib/unictype/categ_Lt.h: Likewise.
61016         * lib/unictype/categ_Nl.h: Likewise.
61017         * lib/unictype/categ_Pc.h: Likewise.
61018         * lib/unictype/categ_Pd.h: Likewise.
61019         * lib/unictype/categ_Pe.h: Likewise.
61020         * lib/unictype/categ_Pf.h: Likewise.
61021         * lib/unictype/categ_Pi.h: Likewise.
61022         * lib/unictype/categ_Ps.h: Likewise.
61023         * lib/unictype/categ_Z.h: Likewise.
61024         * lib/unictype/categ_Zl.h: Likewise.
61025         * lib/unictype/categ_Zp.h: Likewise.
61026         * lib/unictype/categ_Zs.h: Likewise.
61027         * lib/unictype/ctype_blank.h: Likewise.
61028         * lib/unictype/ctype_cntrl.h: Likewise.
61029         * lib/unictype/ctype_digit.h: Likewise.
61030         * lib/unictype/ctype_space.h: Likewise.
61031         * lib/unictype/ctype_xdigit.h: Likewise.
61032         * lib/unictype/mirror.h: Likewise.
61033         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61034         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61035         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61036         * lib/unictype/pr_bidi_control.h: Likewise.
61037         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61038         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61039         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61040         * lib/unictype/pr_bidi_pdf.h: Likewise.
61041         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61042         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61043         * lib/unictype/pr_dash.h: Likewise.
61044         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61045         * lib/unictype/pr_diacritic.h: Likewise.
61046         * lib/unictype/pr_extender.h: Likewise.
61047         * lib/unictype/pr_hex_digit.h: Likewise.
61048         * lib/unictype/pr_hyphen.h: Likewise.
61049         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61050         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61051         * lib/unictype/pr_ignorable_control.h: Likewise.
61052         * lib/unictype/pr_iso_control.h: Likewise.
61053         * lib/unictype/pr_join_control.h: Likewise.
61054         * lib/unictype/pr_left_of_pair.h: Likewise.
61055         * lib/unictype/pr_line_separator.h: Likewise.
61056         * lib/unictype/pr_logical_order_exception.h: Likewise.
61057         * lib/unictype/pr_non_break.h: Likewise.
61058         * lib/unictype/pr_not_a_character.h: Likewise.
61059         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61060         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61061         * lib/unictype/pr_other_id_start.h: Likewise.
61062         * lib/unictype/pr_other_lowercase.h: Likewise.
61063         * lib/unictype/pr_other_uppercase.h: Likewise.
61064         * lib/unictype/pr_paired_punctuation.h: Likewise.
61065         * lib/unictype/pr_paragraph_separator.h: Likewise.
61066         * lib/unictype/pr_pattern_syntax.h: Likewise.
61067         * lib/unictype/pr_pattern_white_space.h: Likewise.
61068         * lib/unictype/pr_private_use.h: Likewise.
61069         * lib/unictype/pr_quotation_mark.h: Likewise.
61070         * lib/unictype/pr_radical.h: Likewise.
61071         * lib/unictype/pr_soft_dotted.h: Likewise.
61072         * lib/unictype/pr_space.h: Likewise.
61073         * lib/unictype/pr_titlecase.h: Likewise.
61074         * lib/unictype/pr_variation_selector.h: Likewise.
61075         * lib/unictype/pr_white_space.h: Likewise.
61076         * lib/unictype/pr_zero_width.h: Likewise.
61077         * lib/unictype/sy_c_ident.h: Likewise.
61078         * lib/unictype/sy_c_whitespace.h: Likewise.
61079         * lib/unictype/sy_java_whitespace.h: Likewise.
61080         * lib/uninorm/composition-table.gperf: Likewise.
61081         * lib/uninorm/decomposition-table1.h: Likewise.
61082         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61083         LB8.
61084         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61085         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61086         * modules/unictype/*: Bump version number of expected libunistring
61087         version.
61089 2011-01-09  Bruno Haible  <bruno@clisp.org>
61091         Update to Unicode 5.2.0.
61092         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61093         trailing whitespace removed.
61095 2011-01-09  Bruno Haible  <bruno@clisp.org>
61097         New Unicode character properties, from Unicode 5.2.0.
61098         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61099         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61100         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61101         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61102         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61103         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61104         uc_is_property_cased, uc_is_property_case_ignorable,
61105         uc_is_property_changes_when_lowercased,
61106         uc_is_property_changes_when_uppercased,
61107         uc_is_property_changes_when_titlecased,
61108         uc_is_property_changes_when_casefolded,
61109         uc_is_property_changes_when_casemapped): New declarations.
61110         * lib/unictype/pr_byname.gperf: Add the new properties.
61111         * modules/unictype/property-byname (Depends-on): Depend on the new
61112         properties modules.
61113         * modules/unictype/property-all (Depends-on): Likewise.
61114         * MODULES.html.sh (Unicode string functions): Add
61115         unictype/property-case-ignorable, unictype/property-cased,
61116         unictype/property-changes-when-casefolded,
61117         unictype/property-changes-when-casemapped,
61118         unictype/property-changes-when-lowercased,
61119         unictype/property-changes-when-titlecased,
61120         unictype/property-changes-when-uppercased.
61122         New module 'unictype/property-changes-when-casemapped'.
61123         * modules/unictype/property-changes-when-casemapped: New file.
61124         * lib/unictype/pr_changes_when_casemapped.c: New file.
61125         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61126         generated by gen-uni-tables.
61127         * modules/unictype/property-changes-when-casemapped-tests: New file.
61128         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61129         automatically generated by gen-uni-tables.
61131         New module 'unictype/property-changes-when-casefolded'.
61132         * modules/unictype/property-changes-when-casefolded: New file.
61133         * lib/unictype/pr_changes_when_casefolded.c: New file.
61134         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61135         generated by gen-uni-tables.
61136         * modules/unictype/property-changes-when-casefolded-tests: New file.
61137         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61138         automatically generated by gen-uni-tables.
61140         New module 'unictype/property-changes-when-titlecased'.
61141         * modules/unictype/property-changes-when-titlecased: New file.
61142         * lib/unictype/pr_changes_when_titlecased.c: New file.
61143         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61144         generated by gen-uni-tables.
61145         * modules/unictype/property-changes-when-titlecased-tests: New file.
61146         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61147         automatically generated by gen-uni-tables.
61149         New module 'unictype/property-changes-when-uppercased'.
61150         * modules/unictype/property-changes-when-uppercased: New file.
61151         * lib/unictype/pr_changes_when_uppercased.c: New file.
61152         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61153         generated by gen-uni-tables.
61154         * modules/unictype/property-changes-when-uppercased-tests: New file.
61155         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61156         automatically generated by gen-uni-tables.
61158         New module 'unictype/property-changes-when-lowercased'.
61159         * modules/unictype/property-changes-when-lowercased: New file.
61160         * lib/unictype/pr_changes_when_lowercased.c: New file.
61161         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61162         generated by gen-uni-tables.
61163         * modules/unictype/property-changes-when-lowercased-tests: New file.
61164         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61165         automatically generated by gen-uni-tables.
61167         New module 'unictype/property-case-ignorable'.
61168         * modules/unictype/property-case-ignorable: New file.
61169         * lib/unictype/pr_case_ignorable.c: New file.
61170         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61171         by gen-uni-tables.
61172         * modules/unictype/property-case-ignorable-tests: New file.
61173         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61174         generated by gen-uni-tables.
61176         New module 'unictype/property-cased'.
61177         * modules/unictype/property-cased: New file.
61178         * lib/unictype/pr_cased.c: New file.
61179         * lib/unictype/pr_cased.h: New file, automatically generated by
61180         gen-uni-tables.
61181         * modules/unictype/property-cased-tests: New file.
61182         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61183         gen-uni-tables.
61185 2011-01-09  Bruno Haible  <bruno@clisp.org>
61187         Update to Unicode 5.2.0.
61188         * lib/gen-uni-tables.c (output_predicate, output_category,
61189         output_combclass, output_bidi_category, output_decimal_digit_test,
61190         output_decimal_digit, output_digit_test, output_digit,
61191         output_numeric_test, output_numeric, output_mirror, output_scripts,
61192         output_scripts_byname, output_blocks, output_ident_category): Fix
61193         comment header.
61194         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61195         get_wbp.
61196         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61197         items.
61198         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61199         Changes_When_Lowercased, Changes_When_Uppercased,
61200         Changes_When_Titlecased, Changes_When_Casefolded,
61201         Changes_When_Casemapped.
61202         (is_property_alphabetic, is_property_default_ignorable_code_point):
61203         Update for Unicode 5.2.0.
61204         (is_property_cased, is_property_case_ignorable,
61205         is_property_changes_when_lowercased,
61206         is_property_changes_when_uppercased,
61207         is_property_changes_when_titlecased,
61208         is_property_changes_when_casefolded,
61209         is_property_changes_when_casemapped): New functions.
61210         (output_properties): Output also the properties cased, case_ignorable,
61211         changes_when_lowercased, changes_when_uppercased,
61212         changes_when_titlecased, changes_when_casefolded,
61213         changes_when_casemapped.
61214         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61215         Unicode TR#11 revision 17 -> 19.
61216         (LBP_CP): New enumeration value.
61217         (LBP_*): Adjust values accordingly.
61218         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61219         TR#14 revision 22 -> 24.
61220         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61221         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61222         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61223         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61224         is_WBP_MIDLETTER.
61225         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61226         the code1 and code2 of each composition rule.
61227         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61228         * lib/unicase/ignorable.h: Likewise.
61229         * lib/unicase/tocasefold.h: Likewise.
61230         * lib/unicase/tolower.h: Likewise.
61231         * lib/unicase/totitle.h: Likewise.
61232         * lib/unicase/toupper.h: Likewise.
61233         * lib/unictype/bidi_of.h: Likewise.
61234         * lib/unictype/blocks.h: Likewise.
61235         * lib/unictype/categ_C.h: Likewise.
61236         * lib/unictype/categ_Cf.h: Likewise.
61237         * lib/unictype/categ_Cn.h: Likewise.
61238         * lib/unictype/categ_L.h: Likewise.
61239         * lib/unictype/categ_Ll.h: Likewise.
61240         * lib/unictype/categ_Lm.h: Likewise.
61241         * lib/unictype/categ_Lo.h: Likewise.
61242         * lib/unictype/categ_Lu.h: Likewise.
61243         * lib/unictype/categ_M.h: Likewise.
61244         * lib/unictype/categ_Mc.h: Likewise.
61245         * lib/unictype/categ_Mn.h: Likewise.
61246         * lib/unictype/categ_N.h: Likewise.
61247         * lib/unictype/categ_Nd.h: Likewise.
61248         * lib/unictype/categ_Nl.h: Likewise.
61249         * lib/unictype/categ_No.h: Likewise.
61250         * lib/unictype/categ_P.h: Likewise.
61251         * lib/unictype/categ_Pd.h: Likewise.
61252         * lib/unictype/categ_Po.h: Likewise.
61253         * lib/unictype/categ_S.h: Likewise.
61254         * lib/unictype/categ_Sc.h: Likewise.
61255         * lib/unictype/categ_So.h: Likewise.
61256         * lib/unictype/categ_of.h: Likewise.
61257         * lib/unictype/combining.h: Likewise.
61258         * lib/unictype/ctype_alnum.h: Likewise.
61259         * lib/unictype/ctype_alpha.h: Likewise.
61260         * lib/unictype/ctype_graph.h: Likewise.
61261         * lib/unictype/ctype_lower.h: Likewise.
61262         * lib/unictype/ctype_print.h: Likewise.
61263         * lib/unictype/ctype_punct.h: Likewise.
61264         * lib/unictype/ctype_upper.h: Likewise.
61265         * lib/unictype/decdigit.h: Likewise.
61266         * lib/unictype/digit.h: Likewise.
61267         * lib/unictype/numeric.h: Likewise.
61268         * lib/unictype/pr_alphabetic.h: Likewise.
61269         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61270         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61271         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61272         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61273         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61274         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61275         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61276         * lib/unictype/pr_combining.h: Likewise.
61277         * lib/unictype/pr_composite.h: Likewise.
61278         * lib/unictype/pr_currency_symbol.h: Likewise.
61279         * lib/unictype/pr_dash.h: Likewise.
61280         * lib/unictype/pr_decimal_digit.h: Likewise.
61281         * lib/unictype/pr_deprecated.h: Likewise.
61282         * lib/unictype/pr_diacritic.h: Likewise.
61283         * lib/unictype/pr_extender.h: Likewise.
61284         * lib/unictype/pr_grapheme_base.h: Likewise.
61285         * lib/unictype/pr_grapheme_extend.h: Likewise.
61286         * lib/unictype/pr_grapheme_link.h: Likewise.
61287         * lib/unictype/pr_id_continue.h: Likewise.
61288         * lib/unictype/pr_id_start.h: Likewise.
61289         * lib/unictype/pr_ideographic.h: Likewise.
61290         * lib/unictype/pr_ignorable_control.h: Likewise.
61291         * lib/unictype/pr_logical_order_exception.h: Likewise.
61292         * lib/unictype/pr_lowercase.h: Likewise.
61293         * lib/unictype/pr_numeric.h: Likewise.
61294         * lib/unictype/pr_other_alphabetic.h: Likewise.
61295         * lib/unictype/pr_punctuation.h: Likewise.
61296         * lib/unictype/pr_sentence_terminal.h: Likewise.
61297         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61298         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61299         * lib/unictype/pr_unified_ideograph.h: Likewise.
61300         * lib/unictype/pr_uppercase.h: Likewise.
61301         * lib/unictype/pr_xid_continue.h: Likewise.
61302         * lib/unictype/pr_xid_start.h: Likewise.
61303         * lib/unictype/pr_zero_width.h: Likewise.
61304         * lib/unictype/scripts.h: Likewise.
61305         * lib/unictype/scripts_byname.gperf: Likewise.
61306         * lib/unictype/sy_java_ident.h: Likewise.
61307         * lib/unigbrk/gbrkprop.h: Likewise.
61308         * lib/unilbrk/lbrkprop1.h: Likewise.
61309         * lib/unilbrk/lbrkprop2.h: Likewise.
61310         * lib/unilbrk/lbrktables.h: Likewise.
61311         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61312         LBP_CP. Implement rule LB30.
61313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61314         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61315         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61316         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61317         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61318         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61319         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61320         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61321         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61322         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61323         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61324         bits instead of 16 bits in the code1 and code2 of each composition
61325         rule.
61326         (uc_composition): Update for Unicode 5.2.0.
61327         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61328         * lib/uninorm/decomposition-table2.h: Likewise.
61329         * lib/uniwbrk/wbrkprop.h: Likewise.
61330         * tests/unicase/test-cased.c: Likewise.
61331         * tests/unicase/test-ignorable.c: Likewise.
61332         * tests/unicase/test-uc_tolower.c: Likewise.
61333         * tests/unicase/test-uc_totitle.c: Likewise.
61334         * tests/unicase/test-uc_toupper.c: Likewise.
61335         * tests/unictype/test-categ_C.c: Likewise.
61336         * tests/unictype/test-categ_Cf.c: Likewise.
61337         * tests/unictype/test-categ_Cn.c: Likewise.
61338         * tests/unictype/test-categ_L.c: Likewise.
61339         * tests/unictype/test-categ_Ll.c: Likewise.
61340         * tests/unictype/test-categ_Lm.c: Likewise.
61341         * tests/unictype/test-categ_Lo.c: Likewise.
61342         * tests/unictype/test-categ_Lu.c: Likewise.
61343         * tests/unictype/test-categ_M.c: Likewise.
61344         * tests/unictype/test-categ_Mc.c: Likewise.
61345         * tests/unictype/test-categ_Mn.c: Likewise.
61346         * tests/unictype/test-categ_N.c: Likewise.
61347         * tests/unictype/test-categ_Nd.c: Likewise.
61348         * tests/unictype/test-categ_Nl.c: Likewise.
61349         * tests/unictype/test-categ_No.c: Likewise.
61350         * tests/unictype/test-categ_P.c: Likewise.
61351         * tests/unictype/test-categ_Pd.c: Likewise.
61352         * tests/unictype/test-categ_Po.c: Likewise.
61353         * tests/unictype/test-categ_S.c: Likewise.
61354         * tests/unictype/test-categ_Sc.c: Likewise.
61355         * tests/unictype/test-categ_So.c: Likewise.
61356         * tests/unictype/test-ctype_alnum.c: Likewise.
61357         * tests/unictype/test-ctype_alpha.c: Likewise.
61358         * tests/unictype/test-ctype_graph.c: Likewise.
61359         * tests/unictype/test-ctype_lower.c: Likewise.
61360         * tests/unictype/test-ctype_print.c: Likewise.
61361         * tests/unictype/test-ctype_punct.c: Likewise.
61362         * tests/unictype/test-ctype_upper.c: Likewise.
61363         * tests/unictype/test-decdigit.h: Likewise.
61364         * tests/unictype/test-digit.h: Likewise.
61365         * tests/unictype/test-numeric.h: Likewise.
61366         * tests/unictype/test-pr_alphabetic.c: Likewise.
61367         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61368         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61369         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61370         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61371         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61372         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61373         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61374         * tests/unictype/test-pr_combining.c: Likewise.
61375         * tests/unictype/test-pr_composite.c: Likewise.
61376         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61377         * tests/unictype/test-pr_dash.c: Likewise.
61378         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61379         * tests/unictype/test-pr_deprecated.c: Likewise.
61380         * tests/unictype/test-pr_diacritic.c: Likewise.
61381         * tests/unictype/test-pr_extender.c: Likewise.
61382         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61383         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61384         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61385         * tests/unictype/test-pr_id_continue.c: Likewise.
61386         * tests/unictype/test-pr_id_start.c: Likewise.
61387         * tests/unictype/test-pr_ideographic.c: Likewise.
61388         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61389         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61390         * tests/unictype/test-pr_lowercase.c: Likewise.
61391         * tests/unictype/test-pr_numeric.c: Likewise.
61392         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61393         * tests/unictype/test-pr_punctuation.c: Likewise.
61394         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61395         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61396         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61397         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61398         * tests/unictype/test-pr_uppercase.c: Likewise.
61399         * tests/unictype/test-pr_xid_continue.c: Likewise.
61400         * tests/unictype/test-pr_xid_start.c: Likewise.
61401         * tests/unictype/test-pr_zero_width.c: Likewise.
61402         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61403         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61404         changed behaviour: line breaking is now disallowed between a letter
61405         or '=' and '('.
61406         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61407         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61408         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61409         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61410         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61411         lib/uniwidth/width.c.
61412         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61413         without comments, but with the original copyright notice.
61414         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61415         changes.
61416         * lib/unictype/categ_Cc.h: Likewise.
61417         * lib/unictype/categ_Co.h: Likewise.
61418         * lib/unictype/categ_Cs.h: Likewise.
61419         * lib/unictype/categ_Lt.h: Likewise.
61420         * lib/unictype/categ_Me.h: Likewise.
61421         * lib/unictype/categ_Pc.h: Likewise.
61422         * lib/unictype/categ_Pe.h: Likewise.
61423         * lib/unictype/categ_Pf.h: Likewise.
61424         * lib/unictype/categ_Pi.h: Likewise.
61425         * lib/unictype/categ_Ps.h: Likewise.
61426         * lib/unictype/categ_Sk.h: Likewise.
61427         * lib/unictype/categ_Sm.h: Likewise.
61428         * lib/unictype/categ_Z.h: Likewise.
61429         * lib/unictype/categ_Zl.h: Likewise.
61430         * lib/unictype/categ_Zp.h: Likewise.
61431         * lib/unictype/categ_Zs.h: Likewise.
61432         * lib/unictype/ctype_blank.h: Likewise.
61433         * lib/unictype/ctype_cntrl.h: Likewise.
61434         * lib/unictype/ctype_digit.h: Likewise.
61435         * lib/unictype/ctype_space.h: Likewise.
61436         * lib/unictype/ctype_xdigit.h: Likewise.
61437         * lib/unictype/mirror.h: Likewise.
61438         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61439         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61440         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61441         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61442         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61443         * lib/unictype/pr_bidi_control.h: Likewise.
61444         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61445         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61446         * lib/unictype/pr_bidi_pdf.h: Likewise.
61447         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61448         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61449         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61450         * lib/unictype/pr_format_control.h: Likewise.
61451         * lib/unictype/pr_hex_digit.h: Likewise.
61452         * lib/unictype/pr_hyphen.h: Likewise.
61453         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61454         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61455         * lib/unictype/pr_iso_control.h: Likewise.
61456         * lib/unictype/pr_join_control.h: Likewise.
61457         * lib/unictype/pr_left_of_pair.h: Likewise.
61458         * lib/unictype/pr_line_separator.h: Likewise.
61459         * lib/unictype/pr_math.h: Likewise.
61460         * lib/unictype/pr_non_break.h: Likewise.
61461         * lib/unictype/pr_not_a_character.h: Likewise.
61462         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61463         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61464         * lib/unictype/pr_other_id_continue.h: Likewise.
61465         * lib/unictype/pr_other_id_start.h: Likewise.
61466         * lib/unictype/pr_other_lowercase.h: Likewise.
61467         * lib/unictype/pr_other_math.h: Likewise.
61468         * lib/unictype/pr_other_uppercase.h: Likewise.
61469         * lib/unictype/pr_paired_punctuation.h: Likewise.
61470         * lib/unictype/pr_paragraph_separator.h: Likewise.
61471         * lib/unictype/pr_pattern_syntax.h: Likewise.
61472         * lib/unictype/pr_pattern_white_space.h: Likewise.
61473         * lib/unictype/pr_private_use.h: Likewise.
61474         * lib/unictype/pr_quotation_mark.h: Likewise.
61475         * lib/unictype/pr_radical.h: Likewise.
61476         * lib/unictype/pr_soft_dotted.h: Likewise.
61477         * lib/unictype/pr_space.h: Likewise.
61478         * lib/unictype/pr_titlecase.h: Likewise.
61479         * lib/unictype/pr_variation_selector.h: Likewise.
61480         * lib/unictype/pr_white_space.h: Likewise.
61481         * lib/unictype/sy_c_ident.h: Likewise.
61482         * lib/unictype/sy_c_whitespace.h: Likewise.
61483         * lib/unictype/sy_java_whitespace.h: Likewise.
61484         * modules/uni*/*: Bump version number of expected libunistring version.
61485         Reported by Simon Josefsson.
61487 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61489         useless-if-before-free: fix typo in --help and make the internal,
61490         automatic version date update process work once again.
61491         --help output contained a NUL character instead of the
61492         backslash-zero that was intended.  Also, the "must lie within
61493         the first 8 lines" line is on line 9, and hence not getting
61494         automatically updated.
61495         * build-aux/useless-if-before-free: Fix the former by adding a
61496         backslash, and the latter by condensing the three lines of what-it-does
61497         to a single line, leaving one line of slack for the future.
61499 2011-01-09  Bruno Haible  <bruno@clisp.org>
61501         uniwidth/width: Fix width of U+1D173..U+1D17A.
61502         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61503         symbolic_width, output_width_property_test): New functions.
61504         (main): Invoke output_nonspacing_property, output_width_property_test.
61505         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61506         U+1D173..U+1D17A.
61507         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61508         1.
61509         * modules/uniwidth/*: Bump version number of expected libunistring
61510         version.
61511         * modules/unilbrk/*: Likewise.
61513 2011-01-08  Bruno Haible  <bruno@clisp.org>
61515         uninorm tests: Preserve copyright of Unicode data file.
61516         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
61517         Mention modifications.
61519 2011-01-08  Bruno Haible  <bruno@clisp.org>
61521         gen-uni-tables: Prepare for Unicode 5.2.0.
61522         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
61523         (debug_output_lbp, output_lbp): Update.
61525 2011-01-08  Bruno Haible  <bruno@clisp.org>
61527         unilbrk: Clarify gen-uni-tables.c code.
61528         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
61529         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
61530         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
61532 2011-01-07  Bruno Haible  <bruno@clisp.org>
61534         strtod: Restore errno when successfully parsing Infinity or NaN.
61535         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
61536         restore the original errno.
61538 2011-01-07  Bruno Haible  <bruno@clisp.org>
61540         remove test: Avoid failure on HP-UX 11.
61541         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
61543 2011-01-07  Bruno Haible  <bruno@clisp.org>
61545         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
61546         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
61547         error code.
61549 2011-01-07  Pádraig Brady  <P@draigBrady.com>
61551         ignore-value: fixup comments, and add Eric Blake
61552         as an author since he rewrote the macros.
61553         * lib/ignore-value.h (ignore_value):  State that
61554         we now support aggregates.  Also specify exactly
61555         when the GCC warn_unused_result feature was added.
61557 2011-01-06  Eric Blake  <eblake@redhat.com>
61559         ignore-value: support aggregate types
61560         * lib/ignore-value.h (ignore_value): Provide separate gcc
61561         definition.
61562         * modules/ignore-value-tests: New test module.
61563         * tests/test-ignore-value.c: New test.
61565         maint.mk: improve sc_prohibit_strcmp regex
61566         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
61567         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
61568         definition of STRNEQ.
61570         signal: work around Haiku issue with SIGBUS
61571         * lib/siglist.h: Add comment.
61572         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
61573         strsignal's favoring of SIGSEGV.
61574         * tests/test-signal.c (main): Avoid test failure.
61575         * doc/posix-headers/signal.texi (signal.h): Document the issue.
61576         Reported by Scott McCreary.
61578         maint.mk: add pre-release check to ensure submodule commits are public
61579         * top/maint.mk (public-submodule-commit): New rule.
61580         (submodule-checks): New variable.
61581         (alpha beta stable): Depend on the variable.
61583 2011-01-05  Pádraig Brady  <P@draigBrady.com>
61584         and Jim Meyering  <meyering@redhat.com>
61586         ignore-value: make ignore_value more generic; deprecate ignore_ptr
61587         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
61588         (ATTRIBUTE_DEPRECATED): Define.
61589         (_ignore_case): New function.
61590         (ignore_value): New macro, to replace the old function.
61591         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61592         * modules/ignore-value (Depends-on): Add stdint.
61594 2011-01-04  Eric Blake  <eblake@redhat.com>
61596         doc: regenerate INSTALL
61597         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61598         @firstparagraphindent support, now that autoconf dropped it.
61599         (INSTALL_PRELUDE): Reinstate old macro.
61600         * doc/install.texi: Resync from autoconf.
61601         * doc/INSTALL: Reflect recent autoconf update.
61602         * doc/INSTALL.ISO: Likewise.
61603         * doc/INSTALL.UTF-8: Likewise.
61604         Reported by Karl Berry.
61606 2011-01-04  Bruce Korb  <address@hidden>
61608         git-version-gen: avoid a sub-shell
61609         * build-aux/git-version-gen: Redirect stderr in `...` via
61610         "exec 2>...", rather than via an added sub-shell.
61612 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61614         git-version-gen: use (...) rather than sh -c '...'
61615         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61616         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61618 2011-01-03  Jim Meyering  <meyering@redhat.com>
61620         git-version-gen: convert leading TABs to spaces
61621         * build-aux/git-version-gen: Expand leading TABs.
61623         git-version-gen: handle failed "git rev-list"
61624         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61625         from git and proceeding as if it had succeeded but printed no SHA1
61626         checksums, suppress the diagnostic and handle the failure.
61627         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61629         git-version-gen: include command name in one more diagnostic
61630         * build-aux/git-version-gen: When the required .tarball-version file
61631         was missing or unreadable, you might see the diagnostic from "cat",
61632         but no trace of the name of the invoking script.  Now, you still see
61633         the diagnostic from cat, but also get one from "git-version-gen: ".
61634         Inspired by a patch from Bruce Korb.
61636         update-copyright: adjust test to match changed code
61637         * tests/test-update-copyright.sh: Change test's expected output
61638         to match new actual output.
61640 2011-01-02  Bruno Haible  <bruno@clisp.org>
61642         getlogin_r: Avoid test failure on HP-UX 11.
61643         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61644         ERANGE when the second argument is zero.
61645         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61646         portability problem.
61648 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61650         * build-aux/update-copyright: doc Simon's changes
61652 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61654         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61655         environment variable.
61657 2011-01-02  Bruno Haible  <bruno@clisp.org>
61659         unigbrk: Avoid gcc warnings.
61660         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61661         unused variable.
61662         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61663         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61664         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61665         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61666         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61667         Change type of first argument to 'const char *'.
61668         (main): Remove unused variable.
61669         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61670         type of first argument to 'const char *'.
61671         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61672         Likewise.
61673         (main): Change type of variable 's'.
61674         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61675         to 'int'.
61677 2011-01-02  Bruno Haible  <bruno@clisp.org>
61679         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61680         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61681         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61682         bug.
61683         * lib/pwrite.c: Undo 2010-12-31 patch.
61684         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61686 2011-01-02  Bruno Haible  <bruno@clisp.org>
61688         pread: Fix test whether it works.
61689         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61691 2011-01-02  Bruno Haible  <bruno@clisp.org>
61693         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61694         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61695         ends in "6". Don't require a specific month name. Try also the locale
61696         names found on HP-UX 11 and Solaris 7.
61698 2011-01-02  Bruno Haible  <bruno@clisp.org>
61700         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61701         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61702         C linkage.
61703         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61705 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61707         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61708         for consistency, since the "cluster" term is not used elsewhere.
61709         * lib/unigbrk.in.h: Update name.
61710         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61711         * lib/unigbrk/u16-grapheme-next.c: Update name.
61712         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61713         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61714         * lib/unigbrk/u32-grapheme-next.c: Update name.
61715         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61716         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61717         * lib/unigbrk/u8-grapheme-next.c: Update name.
61718         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61719         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61720         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61721         Suggested by Bruno Haible.
61723 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61725         Remove module 'u8-grapheme-len' as too redundant with
61726         'u8-grapheme-next'.
61727         * modules/unigbrk/u8-grapheme-len: Delete file.
61728         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61729         * lib/unigbrk.in.h: Remove prototype for deleted function.
61730         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61731         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61733         Remove module 'u16-grapheme-len' as too redundant with
61734         'u16-grapheme-next'.
61735         * modules/unigbrk/u16-grapheme-len: Delete file.
61736         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61737         * lib/unigbrk.in.h: Remove prototype for deleted function.
61738         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61739         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61741         Remove module 'u32-grapheme-len' as too redundant with
61742         'u32-grapheme-next'.
61743         * modules/unigbrk/u32-grapheme-len: Delete file.
61744         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61745         * lib/unigbrk.in.h: Remove prototype for deleted function.
61746         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61747         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61749         Suggested by Bruno Haible.
61751 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61753         * unigbrk.in.h: Fix typo: "ben" => "been".
61754         Reported by Bruno Haible.
61756 2011-01-01  Jim Meyering  <meyering@redhat.com>
61758         maint: update almost all copyright ranges to include 2011
61759         Run the new "make update-copyright" rule.
61761 2011-01-01  Jim Meyering  <meyering@redhat.com>
61763         maint: update-copyright: exempt doc/INSTALL*
61764         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61765         since they are generated.  Suggested by Bruno Haible.
61767 2011-01-01  Jim Meyering  <meyering@redhat.com>
61769         maint: refine the update-copyright rule
61770         * Makefile (update-copyright): Also exclude any file that includes
61771         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61772         code that merely generates the comment.
61774 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61776         New module 'u8-grapheme-len'.
61777         * modules/unigbrk/u8-grapheme-len: New file.
61778         * modules/unigbrk/u8-grapheme-len-tests: New file.
61779         * lib/unigbrk.in.h: Add prototype for new function.
61780         * lib/unigbrk/u8-grapheme-len.c: New file.
61781         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61783         New module 'u16-grapheme-len'.
61784         * modules/unigbrk/u16-grapheme-len: New file.
61785         * modules/unigbrk/u16-grapheme-len-tests: New file.
61786         * lib/unigbrk.in.h: Add prototype for new function.
61787         * lib/unigbrk/u16-grapheme-len.c: New file.
61788         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61790         New module 'u32-grapheme-len'.
61791         * modules/unigbrk/u32-grapheme-len: New file.
61792         * modules/unigbrk/u32-grapheme-len-tests: New file.
61793         * lib/unigbrk.in.h: Add prototype for new function.
61794         * lib/unigbrk/u32-grapheme-len.c: New file.
61795         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61797         New module 'u8-grapheme-next'.
61798         * modules/unigbrk/u8-grapheme-next: New file.
61799         * modules/unigbrk/u8-grapheme-next-tests: New file.
61800         * lib/unigbrk.in.h: Add prototype for new function.
61801         * lib/unigbrk/u8-grapheme-next.c: New file.
61802         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61804         New module 'u16-grapheme-next'.
61805         * modules/unigbrk/u16-grapheme-next: New file.
61806         * modules/unigbrk/u16-grapheme-next-tests: New file.
61807         * lib/unigbrk.in.h: Add prototype for new function.
61808         * lib/unigbrk/u16-grapheme-next.c: New file.
61809         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61811         New module 'u32-grapheme-next'.
61812         * modules/unigbrk/u32-grapheme-next: New file.
61813         * modules/unigbrk/u32-grapheme-next-tests: New file.
61814         * lib/unigbrk.in.h: Add prototype for new function.
61815         * lib/unigbrk/u32-grapheme-next.c: New file.
61816         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61818         New module 'u8-grapheme-prev'.
61819         * modules/unigbrk/u8-grapheme-prev: New file.
61820         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61821         * lib/unigbrk.in.h: Add prototype for new function.
61822         * lib/unigbrk/u8-grapheme-prev.c: New file.
61823         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61825         New module 'u16-grapheme-prev'.
61826         * modules/unigbrk/u16-grapheme-prev: New file.
61827         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61828         * lib/unigbrk.in.h: Add prototype for new function.
61829         * lib/unigbrk/u16-grapheme-prev.c: New file.
61830         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61832         New module 'u32-grapheme-prev'.
61833         * modules/unigbrk/u32-grapheme-prev: New file.
61834         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61835         * lib/unigbrk.in.h: Add prototype for new function.
61836         * lib/unigbrk/u32-grapheme-prev.c: New file.
61837         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61839         New module 'u8-grapheme-breaks'.
61840         * modules/unigbrk/u8-grapheme-breaks: New file.
61841         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61842         * lib/unigbrk.in.h: Add prototype for new function.
61843         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61844         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61846         New module 'u16-grapheme-breaks'.
61847         * modules/unigbrk/u16-grapheme-breaks: New file.
61848         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61849         * lib/unigbrk.in.h: Add prototype for new function.
61850         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61851         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61853         New module 'u32-grapheme-breaks'.
61854         * modules/unigbrk/u32-grapheme-breaks: New file.
61855         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61856         * lib/unigbrk.in.h: Add prototype for new function.
61857         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61858         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61860         New module 'ulc-grapheme-breaks'.
61861         * modules/unigbrk/ulc-grapheme-breaks: New file.
61862         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61863         * m4/locale-ar.m4: New file.
61864         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61865         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61866         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61868 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61870         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61871         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61872         modified how this file was generated before I initially submitted
61873         the module, but failed to regenerate it.  This meant that several
61874         of the level2 entries were wrong.
61875         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61876         Remove the division-by-2 that is folded into the table now that
61877         gbrkprop.h has been regenerated properly.  Now -1 entries are
61878         handled correctly.
61880         New module 'unigbrk/uc-gbrk-prop-tests'.
61881         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61882         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61883         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61884         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61886 2011-01-01  Bruno Haible  <bruno@clisp.org>
61888         Avoid use of hexadecimal escapes.
61889         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61890         instead of hexadecimal escapes.
61892 2011-01-01  Jim Meyering  <meyering@redhat.com>
61894         maint: new rule to update copyright year ranges
61895         * Makefile (update-copyright): New rule.
61897         maint: indent with TABs in Makefile
61898         * Makefile: Expand leading sequences of spaces to TABs
61900         version-etc: update the copyright year it reports
61901         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61903 2010-12-31  Bruno Haible  <bruno@clisp.org>
61905         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61906         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61907         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61908         zero.
61910 2010-12-31  Bruno Haible  <bruno@clisp.org>
61912         pwrite: Work around HP-UX 11.11 bug.
61913         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61914         works and set REPLACE_PWRITE if not.
61915         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61916         function.
61917         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61919 2010-12-31  Bruno Haible  <bruno@clisp.org>
61921         pread: Work around HP-UX 11 bugs.
61922         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61923         and set REPLACE_PREAD if not.
61924         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61926 2010-12-31  Eric Blake  <eblake@redhat.com>
61928         nl_langinfo: fix YESEXPR on Irix 6.5
61929         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61930         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61931         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61932         it.
61934 2010-12-31  Bruno Haible  <bruno@clisp.org>
61936         iconv: Document HP-UX 11 bug.
61937         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
61939 2010-12-31  Bruno Haible  <bruno@clisp.org>
61941         ldexpl: Fix link error on HP-UX 11.
61942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
61943         LDEXPL_LIBM, using $ISNANL_LIBM.
61945 2010-12-31  Eric Blake  <eblake@redhat.com>
61947         ftello: avoid compilation failure with SunStudio c89
61948         * lib/ftello.c (ftello): Use lseek, not llseek.
61950         tests: avoid failing coreutils tests on cygwin
61951         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61952         (create_exe_shims_): Return 0 when skipping.
61954 2010-12-31  Bruno Haible  <bruno@clisp.org>
61956         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61957         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61959 2010-12-31  Bruno Haible  <bruno@clisp.org>
61961         waitpid: Fix link error in C++ mode.
61962         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61964 2010-12-31  Bruno Haible  <bruno@clisp.org>
61966         isnan: Use GCC built-ins when possible.
61967         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61968         __builtin_isnan.
61969         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61970         (isnan): Define using GCC built-ins for GCC >= 4.0.
61972 2010-12-31  Bruno Haible  <bruno@clisp.org>
61974         isnand: Fix mistake.
61975         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61976         __builtin_isnand.
61978 2010-12-31  Bruno Haible  <bruno@clisp.org>
61980         open: Avoid C++ error on HP-UX 11.
61981         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61983 2010-12-31  Bruno Haible  <bruno@clisp.org>
61985         time_r: Add missing declarations on HP-UX 11.
61986         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61987         instead of HAVE_LOCALTIME_R.
61988         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61989         HAVE_LOCALTIME_R always.
61990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61991         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61992         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61993         HAVE_LOCALTIME_R.
61994         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61995         * doc/posix-functions/localtime_r.texi: Likewise.
61997 2010-12-29  Eric Blake  <eblake@redhat.com>
61999         mountlist: tweak previous commit
62000         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62001         Reported by Paul Eggert.
62003         mountlist: fix local drive detection on cygwin
62004         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62005         that works for cygwin.
62007 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62009         ftoastr, snprintf: ftoastr + snprintf module
62010         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62011         since the snprintf module now should be good enough here.
62012         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62013         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62014         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62015         GNULIB_SNPRINTF only for the test directory, and the latter
62016         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62017         seems to suffice by itself.
62019 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62021         alloca: one step towards thread-safety
62022         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62023         need for a static variable.  All callers changed.  This does not
62024         make the alloca replacement thread-safe, but it's one step.
62026         tests: minor indenting change
62027         * tests/init.sh: Sync from coreutils housekeeping patch
62028         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62029         to keep lines within 80 columns.
62031 2010-12-28  Jim Meyering  <meyering@redhat.com>
62033         regex: don't infloop on persistent failing calloc
62034         * lib/regexec.c (build_trtable): Return failure indication upon
62035         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62036         In glibc, this was fixed for version 2.13:
62037         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62039 2010-12-28  Bruno Haible  <bruno@clisp.org>
62040             Paul Eggert <eggert@cs.ucla.edu>
62042         linkat: Make implementation robust against system behaviour variations.
62043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62044         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62045         way, and to -2 if it needs a generic runtime test.
62046         * lib/linkat.c (solaris_optimized_link_immediate,
62047         solaris_optimized_link_follow): New functions.
62048         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62049         (check_same_link): Use it.
62051 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62053         New module 'unigbrk/base'.
62054         * modules/unigbrk/base: New file.
62055         * lib/unigbrk.in.h: New file.
62057         New module 'unigbrk/uc-gbrk-prop'.
62058         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62059         * modules/unigbrk/uc-gbrk-prop: New file.
62060         * lib/unigbrk/gbrkprop.h: New file.
62061         * lib/unigbrk/uc-gbrk-prop.c: New file.
62063         New module 'unigbrk/uc-is-grapheme-break'.
62064         * modules/unigbrk/uc-is-grapheme-break: New file.
62065         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62066         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62067         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62068         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62069         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62071         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62073 2010-12-27  Bruno Haible  <bruno@clisp.org>
62075         linkat test: Avoid failure on Solaris 11 2010-11.
62076         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62078 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62080         utimens: work around glibc rounding bug on more platforms
62081         * lib/utimens.c (fdutimens): Work around rounding bug even if
62082         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62083         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62085 2010-12-27  Bruno Haible  <bruno@clisp.org>
62087         select tests: Improve comments.
62088         * tests/test-select.c (do_select): Add comments.
62090 2010-12-27  Bruno Haible  <bruno@clisp.org>
62092         select tests: Safer way of handling timeout.
62093         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62094         at every invocation.
62096 2010-12-27  Bruno Haible  <bruno@clisp.org>
62098         select tests: Use 'bool' where appropriate.
62099         * tests/test-select.c (connect_to_socket): Change argument type to
62100         'bool'.
62102 2010-12-27  Bruno Haible  <bruno@clisp.org>
62104         select tests: Use existing modules.
62105         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62106         (configure.ac): Don't test for unistd.h.
62107         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62108         declared in <unistd.h>.
62110 2010-12-27  Bruno Haible  <bruno@clisp.org>
62112         mbrtowc: Work around a Solaris 7 bug.
62113         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62114         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62115         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62116         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62117         MBRTOWC_NULL_ARG1_BUG.
62118         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62119         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62120         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62121         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62123 2010-12-27  Jim Meyering  <meyering@redhat.com>
62125         read-file.c: tweak syntax
62126         * lib/read-file.c (fread_file): Remove space after "*" in function
62127         definitions.
62129 2010-12-27  Bruno Haible  <bruno@clisp.org>
62131         times test: Avoid gcc warnings on OSF/1.
62132         * tests/test-times.c (main): Cast printf arguments from clock_t to
62133         'long int'.
62135 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62137         utimens: work around glibc rounding bug on older Linux kernels
62138         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62139         on Linux with a glibc whose utimes might not work, then work
62140         around a longstanding glibc bug involving rounding rather than
62141         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62142         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62144 2010-12-26  Bruno Haible  <bruno@clisp.org>
62146         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62147         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62148         _GL_CXXALIAS_SYS.
62149         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62151 2010-12-26  Bruno Haible  <bruno@clisp.org>
62153         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62154         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62155         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62156         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62157         looking for the declaration.
62158         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62159         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62160         problem.
62161         * doc/posix-functions/inet_pton.texi: Likewise.
62163 2010-12-26  Bruno Haible  <bruno@clisp.org>
62165         arpa_inet: Use the common idioms with C++ support.
62166         * lib/arpa_inet.in.h: Include c++defs.h.
62167         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62168         support.
62169         * modules/arpa_inet (Depends-on): Add c++defs.
62170         (Makefile.am): Substitute the contents of c++defs.h.
62171         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62172         * modules/arpa_inet-c++-tests: New file.
62173         * tests/test-arpa_inet-c++.cc: New file.
62175 2010-12-25  Bruno Haible  <bruno@clisp.org>
62177         Fix more C++ link errors on Solaris 8.
62178         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62179         $(LIB_EACCESS).
62180         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62181         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62182         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62183         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62184         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62186 2010-12-25  Bruno Haible  <bruno@clisp.org>
62188         printf-posix: Fix link error when a non-GCC compiler is used.
62189         * lib/stdio.in.h (printf): When not using GCC, override printf
62190         correctly.
62191         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62193 2010-12-25  Bruno Haible  <bruno@clisp.org>
62195         strerror_r-posix: Update doc.
62196         * doc/posix-functions/strerror_r.texi: Update doc about the return
62197         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62199 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62201         utimens: simplify the logic of the previous change
62202         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62203         This should not affect whether the test succeeds or fails.
62205         utimens: configure better on hosts with NFS clock skew
62206         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62207         uses the clock of the local host.  It might use the clock of the
62208         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62209         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62211 2010-12-25  Bruno Haible  <bruno@clisp.org>
62213         ptsname test: Avoid failure on Solaris.
62214         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62215         open a pseudo-terminal; don't use BSD-style ptys.
62216         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62218 2010-12-25  Bruno Haible  <bruno@clisp.org>
62220         ptsname: Avoid ERANGE failure on some systems.
62221         * lib/ptsname.c (buffer): Increase size.
62223 2010-12-25  Bruno Haible  <bruno@clisp.org>
62225         rename, renameat: Avoid test failures at NFS mounted locations.
62226         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62227         so that subsequent mkdir calls succeed.
62229 2010-12-25  Bruno Haible  <bruno@clisp.org>
62231         iswblank: Fix C++ link error on Solaris 8.
62232         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62233         _GL_FUNCDECL_SYS.
62235 2010-12-25  Bruno Haible  <bruno@clisp.org>
62237         unistd: Fix C++ link error on Solaris 8.
62238         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62240 2010-12-25  Bruno Haible  <bruno@clisp.org>
62242         readlink doc: Mention an old glibc bug.
62243         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62245 2010-12-25  Bruno Haible  <bruno@clisp.org>
62247         fcntl-h: Fix for use of C++ on glibc systems.
62248         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62249         also on glibc systems in C++ mode.
62250         Reported by Gary V. Vaughan <gary@gnu.org>.
62252 2010-12-25  Bruno Haible  <bruno@clisp.org>
62254         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62255         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62257 2010-12-25  Bruno Haible  <bruno@clisp.org>
62259         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62260         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62261         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62262         test whether truncl works according to ISO C 99 with IEC 60559.
62263         * m4/truncl-ieee.m4: New file.
62264         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62265         m4/signbit.m4.
62266         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62268 2010-12-25  Bruno Haible  <bruno@clisp.org>
62270         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62271         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62272         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62273         test whether ceill works according to ISO C 99 with IEC 60559.
62274         * m4/ceill-ieee.m4: New file.
62275         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62276         m4/signbit.m4.
62277         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62279 2010-12-25  Bruno Haible  <bruno@clisp.org>
62281         Ensure all prerequisites of <wchar.h> are included.
62282         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62283         before <wchar.h>.
62284         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62285         gl_MBRLEN_NUL_RETVAL): Likewise.
62286         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62287         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62288         AC_FUNC_MBRTOWC): Likewise.
62289         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62290         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62291         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62292         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62293         Likewise.
62294         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62295         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62296         (gl_WCHAR_H): Improve comments.
62297         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62299 2010-12-25  Bruno Haible  <bruno@clisp.org>
62301         strtok_r: Fix C syntax error in autoconf macro.
62302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62303         characters in test program.
62305 2010-12-24  Bruno Haible  <bruno@clisp.org>
62307         ceil, trunc, round: Fix gcc warnings.
62308         * lib/ceil.c (MIN): Undefine before redefining.
62309         * lib/trunc.c (MIN): Likewise.
62310         * lib/round.c (MIN): Likewise.
62311         Include <math.h> first.
62313 2010-12-24  Bruno Haible  <bruno@clisp.org>
62315         select tests: Avoid failures on OSF/1 5.1.
62316         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62317         failure of closing the last socket; it may fail with ECONNRESET.
62319 2010-12-24  Eric Blake  <eblake@redhat.com>
62321         stdint: avoid HP-UX 10.20 preprocessor bug
62322         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62323         than #if.
62324         * tests/test-floor2.c (main): Likewise.
62325         Reported by Peter O'Gorman.
62327         pipe: make obsoletion transition easier
62328         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62329         * modules/pipe (Files): Include revived file.
62330         (Include): Drop reference, to mirror getdate's behavior.
62332 2010-12-24  Bruno Haible  <bruno@clisp.org>
62334         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62335         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62336         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62337         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62339 2010-12-24  Bruno Haible  <bruno@clisp.org>
62341         gethostname: Ensure declaration on NonStop Kernel.
62342         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62345 2010-12-24  Bruno Haible  <bruno@clisp.org>
62347         sys_select: Ensure all necessary types on NonStop Kernel.
62348         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62349         include <sys/time.h>.
62350         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62351         NonStop Kernel.
62352         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62354 2010-12-24  Bruno Haible  <bruno@clisp.org>
62356         sys_select: Remove unneeded include.
62357         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62358         have <sys/select.h>.
62360 2010-12-24  Bruno Haible  <bruno@clisp.org>
62362         gethostname: Provide a fallback for HOST_NAME_MAX.
62363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62364         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62365         instead.
62366         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62368 2010-12-24  Bruno Haible  <bruno@clisp.org>
62370         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62371         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62372         (SA_RESTART): Likewise.
62373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62375 2010-12-24  Bruno Haible  <bruno@clisp.org>
62377         signal: Define NSIG.
62378         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62379         * tests/test-signal.c (nsig): New variable.
62380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62382 2010-12-24  Bruno Haible  <bruno@clisp.org>
62384         rename, renameat: Avoid test failures on OSF/1 5.1.
62385         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62386         alternative error codes.
62387         * tests/test-renameat.c (main): Likewise.
62389 2010-12-24  Bruno Haible  <bruno@clisp.org>
62391         *printf: Detect large precisions bug on Solaris 10/SPARC.
62392         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62393         by Paul Eggert.
62394         * tests/test-snprintf-posix.h (test_function): Add this test code here
62395         too.
62396         * tests/test-sprintf-posix.h (test_function): Likewise.
62397         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62398         * tests/test-vasprintf-posix.c (test_function): Likewise.
62399         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62400         around by gnulib.
62401         * doc/posix-functions/printf.texi: Likewise.
62402         * doc/posix-functions/snprintf.texi: Likewise.
62403         * doc/posix-functions/sprintf.texi: Likewise.
62404         * doc/posix-functions/vfprintf.texi: Likewise.
62405         * doc/posix-functions/vprintf.texi: Likewise.
62406         * doc/posix-functions/vsnprintf.texi: Likewise.
62407         * doc/posix-functions/vsprintf.texi: Likewise.
62408         * doc/posix-functions/dprintf.texi: Undo last commit.
62409         * doc/posix-functions/vdprintf.texi: Likewise.
62411 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62413         tests: port test-fdutimensat.c to Solaris 8
62414         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62415         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62416         On Solaris 8, it fails with errno == ENOSYS, because there is no
62417         futimens (so it can't use the fd), and there is no lutimens (so it
62418         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62420         vsnprintf: make more consistent with snprintf; doc fixes
62422         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62423         the byte count return problem was promoted from the snprintf-posix
62424         to the snprintf module.
62425         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62426         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62427         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62428         * tests/test-snprintf.c (main): Check the byte count returned.
62429         * tests/test-vsnprintf.c (main): Likewise.
62431 2010-12-23  Eric Blake  <eblake@redhat.com>
62433         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62434         * modules/sigpipe (License): Relax license.
62436 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62438         doc: document Solaris printf bug with large float precisions
62439         * doc/posix-functions/dprintf.texi (dprintf):
62440         * doc/posix-functions/fprintf.texi (fprintf):
62441         * doc/posix-functions/printf.texi (printf):
62442         * doc/posix-functions/snprintf.texi (snprintf):
62443         * doc/posix-functions/sprintf.texi (sprintf):
62444         * doc/posix-functions/vdprintf.texi (vdprintf):
62445         * doc/posix-functions/vfprintf.texi (vfprintf):
62446         * doc/posix-functions/vprintf.texi (vprintf):
62447         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62448         * doc/posix-functions/vsprintf.texi (vsprintf):
62449         Mention that these functions mishandle large floating point
62450         precisions on Solaris 10.  The same bug is also present in Solaris
62451         8, and I assume earlier.  This causes "cd gnulib-tests; make
62452         check" to fail on Solaris 8 (and I assume, later) when building
62453         the latest coreutils, in test-vasprintf-posix's call to
62454         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62455         the wide flavors (e.g., wprintf) so this patch just updates the
62456         documentation for the narrow ones.
62458         test-posixtm.c: add two tests
62459         * tests/test-posixtm.c: Add two tests, to highlight the
62460         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62461         around this bug; this is merely to document it.
62463 2010-12-22  Bruno Haible  <bruno@clisp.org>
62465         getlogin_r: Work around portability problem on OSF/1.
62466         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62467         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62468         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62469         test for a truncated result.
62470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62471         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62472         * modules/getlogin_r (Depends-on): Add memchr.
62473         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62475 2010-12-22  Bruno Haible  <bruno@clisp.org>
62477         ptsname: Avoid test failure on OSF/1 5.1.
62478         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62479         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62480         (same_slave): New function.
62481         (main): Use it to compare ptsname's result with the expected file name.
62483 2010-12-22  Bruno Haible  <bruno@clisp.org>
62485         Port extended stdio modules to HP NonStop Kernel.
62486         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62487         macros.
62488         * lib/fbufmode.c: Update comments.
62489         * lib/fflush.c: Likewise.
62490         * lib/fpurge.c: Likewise.
62491         * lib/freadable.c: Likewise.
62492         * lib/freadahead.c: Likewise.
62493         * lib/freading.c: Likewise.
62494         * lib/freadptr.c: Likewise.
62495         * lib/freadseek.c: Likewise.
62496         * lib/fseeko.c: Likewise.
62497         * lib/fseterr.c: Likewise.
62498         * lib/fwritable.c: Likewise.
62499         * lib/fwriting.c: Likewise.
62500         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62502 2010-12-22  Bruno Haible  <bruno@clisp.org>
62504         ttyname_r: Work around bug on OSF/1 5.1.
62505         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62506         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62507         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62508         present.
62509         * lib/ttyname_r.c (ttyname_r): Update comments.
62511 2010-12-22  Bruno Haible  <bruno@clisp.org>
62513         round: Implement result sign according to IEEE 754.
62514         * lib/round.c (MIN, MINUS_ZERO): New macros.
62515         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
62516         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
62517         * tests/test-round-ieee.c (main): Likewise.
62518         * tests/test-roundl-ieee.c (main): Likewise.
62520         trunc: Implement result sign according to IEEE 754.
62521         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
62522         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
62523         * tests/test-trunc2.c: Include minus-zero.h.
62524         (MINUS_ZERO): New macro.
62525         (trunc_reference): Keep in sync with lib/trunc.c.
62526         * tests/test-truncf2.c: Include minus-zero.h.
62527         (MINUS_ZERO): New macro.
62528         (truncf_reference): Keep in sync with lib/trunc.c.
62529         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
62530         * tests/test-trunc-ieee.c (main): Likewise.
62531         * tests/test-truncl-ieee.c (main): Likewise.
62533         ceil: Implement result sign according to IEEE 754.
62534         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
62535         (FUNC): Return -0.0 for -1 < x < 0.
62536         * tests/test-ceil2.c: Include minus-zero.h.
62537         (MINUS_ZERO): New macro.
62538         (ceil_reference): Keep in sync with lib/ceil.c.
62539         * tests/test-ceilf2.c: Include minus-zero.h.
62540         (MINUS_ZERO): New macro.
62541         (ceilf_reference): Keep in sync with lib/ceil.c.
62542         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
62543         * tests/test-ceil-ieee.c (main): Likewise.
62544         * tests/test-ceill-ieee.c (main): Likewise.
62546         floor: Implement result sign according to IEEE 754.
62547         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
62548         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
62549         * tests/test-floorf2.c (floorf_reference): Likewise.
62550         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
62551         * tests/test-floor-ieee.c (main): Likewise.
62552         * tests/test-floorl-ieee.c (main): Likewise.
62554 2010-12-22  Bruno Haible  <bruno@clisp.org>
62556         getaddrinfo: Update doc.
62557         * doc/posix-functions/gai_strerror.texi: Return type is also different
62558         on AIX and HP-UX.
62560 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62562         getaddrinfo, inet_ntop: Update doc for Solaris.
62563         * doc/posix-functions/gai_strerror.texi: Return type is also an
62564         issue on Solaris 9 and earlier.
62565         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
62566         on Solaris 10 and earlier.
62568 2010-12-21  Bruno Haible  <bruno@clisp.org>
62570         New module 'roundl-ieee'.
62571         * modules/roundl-ieee: New file.
62572         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
62573         test whether roundl works according to ISO C 99 with IEC 60559.
62574         * m4/roundl-ieee.m4: New file.
62575         * modules/roundl-ieee-tests: New file.
62576         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
62577         * tests/test-roundl.c (main): Remove signbit tests.
62578         * modules/roundl-tests (Depends-on): Remove signbit.
62579         * doc/posix-functions/roundl.texi: Mention the new module.
62581 2010-12-21  Bruno Haible  <bruno@clisp.org>
62583         New module 'truncl-ieee'.
62584         * modules/truncl-ieee: New file.
62585         * modules/truncl-ieee-tests: New file.
62586         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
62587         * tests/test-truncl.c (main): Remove signbit tests.
62588         * modules/truncl-tests (Depends-on): Remove signbit.
62589         * doc/posix-functions/truncl.texi: Mention the new module.
62591 2010-12-21  Bruno Haible  <bruno@clisp.org>
62593         New module 'ceill-ieee'.
62594         * modules/ceill-ieee: New file.
62595         * modules/ceill-ieee-tests: New file.
62596         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62597         * tests/test-ceill.c (main): Remove signbit tests.
62598         * modules/ceill-tests (Depends-on): Remove signbit.
62599         * doc/posix-functions/ceill.texi: Mention the new module.
62601 2010-12-21  Bruno Haible  <bruno@clisp.org>
62603         New module 'floorl-ieee'.
62604         * modules/floorl-ieee: New file.
62605         * modules/floorl-ieee-tests: New file.
62606         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62607         * tests/test-floorl.c (main): Remove signbit tests.
62608         * modules/floorl-tests (Depends-on): Remove signbit.
62609         * doc/posix-functions/floorl.texi: Mention the new module.
62611 2010-12-21  Bruno Haible  <bruno@clisp.org>
62613         New module 'round-ieee'.
62614         * modules/round-ieee: New file.
62615         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62616         whether round works according to ISO C 99 with IEC 60559.
62617         * m4/round-ieee.m4: New file.
62618         * modules/round-ieee-tests: New file.
62619         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62620         * tests/test-round1.c (main): Remove signbit tests.
62621         * modules/round-tests (Depends-on): Remove 'signbit'.
62622         * doc/posix-functions/round.texi: Mention the new module.
62624 2010-12-21  Bruno Haible  <bruno@clisp.org>
62626         New module 'trunc-ieee'.
62627         * modules/trunc-ieee: New file.
62628         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62629         whether trunc works according to ISO C 99 with IEC 60559.
62630         * m4/trunc-ieee.m4: New file.
62631         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62633         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62634         * modules/trunc-ieee-tests: New file.
62635         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62636         * tests/test-trunc1.c (main): Remove signbit tests.
62637         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62638         * doc/posix-functions/trunc.texi: Mention the new module.
62640 2010-12-21  Bruno Haible  <bruno@clisp.org>
62642         New module 'ceil-ieee'.
62643         * modules/ceil-ieee: New file.
62644         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62645         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62646         ISO C 99 with IEC 60559.
62647         * m4/ceil-ieee.m4: New file.
62648         * modules/ceil (Files): Add lib/ceil.c.
62649         (Depends-on): Add 'float'.
62650         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62651         * lib/math.in.h (ceil): New declaration.
62652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62653         REPLACE_CEIL.
62654         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62655         * modules/ceil-ieee-tests: New file.
62656         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62657         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62658         * doc/posix-functions/ceil.texi: Mention the new module.
62660 2010-12-21  Bruno Haible  <bruno@clisp.org>
62662         New module 'floor-ieee'.
62663         * modules/floor-ieee: New file.
62664         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62665         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62666         ISO C 99 with IEC 60559.
62667         * m4/floor-ieee.m4: New file.
62668         * modules/floor (Files): Add lib/floor.c.
62669         (Depends-on): Add 'float'.
62670         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62671         * lib/math.in.h (floor): New declaration.
62672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62673         REPLACE_FLOOR.
62674         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62675         * modules/floor-ieee-tests: New file.
62676         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62677         * tests/test-math-c++.cc: Check the signature of 'floor'.
62678         * doc/posix-functions/floor.texi: Mention the new module.
62680 2010-12-21  Bruno Haible  <bruno@clisp.org>
62682         New module 'roundf-ieee'.
62683         * modules/roundf-ieee: New file.
62684         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62685         test whether roundf works according to ISO C 99 with IEC 60559.
62686         * m4/roundf-ieee.m4: New file.
62687         * modules/roundf-ieee-tests: New file.
62688         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62689         * tests/test-roundf1.c (main): Remove signbit tests.
62690         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62691         * doc/posix-functions/roundf.texi: Mention the new module.
62693 2010-12-21  Bruno Haible  <bruno@clisp.org>
62695         New module 'truncf-ieee'.
62696         * modules/truncf-ieee: New file.
62697         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62698         test whether truncf works according to ISO C 99 with IEC 60559.
62699         * m4/truncf-ieee.m4: New file.
62700         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62702         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62703         * modules/truncf-ieee-tests: New file.
62704         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62705         * tests/test-truncf1.c (main): Remove signbit tests.
62706         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62707         * doc/posix-functions/truncf.texi: Mention the new module.
62709 2010-12-21  Bruno Haible  <bruno@clisp.org>
62711         New module 'ceilf-ieee'.
62712         * modules/ceilf-ieee: New file.
62713         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62714         test whether ceilf works according to ISO C 99 with IEC 60559.
62715         * m4/ceilf-ieee.m4: New file.
62716         * modules/ceilf-ieee-tests: New file.
62717         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62718         * tests/test-ceilf1.c (main): Remove signbit tests.
62719         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62720         * doc/posix-functions/ceilf.texi: Mention the new module.
62722 2010-12-21  Bruno Haible  <bruno@clisp.org>
62724         New module 'floorf-ieee'.
62725         * modules/floorf-ieee: New file.
62726         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62727         test whether floorf works according to ISO C 99 with IEC 60559.
62728         * m4/floorf-ieee.m4: New file.
62729         * modules/floorf-ieee-tests: New file.
62730         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62731         * tests/test-floorf1.c (main): Remove signbit tests.
62732         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62733         * doc/posix-functions/floorf.texi: Mention the new module.
62735 2010-12-21  Bruno Haible  <bruno@clisp.org>
62737         Support for minus zero in autoconf macros.
62738         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62739         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62740         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62741         * tests/minus-zero.h: Update comments.
62743 2010-12-21  Bruno Haible  <bruno@clisp.org>
62745         Tests for module 'ceil'.
62746         * modules/ceil-tests: New file.
62747         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62748         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62750 2010-12-21  Bruno Haible  <bruno@clisp.org>
62752         Tests for module 'floor'.
62753         * modules/floor-tests: New file.
62754         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62755         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62757 2010-12-21  Bruno Haible  <bruno@clisp.org>
62759         math: Fix indentation.
62760         * lib/math.in.h (floorf): Fix indentation.
62762 2010-12-21  Bruno Haible  <bruno@clisp.org>
62764         Fix cross-compilation guesses on Solaris.
62765         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62766         not match "solaris2.10".
62767         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62768         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62769         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62771 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62773         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62774         This fixes a problem observed with the latest coreutils snapshot
62775         that caused a test to fail on Solaris 8.  src/csplit.c's call
62776         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62777         earlier, instead of returning the number of bytes that would have
62778         been generated; this causes csplit to incorrectly report memory
62779         exhaustion.
62780         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62781         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62782         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62783         comments to match.
62784         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62785         Fix typo in matching older versions of Solaris: "solaris2.10"
62786         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62787         only for guessing while cross-compiling.
62788         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62790 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62792         ftoastr: fix comment again
62793         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62794         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62795         Also, simplify example a bit by using flags = 0.
62797 2010-12-20  Bruno Haible  <bruno@clisp.org>
62799         round*, trunc*: Update documentation regarding glibc.
62800         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62801         * doc/posix-functions/round.texi: Likewise.
62802         * doc/posix-functions/roundl.texi: Likewise.
62803         * doc/posix-functions/truncf.texi: Likewise.
62804         * doc/posix-functions/trunc.texi: Likewise.
62805         * doc/posix-functions/truncl.texi: Likewise.
62807 2010-12-20  Bruno Haible  <bruno@clisp.org>
62809         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62810         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62811         * doc/posix-functions/round.texi: Likewise.
62812         * doc/posix-functions/roundl.texi: Likewise.
62814 2010-12-20  Bruno Haible  <bruno@clisp.org>
62816         ttyname_r: Add missing declaration on HP-UX 11.
62817         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62818         HAVE_TTYNAME_R.
62819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62820         declared. Set HAVE_TTYNAME_R always.
62821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62822         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62824         HAVE_TTYNAME_R.
62825         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62827 2010-12-20  Bruno Haible  <bruno@clisp.org>
62829         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62830         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62831         * doc/posix-functions/getlogin_r.texi: Likewise.
62832         * tests/test-getlogin.c: Include <errno.h>.
62833         (main): Avoid test failure on HP-UX 11.11.
62834         * tests/test-getlogin_r.c (main): Likewise.
62836 2010-12-20  Bruno Haible  <bruno@clisp.org>
62838         getlogin_r: Add missing declaration on HP-UX 11.
62839         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62840         declared also when it exists as a function.
62841         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62843 2010-12-20  Bruno Haible  <bruno@clisp.org>
62845         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62846         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62847         through wcrtomb.
62849 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62851         ftoastr: fix comment
62852         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62853         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62855 2010-12-19  Bruno Haible  <bruno@clisp.org>
62857         isnan: Ensure it is a macro.
62858         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62859         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62860         Solaris.
62862 2010-12-19  Bruno Haible  <bruno@clisp.org>
62864         ldexpl test: Fix link error on OSF/1 5.1.
62865         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62867 2010-12-19  Bruno Haible  <bruno@clisp.org>
62869         wctype: Make it work in C++ mode on OSF/1 5.1.
62870         * lib/wctype.in.h (iswblank): Declare but not define here.
62871         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62872         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62873         * modules/wctype (Files): Add lib/iswblank.c.
62875 2010-12-19  Bruno Haible  <bruno@clisp.org>
62877         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62878         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62879         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62881 2010-12-19  Bruno Haible  <bruno@clisp.org>
62883         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62885         _POSIX_PII_SOCKET.
62886         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62887         * doc/posix-functions/recvfrom.texi: Likewise.
62888         * doc/posix-functions/send.texi: Likewise.
62889         * doc/posix-functions/sendto.texi: Likewise.
62891 2010-12-19  Bruno Haible  <bruno@clisp.org>
62893         tcgetsid: Add missing declaration on OSF/1 5.1.
62894         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62895         HAVE_TCGETSID.
62896         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62897         Don't set HAVE_TCGETSID.
62898         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62899         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62900         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62901         HAVE_TCGETSID.
62902         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62904 2010-12-19  Bruno Haible  <bruno@clisp.org>
62906         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62907         * lib/stdio.in.h: During the include_next statement, let recursive
62908         includes of this file include only the system header file.
62910 2010-12-19  Bruno Haible  <bruno@clisp.org>
62912         iconv_open: Fix regression from 2010-12-04.
62913         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62914         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62916 2010-12-19  Bruno Haible  <bruno@clisp.org>
62918         stdbool test: Avoid a gcc warning.
62919         * tests/test-stdbool.c (main): Fail if e1 is false.
62920         Reported by Jim Meyering.
62922 2010-12-19  Jim Meyering  <meyering@redhat.com>
62924         setenv: restore to working order
62925         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62926         mistakenly removed.
62927         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62928         HAVE_SETENV.
62929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62930         HAVE_SETENV.
62932 2010-12-19  Bruno Haible  <bruno@clisp.org>
62934         Document some different function declarations on OSF/1 5.1.
62935         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
62936         * doc/posix-functions/inet_ntop.texi: Likewise.
62937         * doc/posix-functions/gethostname.texi: Likewise.
62938         * lib/unistd.in.h (gethostname): Update comment.
62940 2010-12-19  Bruno Haible  <bruno@clisp.org>
62942         doc: Mention vasprintf-posix module.
62943         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
62944         the 'vasprintf-posix' module.
62945         * doc/glibc-functions/vasprintf.texi: Likewise.
62947 2010-12-19  Bruno Haible  <bruno@clisp.org>
62949         unsetenv: Add missing declaration on OSF/1 5.1.
62950         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62951         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62952         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62954         not HAVE_UNSETENV.
62955         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62956         HAVE_UNSETENV.
62957         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62959 2010-12-19  Bruno Haible  <bruno@clisp.org>
62961         setenv: Add missing declaration on OSF/1 5.1.
62962         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62963         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62964         declared. Don't set HAVE_SETENV.
62965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62966         not HAVE_SETENV.
62967         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62968         HAVE_SETENV.
62969         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62971 2010-12-19  Bruno Haible  <bruno@clisp.org>
62973         nl_langinfo tests: Avoid gcc warning.
62974         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62976 2010-12-19  Bruno Haible  <bruno@clisp.org>
62978         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62979         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62980         _GL_CXXALIAS_SYS.
62982 2010-12-19  Bruno Haible  <bruno@clisp.org>
62984         stdbool: Relax test.
62985         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62986         address to 'bool' work in static initializer, for compilers other than
62987         GCC.
62989 2010-12-19  Bruno Haible  <bruno@clisp.org>
62991         ftello: Add missing declaration on OSF/1 5.1.
62992         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62993         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62995         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62996         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62998 2010-12-19  Bruno Haible  <bruno@clisp.org>
63000         fseeko: Add missing declaration on OSF/1 5.1.
63001         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63002         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63004         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63005         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63007 2010-12-19  Bruno Haible  <bruno@clisp.org>
63009         fchdir: Add missing declaration on OSF/1 5.1.
63010         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63014         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63016 2010-12-19  Bruno Haible  <bruno@clisp.org>
63018         relocatable-prog-wrapper: Separate from relocatable-prog.
63019         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63020         uninstall-relocwrapper rule here.
63021         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63022         Reported by Ian Beckwith <ianb@erislabs.net>.
63024 2010-12-19  Bruno Haible  <bruno@clisp.org>
63026         unistr/u8-mbsnlen: Add missing dependency.
63027         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63028         Reported by Ian Beckwith <ianb@erislabs.net>.
63030 2010-12-19  Bruno Haible  <bruno@clisp.org>
63032         iconv: Make it possible again to use this module without 'iconv-h'.
63033         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63034         if it is not defined.
63035         Reported by Ian Beckwith <ianb@erislabs.net>.
63037 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63039         acl: port to Solaris 8 when copying from tmpfs to ufs
63040         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63041         error number.  Problem observed on Solaris 8 with latest
63042         coreutils, with "mv A B", where A is on a tmpfs file system and B
63043         is on a ufs file system.  This caused coreutils' mv/part-symlink
63044         test to fail.
63046         tests: set fail=0 at start
63047         * tests/init.sh (setup_): Move fail=0 initialization here ...
63048         (mktempd_): ... from here, so that tests can rely on fail being
63049         set to 0 initially.  This fixes a problem in coreutils; see:
63050         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63052 2010-12-18  Bruno Haible  <bruno@clisp.org>
63054         memmem-simple: Stylistic changes.
63055         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63056         Fix preprocessor directive indentation.
63058 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63060         memmem, memmem-simple: reorganize and expand empty needle check
63061         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63062         functional checks to memmem-simple so that one has a fully functional
63063         memmem by using just this module.
63064         Restrict the performance only check to the memmem module.
63065         Also expand the empty needle check to ensure the correct
63066         pointer is returned, not just a non NULL pointer.
63067         * doc/glibc-functions/memmem.texi: Rearrange the portability
63068         documentation to correlate with the rearranged checks.
63069         Clarify exactly how the memmem and memmem-simple modules
63070         relate to each other.
63072 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63073             Bruno Haible  <bruno@clisp.org>
63075         Improve cross-compilation guesses for uClibc.
63076         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63077         that uClibc does not have the glibc bug.
63078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63081 2010-12-14  Eric Blake  <eblake@redhat.com>
63083         configmake: provide fallbacks for oldest supported autotools
63084         * m4/configmake.m4: New file.
63085         * modules/configmake (Files): Ship it.
63086         (configure.ac): Use it to guarantee fallbacks.
63088 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63090         read-file: Improve handling of large files
63091         * lib/read-file.c (fread_file): Minimize realloc()s
63092         for regular files, and better manage sizes around SIZE_MAX.
63094 2010-12-13  Eric Blake  <eblake@redhat.com>
63096         cloexec, fcntl: relax license
63097         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63098         consent from all contributors.
63099         * modules/fcntl (License): Likewise.
63101 2010-12-10  Bruno Haible  <bruno@clisp.org>
63103         Tests for module 'pipe-posix'.
63104         * modules/pipe-posix-tests: New file.
63105         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63107 2010-12-10  Bruno Haible  <bruno@clisp.org>
63109         pipe-posix: Make it work in C++ mode.
63110         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63111         (pipe): Use common idiom, not a macro definition.
63112         * lib/pipe.c: New file.
63113         * m4/pipe.m4: New file.
63114         * modules/pipe-posix (Description): Enhance.
63115         (Files): Add lib/pipe.c, m4/pipe.m4.
63116         (configure.ac): Invoke gl_FUNC_PIPE.
63117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63118         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63119         * tests/test-unistd-c++.cc: Check the signature of pipe.
63121 2010-12-10  Bruno Haible  <bruno@clisp.org>
63123         Rename module 'pipe' to 'spawn-pipe'.
63124         * modules/spawn-pipe: New file, renamed from modules/pipe.
63125         (Files, configure.ac, Makefile.am): Update.
63126         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63127         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63128         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63129         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63130         "spawn-pipe.h" instead of "pipe.h".
63131         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63132         to gl_SPAWN_PIPE.
63133         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63134         (Files, Makefile.am): Update.
63135         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63136         Update.
63137         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63138         Include "spawn-pipe.h" instead of "pipe.h".
63139         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63140         * lib/javacomp.c: Likewise.
63141         * lib/javaversion.c: Likewise.
63142         * lib/pipe-filter-gi.c: Likewise.
63143         * lib/pipe-filter-ii.c: Likewise.
63144         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63145         * modules/javacomp (Depends-on): Likewise.
63146         * modules/javaversion (Depends-on): Likewise.
63147         * modules/pipe-filter-gi (Depends-on): Likewise.
63148         * modules/pipe-filter-ii (Depends-on): Likewise.
63149         * MODULES.html.sh (Executing programs): Update.
63150         * NEWS: Mention the change.
63152 2010-12-10  Eric Blake  <eblake@redhat.com>
63154         pipe-posix: new module
63155         * modules/pipe-posix: New file.
63156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63157         (gl_UNISTD_H): Check for declaration.
63158         * modules/unistd (Makefile.am): Substitute it.
63159         * lib/unistd.in.h (pipe): Provide it for mingw.
63160         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63161         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63163 2010-12-07  Bruno Haible  <bruno@clisp.org>
63165         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63166         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63167         u8_strcmp_gnu.
63168         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63170 2010-12-06  Bruno Haible  <bruno@clisp.org>
63172         Update internal documentation.
63173         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63175 2010-12-04  Bruno Haible  <bruno@clisp.org>
63177         Put more information about failed tests into the test return codes.
63178         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63179         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63180         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63181         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63182         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63183         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63184         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63185         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63186         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63189         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63190         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63191         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63192         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63193         returns a bit mask.
63194         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63195         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63196         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63197         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63198         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63202         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63203         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63204         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63205         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63206         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63208         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63209         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63210         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63211         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63212         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63213         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63215         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63217         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63218         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63219         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63220         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63221         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63222         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63223         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63224         gl_PRINTF_PRECISION): Likewise.
63225         * m4/regex.m4 (gl_REGEX): Likewise.
63226         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63227         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63228         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63229         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63232         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63233         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63236         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63237         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63238         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63239         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63240         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63241         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63242         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63245         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63246         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63247         enumerated value.
63248         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63250 2010-12-04  Bruno Haible  <bruno@clisp.org>
63252         Update for Solaris 11 2010-11.
63253         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63254         Express, released in November 2010.
63256 2010-12-04  Bruno Haible  <bruno@clisp.org>
63258         nproc: Relax license.
63259         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63260         and Paul Eggert.
63261         Requested by Ludovic Courtès <ludo@gnu.org>.
63263 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63265         utimecmp: fine-grained src to nearby coarse-grained dest
63267         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63268         and the source is on a file system with higher-resolution time
63269         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63270         not work, and the time stamps are close together, the algorithm to
63271         determine the exact resolution from the read-back mtime was buggy:
63272         it had a "!=" where it should have had an "==".  This bug has been
63273         in the code ever since it was introduced to gnulib.
63274         Problem reported by Dan Jacobson in
63275         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63277 2010-11-30  Bruno Haible  <bruno@clisp.org>
63279         strerror_r-posix: Fix autoconf test.
63280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63282 2010-11-28  Bruno Haible  <bruno@clisp.org>
63283             Paul Eggert  <eggert@cs.ucla.edu>
63285         Tests for module 'getdomainname'.
63286         * modules/getdomainname-tests: New file.
63287         * tests/test-getdomainname.c: New file, based on
63288         tests/test-gethostname.c.
63290 2010-11-28  Bruno Haible  <bruno@clisp.org>
63291             Paul Eggert  <eggert@cs.ucla.edu>
63293         getdomainname: Use the system function when possible.
63294         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63295         (getdomainname): Replace if needed. Provide the declaration if it is
63296         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63297         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63298         (getdomainname): When the system has getdomainname, call the system
63299         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63300         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63301         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63302         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63303         the function if its second argument is of type 'int' or if it is found
63304         in libnsl.
63305         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63306         <sys/systeminfo.h> and sysinfo().
63307         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63309         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63310         HAVE_GETDOMAINNAME.
63311         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63312         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63313         * doc/glibc-functions/getdomainname.texi: Document the problems with
63314         the getdomainname declaration.
63316 2010-11-28  Bruno Haible  <bruno@clisp.org>
63318         sys_socket: Ensure ss_family field on AIX.
63319         * lib/sys_socket.in.h (ss_family): New macro definition.
63320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63322         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63323         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63324         * modules/sys_socket (Makefile.am): Substitute
63325         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63326         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63328 2010-11-27  Bruno Haible  <bruno@clisp.org>
63330         readline: Improve configure output.
63331         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63332         "checking for readline..." result understandable.
63334 2010-11-27  Bruno Haible  <bruno@clisp.org>
63336         *printf-posix: Detect a bug on Solaris 10/x86.
63337         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63338         for floating-point output.
63339         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63340         directive.
63341         * tests/test-snprintf-posix.h (test_function): Likewise.
63342         * tests/test-sprintf-posix.h (test_function): Likewise.
63343         * tests/test-vasprintf-posix.c (test_function): Likewise.
63344         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63345         * doc/posix-functions/printf.texi: Likewise.
63346         * doc/posix-functions/snprintf.texi: Likewise.
63347         * doc/posix-functions/sprintf.texi: Likewise.
63348         * doc/posix-functions/vfprintf.texi: Likewise.
63349         * doc/posix-functions/vprintf.texi: Likewise.
63350         * doc/posix-functions/vsnprintf.texi: Likewise.
63351         * doc/posix-functions/vsprintf.texi: Likewise.
63352         * doc/glibc-functions/obstack_printf.texi: Likewise.
63353         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63355 2010-11-27  Bruno Haible  <bruno@clisp.org>
63357         Fix link error when module libunistring-optional is in use.
63358         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63359         * modules/striconveha-tests (Makefile.am): Likewise.
63361 2010-11-27  Bruno Haible  <bruno@clisp.org>
63363         regex: Mention link dependencies.
63364         * modules/regex (Link): New section.
63365         * modules/rpmatch (Link): Likewise.
63366         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63368 2010-11-27  Bruno Haible  <bruno@clisp.org>
63370         ftoastr: Fix compilation error on Solaris.
63371         * lib/ftoastr.c: Include <config.h>.
63373 2010-11-27  Bruno Haible  <bruno@clisp.org>
63375         getloadavg: Update documentation.
63376         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63378 2010-11-27  Bruno Haible  <bruno@clisp.org>
63380         sys_socket: Fix test whether the functions are declared.
63381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63382         not <sys/select.h>.
63384 2010-11-27  Bruno Haible  <bruno@clisp.org>
63386         getpass: Make sure to get system declaration on some platforms.
63387         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63388         gl_USE_SYSTEM_EXTENSIONS.
63389         * modules/getpass (Depends-on): Add extensions.
63391 2010-11-26  Bruno Haible  <bruno@clisp.org>
63393         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63394         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63395         'iconv' module is present.
63396         (ICONV_CONST): New macro.
63397         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63398         ICONV_CONST.
63399         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63400         set ICONV_CONST.
63401         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63402         here.
63403         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63404         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63405         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63406         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63407         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63408         present.
63410 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63412         ftoastr: comment fix
63413         * lib/ftoastr.c: "little" -> "little or no" in comment
63415 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63417         stdint: port to GCC 4.3 + OSX + Octave
63418         On this platform, stdint.h is buggy and defines int64_t to long
63419         long int.  The replacement defined it to long int, causing
63420         problems with C++ style name mangling.  Instead, trust the system
63421         definition if INT64_MAX is defined, and likewise for the unsigned
63422         variant.   Problem reported by Jarno Rajahalme in
63423         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63424         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63425         and don't mess with int64_t and INT64_MAX in this case.
63426         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63428 2010-11-24  Bruno Haible  <bruno@clisp.org>
63430         doc: Corrections regarding MacOS X 10.4 and 10.5.
63431         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63432         MacOS X.
63433         Reported by Simon Josefsson.
63435 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63437         Uninstall ".bin" files installed by relocwrapper.
63438         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63439         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63440         unless it is already there.
63442 2010-11-21  Bruno Haible  <bruno@clisp.org>
63444         Update for NetBSD 5.0.
63445         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63446         NetBSD; the test fails on NetBSD 5.0.
63447         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63448         about NetBSD.
63450 2010-11-21  Bruno Haible  <bruno@clisp.org>
63452         Update for HP-UX 11.23 and HP-UX 11.31.
63453         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63454         HP-UX.
63456 2010-11-21  Bruno Haible  <bruno@clisp.org>
63458         Update for MacOS X 10.5.
63459         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63460         MacOS X; the test fails on MacOS X 10.5.8.
63461         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63462         about MacOS X.
63464 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63466         bootstrap: add bootstrap_sync option.
63467         See discussion at
63468         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63469         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63470         * build-aux/bootstrap: Accept --bootstrap-sync to update
63471         bootstrap if it is not identical to the local gnulib's
63472         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63473         enable this by default.  Accept --no-bootstrap-sync to disable
63474         it.
63476 2010-11-20  Bruno Haible  <bruno@clisp.org>
63478         Ensure that <features.h> is included before __GLIBC__ is tested.
63479         * lib/printf-parse.h: Include <features.h>.
63480         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63481         Reported by Mike Frysinger <vapier@gentoo.org>.
63483         Ensure that <features.h> is included before __GLIBC__ is tested.
63484         * lib/wchar.in.h: Include <features.h>.
63485         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63486         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63487         Reported by Mike Frysinger <vapier@gentoo.org>.
63489         Ensure that <features.h> is included before __GLIBC__ is tested.
63490         * lib/arpa_inet.in.h: Include <features.h>.
63491         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63492         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63493         Reported by Mike Frysinger <vapier@gentoo.org>.
63495         Ensure that <features.h> is included before __GLIBC__ is tested.
63496         * build-aux/link-warning.h: Include <features.h>.
63497         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63498         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63499         Reported by Mike Frysinger <vapier@gentoo.org>.
63501         Ensure that <features.h> is included before __GLIBC__ is tested.
63502         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63503         Reported by Mike Frysinger <vapier@gentoo.org>.
63505 2010-11-20  Bruno Haible  <bruno@clisp.org>
63507         memmem: Fix autoconf test.
63508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63510 2010-11-20  Bruno Haible  <bruno@clisp.org>
63512         Port to uClibc.
63513         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63514         * lib/fcntl.in.h: Likewise.
63515         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
63516         * lib/mbrtowc.c (mbrtowc): Likewise.
63517         * lib/relocatable.c (find_shared_library_fullname): Likewise.
63518         * lib/strerror_r.c: Likewise.
63519         * lib/unistr/u8-strnlen.c: Likewise.
63520         * lib/vasnprintf.c (decimal_point_char): Likewise.
63521         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
63522         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63524         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63525         * tests/test-sigaction.c (handler, main): Likewise.
63526         * lib/freading.h: Treat uClibc like a non-glibc platform.
63527         * lib/freading.c: Likewise.
63528         * lib/gettext.h: Likewise.
63529         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
63530         Likewise.
63531         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
63532         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63533         * lib/propername.c (proper_name_utf8): Likewise.
63534         * lib/spawn.in.h: Likewise.
63535         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
63536         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
63537         mem_cd_iconveh_internal): Likewise.
63538         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
63539         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63540         strstr, strcasestr): Likewise.
63541         * lib/unicodeio.c (unicode_to_mb): Likewise.
63542         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
63543         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
63544         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
63545         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
63546         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
63547         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
63548         * lib/unistr/u8-stpncpy.c: Likewise.
63549         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63550         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
63551         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63552         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63553         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
63555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
63556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
63557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
63558         Likewise.
63559         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63560         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63561         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
63562         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63564         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63565         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63566         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
63567         * tests/test-getopt.h (OPTIND_MIN): Likewise.
63568         * tests/test-striconveha.c (main): Likewise.
63569         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63570         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
63571         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
63572         * doc/posix-functions/getline.texi: Likewise.
63573         Reported by Mike Frysinger <vapier@gentoo.org>.
63575 2010-11-20  Bruno Haible  <bruno@clisp.org>
63577         nproc: Fix condition.
63578         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
63579         HAVE_PTHREAD_AFFINITY_NP.
63581 2010-11-20  Bruno Haible  <bruno@clisp.org>
63583         Fix a comment.
63584         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
63586 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
63588         ftoastr: don't assume snprintf
63589         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
63590         Implement a subset of snprintf here, by using sprintf safely.
63591         * modules/ftoastr (Depends-on): Remove snprintf.
63593 2010-11-19  Jim Meyering  <meyering@redhat.com>
63595         test-rename.h: fix compilation failure
63596         * tests/test-rename.h (test_rename): Add omitted "}".
63598 2010-11-17  Jim Meyering  <meyering@redhat.com>
63600         maint.mk: add a URL discussing the no-@acronym policy
63601         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63603 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63605         ftoastr: depend on snprintf, improve comments
63606         * lib/ftoastr.c: Also mention Loitsch's draft.
63607         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63608         needed in the current implementation, but it might simplify
63609         speeding up the code later.
63610         * modules/ftoastr: Depend on snprintf; this improves portability.
63611         Suggested by Bruno Haible in the same email.
63613         ftoastr: port to hosts lacking strtof and strtold
63614         Problem reported by Bruno Haible in
63615         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63616         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63617         environment and strtold (and presumably strtof) are not available.
63618         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63619         (configure.ac): Require gl_C99_STRTOLD.
63621 2010-11-18  Bruno Haible  <bruno@clisp.org>
63623         c-strtold: Avoid link error on AIX 7.
63624         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63625         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63626         (gl_C_STRTOLD): Test whether strtold_l exists.
63627         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63629 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63631         intprops: new macro INT_BITS_STRLEN_BOUND
63632         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63633         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63634         not exposed.  Also, it uses a slightly tighter bound than before;
63635         though this makes no practical difference, we might as well be as
63636         tight as we easily can.
63638         ftoastr: new module, for lossless conversion of floats to short strings
63639         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63640         * modules/ftoastr: New files.
63642 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63644         bootstrap: port to Solaris sed
63645         * build-aux/bootstrap (get_version): Port to Solaris sed.
63646         See Ralf Wildenhues's note in
63647         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63649 2010-11-14  Jim Meyering  <meyering@redhat.com>
63651         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63652         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63653         and move definition closer to sole use.
63655 2010-11-13  Jim Meyering  <meyering@redhat.com>
63657         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63658         Now we require at least autoconf-2.59, which means the work-around
63659         is no longer needed.
63660         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63662         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63663         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63664         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63666 2010-11-13  Bruno Haible  <bruno@clisp.org>
63668         rename, renameat: Avoid test failures at NFS mounted locations.
63669         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63670         functions.
63671         (test_rename): Use assert_nonexistent.
63672         * tests/test-rename.c: Include <dirent.h>.
63673         * tests/test-renameat.c: Likewise.
63674         Reported by Gary V. Vaughan <gary@gnu.org>.
63676         rename, renameat: Document Linux bug with NFS
63677         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63678         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63679         * doc/posix-functions/renameat.texi: Likewise.
63680         Suggested by Eric Blake.
63682 2010-11-13  Bruno Haible  <bruno@clisp.org>
63684         rename test: Add comments.
63685         * tests/test-rename.h (test_rename): Add structure and comments.
63687 2010-11-13  Eric Blake  <eblake@redhat.com>
63689         maintainer-makefile: cover a few more files
63690         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63691         scripts generated within C files, for libvirt.
63693 2010-11-13  Bruno Haible  <bruno@clisp.org>
63695         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63696         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63697         character, return the number of bytes that belong together, not always
63698         1.
63699         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63700         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63701         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63702         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63703         number of bytes of an invalid character.
63704         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63705         (main): Invoke it.
63706         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63707         results.
63708         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63709         malformed byte sequences.
63710         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63711         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63712         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63713         Reported by Ben Pfaff and Paolo Bonzini.
63715 2010-11-13  Bruno Haible  <bruno@clisp.org>
63717         openat: Work around glibc bug with fchownat() and empty file names.
63718         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63719         (gl_FUNC_FCHOWNAT): Invoke it.
63720         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63721         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63722         Reported by Gary V. Vaughan <gary@gnu.org>.
63724 2010-11-13  Bruno Haible  <bruno@clisp.org>
63726         openat: Ensure autoconf macro ordering.
63727         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63728         gl_USE_SYSTEM_EXTENSIONS.
63729         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63731 2010-11-13  Bruno Haible  <bruno@clisp.org>
63733         Update comments.
63734         * lib/unistr/u8-check.c: Update file name in comments.
63735         * lib/unistr/u8-mblen.c: Likewise.
63736         * lib/unistr/u8-prev.c: Likewise.
63737         * lib/unistr/u8-strmblen.c: Likewise.
63738         * lib/unistr/u8-strmbtouc.c: Likewise.
63740 2010-11-13  Jim Meyering  <meyering@redhat.com>
63742         tests: avoid test failure on Solaris 10 due to lack of PATH export
63743         * tests/test-update-copyright.sh: Don't forget to export PATH.
63745         init.sh: ensure that IFS is defined, just in case...
63746         * tests/init.sh (setup_): Ensure that IFS is defined,
63747         so that saving and restoring it works as expected.  This
63748         appears to be useful at least for an old version of dash
63749         from a long time ago (RH 6).  See here for details:
63750         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63752         maint.mk: tighten "test a == b" check
63753         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63754         test to files that contain something like #!/bin/sh.
63755         Without this, coreutils would get two false positives in
63756         the comments of C source files.
63758 2010-11-12  Eric Blake  <eblake@redhat.com>
63760         bootstrap: fix typo in previous attempt
63761         * build-aux/bootstrap (buildreq): Correct the grouping.
63762         Reported by Paul Eggert.
63764         maintainer-makefile: prohibit test x == x
63765         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63766         Based on a report by Matthias Bolte.
63768         bootstrap: allow FreeBSD gzip
63769         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63770         which has no '.' and goes to stderr.
63771         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63772         Reported by Matthias Bolte.
63774         maintainer-makefile: check for i18n setup
63775         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63776         will likely work.
63778 2010-11-12  Bruno Haible  <bruno@clisp.org>
63780         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63781         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63782         * lib/nanosleep.c (nanosleep): Likewise.
63784 2010-11-11  Bruno Haible  <bruno@clisp.org>
63786         fcntl-h: Fix for use of C++ on glibc systems.
63787         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63788         also on glibc systems in C++ mode.
63789         Reported by Gary V. Vaughan <gary@gnu.org>.
63791 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63793         mknod: avoid false failure with dash
63794         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63796 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63798         unlink: Fix "is it should" typo in diagnostic.
63799         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63800         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63802 2010-11-11  Bruno Haible  <bruno@clisp.org>
63804         Tests for module 'strerror_r-posix'.
63805         * modules/strerror_r-posix-tests: New file.
63806         * tests/test-strerror_r.c: New file.
63807         * tests/test-string-c++.cc: Check the signature of strerror_r.
63809         New module 'strerror_r-posix'.
63810         * lib/string.in.h (strerror_r): New declaration.
63811         * lib/strerror_r.c: New file.
63812         * m4/strerror_r.m4: New file.
63813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63814         of strerror_r.
63815         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63816         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63817         * modules/strerror_r-posix: New file.
63818         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63819         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63820         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63821         portability problems.
63823 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63825         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63826         line is also considered for output. Quoted function name in shell
63827         command, so temporary files for functions like MyClass::operator()
63828         are removed correctly without errors.
63830 2010-11-09  Bruno Haible  <bruno@clisp.org>
63832         * doc/posix-functions/strerror.texi: List more failing platforms.
63834         * doc/posix-functions/strerror.texi: Add a comment.
63836 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63838         fdopendir: fix bug on MacOS X when low on file descriptors
63840         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63841         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63842         All callers changed.
63843         (fdopendir): Invoke save_cwd at the top level, not after using
63844         multiple dup() calls to use up file descriptors.  Then retry
63845         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63846         less than the maximum number of open file descriptors, because
63847         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63848         on Mac OS X 10.6.4 for tar 1.24
63849         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63850         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63851         and for tar 1.25
63852         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63854 2010-11-07  Bruno Haible  <bruno@clisp.org>
63856         vasnprintf: Support I flag on glibc systems.
63857         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63858         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63859         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63860         snprintf function.
63861         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63862         glibc systems.
63863         * tests/test-vasnprintf-posix3.c: New file.
63864         * modules/vasnprintf-posix-tests (Files): Add it.
63865         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63867 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63869         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63870         * MODULES.html.sh: For compiler warnings, use name
63871         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63873 2010-11-05  Eric Blake  <eblake@redhat.com>
63875         ceil, floor: avoid spurious failure with icc
63876         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63877         [denormals-as-zero] when optimizing without -mieee-fp option.
63878         * tests/test-floorf2.c (floorf_reference): Likewise.
63879         * tests/test-ceilf1.c (dummy): New function.
63880         (main): Use it to outsmart icc's optimization.
63881         * tests/test-floorf1.c (dummy, main): Likewise.
63883         tests: require working signbit
63884         * modules/ceilf-tests (Depends-on): Add signbit.
63885         * modules/ceill-tests (Depends-on): Likewise.
63886         * modules/floorf-tests (Depends-on): Likewise.
63887         * modules/floorl-tests (Depends-on): Likewise.
63888         * modules/round-tests (Depends-on): Likewise.
63889         * modules/roundf-tests (Depends-on): Likewise.
63890         * modules/roundl-tests (Depends-on): Likewise.
63891         * modules/trunc-tests (Depends-on): Likewise.
63892         * modules/truncf-tests (Depends-on): Likewise.
63893         * modules/truncl-tests (Depends-on): Likewise.
63895         strtod: work around icc bug
63896         * lib/strtod.c (minus_zero): Define to working value.
63897         (strtod): Use it to avoid icc bug.
63899         copysign: enhance tests
63900         * modules/copysign-tests (Files): Add minus-zero.h.
63901         * tests/test-copysign.c (main): Also test zeros.
63903 2010-11-04  Eric Blake  <eblake@redhat.com>
63905         ceil, floor, round, trunc: enhance tests of -0
63906         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63907         * tests/test-ceill.c (main): Likewise.
63908         * tests/test-floorf1.c (main): Likewise.
63909         * tests/test-floorl.c (main): Likewise.
63910         * tests/test-round1.c (main): Likewise.
63911         * tests/test-roundf1.c (main): Likewise.
63912         * tests/test-roundl.c (main): Likewise.
63913         * tests/test-trunc1.c (main): Likewise.
63914         * tests/test-truncf1.c (main): Likewise.
63915         * tests/test-truncl.c (main): Likewise.
63917 2010-11-04  Eric Blake  <eblake@redhat.com>
63919         frexp, tests: work around ICC bug with -zero
63920         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63921         works with more compilers.
63922         * tests/minus-zero.h: New file.
63923         * modules/ceilf-tests (Files): Include it.
63924         * modules/ceill-tests (Files): Likewise.
63925         * modules/floorf-tests (Files): Likewise.
63926         * modules/floorl-tests (Files): Likewise.
63927         * modules/frexp-nolibm-tests (Files): Likewise.
63928         * modules/frexp-tests (Files): Likewise.
63929         * modules/frexpl-nolibm-tests (Files): Likewise.
63930         * modules/frexpl-tests (Files): Likewise.
63931         * modules/isnan-tests (Files): Likewise.
63932         * modules/isnand-nolibm-tests (Files): Likewise.
63933         * modules/isnand-tests (Files): Likewise.
63934         * modules/isnanf-nolibm-tests (Files): Likewise.
63935         * modules/isnanf-tests (Files): Likewise.
63936         * modules/isnanl-nolibm-tests (Files): Likewise.
63937         * modules/isnanl-tests (Files): Likewise.
63938         * modules/round-tests (Files): Likewise.
63939         * modules/roundf-tests (Files): Likewise.
63940         * modules/roundl-tests (Files): Likewise.
63941         * modules/ldexpl-tests (Files): Likewise.
63942         * modules/signbit-tests (Files): Likewise.
63943         * modules/snprintf-posix-tests (Files): Likewise.
63944         * modules/sprintf-posix-tests (Files): Likewise.
63945         * modules/strtod-tests (Files): Likewise.
63946         * modules/trunc-tests (Files): Likewise.
63947         * modules/truncf-tests (Files): Likewise.
63948         * modules/truncl-tests (Files): Likewise.
63949         * modules/vsnprintf-posix-tests (Files): Likewise.
63950         * modules/vsprintf-posix-tests (Files): Likewise.
63951         * modules/vasnprintf-posix-tests (Files): Likewise.
63952         * modules/vasprintf-posix-tests (Files): Likewise.
63953         * tests/test-ceilf1.c (main): Use it.
63954         * tests/test-ceill.c (main): Likewise.
63955         * tests/test-floorf1.c (main): Likewise.
63956         * tests/test-floorl.c (main): Likewise.
63957         * tests/test-frexp.c (main): Likewise.
63958         * tests/test-frexpl.c (main): Likewise.
63959         * tests/test-isnan.c (main): Likewise.
63960         * tests/test-isnand.h (main): Likewise.
63961         * tests/test-isnanf.h (main): Likewise.
63962         * tests/test-isnanl.h (main): Likewise.
63963         * tests/test-ldexpl.c (main): Likewise.
63964         * tests/test-round.c (main): Likewise.
63965         * tests/test-roundf.c (main): Likewise.
63966         * tests/test-roundl.c (main): Likewise.
63967         * tests/test-signbit.c (test_signbitf, test_signbitd)
63968         (test_signbitl): Likewise.
63969         * tests/test-snprintf-posix.h (test_function): Likewise.
63970         * tests/test-sprintf-posix.h (test_function): Likewise.
63971         * tests/test-strtod.c (main): Likewise.
63972         * tests/test-trunc1.c (main): Likewise.
63973         * tests/test-truncf1.c (main): Likewise.
63974         * tests/test-truncl.c (main): Likewise.
63976         isnanl: work around icc bug
63977         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63979 2010-11-03  Eric Blake  <eblake@redhat.com>
63981         tests: fix compiler warnings
63982         * tests/test-getopt.h (test_getopt): Fix condition.
63983         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63984         * tests/test-pipe2.c (main): Likewise.
63985         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63987         utimens: fix broken m4 test
63988         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63990 2010-10-28  Bruno Haible  <bruno@clisp.org>
63992         posix_spawn*, getdtablesize: Relax license.
63993         * modules/posix_spawn (License): Change to LGPLv2+.
63994         * modules/posix_spawnp (License): Likewise.
63995         * modules/posix_spawn-internal (License): Likewise.
63996         * modules/posix_spawnattr_init (License): Likewise.
63997         * modules/posix_spawnattr_getflags (License): Likewise.
63998         * modules/posix_spawnattr_setflags (License): Likewise.
63999         * modules/posix_spawnattr_getpgroup (License): Likewise.
64000         * modules/posix_spawnattr_setpgroup (License): Likewise.
64001         * modules/posix_spawnattr_getschedparam (License): Likewise.
64002         * modules/posix_spawnattr_setschedparam (License): Likewise.
64003         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64004         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64005         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64006         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64007         * modules/posix_spawnattr_getsigmask (License): Likewise.
64008         * modules/posix_spawnattr_setsigmask (License): Likewise.
64009         * modules/posix_spawnattr_destroy (License): Likewise.
64010         * modules/posix_spawn_file_actions_init (License): Likewise.
64011         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64012         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64013         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64014         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64015         * modules/getdtablesize (License): Likewise.
64016         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64018 2010-10-26  Bruno Haible  <bruno@clisp.org>
64020         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64021         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64022         Cygwin and mingw.
64023         Suggested by Eric Blake.
64025 2010-10-26  Bruno Haible  <bruno@clisp.org>
64027         stdio: Work around compilation error due to renameat() on Solaris 10.
64028         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64029         * lib/renameat.c: Don't include <unistd.h> here.
64030         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64031         Reported by Paul Eggert and Eric Blake.
64033 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64035         renameat: port to Solaris 10, which declares renameat in unistd.h
64037         * lib/renameat.c: Include unistd.h before stdio.h, because
64038         Solaris 10 declares renameat in unistd.h.  Problem encountered
64039         when building GNU tar 1.24 on Solaris 10.
64041 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64043         fdopendir: fix C89 compilation
64044         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64045         compilers.
64047 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64049         inttostr: simplify by removing unnecessary redundancy
64050         * lib/anytostr.c: Don't include verify.h.
64051         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64052         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64053         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64054         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64055         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64056         Likewise.
64057         * modules/inttostr (Depends-on): Remove 'verify'.
64059 2010-10-23  Bruno Haible  <bruno@clisp.org>
64061         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64062         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64063         Reported by Eric Blake.
64065 2010-10-23  Bruno Haible  <bruno@clisp.org>
64067         Tests: Fix LOCALE_JA on MirBSD 10.
64068         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64069         to an UTF-8 locale.
64070         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64072         Reported by Eric Blake.
64074 2010-10-21  Bruno Haible  <bruno@clisp.org>
64076         nl_langinfo test: Avoid test failure on NetBSD 5.
64077         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64078         Reported by Eric Blake.
64080 2010-10-21  Eric Blake  <eblake@redhat.com>
64082         c-stack: work around libsigsegv 2.8 bug
64083         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64084         overflow on at least PowerPC64.
64086 2010-10-17  Bruno Haible  <bruno@clisp.org>
64088         userspec: Drop redundant file.
64089         * modules/userspec (Files): Remove lib/inttostr.h.
64091 2010-10-17  Bruno Haible  <bruno@clisp.org>
64093         nl_langinfo tests: Silence some warnings.
64094         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64095         Reported by Jim Meyering.
64097 2010-10-17  Bruno Haible  <bruno@clisp.org>
64099         Make use of GCC's attribute __alloc_size__.
64100         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64101         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64102         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64103         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64104         __alloc_size__.
64105         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64106         Suggested by Jim Meyering.
64108 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64110         bootstrap: anchor .gitignore entries.
64111         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64112         with...
64113         (insert_vc_ignore): ... this new function, which prepends `/' to
64114         all .gitignore entries before passing them to
64115         insert_sorted_if_absent.
64117 2010-10-16  Bruno Haible  <bruno@clisp.org>
64119         nextafter: Fix configure check.
64120         * modules/nextafter (configure.ac): Correct expected prototype.
64122 2010-10-16  Bruno Haible  <bruno@clisp.org>
64124         termios: Update documentation.
64125         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64127 2010-10-16  Bruno Haible  <bruno@clisp.org>
64129         tests: Make them compile with TinyCC.
64130         * tests/test-strstr.c (main): Remove parentheses around array
64131         initializer.
64133 2010-10-15  Eric Blake  <eblake@redhat.com>
64135         ignore-value: make header idempotent
64136         * lib/ignore-value.h: Add double-inclusion guards.
64137         Reported by Stefan Berger.
64139 2010-10-15  Jim Meyering  <meyering@redhat.com>
64141         GNUmakefile: handle "stable" target, not "major"
64142         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64143         lists in maint.mk and announce-gen.  Without this, "make stable"
64144         would fail to ensure that $(VERSION) is up to date.
64146 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64148         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64149         & co.
64151 2010-10-14  Bruno Haible  <bruno@clisp.org>
64153         vasnprintf: Don't set errno to 0.
64154         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64155         block that sets it to 0.
64156         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64158 2010-10-14  Bruno Haible  <bruno@clisp.org>
64160         socketlib: Fix.
64161         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64162         gl_PREREQ_SYS_H_WINSOCK2.
64163         Reported by Ian Beckwith <ianb@erislabs.net>.
64165 2010-10-13  Jim Meyering  <meyering@redhat.com>
64167         test-select-stdin.c: avoid warn_unused_result warnings
64168         * tests/test-select-stdin.c: Include "macros.h".
64169         ASSERT that read and fflush succeed.
64171 2010-10-13  Jim Meyering  <meyering@redhat.com>
64173         git-version-gen: do require git-VC'd files in cwd
64174         * build-aux/git-version-gen: Reject a git version string
64175         if there are no commits associated with the current directory.
64176         This avoids an unlikely false-positive (unrelated dir whose parent
64177         repository also contains a tag matching v*), as pointed out
64178         by Giuseppe Scrivano in
64179         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64181 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64183         argv-iter: omit nonconforming declaration
64184         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64185         enum arg_iter_err declaration, which doesn't conform to C99.
64186         Solaris 10 cc warns about this.
64188 2010-10-13  Eric Blake  <eblake@redhat.com>
64190         termios: fix compilation on mingw
64191         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64192         (gl_TERMIOS_H): Adjust it on mingw.
64193         * modules/termios (Makefile.am): Substitute new key.
64194         * lib/termios.in.h (includes): Make include_next conditional.
64195         * doc/posix-headers/termios.texi (termios.h): Update
64196         documentation.
64197         Reported by Daniel P. Berrange.
64199 2010-10-13  Jim Meyering  <meyering@redhat.com>
64201         git-version-gen: don't require that .git/ be in the current dir
64202         * build-aux/git-version-gen: Adjust this script so that it works
64203         when run from any working directory beneath the top-level .git/-
64204         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64205         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64207         test-select: avoid warn_unused_result warnings
64208         * tests/test-select.c: Include "macros.h".
64209         ASSERT that each call to read, write, and pipe succeeds.
64210         While not technically required, also check each "close".
64211         * modules/select-tests (Files): Add tests/macros.h.
64213         test-symlinkat: remove declaration of unused local
64214         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64216         test-inttostr: avoid shadowing warnings
64217         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64218         and use malloc rather than the stack for the same reason as
64219         mentioned in the comment justifying the other allocation.
64221 2010-10-11  Bruno Haible  <bruno@clisp.org>
64223         stdlib: Allow multiple gnulib generated replacements to coexist.
64224         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64225         Reported by Sam Steingold <sds@gnu.org>.
64227 2010-10-11  Jim Meyering  <meyering@redhat.com>
64229         fix a documentation typo
64230         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64232 2010-10-11  Eric Blake  <eblake@redhat.com>
64234         futimens: work around Solaris 11 bug
64235         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64236         * tests/test-futimens.h (test_futimens): Enhance, rather than
64237         weaken test.
64238         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64240 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64242         Indentation.
64243         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64244         higher-level operators more to the left.
64246 2010-10-11  Jim Meyering  <meyering@redhat.com>
64248         test-futimens: avoid unwarranted test failure on Solaris 5.11
64249         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64250         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64251         because it tries to dereference the NULL name argument.
64253 2010-10-11  Bruno Haible  <bruno@clisp.org>
64255         Indentation.
64256         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64257         indentation.
64259 2010-10-11  Jim Meyering  <meyering@redhat.com>
64261         spawn.in.h: make indentation consistent with parentheses
64262         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64263         Make indentation consistent with parentheses.
64265 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64267         Fix mismatched parens in previous commit
64268         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64269         parens.
64271 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64273         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64275         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64276         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64277         * lib/malloca.c: Include "verify.h".
64278         (verify1): Remove, replacing with a verify call.
64279         * lib/relocwrapper.c (verify1): Likewise.
64280         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64281         Likewise.
64282         * modules/malloca (Depends-on): Add 'verify'.
64283         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64284         * modules/vasnprintf (Depends-on): Add 'verify'.
64285         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64286         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64287         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64288         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64289         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64290         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64291         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64293         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64295         Formerly the style was sometimes 2*X - 1, because the C standard
64296         was wrongly thought to disallow ?: in integral constant expressions.
64297         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64298         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64299         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64300         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64301         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64302         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64303         verify that time_t cannot be floating.
64305 2010-10-08  Eric Blake  <eblake@redhat.com>
64307         time: enforce recent POSIX ruling that time_t is integral
64308         * lib/time.in.h (__time_t_must_be_integral): Detect any
64309         problematic systems, allowing the rest of gnulib to assume POSIX.
64311 2010-10-08  Jim Meyering  <meyering@redhat.com>
64313         fdopendir: fix a bug on systems lacking openat and /proc support
64314         OpenBSD 4.7 is one such system.  The most noticeable effect was
64315         failure of any application making nontrivial use of fts: rm, du,
64316         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64317           ./rm: traversal failed: `a': Bad file descriptor
64318         Debugging that, you see that even though FD 6 was closed just
64319         prior to the opendir call in fd_clone_opendir, its resulting
64320         dir->dd_fd was 8, rather than the expected value of 6:
64322         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64323         93                close (fd);
64324         (gdb) n
64325         94                dir = fd_clone_opendir (dupfd);
64326         (gdb) n
64327         95                saved_errno = errno;
64328         (gdb) p dir->dd_fd
64329         $11 = 8
64331         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64332         The problem is that on OpenBSD, fd_clone_opendir has to resort
64333         to using the old-style save/restore CWD mechanism, due to its
64334         lack of openat/proc support, and *that* would steal the FD (6)
64335         that opendir was supposed to use.
64337         The fix is to squirrel away the desired FD so that save_cwd uses a
64338         different one, and then free the dest FD right before calling opendir.
64339         That guarantees opendir will use the required file descriptor.
64341         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64343 2010-10-08  Bruno Haible  <bruno@clisp.org>
64345         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64346         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64348 2010-10-08  Bruno Haible  <bruno@clisp.org>
64350         nanosleep: Make replacement POSIX compliant.
64351         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64352         is out of range.
64353         Reported by Jim Meyering.
64355 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64357         bootstrap: add hook for altering gnulib.mk, for Bison
64358         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64359         the Bison bootstrapping process can rewrite file names and variables
64360         in this file before later parts of 'bootstrap' use the file.
64361         Bison wants to include lib/gnulib.mk from the top-level makefile,
64362         so it needs the file names in this file to be relative to the top
64363         level, not relative to lib; plus it needs variable names to be
64364         rewritten.
64365         (slurp): Use the new function.
64367         bootstrap: reformat for readability
64368         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64370 2010-10-08  Eric Blake  <eblake@redhat.com>
64372         docs: update cygwin progress
64373         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64374         1.7.7.
64375         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64376         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64377         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64378         * doc/posix-functions/carg.texi (carg): Likewise.
64379         * doc/posix-functions/cargf.texi (cargf): Likewise.
64380         * doc/posix-functions/casin.texi (casin): Likewise.
64381         * doc/posix-functions/casinf.texi (casinf): Likewise.
64382         * doc/posix-functions/casinh.texi (casinh): Likewise.
64383         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64384         * doc/posix-functions/catan.texi (catan): Likewise.
64385         * doc/posix-functions/catanf.texi (catanf): Likewise.
64386         * doc/posix-functions/catanh.texi (catanh): Likewise.
64387         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64388         * doc/posix-functions/ccos.texi (ccos): Likewise.
64389         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64390         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64391         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64392         * doc/posix-functions/cexp.texi (cexp): Likewise.
64393         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64394         * doc/posix-functions/cimag.texi (cimag): Likewise.
64395         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64396         * doc/posix-functions/clog.texi (clog): Likewise.
64397         * doc/posix-functions/clogf.texi (clogf): Likewise.
64398         * doc/posix-functions/conj.texi (conj): Likewise.
64399         * doc/posix-functions/conjf.texi (conjf): Likewise.
64400         * doc/posix-functions/cpow.texi (cpow): Likewise.
64401         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64402         * doc/posix-functions/cproj.texi (cproj): Likewise.
64403         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64404         * doc/posix-functions/creal.texi (creal): Likewise.
64405         * doc/posix-functions/crealf.texi (crealf): Likewise.
64406         * doc/posix-functions/csin.texi (csin): Likewise.
64407         * doc/posix-functions/csinf.texi (csinf): Likewise.
64408         * doc/posix-functions/csinh.texi (csinh): Likewise.
64409         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64410         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64411         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64412         * doc/posix-functions/ctan.texi (ctan): Likewise.
64413         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64414         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64415         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64416         * doc/posix-headers/complex.texi (complex.h): Likewise.
64418 2010-10-07  Jim Meyering  <meyering@redhat.com>
64420         parse-datetime: avoid compilation failure on OpenBSD 4.7
64421         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64422         This works around a compilation failure on OpenBSD 4.7:
64423         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64425 2010-10-07  Eric Blake  <eblake@redhat.com>
64427         docs: update cygwin progress
64428         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64429         1.7.6.
64430         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64431         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64432         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64433         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64434         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64435         Likewise.
64436         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64437         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64438         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64439         Likewise.
64440         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64441         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64442         Likewise.
64443         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64444         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64445         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64446         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64447         Likewise.
64448         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64449         Likewise.
64450         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64452         docs: update parse-datetime history
64453         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64454         documentation of this function's history and alternatives.
64456         cygwin: use more robust version check
64457         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64458         exclude an eventual cygwin 1.9.1.
64459         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64461         (gl_FUNC_STRCASESTR): Likewise.
64462         Reported by Bruno Haible.
64464 2010-10-06  Bruno Haible  <bruno@clisp.org>
64466         string, sys_select: Avoid #including large headers unless necessary.
64467         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64468         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64469         OSF/1, BeOS, Haiku.
64470         Reported by Jim Meyering.
64472 2010-10-05  Eric Blake  <eblake@redhat.com>
64474         memmem, strstr, strcasestr: fix bug with long periodic needle
64475         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64476         periodic needle having false positive.
64477         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64478         and cygwin 1.7.7.
64479         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64480         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64481         (gl_FUNC_STRCASESTR): Likewise.
64482         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64483         * tests/test-memmem.c (main): Expose the bug.
64484         * tests/test-strcasestr.c (main): Likewise.
64485         * tests/test-strstr.c (main): Likewise.
64486         * tests/test-c-strcasestr.c (main): Likewise.
64487         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64488         * doc/posix-functions/strstr.texi (strstr): Likewise.
64489         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64490         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64492 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64494         parse-datetime: do some more renaming
64495         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64496         parse_datetime, not get_date.  Mention the renaming.
64497         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64498         in comments.
64499         * m4/bison.m4: Likewise.
64501 2010-10-05  Eric Blake  <eblake@redhat.com>
64503         parse-datetime: better name than get_date
64504         * NEWS: Reword the deprecation notice.
64505         * modules/get_date: Rename to modules/parse-datetime.
64506         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64507         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64508         * lib/get_date.y: Rename to lib/parse-datetime.y.
64509         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64510         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64511         * doc/getdate.texi: Provide fallback wrapper.
64512         * lib/getdate.h: Move guts, and wrap...
64513         * lib/parse-datetime.h: ...new file.
64514         * lib/parse-datetime.y (get_date): Rename...
64515         (parse_datetime): ...to this.
64516         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
64517         (gl_PARSE_DATETIME): ...to this.
64518         * doc/posix-functions/getdate.texi (get_date): Provide fallback
64519         documentation.
64520         * modules/getdate (Files): Provide fallback docs and header.
64521         (Notice, Depends-on): Update references.
64522         * tests/test-parse-datetime.c: Likewise.
64523         * DEPENDENCIES: Likewise.
64524         * MODULES.html.sh (Date and time <time.h>): Likewise.
64525         * doc/parse-datetime.texi (Date input formats)
64526         (Authors of parse_datetime): Likewise.
64527         * modules/parse-datetime (Files, configure.ac, Makefile.am)
64528         (Include): Likewise.
64529         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
64530         * gnulib-tool: Likewise.
64531         * m4/bison.m4 (gl_BISON): Likewise.
64532         Suggested by Bruno Haible.
64534 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64536         more ports to Solaris tr, which needs [] around ranges
64537         * gnulib-tool: Solaris tr needs [] around ranges.
64538         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
64539         * tests/test-pipe-filter-gi1.c (main): Likewise.
64540         * tests/test-pipe-filter-ii1.c (main): Likewise.
64542 2010-10-05  Eric Blake  <eblake@redhat.com>
64544         bootstrap: fix Solaris regression
64545         * build-aux/bootstrap (check_versions): Solaris tr still needs []
64546         around ranges.
64547         Reported by Pádraig Brady.
64549         bootstrap: work with pkg-config
64550         * build-aux/bootstrap (check_versions): Also transliterate - in
64551         prerequisite name.
64552         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
64553         prerequisites that were already found, to avoid confusion.
64554         Reported by Justin Clift.
64556         faccessat: remove unused wrappers
64557         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
64558         presence of these wrappers dragged in -lgen on Solaris.
64559         Reported by Clemens Brogi; fix suggested by Paul Eggert.
64561 2010-10-05  Jim Meyering  <meyering@redhat.com>
64563         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
64564         * Makefile (sc_pragma_columns): New syntax-check rule.
64566 2010-10-04  Bruno Haible  <bruno@clisp.org>
64568         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
64569         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
64570         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
64571         Reported by Bruce Korb and Eric Blake.
64573 2010-10-04  Bruno Haible  <bruno@clisp.org>
64575         threadlib: Make option --with-libpth-prefix work.
64576         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
64577         use $LIBPTH, not just -lpth.
64579 2010-10-04  Bruno Haible  <bruno@clisp.org>
64581         Avoid line length limitation from HP NonStop system header files.
64582         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
64583         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
64584         * lib/ctype.in.h: Likewise.
64585         * lib/dirent.in.h: Likewise.
64586         * lib/errno.in.h: Likewise.
64587         * lib/fcntl.in.h: Likewise.
64588         * lib/float.in.h: Likewise.
64589         * lib/getopt.in.h: Likewise.
64590         * lib/iconv.in.h: Likewise.
64591         * lib/inttypes.in.h: Likewise.
64592         * lib/langinfo.in.h: Likewise.
64593         * lib/locale.in.h: Likewise.
64594         * lib/math.in.h: Likewise.
64595         * lib/netdb.in.h: Likewise.
64596         * lib/netinet_in.in.h: Likewise.
64597         * lib/poll.in.h: Likewise.
64598         * lib/pthread.in.h: Likewise.
64599         * lib/pty.in.h: Likewise.
64600         * lib/sched.in.h: Likewise.
64601         * lib/se-selinux.in.h: Likewise.
64602         * lib/search.in.h: Likewise.
64603         * lib/signal.in.h: Likewise.
64604         * lib/spawn.in.h: Likewise.
64605         * lib/stdarg.in.h: Likewise.
64606         * lib/stddef.in.h: Likewise.
64607         * lib/stdint.in.h: Likewise.
64608         * lib/stdio.in.h: Likewise.
64609         * lib/stdlib.in.h: Likewise.
64610         * lib/string.in.h: Likewise.
64611         * lib/strings.in.h: Likewise.
64612         * lib/sys_file.in.h: Likewise.
64613         * lib/sys_ioctl.in.h: Likewise.
64614         * lib/sys_select.in.h: Likewise.
64615         * lib/sys_socket.in.h: Likewise.
64616         * lib/sys_stat.in.h: Likewise.
64617         * lib/sys_time.in.h: Likewise.
64618         * lib/sys_times.in.h: Likewise.
64619         * lib/sys_utsname.in.h: Likewise.
64620         * lib/sys_wait.in.h: Likewise.
64621         * lib/sysexits.in.h: Likewise.
64622         * lib/termios.in.h: Likewise.
64623         * lib/time.in.h: Likewise.
64624         * lib/unistd.in.h: Likewise.
64625         * lib/wchar.in.h: Likewise.
64626         * lib/wctype.in.h: Likewise.
64627         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64628         * modules/ctype (Makefile.am): Likewise.
64629         * modules/dirent (Makefile.am): Likewise.
64630         * modules/errno (Makefile.am): Likewise.
64631         * modules/fcntl-h (Makefile.am): Likewise.
64632         * modules/float (Makefile.am): Likewise.
64633         * modules/getopt-posix (Makefile.am): Likewise.
64634         * modules/iconv-h (Makefile.am): Likewise.
64635         * modules/inttypes (Makefile.am): Likewise.
64636         * modules/langinfo (Makefile.am): Likewise.
64637         * modules/locale (Makefile.am): Likewise.
64638         * modules/math (Makefile.am): Likewise.
64639         * modules/netdb (Makefile.am): Likewise.
64640         * modules/netinet_in (Makefile.am): Likewise.
64641         * modules/poll-h (Makefile.am): Likewise.
64642         * modules/pthread (Makefile.am): Likewise.
64643         * modules/pty (Makefile.am): Likewise.
64644         * modules/sched (Makefile.am): Likewise.
64645         * modules/search (Makefile.am): Likewise.
64646         * modules/selinux-h (Makefile.am): Likewise.
64647         * modules/signal (Makefile.am): Likewise.
64648         * modules/spawn (Makefile.am): Likewise.
64649         * modules/stdarg (Makefile.am): Likewise.
64650         * modules/stddef (Makefile.am): Likewise.
64651         * modules/stdint (Makefile.am): Likewise.
64652         * modules/stdio (Makefile.am): Likewise.
64653         * modules/stdlib (Makefile.am): Likewise.
64654         * modules/string (Makefile.am): Likewise.
64655         * modules/strings (Makefile.am): Likewise.
64656         * modules/sys_file (Makefile.am): Likewise.
64657         * modules/sys_ioctl (Makefile.am): Likewise.
64658         * modules/sys_select (Makefile.am): Likewise.
64659         * modules/sys_socket (Makefile.am): Likewise.
64660         * modules/sys_stat (Makefile.am): Likewise.
64661         * modules/sys_time (Makefile.am): Likewise.
64662         * modules/sys_times (Makefile.am): Likewise.
64663         * modules/sys_utsname (Makefile.am): Likewise.
64664         * modules/sys_wait (Makefile.am): Likewise.
64665         * modules/sysexits (Makefile.am): Likewise.
64666         * modules/termios (Makefile.am): Likewise.
64667         * modules/time (Makefile.am): Likewise.
64668         * modules/unistd (Makefile.am): Likewise.
64669         * modules/wchar (Makefile.am): Likewise.
64670         * modules/wctype (Makefile.am): Likewise.
64672 2010-10-04  Bruno Haible  <bruno@clisp.org>
64674         read-file tests: Avoid a test failure on NonStop Kernel.
64675         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64676         a regular file.
64677         Reported by Joachim Schmitz <schmitz@hp.com>.
64679 2010-10-03  Bruno Haible  <bruno@clisp.org>
64681         gnulib-tool: Fixes for --create-testdir with --libtool.
64682         * gnulib-tool (func_get_automake_snippet): Don't augment
64683         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64684         an executable.
64685         (func_create_testdir): Handle module 'alloca' like func_import.
64686         Reported by Bruce Korb <bruce.korb@gmail.com>.
64688 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64690         Avoid some lines longer than 80 characters.
64691         * lib/stdint.in.h: Break long comment lines.
64692         * lib/math.in.h: Likewise.
64693         (_GL_NUM_UINT_WORDS): New macro, for readability.
64694         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64695         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64696         * lib/stdlib.in.h: Likewise.
64697         * lib/spawn.in.h: Likewise.
64698         * lib/sys_socket.in.h: Update an URL.
64699         * lib/sys_stat.in.h: Break long line.
64701 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64703         Improve pmccabe2html.
64704         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64705         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64706         when the sources change. Remove the line in the HTML about "Used
64707         ranges" (which implied that there might be other unused ranges),
64708         rename "Resume" to "Summary" (easier to understand for more users).
64709         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64710         styles, and some unnecessary blank lines.
64712 2010-10-03  Bruno Haible  <bruno@clisp.org>
64713             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64715         acl: Add support for ACLs on NonStop Kernel.
64716         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64717         Check whether the function aclsort() exists.
64718         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64719         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64720         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64721         (acl_nontrivial [HAVE_ACLSORT]: New function.
64722         (file_has_acl): Implement for NonStop Kernel.
64723         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64724         (qset_acl): Implement for NonStop Kernel.
64725         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64726         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64727         (main): Implement for NonStop Kernel.
64728         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64729         Kernel. Handle this flavor.
64730         * tests/test-set-mode-acl.sh: Likewise.
64731         * tests/test-copy-acl.sh: Likewise.
64732         * tests/test-copy-file.sh: Likewise.
64734 2010-10-03  Bruno Haible  <bruno@clisp.org>
64736         Info about ACLs on NonStop Kernel.
64737         * doc/acl-resources.txt: Add info about NonStop Kernel.
64738         References by Joachim Schmitz <schmitz@hp.com>.
64740 2010-10-02  Bruno Haible  <bruno@clisp.org>
64742         Define missing EDQUOT on NonStop Kernel.
64743         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64744         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64746         missing.
64747         * doc/posix-headers/errno.texi: Mention the NSK bug.
64748         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64749         Reported by Joachim Schmitz <schmitz@hp.com>.
64751 2010-10-02  Bruno Haible  <bruno@clisp.org>
64753         Update doc for POSIX:2008.
64754         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64755         Update URL of POSIX specification.
64757 2010-10-02  Bruno Haible  <bruno@clisp.org>
64759         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64760         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64761         from gnulib, not from Automake.
64763 2010-10-02  Bruno Haible  <bruno@clisp.org>
64765         New module 'system-posix'.
64766         * modules/system-posix: New file.
64767         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64768         module is present.
64769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64770         GNULIB_SYSTEM_POSIX.
64771         * modules/stdlib (Depends-on): Remove sys_wait.
64772         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64773         * doc/posix-functions/system.texi: Mention the new module.
64774         * doc/posix-headers/stdlib.texi: Likewise.
64775         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64776         define test_sys_wait_macros to a no-op.
64777         Reported by Sam Steingold <sds@gnu.org>.
64779 2010-09-30  Bruno Haible  <bruno@clisp.org>
64781         More renaming from 'getdate' to 'get_date'.
64782         * doc/get_date.texi: Renamed from doc/getdate.texi.
64783         * modules/get_date (Files): Update.
64784         * MODULES.html.sh (Date and time <time.h>): Update.
64785         * DEPENDENCIES: Update.
64786         * gnulib-tool: Update comment.
64787         * m4/bison.m4 (gl_BISON): Likewise.
64788         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64790 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64792         bootstrap: support ACLOCAL_FLAGS during aclocal
64793         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64794         can add additional -I dir for third-party .m4 files.
64796 2010-09-30  Eric Blake  <eblake@redhat.com>
64798         bootstrap: use glibtoolize on MacOS
64799         * build-aux/bootstrap (check_versions): Convert libtool into
64800         libtoolize.
64801         (tool search): Move libtool check earlier, and look for
64802         glibtoolize for MacOS.
64803         (gnulib_tool_options): Auto-add --libtool when appropriate.
64804         Reported by Justin Clift.
64806         poll: fix typo that broke test on MacOS
64807         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64808         Reported by Justin Clift.
64810         getdate: rename to get_date
64811         Note: getdate.h is not renamed, to minimize client impact.
64812         * modules/getdate: Mark obsolete.  Move old contents...
64813         * modules/get_date: ...to new module name.
64814         * modules/getdate-tests: Move...
64815         * modules/get_date-tests: ...here.
64816         * m4/getdate.m4: Move...
64817         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64818         * lib/getdate.y: Move...
64819         * lib/get_date.y: ...here.
64820         * tests/test-getdate.c: Move...
64821         * tests/test-get_date.c: ...here.
64822         * doc/posix-functions/getdate.texi (getdate): Update name.
64823         * NEWS: Mention the change.
64825 2010-09-29  Bruno Haible  <bruno@clisp.org>
64827         Separate the module 'waitpid' from the module 'sys_wait'.
64828         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64829         present.
64830         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64831         gl_MODULE_INDICATOR_FOR_TESTS.
64832         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64833         * modules/sys_wait (Depends-on): Remove waitpid.
64834         (Makefile.am): Substitute GNULIB_WAITPID.
64835         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64836         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64837         signature only if the 'waitpid' module is present.
64838         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64839         * NEWS: Mention the change.
64840         * modules/grantpt (Depends-on): Add waitpid.
64841         * modules/wait-process (Depends-on): Likewise.
64843 2010-09-29  Bruno Haible  <bruno@clisp.org>
64845         More tests for module 'sys_wait'.
64846         * modules/sys_wait-c++-tests: New file.
64847         * tests/test-sys_wait-c++.cc: New file.
64848         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64849         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64851 2010-09-29  Bruno Haible  <bruno@clisp.org>
64853         New module 'waitpid'.
64854         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64855         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64856         Don't include <process.h>.
64857         (waitpid): Declare only, using modern idiom.
64858         * m4/waitpid.m4: New file.
64859         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64860         * modules/waitpid: New file.
64861         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64862         (Makefile.am): Update.
64863         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64865 2010-09-28  Bruno Haible  <bruno@clisp.org>
64867         poll: Assume ANSI C.
64868         * lib/poll.c (poll): Use an ANSI C declaration.
64870 2010-09-28  Bruno Haible  <bruno@clisp.org>
64872         poll-h: Create poll.h on all platforms.
64873         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64874         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64875         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64876         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64877         (gl_REPLACE_POLL_H): Don't set POLL_H.
64878         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64879         * modules/poll-h (Depends-on): Add include_next.
64880         (Makefile.am): Create poll.h unconditionally. Substitute also
64881         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64883 2010-09-28  Bruno Haible  <bruno@clisp.org>
64885         Tests for module 'poll-h'.
64886         * modules/poll-h-c++-tests: New file.
64887         * tests/test-poll-h-c++.cc: New file.
64889         Tests for module 'poll-h'.
64890         * modules/poll-h-tests: New file.
64891         * tests/test-poll-h.c: New file.
64893 2010-09-28  Bruno Haible  <bruno@clisp.org>
64895         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64896         * modules/poll-h (Depends-on): Add 'extensions'.
64898 2010-09-28  Bruno Haible  <bruno@clisp.org>
64900         New module 'poll-h'.
64901         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64902         (poll): Use modern idiom.
64903         * modules/poll-h: New file.
64904         * modules/poll (Files): Remove lib/poll.in.h.
64905         (Depends-on): Add poll-h.
64906         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64907         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64908         * m4/poll_h.m4: New file.
64909         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64910         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64911         and invoke gl_REPLACE_POLL_H.
64912         * lib/poll.c: Use common idiom.
64913         * tests/test-poll.c: Likewise.
64914         * doc/posix-headers/poll.texi: Mention the poll-h module.
64915         Suggested by Eric Blake.
64917 2010-09-26  Bruno Haible  <bruno@clisp.org>
64919         sys_wait: Implement WSTOPSIG.
64920         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64921         Reported by Simon Josefsson.
64923 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64925         stdlib, sys_wait: Avoid compilation error on mingw.
64926         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64928 2010-09-26  Bruno Haible  <bruno@clisp.org>
64930         stdlib tests: Avoid code duplication.
64931         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64932         * modules/sys_wait-tests (Files): Likewise.
64933         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64934         * tests/test-stdlib.c: Include test-sys_wait.h.
64935         (main): Invoke test_sys_wait_macros.
64936         * tests/test-sys_wait.c: Include test-sys_wait.h.
64937         (main): Invoke test_sys_wait_macros.
64939 2010-09-25  Simon Josefsson  <simon@josefsson.org>
64941         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
64942         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
64943         sure Windows sockets are working before calling getaddrinfo.
64944         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
64945         * doc/gnulib.texi (Windows sockets): Fix typo.
64947 2010-09-25  Bruno Haible  <bruno@clisp.org>
64949         Tests for module 'regex-quote'.
64950         * modules/regex-quote-tests: New file.
64951         * tests/test-regex-quote.c: New file.
64953         New module 'regex-quote'.
64954         * lib/regex-quote.h: New file.
64955         * lib/regex-quote.c: New file.
64956         * modules/regex-quote: New file.
64957         Suggested by Reuben Thomas <rrt@sc3d.org>.
64959 2010-09-24  Bruno Haible  <bruno@clisp.org>
64961         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64962         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64964 2010-09-23  Bruno Haible  <bruno@clisp.org>
64966         setenv: Relax license.
64967         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64968         Blake.
64969         Requested by Eric Blake.
64971 2010-09-22  Bruno Haible  <bruno@clisp.org>
64973         termios: Relax license.
64974         * modules/termios (License): Change to LGPLv2+.
64975         Requested by Eric Blake.
64977 2010-09-22  Bruno Haible  <bruno@clisp.org>
64979         threadlib: Allow the package to change the default to 'no'.
64980         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64981         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64982         Reported by Paul Eggert.
64984 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64985             Bruno Haible  <bruno@clisp.org>
64987         Fix endless loop in mbmemcasecoll.
64988         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64989         byte.
64990         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64992 2010-09-22  Bruno Haible  <bruno@clisp.org>
64994         Tests for module 'memcoll'.
64995         * modules/memcoll-tests: New file.
64996         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64998         memcoll, xmemcoll: Clarify size vs. length.
64999         * modules/memcoll.c (memcoll0): Clarify specification.
65000         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65001         passed to collate_error.
65003 2010-09-22  Bruno Haible  <bruno@clisp.org>
65005         Tests for module 'memcasecmp'.
65006         * modules/memcasecmp-tests: New file.
65007         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65009 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65011         * lib/pthread.in.h: Add split double-inclusion guard, and include
65012         system <pthread.h> if there is one.  Use @@-style as in other
65013         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65014         pthread.h doesn't.
65015         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65016         (pthread_mutexattr_settype, pthread_mutex_trylock):
65017         New static inline functions, if there's no system <pthread.h>.
65018         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65019         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65020         Approximate with mutexes if the system lacks spinlocks, as in
65021         MacOS.
65022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65023         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65024         @@-style.  Check for spinlocks separately.
65025         (gl_PTHREAD_DEFAULTS): New macro.
65026         * modules/pthread: Redo to use a more typical style for in.h files.
65028 2010-09-21  Eric Blake  <eblake@redhat.com>
65030         net_if: enhance tests
65031         * tests/test-net_if.c (main): Move signature checks earlier.
65032         Print failures to stderr.
65033         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65034         Document the bug that we do not yet fix.
65036 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65038         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65039         about gnulib, not GSS.
65041 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65043         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65044         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65045         for Emacs.
65046         * build-aux/pmccabe2html: Make Makefile.am example code more
65047         cut-and-paste friendly.
65049 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65051         * tests/test-net_if.c: New file.
65052         * modules/net_if-tests: New file.
65054 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65056         pthread: add pthread_spin_destroy
65057         * lib/pthread.in.h (pthread_spin_destroy): New function.
65059 2010-09-19  Bruno Haible  <bruno@clisp.org>
65061         gnulib-tool: Fix --help output.
65062         * gnulib-tool (func_usage): Fix help message.
65063         Reported by Reuben Thomas <rrt@sc3d.org>.
65065 2010-09-18  Jim Meyering  <meyering@redhat.com>
65067         maint.mk: avoid unexpanded \n in two diagnostics
65068         * top/maint.mk (sc_prohibit_always_true_header_tests):
65069         Don't use a literal \n in a halt=... assignment.  It would not be
65070         expanded, and the two \n bytes would appear in the diagnostic output
65071         rather than the desired newline.  Use halt=$$(printf ... instead.
65072         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65074 2010-09-18  Bruno Haible  <bruno@clisp.org>
65076         netinet_in: Doc tweak.
65077         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65078         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65080 2010-09-18  Jim Meyering  <meyering@redhat.com>
65082         init.sh: correct an outdated comment
65083         * tests/init.sh (create_exe_shims_):  s/function/alias/
65085         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65086         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65087         a file named "*.exe" is removed between the glob expansion and the
65088         processing of that oddly named file.
65090 2010-09-17  Eric Blake  <eblake@redhat.com>
65092         mirbsd: add some more support
65093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65094         in BSD family.
65095         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65096         devices as OpenBSD.
65097         * m4/host-os.m4 (mirbsd): Add MirBSD.
65099         tests: fix unportable assumption on sys/wait.h
65100         * tests/test-sys_wait.c (main): Relax test.
65101         * tests/test-stdlib.c (main): Likewise.
65103         init.sh: accommodate directory with no .exes
65104         * tests/init.sh: Accomodate directory containing only scripts.
65106         tests: avoid compiler warning
65107         * tests/test-stdlib.c (main): Use the variable.
65109         fdutimens, fdutimensat: update signature, again
65110         * lib/utimens.h (gl_futimens): Delete, and move signature...
65111         (fdutimens): ...here.
65112         (fdutimensat): Rearrange signature.
65113         (lutimensat): Rename variable for clarity.
65114         * lib/fdutimensat.c (fdutimensat): Update signature.
65115         * lib/utimens.c (fdutimens): Likewise.
65116         (gl_futimens): Delete.
65117         (utimens, lutimens): Update callers.
65118         * lib/futimens.c (futimens): Likewise.
65119         * tests/test-fdutimensat.c: Likewise.
65120         * tests/test-utimens.c: Likewise.
65121         * tests/test-futimens.h: Update comment.
65122         * NEWS: Mention this.
65123         Suggested by Paul Eggert.
65125 2010-09-17  Bruno Haible  <bruno@clisp.org>
65127         Take over the maintenance of some older macros from Autoconf.
65128         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65129         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65130         GNU Autoconf.
65131         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65132         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65134 2010-09-17  Eric Blake  <eblake@redhat.com>
65136         fdutimensat: drop atflag validation
65137         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65138         with valid fd, to close a race scenario where futimens is
65139         unsupported and FILE was replaced by a symlink.
65140         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65141         accordingly.
65142         Suggested by Paul Eggert.
65144 2010-09-16  Bruno Haible  <bruno@clisp.org>
65146         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65147         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65149 2010-09-16  Bruno Haible  <bruno@clisp.org>
65151         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65152         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65153         login_tty exists.
65154         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65156 2010-09-16  Bruno Haible  <bruno@clisp.org>
65158         login_tty: Make the replacement code work on BSD systems.
65159         * lib/login_tty.c: Include <sys/ioctl.h>.
65160         (login_tty): Use ioctl TIOCSCTTY when available.
65161         * modules/login_tty (Depends-on): Add sys_ioctl.
65162         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65164 2010-09-16  Bruno Haible  <bruno@clisp.org>
65166         login_tty: Stricter unit test.
65167         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65168         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65169         and tcgetsid() after login_tty.
65170         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65172 2010-09-16  Bruno Haible  <bruno@clisp.org>
65174         New module 'tcgetsid'.
65175         * lib/tcgetsid.c: New file.
65176         * m4/tcgetsid.m4: New file.
65177         * modules/tcgetsid: New file.
65178         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65179         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65180         GNULIB_TCGETSID, HAVE_TCGETSID.
65181         * lib/termios.in.h: Include <sys/types.h>.
65182         (tcgetsid): New declaration.
65183         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65184         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65185         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65186         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65188 2010-09-16  Bruno Haible  <bruno@clisp.org>
65190         Tests for module 'termios'.
65191         * modules/termios-c++-tests: New file.
65192         * modules/termios-tests: New file.
65193         * tests/test-termios-c++.cc: New file.
65194         * tests/test-termios.c: New file.
65196         New module 'termios'.
65197         * modules/termios: New file.
65198         * lib/termios.in.h: New file.
65199         * m4/termios_h.m4: New file.
65200         * doc/posix-headers/termios.texi: Mention the new module.
65202 2010-09-16  Eric Blake  <eblake@redhat.com>
65204         fdutimensat: add an atflag parameter
65205         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65206         * lib/utimens.h (fdutimensat): Update prototype.
65207         * tests/test-fdutimensat.c: Adjust test to match.
65208         * NEWS: Document the change.
65209         Suggested by Paul Eggert.
65211 2010-09-16  Bruno Haible  <bruno@clisp.org>
65213         Fix typos in comments.
65214         * lib/striconveh.h: Fix typo in comment.
65215         * lib/login_tty.c (login_tty): Likewise.
65217 2010-09-15  Bruno Haible  <bruno@clisp.org>
65219         stdlib: clarify MirBSD WEXITSTATUS bug
65220         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65221         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65223 2010-09-15  Eric Blake  <eblake@redhat.com>
65225         stdlib: work around MirBSD WEXITSTATUS bug
65226         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65227         * modules/stdlib (Depends-on): Add sys_wait.
65228         * tests/test-sys_wait.c (main): Enhance test.
65229         * tests/test-stdlib.c (main): Likewise.
65230         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65232         docs: mention MacOS issue with WEXITSTATUS(constant)
65233         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65234         issue.
65235         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65237         strnlen: add tests
65238         * modules/strnlen-tests: New file.
65239         * tests/test-strnlen.c: Likewise.
65241 2010-09-14  Bruno Haible  <bruno@clisp.org>
65243         unistr/base: Avoid link errors when module 'libunistring' is also used.
65244         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65245         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65246         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65247         Declare also when HAVE_LIBUNISTRING is set.
65248         Reported by Pádraig Brady <P@draigbrady.com>.
65250 2010-09-14  Eric Blake  <eblake@redhat.com>
65252         test-rawmemchr: make more robust
65253         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65254         (Depends-on, configure.ac): Add needed prerequisites to use it.
65255         * modules/memchr-tests (Files, Depends-on, configure.ac):
65256         Likewise, to avoid implicit reliance on memchr module prereqs.
65257         * tests/test-memchr.c (main): Ensure proper masking.
65258         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65259         reads.
65261         memchr: detect glibc Alpha bug
65262         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65263         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65264         Alpha.
65265         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65266         * tests/test-memchr.c (main): Enhance test.
65267         Reported by Nelson H. F. Beebe.
65269 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65271         fts, getcwd, glob: audit for dirfd returning -1
65272         * lib/fts.c (opendir): Remove #define; no longer used.
65273         (opendirat): New arg PDIR_FD.  All callers changed.
65274         (fts_build, _opendir2): Use new opendirat to avoid the need for
65275         dirfd, or for checking whether dirfd returns a negative value.
65276         Don't use opendir; always use openat followed by fdopendir.
65277         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65278         it.
65279         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65280         returns -1 here.
65281         * modules/fts (Depends-on): Remove dirfd.
65282         * modules/getcwd (Depends-on): Likewise.
65284 2010-09-13  Eric Blake  <eblake@redhat.com>
65286         float: fix broken MirBSD header
65287         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65288         * doc/posix-headers/float.texi (float.h): Document it.
65290 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65292         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65293         * lib/fts.c (opendirat): New arg extra_flags.
65294         (__opendir2): Use it to avoid following symlinks when opening
65295         a directory, if symlinks are not supposed to be followed.  See
65296         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65298         fdopendir: preserve argument fd before returning
65299         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65300         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65301         (fdopendir): Use them, arranging for FD to be open to the same
65302         directory that it was when it started.  (It might be temporarily
65303         closed while fdopendir is running, so this not thread- or
65304         signal-safe.)  Be careful to do the right thing even when file
65305         descriptors are scarce and dup fails with errno == EMFILE.  See
65306         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65308 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65310         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65311         * NEWS: Document change.
65312         * m4/regex.m4: Disable test for regoff_t size.
65314 2010-09-13  Jim Meyering  <meyering@redhat.com>
65316         fts: don't operate on an invalid file descriptor after failed dup
65317         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65318         negative file descriptor.
65320 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65322         savedir: add streamsavedir, deprecate fdsavedir
65323         * NEWS: Mention deprecation of fdsavedir.
65324         * lib/savedir.c (streamsavedir): New extern function, whose name
65325         ends in "savedir" to be consistent with the others.  This differs
65326         from savedirstream in that it doesn't close its argument.  The
65327         next version of GNU tar will use this instead of fdsavedir, to
65328         avoid some race conditions and conserve file descriptors.
65329         (savedirstream): Reimplement as a wrapper around streamsavedir.
65330         (fdsavedir): Add a comment deprecating this function.  As far as
65331         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65332         * lib/savedir.h (streamsavedir): New decl.
65333         (fdsavedir): Add a comment deprecating this.
65335 2010-09-10  Bruno Haible  <bruno@clisp.org>
65337         langinfo: Fix last commit.
65338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65339         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65342 2010-09-10  Bruno Haible  <bruno@clisp.org>
65344         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65345         * lib/progreloc.c (O_EXEC): Define fallback.
65347 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65349         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65350         * NEWS: Document recent changes to fcntl-h.
65351         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65352         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65353         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65354         Similarly for O_SEARCH; this last was already true, but not documented.
65355         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65356         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65357         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65358         Likewise.
65359         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65360         is zero, not whether it is defined.
65361         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65362         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65363         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65365 2010-09-10  Bruno Haible  <bruno@clisp.org>
65367         langinfo, nl_langinfo: Fix for IRIX 5.3.
65368         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65369         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65370         HAVE_LANGINFO_YESEXPR.
65371         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65372         HAVE_LANGINFO_YESEXPR.
65373         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65374         HAVE_LANGINFO_T_FMT_AMPM is 0.
65375         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65376         HAVE_LANGINFO_YESEXPR is 0.
65377         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65378         NOEXPR.
65379         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65380         * doc/posix-functions/nl_langinfo.texi: Likewise.
65381         Reported by Eric Blake.
65383 2010-09-10  Bruno Haible  <bruno@clisp.org>
65385         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65386         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65387         on FreeBSD 8.0 and OpenBSD 4.6.
65388         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65389         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65390         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65391         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65392         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65393         ac_includes_default.
65394         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65396 2010-09-09  Eric Blake  <eblake@redhat.com>
65398         strsignal: work around NetBSD bug
65399         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65400         * lib/string.in.h (includes): Likewise.
65401         * doc/posix-functions/strsignal.texi (strsignal): Document the
65402         bug.
65403         Reported by Nelson H. F. Beebe.
65405         gnulib-tool: work with NetBSD /bin/sh
65406         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65407         (func_get_description, func_get_comment, func_get_status)
65408         (func_get_notice, func_get_applicability, func_get_filelist)
65409         (func_get_dependencies, func_get_autoconf_early_snippet)
65410         (func_get_autoconf_snippet, func_get_automake_snippet)
65411         (func_get_include_directive, func_get_link_directive)
65412         (func_get_license, func_get_maintainer, func_import): Avoid
65413         shell syntax errors from parsing syntax extensions.
65415 2010-09-09  Bruno Haible  <bruno@clisp.org>
65417         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65418         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65419         a reliable way to determine whether the 'alias' command works.
65421 2010-09-08  Jim Meyering  <meyering@redhat.com>
65423         init.sh: penalize a set-x-impaired shell; don't disqualify it
65424         * tests/init.sh: Too many shells corrupt application stderr when
65425         you set -x, so we can't afford to disqualify them, since at least
65426         on Irix-6.5, that would disqualify all bourne shells.
65427         Instead, use a two-pass approach.
65428         On the first pass, try to find a shell that meets the stricter
65429         condition that set -x does not corrupt stderr.
65430         If no shell meets the stricter condition, retest each candidate
65431         shell, but without that extra condition.  Finally, when
65432         VERBOSE=yes is requested and set -x might cause trouble, simply
65433         issue a warning and refrain from enabling debug output.
65435 2010-09-08  Eric Blake  <eblake@redhat.com>
65437         unsetenv: fix OpenBSD bug
65438         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65439         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65440         documentation.
65441         Reported by Jim Meyering.
65443         strtod: work around IRIX 6.5 bug
65444         * lib/strtod.c (strtod): Reparse number on shorter string if
65445         exponent parse was invalid.
65446         * tests/test-strtod.c (main): Add check for "0x1p 2".
65447         Reported by Tom G. Christensen.
65449         getopt: optimize previous patch
65450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65451         empty variable.  Speed up awk script.
65452         Reported by Paolo Bonzini.
65454 2010-09-08  Jim Meyering  <meyering@redhat.com>
65456         test.sh: disqualify shells for which set -x corrupts stderr
65457         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65458         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65459         appear in stderr output.  For example, this command:
65460             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65461         prints "P=1" on those two systems:
65463 2010-09-08  Bruno Haible  <bruno@clisp.org>
65465         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65466         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65467         commands, because some shells ignore redirections when there is an
65468         error in the command lookup.
65469         Reported by Eric Blake.
65471 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65473         * lib/regex.h: Fix a mention of `regex_compile' (should be
65474         `re_compile_pattern').
65475         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65476         (re_set_registers): Correct name of parameter in comment.
65478         * doc/regex.texi: Add documentation for missing syntax flags.
65479         Remove commented-out documentation of defunct syntax option
65480         RE_NO_EMPTY_ALTS.
65481         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65482         Add documentation of re_set_registers.
65483         Document trick to re-use a pattern buffer by setting fastmap manually.
65484         Update documentation of struct re_pattern_buffer per public members.
65485         Uncomment documentation of equivalence class operators and
65486         collating symbol operators, since they are now implemented,
65487         Explain leftmost-longest matching in relation to alternatives.
65488         Tidy documentation of substring matching.
65489         Remove POSIX documentation, which is done better in
65490         glibc, and refer the reader there. Keep BSD API documentation, as
65491         that is not readily available elsewhere.
65493 2010-09-07  Eric Blake  <eblake@redhat.com>
65495         getopt: handle POSIXLY_CORRECT set but not exported
65496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65497         export state of POSIXLY_CORRECT, due to bash set -o posix.
65498         Reported by Dustin J. Mitchell.
65500 2010-09-05  Bruno Haible  <bruno@clisp.org>
65502         gnulib-tool: Highlight the changed options.
65503         * gnulib-tool (func_usage): Display the --import, --add-import,
65504         --remove-import explanations in bold font.
65506 2010-09-06  Karl Berry  <karl@gnu.org>
65508         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65510 2010-09-05  Bruno Haible  <bruno@clisp.org>
65512         uniwidth/width: Update comment.
65513         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65514         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
65516 2010-09-05  Bruno Haible  <bruno@clisp.org>
65518         isinf, isnan: Relax license.
65519         * modules/isinf (License): Change from GPL to LGPL, with consent from
65520         Ben Pfaff.
65521         * modules/isnan (License): Likewise.
65522         Requested by Ludovic Courtès.
65524 2010-09-04  Bruno Haible  <bruno@clisp.org>
65526         gnulib-tool: Help migration from --import to --add-import or --update.
65527         * gnulib-tool: Emit a verbose error message when --import is used
65528         without any module name.
65530 2010-09-04  Bruno Haible  <bruno@clisp.org>
65532         Update doc about gnulib-tool.
65533         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
65534         'gnulib-tool --update' in more detail.
65535         Reported by Eric Blake.
65537 2010-09-04  Bruno Haible  <bruno@clisp.org>
65539         gnulib-tool: Change --import. New options --add/remove-import.
65540         * gnulib-tool: New options --add-import, --remove-import.
65541         (func_usage): Document them.
65542         (have_associative): Define always.
65543         (func_import): In import mode, don't merge the specified settings with
65544         the cached settings. Implement remove-import mode.
65545         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
65546         Explain when to use them versus --import.
65547         (Simple update): Use --add-import instead of --import.
65548         * NEWS: Mention the change.
65550 2010-09-04  Bruno Haible  <bruno@clisp.org>
65552         * doc/gnulib-tool.texi (Initial import): Update paragraph about
65553         separate gnulib.mk.
65555 2010-09-04  Bruno Haible  <bruno@clisp.org>
65557         gnulib-tool: Don't talk about CVS any more.
65558         * gnulib-tool (func_usage, func_import): Write "version control"
65559         instead of CVS.
65561 2010-09-04  Jim Meyering  <meyering@redhat.com>
65563         maint.mk: avoid obscure sc_copyright_check failure in coreutils
65564         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
65565         false positives (whose names may be ill-chosen) when searching
65566         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
65567         would cause a false-positive.
65569         avoid coreutils "make distcheck" failure
65570         Coreutils tests with an absolute build directory name that contains
65571         a space.  Not quoting this directory name caused a failure.
65572         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
65573         * tests/test-vc-list-files-cvs.sh: Likewise.
65575 2010-09-04  Bruno Haible  <bruno@clisp.org>
65577         gnulib-tool: Avoid error when run in a package without Makefile.am.
65578         * gnulib-tool: When collecting the m4dirs in a package that does not
65579         have a Makefile.am, eliminate those directories that contain no
65580         gnulib-cache.m4. Fix expression that counts these directories.
65582 2010-09-04  Bruno Haible  <bruno@clisp.org>
65584         update-copyright test: Improve output when perl is missing or too old.
65585         * tests/test-update-copyright.sh: Move test of Perl version down after
65586         the test whether Perl exists. Provide an explanation relating Perl's
65587         error message to Automake's SKIP: message.
65589 2010-09-04  Bruno Haible  <bruno@clisp.org>
65591         Don't augment PATH in TESTS_ENVIRONMENT.
65592         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65593         set abs_aux_dir instead of augmenting PATH.
65594         * modules/vc-list-files-tests (Makefile.am): Likewise.
65595         * tests/test-update-copyright.sh: Augment PATH here.
65596         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65597         path_prepend_.
65598         * tests/test-vc-list-files-git.sh: Likewise.
65600 2010-09-04  Jim Meyering  <meyering@redhat.com>
65602         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65603         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65605 2010-09-04  Bruno Haible  <bruno@clisp.org>
65607         strdup: Fix compilation error in C++ mode.
65608         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
65609         the macro.
65611 2010-09-04  Bruno Haible  <bruno@clisp.org>
65613         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65614         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65615         macro into a function.
65616         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65618 2010-09-04  Bruno Haible  <bruno@clisp.org>
65620         Set PATH_SEPARATOR the same way autoconf does.
65621         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65622         the value of PATH_SEPARATOR the same way autoconf-generated configure
65623         scripts do.
65624         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65625         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65627 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65629         Set PATH_SEPARATOR the same way autoconf does.
65630         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65631         the same way autoconf-generated configure scripts do.
65632         * posix-modules: Likewise.
65634 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65636         hash: fix safe_hasher const typo
65637         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65638         const; otherwise, there is a type error later.
65640 2010-09-02  Jim Meyering  <meyering@redhat.com>
65642         test-update-copyright.sh: require perl 5.8.0
65643         * tests/test-update-copyright.sh: Require 5.8.0,
65644         which Tom G. Christensen has confirmed is adequate,
65645         while 5.6.1 is not.
65647 2010-09-02  Eric Blake  <eblake@redhat.com>
65649         tests: init.sh improvements for re-exec'ing with zsh
65650         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65651         -vx through shell re-exec.
65652         Reported by Tom G. Christensen.
65654         wctype: fix typo in previous commit
65655         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65656         Reported by Ludovic Courtès.
65658 2010-09-02  Jim Meyering  <meyering@redhat.com>
65660         test-update-copyright.sh: skip test if Perl is too old
65661         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65662         Reported by Tom G. Christensen.
65664 2010-09-02  Bruno Haible  <bruno@clisp.org>
65666         wctype: Avoid compilation error on IRIX 6.5.30.
65667         * lib/wctype.in.h (iswblank): Declare with a replacement if
65668         REPLACE_ISWBLANK is set.
65669         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65670         declared. Set REPLACE_ISWBLANK.
65671         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65672         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65673         * doc/posix-headers/wctype.texi: Likewise.
65674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65676 2010-09-01  Bruno Haible  <bruno@clisp.org>
65678         New module 'socketlib'.
65679         * modules/socketlib: New file.
65680         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65681         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65682         * modules/sockets (Depends-on): Add socketlib.
65683         Suggested by Sam Steingold <sds@gnu.org>.
65685 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65687         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65689         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65690         when one needs search access to a directory but not read access.
65691         On systems where it is available, it works in some cases where
65692         O_RDONLY does not, namely on directories that are searchable but
65693         not readable, and which need only to be searchable.  If O_SEARCH
65694         is not available, fall back to the traditional method of using
65695         O_RDONLY.
65697         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65698         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65699         when opening a directory that needs only to be searchable.
65700         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65701         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65702         * lib/openat-proc.c (openat_proc_name): Likewise.
65703         * lib/openat.c (openat_needs_fchdir): Likewise.
65704         * lib/save-cwd.c (save_cwd): Likewise.
65705         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65707 2010-08-28  Bruno Haible  <bruno@clisp.org>
65709         New module 'host-cpu-c-abi'.
65710         * modules/host-cpu-c-abi: New file.
65711         * m4/host-cpu-c-abi.m4: New file, based on part of
65712         clisp/src/m4/general.m4.
65713         Requested by Sam Steingold <sds@gnu.org>.
65715 2010-08-31  Eric Blake  <eblake@redhat.com>
65716         and Jim Meyering  <meyering@redhat.com>
65718         hash: factor, and guard against misbehaving hasher function
65719         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65720         of table->hasher's return value.  Also protect against a hash value
65721         so large that adding it to table->bucket results in a NULL pointer.
65722         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65723         Use it in place of open-coded check-and-abort.
65725 2010-08-30  Bruno Haible  <bruno@clisp.org>
65727         hash: silence spurious clang warning
65728         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65729         Reported by Eric Blake.
65731 2010-08-30  Eric Blake  <eblake@redhat.com>
65733         strstr, memmem, strcasestr: avoid leaked shell message
65734         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65735         FreeBSD.
65736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65739         tests: silence clang warning
65740         * tests/test-malloca.c (do_allocation): Avoid dead store.
65742 2010-08-29  Bruno Haible  <bruno@clisp.org>
65744         gettext: Fix recent mistake.
65745         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65747 2010-08-29  Bruno Haible  <bruno@clisp.org>
65749         selinux-h: Offer a --without-selinux option.
65750         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65751         --without-selinux was specified, skip all tests and define
65752         HAVE_SELINUX_SELINUX_H to 0.
65753         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65754         set LIB_SELINUX to empty.
65755         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65756         gl_LIBSELINUX. If --without-selinux was specified, replace
65757         selinux/context.h.
65758         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65760 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65761             Bruno Haible  <bruno@clisp.org>
65763         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65764         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65765         of HAVE_REALLOC.
65766         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65767         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65768         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65769         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65771 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65772             Bruno Haible  <bruno@clisp.org>
65774         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65775         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65776         HAVE_CALLOC.
65777         * lib/xmalloc.c: Update accordingly.
65778         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65779         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65780         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65782 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65783             Bruno Haible  <bruno@clisp.org>
65785         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65786         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65787         HAVE_MALLOC.
65788         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65789         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65790         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65792 2010-08-29  Bruno Haible  <bruno@clisp.org>
65794         Update modules list.
65795         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65796         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65797         (String handling <string.h>): Add astrxfrm.
65798         (File system functions): Add readlinkat.
65800 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65802         Tests for module 'realloc-gnu'.
65803         * modules/realloc-gnu-tests: New file.
65804         * tests/test-realloc-gnu.c: New file.
65806         Tests for module 'calloc-gnu'.
65807         * modules/calloc-gnu-tests: New file.
65808         * tests/test-calloc-gnu.c: New file.
65810         Tests for module 'malloc-gnu'.
65811         * modules/malloc-gnu-tests: New file.
65812         * tests/test-malloc-gnu.c: New file.
65814 2010-08-28  Bruno Haible  <bruno@clisp.org>
65816         Rename module 'realloc' -> 'realloc-gnu'.
65817         * modules/realloc-gnu: New file, copied from modules/realloc.
65818         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65819         obsolete.
65820         * modules/mgetgroups (Depends-on): Update.
65821         * doc/posix-functions/realloc.texi: Update.
65822         * NEWS: Mention the change.
65824         Rename module 'calloc' -> 'calloc-gnu'.
65825         * modules/calloc-gnu: New file, copied from modules/calloc.
65826         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65827         obsolete.
65828         * doc/posix-functions/calloc.texi: Update.
65829         * NEWS: Mention the change.
65831         Rename module 'malloc' -> 'malloc-gnu'.
65832         * modules/malloc-gnu: New file, copied from modules/malloc.
65833         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65834         obsolete.
65835         * modules/argp (Depends-on): Update.
65836         * modules/regex (Depends-on): Update.
65837         * doc/posix-functions/malloc.texi: Update.
65838         * NEWS: Mention the change.
65840 2010-08-28  Eric Blake  <eblake@redhat.com>
65842         pread, pwrite: add missing dependency
65843         * modules/pread (Depends-on): Add extensions.
65844         * modules/pwrite (Depends-on): Likewise.
65846 2010-08-28  Bruno Haible  <bruno@clisp.org>
65848         unistr/u*-strchr: Fix tests dependencies.
65849         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65850         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65851         Reported by Ian Beckwith <ianb@erislabs.net>.
65853 2010-08-28  Bruno Haible  <bruno@clisp.org>
65855         read-file: Don't occupy too much unused memory.
65856         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65858 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65859             Eric Blake  <eblake@redhat.com>
65860             Bruno Haible  <bruno@clisp.org>
65862         read-file: Avoid memory reallocations with regular files.
65863         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65864         (fread_file): With regular files, use the remaining length as the
65865         initial buffer size.  Check against overflow.
65866         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65867         sys_stat.
65869 2010-08-28  Bruno Haible  <bruno@clisp.org>
65871         ftello: Relax license.
65872         * modules/ftello (License): Relax to LGPLv2+.
65873         Reported by Eric Blake.
65875 2010-08-28  Bruno Haible  <bruno@clisp.org>
65877         Avoid relocwrapper link errors due to gnulib replacement functions.
65878         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65879         function.
65880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65882 2010-08-28  Bruno Haible  <bruno@clisp.org>
65884         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65885         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65886         defined.
65887         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65888         Suggested by Eric Blake.
65890 2010-08-28  Bruno Haible  <bruno@clisp.org>
65892         sys_socket, netdb: Ensure socklen_t gets defined.
65893         * modules/sys_socket (Depends-on): Add socklen.
65894         * modules/netdb (Depends-on): Likewise.
65895         * modules/getaddrinfo (Depends-on): Remove socklen.
65896         * modules/getsockopt (Depends-on): Likewise.
65897         * modules/setsockopt (Depends-on): Likewise.
65898         * tests/test-sys_socket.c: Check that socklen_t is defined.
65899         * tests/test-netdb.c: Likewise.
65900         * m4/socklen.m4: Update comments.
65901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65903 2010-08-27  Eric Blake  <eblake@redhat.com>
65905         login_tty: add missing dependency
65906         * modules/login_tty (Depends-on): Add pty.
65908 2010-08-26  Eric Blake  <eblake@redhat.com>
65910         lib-symbol-versions: fix m4 quoting
65911         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65912         format for AC_LINK_IFELSE.
65914         glob: fix compile test
65915         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65917         btowc: fix missing file
65918         * modules/btowc (Files): Also ship locale-fr.m4.
65920         lseek: fix link test
65921         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65922         AC_LINK_IFELSE.
65924         include_next: silence autoconf 2.68 warning
65925         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65926         AC_COMPILE_IFELSE as special.
65927         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65928         autoconf < 2.68.
65930         acl: fix compilation test
65931         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65932         AC_COMPILE_IFELSE.
65934 2010-08-26  Bruno Haible  <bruno@clisp.org>
65936         Modernize AC_TRY_RUN invocations.
65937         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
65938         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
65939         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
65940         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
65941         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
65942         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
65944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65945         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65946         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65947         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65948         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65949         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65950         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65952         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65953         gl_MBRLEN_NUL_RETVAL): Likewise.
65954         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65955         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65956         Likewise.
65957         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65958         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65959         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65960         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65961         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65962         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65963         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65964         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65965         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65966         Likewise.
65967         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65968         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65970         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65971         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65972         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65973         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65974         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65975         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65978 2010-08-26  Bruno Haible  <bruno@clisp.org>
65980         Modernize AC_TRY_LINK invocations.
65981         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65982         AC_TRY_LINK.
65983         * m4/argp.m4 (gl_ARGP): Likewise.
65984         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65985         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65986         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65987         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65989         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65990         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65991         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65993         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65994         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65995         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65996         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65997         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65998         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65999         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66000         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66001         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66002         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66003         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66004         Likewise.
66005         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66006         Likewise.
66007         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66008         Likewise.
66009         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66010         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66011         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66012         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66013         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66014         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66015         * m4/servent.m4 (gl_SERVENT): Likewise.
66016         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66017         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66018         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66019         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66020         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66021         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66022         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66023         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66024         * modules/tsearch-tests (configure.ac): Likewise.
66026 2010-08-26  Bruno Haible  <bruno@clisp.org>
66028         Modernize AC_TRY_COMPILE invocations.
66029         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66030         AC_TRY_COMPILE.
66031         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66032         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66033         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66034         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66035         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66036         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66037         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66038         * m4/lock.m4 (gl_LOCK): Likewise.
66039         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66040         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66041         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66042         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66043         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66044         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66045         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66046         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66047         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66048         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66049         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66050         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66051         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66052         extraneous semicolon.
66054 2010-08-26  Jim Meyering  <meyering@redhat.com>
66056         stat-time: relax license LGPL
66057         * modules/stat-time (License): Change from GPL to LGPL,
66058         with consent from all contributors, for use in libguile.
66059         Requested by Ludovic Courtès.
66061 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66063         poll: return immediately on POLLHUP.
66064         * lib/poll.c (poll): Always set timeout before wait_timeout is
66065         computed.
66067 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66069         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66070         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66071         rmdir ("dir/.//"), unlinkat.
66073 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66075         stdbool: avoid spurious failure with modern xlc
66076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66078 2010-08-24  Bruno Haible  <bruno@clisp.org>
66080         getloadavg: simplify code
66081         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66082         gl_have_func. Update comments.
66084 2010-08-24  Eric Blake  <eblake@redhat.com>
66086         getloadavg: don't define SVR4 on cygwin
66087         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66088         only define SVR4 when -lkvm is required.
66089         Reported by Yaakov Selkowitz.
66091 2010-08-24  Bruno Haible  <bruno@clisp.org>
66093         priv-set: fix comment
66094         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66096 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66098         priv-set: fix comments
66099         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66100         to match code, as suggested by David Bartley in:
66101         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66103 2010-08-23  Eric Blake  <eblake@redhat.com>
66105         stdbool: avoid rejecting clang
66106         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66107         * tests/test-stdbool.c: Enable more tests if using the system
66108         <stdbool.h> instead of the gnulib replacement.
66109         (main): Move xlc bug test to a runtime test for all compilers.
66110         Reported by Anders Kaseorg.
66112         argz: fix shell quoting issue
66113         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66114         Reported by Charles Wilson.
66116 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66117             Erik Faye-Lund <kusmabite@gmail.com>
66119         poll, select: handle ERROR_BROKEN_PIPE.
66120         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66121         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66122         * lib/select.c (win32_compute_revents): Do not mark a pipe
66123         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66125 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66127         fts: allow compilation with C++
66128         * lib/fts_.h: Specify extern "C" linkage with C++.
66130 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66132         Fix gnulib-tool sed script de-commentation for AIX sed.
66133         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66134         sed.
66136 2010-08-17  Eric Blake  <eblake@redhat.com>
66138         test-stddef: test for (some) offsetof bugs
66139         * tests/test-stddef.c: Enhance test to ensure correct type of
66140         offsetof.
66141         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66142         that we are not fixing at this time.
66144 2010-08-15  Bruno Haible  <bruno@clisp.org>
66146         stpncpy: Allow stpncpy to be defined as a macro.
66147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66148         if it's already correctly declared.
66149         * lib/string.in.h (stpncpy): Undefine before redefining.
66150         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66152 2010-08-14  Bruno Haible  <bruno@clisp.org>
66154         Rename module 'memxfrm' to 'amemxfrm'.
66155         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66156         (amemxfrm): Renamed from memxfrm.
66157         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66158         (amemxfrm): Renamed from memxfrm.
66159         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66160         * NEWS: Mention the change.
66161         * MODULES.html.sh (String handling <string.h>): Update.
66162         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66163         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66164         * lib/unicase/u16-casexfrm.c: Likewise.
66165         * lib/unicase/u32-casexfrm.c: Likewise.
66166         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66167         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66168         * lib/uninorm/u16-normxfrm.c: Likewise.
66169         * lib/uninorm/u32-normxfrm.c: Likewise.
66170         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66171         memxfrm.
66172         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66173         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66174         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66175         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66176         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66177         Suggested by Paul Eggert.
66179 2010-08-14  Bruno Haible  <bruno@clisp.org>
66181         Tests for module 'astrxfrm'.
66182         * modules/astrxfrm-tests: New file.
66183         * tests/test-astrxfrm.c: New file.
66185         New module 'astrxfrm'.
66186         * lib/astrxfrm.h: New file.
66187         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66188         * modules/astrxfrm: New file.
66190 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66192         regex: Tweak doc.
66193         * doc/regex.texi (Overview): Don't mention regex.c.
66194         (GNU Regular Expression Compiling): Likewise.
66195         (Match-end-of-line Operator): Mention 'not_eol'.
66197 2010-08-14  Brian Gough  <bjg@gnu.org>
66198             Bruno Haible  <bruno@clisp.org>
66200         git-merge-changelog: add doc relating to use with bzr and hg.
66201         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66203 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66205         pthread: fix pthread.h creation for srcdir != builddir
66206         * modules/pthread (Makefile.am): Fix the rule to work also in a
66207         non-srcdir build.
66209 2010-08-13  Karl Berry  <karl@gnu.org>
66211         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66212         * doc/posix-*/*: force line break before @url of POSIX
66213         specifications.
66214         Suggested by Werner Lemberg.
66216 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66218         strtod: fix const diagnostic
66219         * lib/strtod.c (strtod): Don't assign const char * to char *,
66220         as this elicits a warning from GCC when warnings are enabled.
66222 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66223         and Eric Blake  <eblake@redhat.com>
66225         copy-acl: ignore ENOTSUP on HP-UX
66226         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66227         so that it is available for HP-UX.
66228         * lib/copy-acl.c (qcopy_acl): Use it.
66229         Reported by Patrick M. Callahan.
66231 2010-08-10  Eric Blake  <eblake@redhat.com>
66233         open, chown: relax license
66234         * modules/open (License): Change to LGPLv2+, with consent by all
66235         authors, for use in augeas.
66236         * modules/chown (License): Likewise.
66237         * modules/lchown (Likewise): Likewise.
66238         Requested by Adam Stokes.
66240 2010-08-09  Karl Berry  <karl@gnu.org>
66242         * build-aux/ar-lib: new file, import from Automake.
66243         * config/srclist.txt: autocheck for updates.
66245 2010-08-09  Eric Blake  <eblake@redhat.com>
66247         readlinkat: adjust client modules
66248         * modules/areadlinkat (Depends-on): Use readlinkat, not
66249         symlinkat.
66250         * modules/areadlinkat-with-size (Depends-on): Likewise.
66252         mknod: be more vocal about danger of running tests as root
66253         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66254         root, since that is just asking for problems.
66255         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66257         readlinkat: split into its own module
66258         * modules/symlinkat: Split readlinkat...
66259         * modules/readlinkat: ...into separate module.
66260         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66261         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66262         * lib/symlinkat.c (readlinkat): Move...
66263         * lib/readlinkat.c: ...into new file.
66264         * modules/symlinkat-tests: Split readlinkat test...
66265         * modules/readlinkat-tests: ...into separate module.
66266         * tests/test-symlinkat.c: Split...
66267         * tests/test-readlinkat.c: ...into new file.
66268         * NEWS: Document the split.
66269         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66270         * lib/unistd.in.h (readlinkat): Likewise.
66271         Suggested by Bruno Haible.
66273 2010-08-08  Bruno Haible  <bruno@clisp.org>
66275         memxfrm: Speed up.
66276         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66277         that usually only one call to strxfrm is necessary for each string
66278         part.
66279         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66281 2010-08-07  Karl Berry  <karl@gnu.org>
66283         * doc/posix-headers/limits.texi,
66284         * doc/posix-functions/malloc.texi,
66285         * doc/posix-functions/strsignal.texi: missing @item.
66286         * doc/ld-version-script.texi: spurious leading i.
66287         * doc/regex.texi (Interval Operators): no commas inside @var.
66289 2010-08-01  Bruno Haible  <bruno@clisp.org>
66291         Integrate the regex documentation.
66292         * doc/gnulib.texi: Define 'cn' index.
66293         (Regular expressions): New a chapter that includes regex.texi and
66294         regexprops-generic.texi.
66295         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66296         syntax.
66298         Whitespace cleanup.
66299         * doc/regex.texi: Remove trailing spaces.
66301         Add regex documentation.
66302         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66303         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66304         Written by Kathy A. Hargreaves and Karl Berry.
66306 2010-08-01  Bruno Haible  <bruno@clisp.org>
66308         link: Update documentation.
66309         * doc/posix-functions/link.texi: Update regarding Solaris.
66311 2010-07-31  Bruno Haible  <bruno@clisp.org>
66313         Update modules list.
66314         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66315         (String handling <string.h>): Add memcmp2, memxfrm.
66316         (Container data structures): Add xlist, xsublist, xoset.
66317         (Core language properties): Add alignof, unused-parameter.
66318         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66319         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66320         (Unibyte characters <ctype.h>): New section.
66321         (String handling <string.h>): New section.
66322         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66323         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66324         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66325         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66326         tan, tanh, tanl, y0, y1, yn.
66327         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66328         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66329         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66330         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66331         unlockpt, vdprintf, vdprintf-posix.
66332         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66333         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66334         xconcat-filename.
66335         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66336         getdtablesize, pipe2, pipe2-safer.
66337         (Security): New section.
66338         (Networking functions): Add accept4.
66339         (Signal handling): Add sigpipe.
66340         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66341         mbmemcasecoll.
66342         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66343         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66344         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66345         pipe-filter-ii.
66346         (Misc): Add argp-version-etc, login_tty, parse-duration.
66348 2010-07-31  Bruno Haible  <bruno@clisp.org>
66350         Improve doc in MODULES.html.
66351         * modules/linkat (Description): Add the word "function".
66352         * modules/mkfifo (Description): Likewise.
66353         * modules/mknod (Description): Likewise.
66354         * modules/remove (Description): Likewise.
66355         * modules/renameat (Description): Likewise.
66356         * modules/stat (Description): Likewise.
66357         * modules/symlink (Description): Likewise.
66358         * modules/unlink (Description): Likewise.
66360 2010-07-31  Bruno Haible  <bruno@clisp.org>
66362         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66363         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66364         option --enable/disable-c++ instead of --enable/disable-cxx.
66365         * NEWS: Mention the change.
66367 2010-07-31  Bruno Haible  <bruno@clisp.org>
66369         readlink, areadlink: Relax test a bit.
66370         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66371         alternative to ENOTDIR.
66372         * tests/test-areadlink.h (test_areadlink): Likewise.
66373         Reported by Rainer Tammer.
66375 2010-07-31  Bruno Haible  <bruno@clisp.org>
66377         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66378         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66379         character, perform the search using U_STRCHR.
66380         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66381         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66382         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66383         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66384         Suggested by Paolo Bonzini.
66386 2010-07-31  Bruno Haible  <bruno@clisp.org>
66388         unistr/u*-strstr: Fix dependencies.
66389         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66390         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66391         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66393 2010-07-31  Bruno Haible  <bruno@clisp.org>
66395         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66396         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66397         the beginning of the loop.
66398         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66399         cases in 'switch' statement.
66401         unistr/u8-strchr: Fix several bugs.
66402         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66403         the string. When not found, return NULL, not a pointer near the end.
66405         More tests for unistr/u8-strchr.
66406         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66407         that the function does not read past the first occurrence of the byte
66408         being searched.
66409         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66410         * tests/unistr/test-u16-strchr.c (main): New function.
66411         * tests/unistr/test-u32-strchr.c (main): New function.
66413 2010-07-31  Bruno Haible  <bruno@clisp.org>
66415         posix-modules: Ignore backup files of documentation files.
66416         * posix-modules: grep only through files named *.texi.
66418 2010-07-31  Bruno Haible  <bruno@clisp.org>
66420         symlinkat: Fix documentation.
66421         * doc/posix-functions/readlinkat.texi: Fix module name.
66423 2010-07-31  Bruno Haible  <bruno@clisp.org>
66425         fchownat: Replace also when chown has the trailing slash bug.
66426         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66427         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66428         introduced on 2010-04-10.
66429         Reported by Rainer Tammer.
66431 2010-07-31  Bruno Haible  <bruno@clisp.org>
66433         linkat: Work around AIX 7.1 bug.
66434         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66435         whether linkat handles trailing slash correctly. If not, replace linkat
66436         and define LINKAT_TRAILING_SLASH_BUG.
66437         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66438         check whether (fd1,file1) points to a directory if file1 or file2 ends
66439         in a slash. Code taken from lib/link.c.
66440         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66441         Reported by Rainer Tammer.
66443 2010-07-31  Bruno Haible  <bruno@clisp.org>
66445         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66446         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66447         This disables an xlc optimization that was causing wrong test results.
66448         Reported by Rainer Tammer.
66450 2010-07-31  Bruno Haible  <bruno@clisp.org>
66452         iconv: Work around AIX 6.1..7.1 bug.
66453         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66454         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66455         cross-compiling, guess no on all versions of AIX.
66456         Reported by Rainer Tammer.
66458 2010-07-31  Bruno Haible  <bruno@clisp.org>
66460         readlink: Relax test a bit.
66461         * tests/test-readlink.h (test_readlink): Allow different errno value
66462         when readlink is called with a file name that ends in / and refers to
66463         a file.
66464         Suggested by Eric Blake.
66465         Reported by Rainer Tammer.
66467 2010-07-31  Bruno Haible  <bruno@clisp.org>
66469         copysign: Does not require -lm on glibc systems.
66470         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66471         gl_COMMON_DOUBLE_MATHFUNC.
66472         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66474 2010-07-31  Bruno Haible  <bruno@clisp.org>
66476         duplocale: Work around AIX 7.1 bug.
66477         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66478         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66479         * lib/duplocale.c (rpl_duplocale): Update comment.
66480         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66481         Reported by Rainer Tammer.
66483 2010-07-30  Bruno Haible  <bruno@clisp.org>
66485         dirfd: Avoid link error on AIX 7.1.
66486         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66487         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66488         exist, set REPLACE_DIRFD.
66489         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66490         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66491         * doc/posix-functions/dirfd.texi: Update.
66492         Reported by Rainer Tammer.
66494 2010-07-30  Eric Blake  <eblake@redhat.com>
66496         strtod: next round of AIX fixes
66497         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66498         exponent.
66499         * tests/test-strtod.c (main): Enhance tests.
66500         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66501         Reported by Rainer Tammer.
66503         futimens: fix configure check
66504         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66505         Reported by Bruno Haible.
66507 2010-07-30  Bruno Haible  <bruno@clisp.org>
66509         getline: Update regarding AIX.
66510         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66511         Reported by Rainer Tammer.
66513 2010-07-30  Bruno Haible  <bruno@clisp.org>
66515         wcwidth: Drop replacement on AIX 7.
66516         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
66517         AIX 7.
66518         Reported by Rainer Tammer.
66520 2010-07-30  Bruno Haible  <bruno@clisp.org>
66522         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
66523         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
66524         a 'char *'.
66525         Reported by Rainer Tammer.
66527 2010-07-30  Bruno Haible  <bruno@clisp.org>
66529         unlink: Update regarding AIX.
66530         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
66531         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66532         Reported by Rainer Tammer.
66534 2010-07-30  Bruno Haible  <bruno@clisp.org>
66536         symlink: Update regarding AIX.
66537         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
66538         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
66539         Reported by Rainer Tammer.
66541 2010-07-30  Bruno Haible  <bruno@clisp.org>
66543         strndup: Update regarding AIX.
66544         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
66545         AIX 7.
66546         Reported by Rainer Tammer.
66548 2010-07-30  Bruno Haible  <bruno@clisp.org>
66550         stat: Update regarding AIX.
66551         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
66552         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
66553         Reported by Rainer Tammer.
66555 2010-07-30  Bruno Haible  <bruno@clisp.org>
66557         truncl: Fix autoconf test.
66558         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
66559         whether truncl works.
66560         Reported by Rainer Tammer.
66562 2010-07-30  Bruno Haible  <bruno@clisp.org>
66564         round: Update regarding AIX.
66565         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
66566         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
66567         Reported by Rainer Tammer.
66569 2010-07-30  Bruno Haible  <bruno@clisp.org>
66571         rename: Update regarding AIX.
66572         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
66573         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
66574         Reported by Rainer Tammer.
66576 2010-07-30  Bruno Haible  <bruno@clisp.org>
66578         printf.m4: Update regarding AIX.
66579         * m4/printf.m4: Update comments regarding AIX.
66580         Reported by Rainer Tammer.
66582 2010-07-30  Bruno Haible  <bruno@clisp.org>
66584         iconv: Update regarding AIX.
66585         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
66586         AIX 7.
66587         Reported by Rainer Tammer.
66589 2010-07-30  Bruno Haible  <bruno@clisp.org>
66591         getopt: Update regarding AIX.
66592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66593         no on AIX.
66594         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66595         Reported by Rainer Tammer.
66597 2010-07-30  Bruno Haible  <bruno@clisp.org>
66599         ldexpl; Update regarding AIX.
66600         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66601         on AIX 7.
66602         Reported by Rainer Tammer.
66604 2010-07-30  Bruno Haible  <bruno@clisp.org>
66606         frexpl: Update regarding AIX.
66607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66608         on AIX 7.
66609         Reported by Rainer Tammer.
66611 2010-07-30  Bruno Haible  <bruno@clisp.org>
66613         open, fopen: Update regarding AIX.
66614         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66615         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66616         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66617         * doc/posix-functions/fopen.texi: Likewise.
66618         Reported by Rainer Tammer.
66620 2010-07-30  Bruno Haible  <bruno@clisp.org>
66622         chown: Update doc regarding AIX.
66623         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66624         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66625         Reported by Rainer Tammer.
66627 2010-07-30  Eric Blake  <eblake@redhat.com>
66629         strtod: fix bug in replacement function on AIX
66630         * lib/strtod.c (strtod): Special case broken "0x" parse in
66631         underlying strtod.
66632         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66633         * doc/posix-functions/strtod.texi (strtod): Likewise.
66634         Reported by Rainer Tammer.
66636 2010-07-30  Bruno Haible  <bruno@clisp.org>
66638         mbrlen: Fix cross-compilation guess for AIX.
66639         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66640         guess. Leftover from 2008-12-22.
66642 2010-07-30  Bruno Haible  <bruno@clisp.org>
66644         mbrtowc: Fix cross-compilation guess for AIX.
66645         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66646         guess. Leftover from 2008-12-21.
66648 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66650         init.sh: work around trap limitation of some shells
66651         * tests/init.sh (setup_): Move exit trap outside of shell function.
66653 2010-07-29  Eric Blake  <eblake@redhat.com>
66655         strtod: aid debugging
66656         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66657         understanding why strtod is rejected.
66659 2010-07-28  Bruno Haible  <bruno@clisp.org>
66661         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66662         * lib/unistr/u8-chr.c: Include <string.h>.
66663         * tests/unistr/test-u8-chr.c: Likewise.
66664         * tests/unistr/test-u16-chr.c: Likewise.
66665         * tests/unistr/test-u32-chr.c: Likewise.
66666         * tests/unistr/test-u8-strchr.c: Likewise.
66667         * tests/unistr/test-u16-strchr.c: Likewise.
66668         * tests/unistr/test-u32-strchr.c: Likewise.
66669         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66670         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66671         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66672         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66674 2010-07-28  Bruno Haible  <bruno@clisp.org>
66676         Use spaces for indentation, not tabs.
66677         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66679 2010-07-27  Bruno Haible  <bruno@clisp.org>
66681         mbspcasecmp: Fix function specification.
66682         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66683         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66684         Reported by Eric Blake <eblake@redhat.com>.
66686 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66688         timespec: use cast and not conditional, as truncation isn't possible
66689         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66690         instead of a conditional.  Comment about the situation in more detail.
66691         This undoes most of the 2009-10-29 patch.
66693 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66695         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66696         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66697         * lib/unistr/u8-strchr.c: Likewise.
66698         * modules/unistr/u8-chr: Depend on memchr.
66700         unistr/u*-strchr: add tests
66701         * modules/unistr/u8-strchr-tests: New file.
66702         * modules/unistr/u16-strchr-tests: New file.
66703         * modules/unistr/u32-strchr-tests: New file.
66704         * tests/unistr/test-strchr.h: New file.
66705         * tests/unistr/test-u8-strchr.c: New file.
66706         * tests/unistr/test-u16-strchr.c: New file.
66707         * tests/unistr/test-u32-strchr.c: New file.
66709         unistr/u*-chr: test multibyte sequences more
66710         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66711         test vector.
66712         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66713         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66714         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66716         unistr/u*-chr: test multibyte sequences
66717         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66719         unistr/u*-chr: prepare for multibyte tests
66720         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66721         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66722         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66723         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66724         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66725         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66727 2010-07-18  Bruno Haible  <bruno@clisp.org>
66729         unistr/u8-strchr: Optimize non-ASCII argument case.
66730         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66731         because the first byte often matches anyway.
66732         Reported by Pádraig Brady <P@draigbrady.com>.
66734 2010-07-15  Karl Berry  <karl@gnu.org>
66736         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66738 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66740         getcwd: on Solaris, work better if ancestors are inaccessible
66741         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66742         buffer and size, try again with a large buffer.  This works better
66743         on Solaris, since its getcwd succeeds even if the path to the root
66744         is inaccessible, and this is helpful in common cases such as .zfs
66745         hidden directories.  Problem reported by J Chapman Flack in
66746         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66747         Use system getcwd if it's declared, not merely if it's partly
66748         working; use the partly-working test only to avoid needless effort
66749         if the system getcwd fails.
66750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66751         comment that was already obsolete and is now even more obsolete.
66752         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66753         now might call strdup.
66755 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66757         pthread: Add enough so that coreutils/src/sort.c compiles.
66758         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66759         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66760         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66761         Include <sys/types.h>, in case it defines pthread_t.
66762         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66763         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66764         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66765         (pthread_rwlockattr_t, pthread_spinlock_t):
66766         New typedefs, if HAVE_PTHREAD_T is not defined.
66767         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66768         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66769         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66770         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66771         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66772         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66773         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66774         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66775         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66776         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66777         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66778         New macros.
66779         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66780         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66781         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66782         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66783         (pthread_spin_unlock): New dummy functions.
66784         (pthread_create): Return EAGAIN; don't set errno.
66785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66786         require AC_C_INLINE.
66787         * modules/pthread (Depends-on): Add sched, time.
66788         (pthread.h): Use AM_V_GEN.
66790 2010-07-13  Bruno Haible  <bruno@clisp.org>
66792         striconveh: Don't malloc memory if the result buffer is sufficient.
66793         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66794         buffer if its size is sufficient.
66795         Reported by Ludovic Courtès <ludo@gnu.org>.
66797 2010-07-13  Bruno Haible  <bruno@clisp.org>
66799         strtod: Add safety check.
66800         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66802 2010-07-12  Bruno Haible  <bruno@clisp.org>
66804         Unify tests that set gl_cv_func_ldexpl_no_libm.
66805         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66806         gl_FUNC_LDEXPL.
66807         (gl_FUNC_LDEXPL): Invoke it.
66808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66810 2010-07-12  Bruno Haible  <bruno@clisp.org>
66812         Unify tests that set gl_cv_func_ldexp_no_libm.
66813         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66814         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66815         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66816         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66817         * modules/strtod (Files): Add m4/ldexp.m4.
66819 2010-07-12  Bruno Haible  <bruno@clisp.org>
66821         Unify tests that set gl_cv_func_frexpl_no_libm.
66822         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66823         gl_FUNC_FREXPL_NO_LIBM.
66824         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66827 2010-07-12  Bruno Haible  <bruno@clisp.org>
66829         Unify tests that set gl_cv_func_frexp_no_libm.
66830         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66831         gl_FUNC_FREXP_NO_LIBM.
66832         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66833         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66835 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66837         memcoll: clarify sizes versus lengths, document better, and tweak perf
66838         * lib/memcoll.c (strcoll_loop, memcoll0):
66839         Improve quality of descriptive comments.  Name variables
66840         consistently as to whether they are lengths (which do not include
66841         terminating null) versus sizes (which do).
66842         * lib/xmemcoll.c (xmemcoll0): Likewise.
66843         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66844         returned when s1size == 0; this is easier to compile and saves
66845         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66847 2010-07-12  Bruno Haible  <bruno@clisp.org>
66849         Tests for module '_Exit'.
66850         * modules/_Exit-tests: New file.
66851         * tests/test-_Exit.sh: New file.
66852         * tests/test-_Exit.c: New file.
66854         New module '_Exit'.
66855         * lib/stdlib.in.h (__attribute__): New macro.
66856         (_Exit): New declaration.
66857         * lib/_Exit.c: New file.
66858         * m4/_Exit.m4: New file.
66859         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66860         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66861         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66862         * modules/_Exit: New file.
66863         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66864         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66866 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66868         strtod: make it more-accurate typically, and don't require libm
66869         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66870         Include limits.h.  Don't include string.h.
66871         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66872         (locale_isspace): New function, so that no casts are needed to
66873         check whether *s is a space.
66874         (ldexp): Provide an unused dummy if not available.
66875         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66876         (strtod): Use them.  This implementation prefers to use the
66877         underlying strtod if available, falling back on our own code
66878         only to fix known bugs.  This is more likely to produce an
66879         accurate result.  Also, it avoids the use of libm functions.
66880         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66881         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66882         was absent, but it caused a test failure with coreutils.
66883         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66884         with libm.
66885         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66886         * modules/strtod-tests (Makefile.am): Likewise.
66888 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66889             Bruno Haible  <bruno@clisp.org>
66891         unistr/u8-strchr: Optimize ASCII argument case.
66892         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66894 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66896         (x)memcoll: minor tweaks
66897         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66898         is after the type that it qualifies.
66899         (memcoll0): Likewise.
66900         * lib/memcoll.h (memcoll0): Likewise.
66901         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66902         * lib/xmemcoll.h (xmemcoll0): Likewise.
66903         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66904         differs from memcoll in that the NUL byte is part of the argument.
66905         Omit the abort-checks, as performance is a real issue here.  Plus,
66906         the checks were wrong anyway (an off-by-one error).  Omit local
66907         variable 'diff', as it's a bit clearer that way.
66908         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66909         no longer needed.
66911 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66913         (x)memcoll: speedup when input is known to be NUL delimited
66914         * lib/memcoll.c: Include stdlib.
66915         (memcoll0): New function.
66916         (strcoll_loop): New function, refactored for use in both memcoll
66917         and memcoll0.
66918         * lib/memcoll.h (memcoll0): Add prototype.
66919         * lib/xmemcoll.c (xmemcoll0): New function.
66920         (collate_error): New function, refactored for use in both xmemcoll
66921         and xmemcoll0.
66922         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66923         * m4/memcoll.m4: add inline invocation.
66925 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66927         * build-aux/bootstrap: Remove any local translations
66928         from the translation project synchronization directory,
66929         so that local only translations are not distributed.
66931 2010-07-04  Bruno Haible  <bruno@clisp.org>
66933         fsusage: Clarify which code applies to which platforms.
66934         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66935         platform.
66936         * lib/fsusage.c (get_fs_usage): Likewise.
66938 2010-07-04  Bruno Haible  <bruno@clisp.org>
66940         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
66941         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
66942         Reported by Martin Lambers <marlam@marlam.de>.
66944 2010-07-04  Jim Meyering  <meyering@redhat.com>
66946         hash: once again explicitly disallow insertion of NULL
66947         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66948         inserting a NULL pointer cannot work with these functions.
66949         Add a comment with details.
66950         This reverts part of the 2010-07-01 commit, 5bef1a35
66951         "hash: extend module to deal with non-pointer keys".
66953 2010-07-01  Bruno Haible  <bruno@clisp.org>
66955         stdbool: Update doc.
66956         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66957         Info from Christian Weisgerber <naddy@mips.inka.de>.
66959 2010-07-01  Jim Meyering  <meyering@redhat.com>
66961         hash: extend module to deal with non-pointer keys
66962         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66963         but that allows insertion of non-pointer entries.
66964         Do not disallow an ENTRY value of NULL.
66965         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66966         * lib/hash.h (hash_insert0): Declare.
66968 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66970         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66971         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66972         not present (i.e. with autoconf 2.59 and when using gettextize, not
66973         gnulib), require AC_GNU_SOURCE instead.
66975 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66977         idpriv-drop: Fix tests.
66978         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66979         not to the test-idpriv-droptemp program.
66981 2010-06-29  Bruno Haible  <bruno@clisp.org>
66983         string: Fix syntax error with g++ 2.96.
66984         * lib/string.in.h (__pure__): Remove definition.
66985         (_GL_ATTRIBUTE_PURE): New macro.
66986         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66987         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66988         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66990 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66992         unitypes: Fix bug introduced on 2010-05-18.
66993         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66995 2010-06-22  Eric Blake  <eblake@redhat.com>
66997         memmem: slight optimization
66998         * lib/str-two-way.h (critical_factorization): Update comments.
66999         Reduce work during factorization phase.
67000         Reported by Carlos Bueno <carlos@bueno.org>.
67002 2010-06-21  Bruno Haible  <bruno@clisp.org>
67004         Fix HAVE_CALLOC_POSIX misnomer.
67005         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67006         !HAVE_CALLOC_POSIX.
67007         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67008         HAVE_CALLOC_POSIX.
67009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67010         instead of HAVE_CALLOC_POSIX.
67011         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67012         HAVE_CALLOC_POSIX.
67014         Use modern idiom for calloc() replacement.
67015         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67016         AC_FUNC_CALLOC.
67017         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67018         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67019         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67020         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67021         (gl_REPLACE_CALLOC): New macro.
67023 2010-06-21  Bruno Haible  <bruno@clisp.org>
67025         Fix HAVE_REALLOC_POSIX misnomer.
67026         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67027         !HAVE_REALLOC_POSIX.
67028         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67029         HAVE_REALLOC_POSIX.
67030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67031         instead of HAVE_REALLOC_POSIX.
67032         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67033         HAVE_REALLOC_POSIX.
67035         Use modern idiom for realloc() replacement.
67036         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67037         AC_FUNC_REALLOC.
67038         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67039         Autoconf's AC_FUNC_REALLOC.
67040         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67041         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67042         (gl_REPLACE_REALLOC): New macro.
67043         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67045 2010-06-21  Bruno Haible  <bruno@clisp.org>
67047         Fix HAVE_MALLOC_POSIX misnomer.
67048         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67049         !HAVE_MALLOC_POSIX.
67050         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67051         HAVE_MALLOC_POSIX.
67052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67053         instead of HAVE_MALLOC_POSIX.
67054         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67055         HAVE_MALLOC_POSIX.
67057         Use modern idiom for malloc() replacement.
67058         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67059         AC_FUNC_MALLOC.
67060         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67061         Autoconf's AC_FUNC_MALLOC.
67062         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67063         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67064         (gl_REPLACE_MALLOC): New macro.
67065         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67067 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67069         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67070         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67071         This macro takes 3 arguments, not 4.
67073 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67075         ipv6: fix detection under mingw
67076         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67077         in6_addr.
67079 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67081         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67082         that strtod() works when cross-compiling to a glibc version known
67083         to work.
67085 2010-06-15  Bruno Haible  <bruno@clisp.org>
67087         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67089 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67091         select: Correct timeout.
67092         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67094 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67096         git-version-gen: init shell var to avoid env var influence
67097         * build-aux/git-version-gen (v): Init shell var to empty.
67099 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67101         priv-set: Don't assume that priv.h exists merely because getppriv does.
67102         See Jan Andersen's bug report about AIX 5L in
67103         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67104         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67105         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67106         * lib/priv-set.h: Likewise.
67107         * tests/test-priv-set.c: Likewise.
67109 2010-06-13  Bruno Haible  <bruno@clisp.org>
67111         relocatable: Make it easier to test whether to install wrappers.
67112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67113         RELOCATABLE_VIA_WRAPPER.
67115 2010-06-13  Bruno Haible  <bruno@clisp.org>
67117         gnulib-tool: Display specified modules and dependencies differently.
67118         * gnulib-tool (func_show_module_list): New function.
67119         (func_import, func_create_testdir): Invoke it.
67120         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67122 2010-06-13  Bruno Haible  <bruno@clisp.org>
67124         gnulib-tool: Align code of func_import and func_create_testdir.
67125         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67126         specified_modules.
67128 2010-06-12  Jim Meyering  <meyering@redhat.com>
67130         test-inttostr: avoid spurious failure on Solaris 9
67131         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67132         to accept "%ju".  Reported by Bruno Haible.
67134 2010-06-11  Jim Meyering  <meyering@redhat.com>
67136         test-sys_socket: mark variables as used more readably
67137         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67138         as "used" explicitly via (void) statement casts.  This is more
67139         readable than using them in an artificial return expression.
67140         Suggestion from Bruno Haible.
67142 2010-06-11  Bruno Haible  <bruno@clisp.org>
67144         Avoid some more warnings from "gcc -Wwrite-strings".
67145         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67146         to 'const char *'.
67147         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67148         * tests/test-c-strcasestr.c (main): Likewise.
67149         * tests/test-mbscasestr1.c (main): Likewise.
67150         * tests/test-mbscasestr2.c (main): Likewise.
67151         * tests/test-memmem.c (main): Likewise.
67152         * tests/test-strstr.c (main): Likewise.
67153         * tests/test-strcasestr.c (main): Likewise.
67155 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67157         init.sh: change framework_failure_ to fail with status 99, not 1
67158         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67159         automake's parallel-tests rule that this is an unexpected failure,
67160         even if the test is listed in XFAIL_TESTS.
67162 2010-06-11  Jim Meyering  <meyering@redhat.com>
67164         test-inttostr: avoid warnings about 4-6KB literal strings
67165         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67166         Include "macros.h", for its definition of ASSERT.
67167         (CK): s/assert/ASSERT/
67168         * modules/inttostr-tests (Files): Add macros.h.
67170         init.sh: don't use $ME_ or skip_ before they are defined
67171         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67172         their first uses.  Also hoist their companions: warn_, fail_,
67173         framework_failure_, $stderr_fileno.  Prompted by a patch from
67174         Stefano Lattarini.
67176         test-sys_socket: avoid set-but-not-used warnings from gcc
67177         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67178         avoid warning about set-but-not-used variables.
67180         test-xvasprintf: avoid 'const' discard warnings
67181         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67182         "const" when assigning from literal strings.
67183         (test_xasprintf): Add "void" in function argument list to placate
67184         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67186         tests: avoid compilation warnings in argmatch and exclude tests...
67187         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67188         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67189         Since it always exits, declare with the "noreturn" attribute.
67190         * tests/test-argmatch.c: Likewise.
67192         tests: avoid 'const' discard warnings in mbsstr tests
67193         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67194         * tests/test-mbsstr2.c (main): Likewise.
67196         test-verify: avoid warning from gcc's -Wmissing-declarations
67197         * tests/test-verify.c (function): Declare to be static.
67199         test-inttostr.c: include <string.h> for use of strcmp
67200         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67202         test-linkat: avoid failed assertion on "other" architectures
67203         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67204         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67205         sparc: https://bugs.launchpad.net/bugs/591968
67207 2010-06-11  Jim Meyering  <meyering@redhat.com>
67209         printf.m4: avoid autoconf's "Expanded Before Required" warning
67210         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67211         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67212         autoconf warning.
67214 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67216         Replacement header templates are now named with ".in", not "_".
67217         * doc/gnulib-intro.texi: Correct.
67219 2010-06-10  Jim Meyering  <meyering@redhat.com>
67221         inttostr-tests: depend on snprintf, not snprintf-posix
67222         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67223         snprintf-posix, to avoid this aclocal failure:
67224           missing file gnulib-tests/vasnprintf.c
67225           configure.ac:45: error: expected source file, required through \
67226           AC_LIBSOURCES, not found
67228 2010-06-10  Jim Meyering  <meyering@redhat.com>
67230         inttostr: add a new function, inttostr, and tests
67231         The namesake function was not available.  The existence of the
67232         template file, inttostr.c makes its addition nontrivial.
67233         * lib/anytostr.c: Rename from inttostr.c.
67234         (anytostr): Rename from inttostr.
67235         * lib/inttostr.c: New file.
67236         * modules/inttostr (Files): Add anytostr.c.
67237         (Makefile.am): Set lib_SOURCES instead of ...
67238         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67239         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67240         * lib/offtostr.c: Likewise.
67241         * lib/uinttostr.c: Likewise.
67242         * lib/umaxtostr.c: Likewise.
67243         * modules/inttostr-tests: New file.
67244         * tests/test-inttostr.c: New file.  Test these functions.
67246 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67247             Bruno Haible  <bruno@clisp.org>
67249         Add "Extending Gnulib" chapter to manual.
67250         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67251         chapter.
67252         (Extending Gnulib): New chapter.
67253         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67254         chapter.
67256 2010-06-09  Bruno Haible  <bruno@clisp.org>
67258         Avoid relocwrapper link errors due to gnulib replacement functions.
67259         * lib/areadlink.c: Use the system's malloc, realloc functions.
67260         (areadlink): Set errno to ENOMEM explicitly.
67261         * modules/areadlink (Depends-on): Remove malloc-posix.
67262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67264 2010-06-09  Bruno Haible  <bruno@clisp.org>
67266         Avoid relocwrapper link errors due to gnulib replacement functions.
67267         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67268         * lib/malloca.c: Likewise.
67269         * lib/relocatable.c: Likewise.
67270         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67271         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67272         * lib/setenv.c: Use the system's malloc, realloc functions.
67273         * lib/strerror.c: Use the system's sprintf function.
67274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67276 2010-06-04  Bruno Haible  <bruno@clisp.org>
67278         Prefer documented low-level autoconf macro names.
67279         * m4/lib-link.m4: Use m4_translit instead of translit.
67280         * m4/environ.m4: Likewise.
67281         * m4/mathfunc.m4: Likewise.
67282         * m4/onceonly.m4: Likewise.
67283         * m4/stdint.m4: Likewise.
67284         Suggested by Eric Blake.
67286 2010-06-04  Martin Lambers  <marlam@marlam.de>
67287             Bruno Haible  <bruno@clisp.org>
67289         havelib: Allow library names with '+' characters.
67290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67291         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67293 2010-06-09  Bruno Haible  <bruno@clisp.org>
67295         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67296         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67297         realloc failed.
67299 2010-06-08  Peter Simons  <simons@cryp.to>
67301         maint.mk: make the news-check rule more configurable
67302         * top/maint.mk (news-check-lines-spec): New variable.
67303         (news-check): Use "sed -n 1,10p" in place of "head".
67305 2010-06-07  Jim Meyering  <meyering@redhat.com>
67307         do-release-commit-and-tag: fix typo in --help
67308         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67310         regex: avoid new dead-code warning with gcc-4.6.0
67311         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67312         if-block containing a while-loop.  It's been unused for at least
67313         5 years.
67315 2010-06-05  Bruno Haible  <bruno@clisp.org>
67317         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67318         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67320 2010-06-04  Bruno Haible  <bruno@clisp.org>
67322         Update to GNU gettext 0.18.1.
67323         * modules/gettext (configure.ac): Require gettext infrastructure from
67324         version 0.18.1.
67326 2010-06-03  Bruno Haible  <bruno@clisp.org>
67328         Don't use AC_LIBOBJ with file names in subdirectories.
67329         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67330         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67331         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67332         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67333         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67334         gl_LIBUNISTRING_LIBSOURCE.
67335         (Makefile.am): Augment lib_SOURCES here, conditionally.
67336         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67338 2010-06-03  Bruno Haible  <bruno@clisp.org>
67340         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67341         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67342         expansion does not end with a newline.
67343         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67344         unnecessary newline.
67346 2010-06-03  Bruno Haible  <bruno@clisp.org>
67348         Reduce dependencies.
67349         * tests/test-quotearg.h: New file, extracted from
67350         tests/test-quotearg.c.
67351         * tests/test-quotearg-simple.c: New file, extracted from
67352         tests/test-quotearg.c.
67353         * tests/test-quotearg.c: Don't include <ctype.h>.
67354         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67355         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67356         use_quote_double_quotes, use_quotearg_colon): Moved to
67357         tests/test-quotearg.h.
67358         (results_g, flag_results, custom_quotes, custom_results): Moved
67359         to tests/test-quotearg-simple.c.
67360         (main): Moved the part that does not depend on gettext to
67361         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67362         performed.
67363         * modules/quotearg-simple: New file.
67364         * modules/quotearg-simple-tests: New file.
67365         * modules/quotearg (Depends-on): Add quotearg-simple.
67366         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67367         (Files): Add tests/test-quotearg.h.
67368         Reported by Paolo Bonzini.
67370 2010-06-03  Bruno Haible  <bruno@clisp.org>
67372         Reduce dependencies.
67373         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67375 2010-06-03  Bruno Haible  <bruno@clisp.org>
67377         time: Undefine more broken macros.
67378         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67379         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67380         Reported by Eric Blake.
67382 2010-06-03  Bruno Haible  <bruno@clisp.org>
67384         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67385         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67386         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67387         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67388         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67389         Reported by Ludovic Courtès <ludo@gnu.org>.
67391 2010-06-02  Eric Blake  <eblake@redhat.com>
67393         time: work with mingw + pthreads-win32 library
67394         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67395         if timespec is defined only in pthread.h.
67396         * modules/time (Makefile.am): Substitute it.
67397         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67398         <pthread.h>, when needed.
67399         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67400         from the library.
67402 2010-05-31  Bruno Haible  <bruno@clisp.org>
67404         Avoid expanding two macros in the wrong order.
67405         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67406         gl_LIBUNISTRING if it is defined.
67407         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67408         autoconf >= 2.64.
67409         Reported by Ludovic Courtès <ludo@gnu.org>.
67411 2010-05-27  Jim Meyering  <meyering@redhat.com>
67413         maint.mk: also prohibit "#undef" of always-defined symbols
67414         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67415         Allow more than one space before the symbol name.
67416         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67417         the regexp uses alternation.
67419 2010-05-26  Eric Blake  <eblake@redhat.com>
67421         maint.mk: avoid echo -e
67422         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67423         Convert all uses of echo -* to printf.
67424         Reported by Matthias Bolte.
67426 2010-05-25  Bruno Haible  <bruno@clisp.org>
67428         Update to GNU gettext 0.18, part 2.
67429         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67430         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67432 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67434         Add missing include in test-pwrite.c.
67435         * tests/test-pwrite.c: Include string.h, for strcmp.
67437 2010-05-24  Bruno Haible  <bruno@clisp.org>
67439         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67441 2010-05-24  Bruno Haible  <bruno@clisp.org>
67443         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67444         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67445         iconveh_error argument.
67446         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67447         U_STRCONV_TO_LOCALE.
67448         * lib/unistr/u16-strcoll.c: Likewise.
67449         * lib/unistr/u32-strcoll.c: Likewise.
67450         * modules/unistr/u8-strcoll (Depends-on): Add
67451         uniconv/u8-strconv-to-enc, localcharset. Remove
67452         uniconv/u8-strconv-to-locale.
67453         (configure.ac): Bump version number.
67454         * modules/unistr/u16-strcoll (Depends-on): Add
67455         uniconv/u16-strconv-to-enc, localcharset. Remove
67456         uniconv/u16-strconv-to-locale.
67457         (configure.ac): Bump version number.
67458         * modules/unistr/u32-strcoll (Depends-on): Add
67459         uniconv/u32-strconv-to-enc, localcharset. Remove
67460         uniconv/u32-strconv-to-locale.
67461         (configure.ac): Bump version number.
67463 2010-05-24  Bruno Haible  <bruno@clisp.org>
67465         Avoid a test failure on NetBSD 5.0.
67466         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67467         an iconv() bug.
67469 2010-05-24  Bruno Haible  <bruno@clisp.org>
67471         Adjust #include directive style.
67472         * modules/regex (Includes): Recommend to write <regex.h>.
67474 2010-05-24  Bruno Haible  <bruno@clisp.org>
67476         regex: Don't require alloca.
67477         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67478         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67479         only inside if (0).
67481 2010-05-23  Jim Meyering  <meyering@redhat.com>
67483         test-renameat.c: include <sys/stat.h>
67484         * tests/test-renameat.c: Include <sys/stat.h>; required for
67485         definition of S_IS* macros.
67487 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67489         Update maintainer documentation for 'relocatable-prog' module.
67490         * doc/relocatable-maint.texi: Update.
67491         Comments by Bruno Haible.
67493 2010-05-23  Bruno Haible  <bruno@clisp.org>
67495         git-merge-changelog: Enable --split-merged-entry by default.
67496         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67497         (usage): Don't mention this option any more.
67498         Reported by Ralf Wildenhues.
67500 2010-05-23  Jim Meyering  <meyering@redhat.com>
67502         test-pwrite: do not leave behind a test file named "out"
67503         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67504         The trivial-looking use of init.sh is really necessary.
67505         It ensures that the temporary file, "out", is created in
67506         a temporary directory, and removed upon termination.
67507         * tests/test-pwrite.sh: Re-add file.
67508         * modules/pwrite-tests: Reference it.
67510 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67512         Fix output redirection buglet in init.sh.
67513         * tests/init.sh: Fix redirection of stderr.
67515 2010-05-20  Simon Josefsson  <simon@josefsson.org>
67517         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
67519 2010-05-17  Simon Josefsson  <simon@josefsson.org>
67521         * modules/valgrind-tests: New file.
67522         * m4/valgrind-tests.m4: New file.
67523         * doc/valgrind-tests.texi: New file.
67524         * doc/gnulib.texi (Running self-tests under valgrind): New
67525         section.
67527 2010-05-19  Bruno Haible  <bruno@clisp.org>
67529         Clean up dead code in recent commit.
67530         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
67531         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
67532         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
67533         Suggested by Paolo Bonzini.
67535 2010-05-19  Bruno Haible  <bruno@clisp.org>
67537         Avoid valgrind error reports from libunistring.
67538         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
67539         * modules/libunistring (Files): Add it.
67540         * modules/libunistring-optional (Files): Likewise.
67542 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
67543             Bruno Haible  <bruno@clisp.org>
67545         New module 'libunistring-optional'.
67546         * modules/libunistring-optional: New file.
67547         * m4/libunistring-base.m4: New file.
67548         * m4/libunistring-optional.m4: New file.
67549         * lib/unicase.in.h: Renamed from lib/unicase.h.
67550         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
67551         * lib/unictype.in.h: Renamed from lib/unictype.h.
67552         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
67553         * lib/uniname.in.h: Renamed from lib/uniname.h.
67554         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
67555         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
67556         * lib/unistr.in.h: Renamed from lib/unistr.h.
67557         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
67558         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67559         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
67560         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
67561         gl_LIBUNISTRING. If the library was found, determine the installed
67562         version and set LIBUNISTRING_VERSION.
67563         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
67564         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
67565         handle a configuration option --with-included-libunistring.
67566         * modules/libunistring (Files): Add m4/absolute-header.m4.
67567         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
67568         Add m4/libunistring-base.m4.
67569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67570         (Makefile.am): Build unicase.h from unicase.in.h.
67571         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
67572         Add m4/libunistring-base.m4.
67573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67574         (Makefile.am): Build uniconv.h from uniconv.in.h.
67575         * modules/unictype/base (Files): Use unictype.in.h instead of
67576         unictype.h. Add m4/libunistring-base.m4.
67577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67578         (Makefile.am): Build unictype.h from unictype.in.h.
67579         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
67580         Add m4/libunistring-base.m4.
67581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67582         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
67583         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
67584         Add m4/libunistring-base.m4.
67585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67586         (Makefile.am): Build uniname.h from uniname.in.h.
67587         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
67588         Add m4/libunistring-base.m4.
67589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67590         (Makefile.am): Build uninorm.h from uninorm.in.h.
67591         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67592         unistdio.h. Add m4/libunistring-base.m4.
67593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67594         (Makefile.am): Build unistdio.h from unistdio.in.h.
67595         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67596         Add m4/libunistring-base.m4.
67597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67598         (Makefile.am): Build unistr.h from unistr.in.h.
67599         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67600         Add m4/libunistring-base.m4.
67601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67602         (Makefile.am): Build unitypes.h from unitypes.in.h.
67603         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67604         Add m4/libunistring-base.m4.
67605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67606         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67607         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67608         uniwidth.h. Add m4/libunistring-base.m4.
67609         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67610         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
67611         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67612         instead of augmenting lib_SOURCES.
67613         * modules/unicase/empty-suffix-context: Likewise.
67614         * modules/unicase/locale-language: Likewise.
67615         * modules/unicase/tolower: Likewise.
67616         * modules/unicase/totitle: Likewise.
67617         * modules/unicase/toupper: Likewise.
67618         * modules/unicase/u8-casecmp: Likewise.
67619         * modules/unicase/u8-casecoll: Likewise.
67620         * modules/unicase/u8-casefold: Likewise.
67621         * modules/unicase/u8-casexfrm: Likewise.
67622         * modules/unicase/u8-ct-casefold: Likewise.
67623         * modules/unicase/u8-ct-tolower: Likewise.
67624         * modules/unicase/u8-ct-totitle: Likewise.
67625         * modules/unicase/u8-ct-toupper: Likewise.
67626         * modules/unicase/u8-is-cased: Likewise.
67627         * modules/unicase/u8-is-casefolded: Likewise.
67628         * modules/unicase/u8-is-lowercase: Likewise.
67629         * modules/unicase/u8-is-titlecase: Likewise.
67630         * modules/unicase/u8-is-uppercase: Likewise.
67631         * modules/unicase/u8-prefix-context: Likewise.
67632         * modules/unicase/u8-suffix-context: Likewise.
67633         * modules/unicase/u8-tolower: Likewise.
67634         * modules/unicase/u8-totitle: Likewise.
67635         * modules/unicase/u8-toupper: Likewise.
67636         * modules/unicase/u16-casecmp: Likewise.
67637         * modules/unicase/u16-casecoll: Likewise.
67638         * modules/unicase/u16-casefold: Likewise.
67639         * modules/unicase/u16-casexfrm: Likewise.
67640         * modules/unicase/u16-ct-casefold: Likewise.
67641         * modules/unicase/u16-ct-tolower: Likewise.
67642         * modules/unicase/u16-ct-totitle: Likewise.
67643         * modules/unicase/u16-ct-toupper: Likewise.
67644         * modules/unicase/u16-is-cased: Likewise.
67645         * modules/unicase/u16-is-casefolded: Likewise.
67646         * modules/unicase/u16-is-lowercase: Likewise.
67647         * modules/unicase/u16-is-titlecase: Likewise.
67648         * modules/unicase/u16-is-uppercase: Likewise.
67649         * modules/unicase/u16-prefix-context: Likewise.
67650         * modules/unicase/u16-suffix-context: Likewise.
67651         * modules/unicase/u16-tolower: Likewise.
67652         * modules/unicase/u16-totitle: Likewise.
67653         * modules/unicase/u16-toupper: Likewise.
67654         * modules/unicase/u32-casecmp: Likewise.
67655         * modules/unicase/u32-casecoll: Likewise.
67656         * modules/unicase/u32-casefold: Likewise.
67657         * modules/unicase/u32-casexfrm: Likewise.
67658         * modules/unicase/u32-ct-casefold: Likewise.
67659         * modules/unicase/u32-ct-tolower: Likewise.
67660         * modules/unicase/u32-ct-totitle: Likewise.
67661         * modules/unicase/u32-ct-toupper: Likewise.
67662         * modules/unicase/u32-is-cased: Likewise.
67663         * modules/unicase/u32-is-casefolded: Likewise.
67664         * modules/unicase/u32-is-lowercase: Likewise.
67665         * modules/unicase/u32-is-titlecase: Likewise.
67666         * modules/unicase/u32-is-uppercase: Likewise.
67667         * modules/unicase/u32-prefix-context: Likewise.
67668         * modules/unicase/u32-suffix-context: Likewise.
67669         * modules/unicase/u32-tolower: Likewise.
67670         * modules/unicase/u32-totitle: Likewise.
67671         * modules/unicase/u32-toupper: Likewise.
67672         * modules/unicase/ulc-casecmp: Likewise.
67673         * modules/unicase/ulc-casecoll: Likewise.
67674         * modules/unicase/ulc-casexfrm: Likewise.
67675         * modules/uniconv/u8-conv-from-enc: Likewise.
67676         * modules/uniconv/u8-conv-to-enc: Likewise.
67677         * modules/uniconv/u8-strconv-from-enc: Likewise.
67678         * modules/uniconv/u8-strconv-from-locale: Likewise.
67679         * modules/uniconv/u8-strconv-to-enc: Likewise.
67680         * modules/uniconv/u8-strconv-to-locale: Likewise.
67681         * modules/uniconv/u16-conv-from-enc: Likewise.
67682         * modules/uniconv/u16-conv-to-enc: Likewise.
67683         * modules/uniconv/u16-strconv-from-enc: Likewise.
67684         * modules/uniconv/u16-strconv-from-locale: Likewise.
67685         * modules/uniconv/u16-strconv-to-enc: Likewise.
67686         * modules/uniconv/u16-strconv-to-locale: Likewise.
67687         * modules/uniconv/u32-conv-from-enc: Likewise.
67688         * modules/uniconv/u32-conv-to-enc: Likewise.
67689         * modules/uniconv/u32-strconv-from-enc: Likewise.
67690         * modules/uniconv/u32-strconv-from-locale: Likewise.
67691         * modules/uniconv/u32-strconv-to-enc: Likewise.
67692         * modules/uniconv/u32-strconv-to-locale: Likewise.
67693         * modules/unictype/bidicategory-byname: Likewise.
67694         * modules/unictype/bidicategory-name: Likewise.
67695         * modules/unictype/bidicategory-of: Likewise.
67696         * modules/unictype/bidicategory-test: Likewise.
67697         * modules/unictype/block-list: Likewise.
67698         * modules/unictype/block-test: Likewise.
67699         * modules/unictype/category-C: Likewise.
67700         * modules/unictype/category-Cc: Likewise.
67701         * modules/unictype/category-Cf: Likewise.
67702         * modules/unictype/category-Cn: Likewise.
67703         * modules/unictype/category-Co: Likewise.
67704         * modules/unictype/category-Cs: Likewise.
67705         * modules/unictype/category-L: Likewise.
67706         * modules/unictype/category-Ll: Likewise.
67707         * modules/unictype/category-Lm: Likewise.
67708         * modules/unictype/category-Lo: Likewise.
67709         * modules/unictype/category-Lt: Likewise.
67710         * modules/unictype/category-Lu: Likewise.
67711         * modules/unictype/category-M: Likewise.
67712         * modules/unictype/category-Mc: Likewise.
67713         * modules/unictype/category-Me: Likewise.
67714         * modules/unictype/category-Mn: Likewise.
67715         * modules/unictype/category-N: Likewise.
67716         * modules/unictype/category-Nd: Likewise.
67717         * modules/unictype/category-Nl: Likewise.
67718         * modules/unictype/category-No: Likewise.
67719         * modules/unictype/category-P: Likewise.
67720         * modules/unictype/category-Pc: Likewise.
67721         * modules/unictype/category-Pd: Likewise.
67722         * modules/unictype/category-Pe: Likewise.
67723         * modules/unictype/category-Pf: Likewise.
67724         * modules/unictype/category-Pi: Likewise.
67725         * modules/unictype/category-Po: Likewise.
67726         * modules/unictype/category-Ps: Likewise.
67727         * modules/unictype/category-S: Likewise.
67728         * modules/unictype/category-Sc: Likewise.
67729         * modules/unictype/category-Sk: Likewise.
67730         * modules/unictype/category-Sm: Likewise.
67731         * modules/unictype/category-So: Likewise.
67732         * modules/unictype/category-Z: Likewise.
67733         * modules/unictype/category-Zl: Likewise.
67734         * modules/unictype/category-Zp: Likewise.
67735         * modules/unictype/category-Zs: Likewise.
67736         * modules/unictype/category-and: Likewise.
67737         * modules/unictype/category-and-not: Likewise.
67738         * modules/unictype/category-byname: Likewise.
67739         * modules/unictype/category-name: Likewise.
67740         * modules/unictype/category-none: Likewise.
67741         * modules/unictype/category-of: Likewise.
67742         * modules/unictype/category-or: Likewise.
67743         * modules/unictype/category-test: Likewise.
67744         * modules/unictype/combining-class: Likewise.
67745         * modules/unictype/ctype-alnum: Likewise.
67746         * modules/unictype/ctype-alpha: Likewise.
67747         * modules/unictype/ctype-blank: Likewise.
67748         * modules/unictype/ctype-cntrl: Likewise.
67749         * modules/unictype/ctype-digit: Likewise.
67750         * modules/unictype/ctype-graph: Likewise.
67751         * modules/unictype/ctype-lower: Likewise.
67752         * modules/unictype/ctype-print: Likewise.
67753         * modules/unictype/ctype-punct: Likewise.
67754         * modules/unictype/ctype-space: Likewise.
67755         * modules/unictype/ctype-upper: Likewise.
67756         * modules/unictype/ctype-xdigit: Likewise.
67757         * modules/unictype/decimal-digit: Likewise.
67758         * modules/unictype/digit: Likewise.
67759         * modules/unictype/mirror: Likewise.
67760         * modules/unictype/numeric: Likewise.
67761         * modules/unictype/property-alphabetic: Likewise.
67762         * modules/unictype/property-ascii-hex-digit: Likewise.
67763         * modules/unictype/property-bidi-arabic-digit: Likewise.
67764         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67765         * modules/unictype/property-bidi-block-separator: Likewise.
67766         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67767         * modules/unictype/property-bidi-common-separator: Likewise.
67768         * modules/unictype/property-bidi-control: Likewise.
67769         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67770         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67771         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67772         * modules/unictype/property-bidi-european-digit: Likewise.
67773         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67774         * modules/unictype/property-bidi-left-to-right: Likewise.
67775         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67776         * modules/unictype/property-bidi-other-neutral: Likewise.
67777         * modules/unictype/property-bidi-pdf: Likewise.
67778         * modules/unictype/property-bidi-segment-separator: Likewise.
67779         * modules/unictype/property-bidi-whitespace: Likewise.
67780         * modules/unictype/property-byname: Likewise.
67781         * modules/unictype/property-combining: Likewise.
67782         * modules/unictype/property-composite: Likewise.
67783         * modules/unictype/property-currency-symbol: Likewise.
67784         * modules/unictype/property-dash: Likewise.
67785         * modules/unictype/property-decimal-digit: Likewise.
67786         * modules/unictype/property-default-ignorable-code-point: Likewise.
67787         * modules/unictype/property-deprecated: Likewise.
67788         * modules/unictype/property-diacritic: Likewise.
67789         * modules/unictype/property-extender: Likewise.
67790         * modules/unictype/property-format-control: Likewise.
67791         * modules/unictype/property-grapheme-base: Likewise.
67792         * modules/unictype/property-grapheme-extend: Likewise.
67793         * modules/unictype/property-grapheme-link: Likewise.
67794         * modules/unictype/property-hex-digit: Likewise.
67795         * modules/unictype/property-hyphen: Likewise.
67796         * modules/unictype/property-id-continue: Likewise.
67797         * modules/unictype/property-id-start: Likewise.
67798         * modules/unictype/property-ideographic: Likewise.
67799         * modules/unictype/property-ids-binary-operator: Likewise.
67800         * modules/unictype/property-ids-trinary-operator: Likewise.
67801         * modules/unictype/property-ignorable-control: Likewise.
67802         * modules/unictype/property-iso-control: Likewise.
67803         * modules/unictype/property-join-control: Likewise.
67804         * modules/unictype/property-left-of-pair: Likewise.
67805         * modules/unictype/property-line-separator: Likewise.
67806         * modules/unictype/property-logical-order-exception: Likewise.
67807         * modules/unictype/property-lowercase: Likewise.
67808         * modules/unictype/property-math: Likewise.
67809         * modules/unictype/property-non-break: Likewise.
67810         * modules/unictype/property-not-a-character: Likewise.
67811         * modules/unictype/property-numeric: Likewise.
67812         * modules/unictype/property-other-alphabetic: Likewise.
67813         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67814         * modules/unictype/property-other-grapheme-extend: Likewise.
67815         * modules/unictype/property-other-id-continue: Likewise.
67816         * modules/unictype/property-other-id-start: Likewise.
67817         * modules/unictype/property-other-lowercase: Likewise.
67818         * modules/unictype/property-other-math: Likewise.
67819         * modules/unictype/property-other-uppercase: Likewise.
67820         * modules/unictype/property-paired-punctuation: Likewise.
67821         * modules/unictype/property-paragraph-separator: Likewise.
67822         * modules/unictype/property-pattern-syntax: Likewise.
67823         * modules/unictype/property-pattern-white-space: Likewise.
67824         * modules/unictype/property-private-use: Likewise.
67825         * modules/unictype/property-punctuation: Likewise.
67826         * modules/unictype/property-quotation-mark: Likewise.
67827         * modules/unictype/property-radical: Likewise.
67828         * modules/unictype/property-sentence-terminal: Likewise.
67829         * modules/unictype/property-soft-dotted: Likewise.
67830         * modules/unictype/property-space: Likewise.
67831         * modules/unictype/property-terminal-punctuation: Likewise.
67832         * modules/unictype/property-test: Likewise.
67833         * modules/unictype/property-titlecase: Likewise.
67834         * modules/unictype/property-unassigned-code-value: Likewise.
67835         * modules/unictype/property-unified-ideograph: Likewise.
67836         * modules/unictype/property-uppercase: Likewise.
67837         * modules/unictype/property-variation-selector: Likewise.
67838         * modules/unictype/property-white-space: Likewise.
67839         * modules/unictype/property-xid-continue: Likewise.
67840         * modules/unictype/property-xid-start: Likewise.
67841         * modules/unictype/property-zero-width: Likewise.
67842         * modules/unictype/scripts: Likewise.
67843         * modules/unictype/syntax-c-ident: Likewise.
67844         * modules/unictype/syntax-c-whitespace: Likewise.
67845         * modules/unictype/syntax-java-ident: Likewise.
67846         * modules/unictype/syntax-java-whitespace: Likewise.
67847         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67848         * modules/unilbrk/u8-width-linebreaks: Likewise.
67849         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67850         * modules/unilbrk/u16-width-linebreaks: Likewise.
67851         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67852         * modules/unilbrk/u32-width-linebreaks: Likewise.
67853         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67854         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67855         * modules/uniname/uniname: Likewise.
67856         * modules/uninorm/canonical-decomposition: Likewise.
67857         * modules/uninorm/composition: Likewise.
67858         * modules/uninorm/decomposing-form: Likewise.
67859         * modules/uninorm/decomposition: Likewise.
67860         * modules/uninorm/filter: Likewise.
67861         * modules/uninorm/nfc: Likewise.
67862         * modules/uninorm/nfd: Likewise.
67863         * modules/uninorm/nfkc: Likewise.
67864         * modules/uninorm/nfkd: Likewise.
67865         * modules/uninorm/u8-normalize: Likewise.
67866         * modules/uninorm/u8-normcmp: Likewise.
67867         * modules/uninorm/u8-normcoll: Likewise.
67868         * modules/uninorm/u8-normxfrm: Likewise.
67869         * modules/uninorm/u16-normalize: Likewise.
67870         * modules/uninorm/u16-normcmp: Likewise.
67871         * modules/uninorm/u16-normcoll: Likewise.
67872         * modules/uninorm/u16-normxfrm: Likewise.
67873         * modules/uninorm/u32-normalize: Likewise.
67874         * modules/uninorm/u32-normcmp: Likewise.
67875         * modules/uninorm/u32-normcoll: Likewise.
67876         * modules/uninorm/u32-normxfrm: Likewise.
67877         * modules/unistdio/u8-asnprintf: Likewise.
67878         * modules/unistdio/u8-asprintf: Likewise.
67879         * modules/unistdio/u8-snprintf: Likewise.
67880         * modules/unistdio/u8-sprintf: Likewise.
67881         * modules/unistdio/u8-u8-asnprintf: Likewise.
67882         * modules/unistdio/u8-u8-asprintf: Likewise.
67883         * modules/unistdio/u8-u8-snprintf: Likewise.
67884         * modules/unistdio/u8-u8-sprintf: Likewise.
67885         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67886         * modules/unistdio/u8-u8-vasprintf: Likewise.
67887         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67888         * modules/unistdio/u8-u8-vsprintf: Likewise.
67889         * modules/unistdio/u8-vasnprintf: Likewise.
67890         * modules/unistdio/u8-vasprintf: Likewise.
67891         * modules/unistdio/u8-vsnprintf: Likewise.
67892         * modules/unistdio/u8-vsprintf: Likewise.
67893         * modules/unistdio/u16-asnprintf: Likewise.
67894         * modules/unistdio/u16-asprintf: Likewise.
67895         * modules/unistdio/u16-snprintf: Likewise.
67896         * modules/unistdio/u16-sprintf: Likewise.
67897         * modules/unistdio/u16-u16-asnprintf: Likewise.
67898         * modules/unistdio/u16-u16-asprintf: Likewise.
67899         * modules/unistdio/u16-u16-snprintf: Likewise.
67900         * modules/unistdio/u16-u16-sprintf: Likewise.
67901         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67902         * modules/unistdio/u16-u16-vasprintf: Likewise.
67903         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67904         * modules/unistdio/u16-u16-vsprintf: Likewise.
67905         * modules/unistdio/u16-vasnprintf: Likewise.
67906         * modules/unistdio/u16-vasprintf: Likewise.
67907         * modules/unistdio/u16-vsnprintf: Likewise.
67908         * modules/unistdio/u16-vsprintf: Likewise.
67909         * modules/unistdio/u32-asnprintf: Likewise.
67910         * modules/unistdio/u32-asprintf: Likewise.
67911         * modules/unistdio/u32-snprintf: Likewise.
67912         * modules/unistdio/u32-sprintf: Likewise.
67913         * modules/unistdio/u32-u32-asnprintf: Likewise.
67914         * modules/unistdio/u32-u32-asprintf: Likewise.
67915         * modules/unistdio/u32-u32-snprintf: Likewise.
67916         * modules/unistdio/u32-u32-sprintf: Likewise.
67917         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67918         * modules/unistdio/u32-u32-vasprintf: Likewise.
67919         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67920         * modules/unistdio/u32-u32-vsprintf: Likewise.
67921         * modules/unistdio/u32-vasnprintf: Likewise.
67922         * modules/unistdio/u32-vasprintf: Likewise.
67923         * modules/unistdio/u32-vsnprintf: Likewise.
67924         * modules/unistdio/u32-vsprintf: Likewise.
67925         * modules/unistdio/ulc-asnprintf: Likewise.
67926         * modules/unistdio/ulc-asprintf: Likewise.
67927         * modules/unistdio/ulc-fprintf: Likewise.
67928         * modules/unistdio/ulc-snprintf: Likewise.
67929         * modules/unistdio/ulc-sprintf: Likewise.
67930         * modules/unistdio/ulc-vasnprintf: Likewise.
67931         * modules/unistdio/ulc-vasprintf: Likewise.
67932         * modules/unistdio/ulc-vfprintf: Likewise.
67933         * modules/unistdio/ulc-vsnprintf: Likewise.
67934         * modules/unistdio/ulc-vsprintf: Likewise.
67935         * modules/unistr/u8-check: Likewise.
67936         * modules/unistr/u8-chr: Likewise.
67937         * modules/unistr/u8-cmp: Likewise.
67938         * modules/unistr/u8-cmp2: Likewise.
67939         * modules/unistr/u8-cpy: Likewise.
67940         * modules/unistr/u8-cpy-alloc: Likewise.
67941         * modules/unistr/u8-endswith: Likewise.
67942         * modules/unistr/u8-mblen: Likewise.
67943         * modules/unistr/u8-mbsnlen: Likewise.
67944         * modules/unistr/u8-mbtouc: Likewise.
67945         * modules/unistr/u8-mbtouc-unsafe: Likewise.
67946         * modules/unistr/u8-mbtoucr: Likewise.
67947         * modules/unistr/u8-move: Likewise.
67948         * modules/unistr/u8-next: Likewise.
67949         * modules/unistr/u8-prev: Likewise.
67950         * modules/unistr/u8-set: Likewise.
67951         * modules/unistr/u8-startswith: Likewise.
67952         * modules/unistr/u8-stpcpy: Likewise.
67953         * modules/unistr/u8-stpncpy: Likewise.
67954         * modules/unistr/u8-strcat: Likewise.
67955         * modules/unistr/u8-strchr: Likewise.
67956         * modules/unistr/u8-strcmp: Likewise.
67957         * modules/unistr/u8-strcoll: Likewise.
67958         * modules/unistr/u8-strcpy: Likewise.
67959         * modules/unistr/u8-strcspn: Likewise.
67960         * modules/unistr/u8-strdup: Likewise.
67961         * modules/unistr/u8-strlen: Likewise.
67962         * modules/unistr/u8-strmblen: Likewise.
67963         * modules/unistr/u8-strmbtouc: Likewise.
67964         * modules/unistr/u8-strncat: Likewise.
67965         * modules/unistr/u8-strncmp: Likewise.
67966         * modules/unistr/u8-strncpy: Likewise.
67967         * modules/unistr/u8-strnlen: Likewise.
67968         * modules/unistr/u8-strpbrk: Likewise.
67969         * modules/unistr/u8-strrchr: Likewise.
67970         * modules/unistr/u8-strspn: Likewise.
67971         * modules/unistr/u8-strstr: Likewise.
67972         * modules/unistr/u8-strtok: Likewise.
67973         * modules/unistr/u8-to-u16: Likewise.
67974         * modules/unistr/u8-to-u32: Likewise.
67975         * modules/unistr/u8-uctomb: Likewise.
67976         * modules/unistr/u16-check: Likewise.
67977         * modules/unistr/u16-chr: Likewise.
67978         * modules/unistr/u16-cmp: Likewise.
67979         * modules/unistr/u16-cmp2: Likewise.
67980         * modules/unistr/u16-cpy: Likewise.
67981         * modules/unistr/u16-cpy-alloc: Likewise.
67982         * modules/unistr/u16-endswith: Likewise.
67983         * modules/unistr/u16-mblen: Likewise.
67984         * modules/unistr/u16-mbsnlen: Likewise.
67985         * modules/unistr/u16-mbtouc: Likewise.
67986         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67987         * modules/unistr/u16-mbtoucr: Likewise.
67988         * modules/unistr/u16-move: Likewise.
67989         * modules/unistr/u16-next: Likewise.
67990         * modules/unistr/u16-prev: Likewise.
67991         * modules/unistr/u16-set: Likewise.
67992         * modules/unistr/u16-startswith: Likewise.
67993         * modules/unistr/u16-stpcpy: Likewise.
67994         * modules/unistr/u16-stpncpy: Likewise.
67995         * modules/unistr/u16-strcat: Likewise.
67996         * modules/unistr/u16-strchr: Likewise.
67997         * modules/unistr/u16-strcmp: Likewise.
67998         * modules/unistr/u16-strcoll: Likewise.
67999         * modules/unistr/u16-strcpy: Likewise.
68000         * modules/unistr/u16-strcspn: Likewise.
68001         * modules/unistr/u16-strdup: Likewise.
68002         * modules/unistr/u16-strlen: Likewise.
68003         * modules/unistr/u16-strmblen: Likewise.
68004         * modules/unistr/u16-strmbtouc: Likewise.
68005         * modules/unistr/u16-strncat: Likewise.
68006         * modules/unistr/u16-strncmp: Likewise.
68007         * modules/unistr/u16-strncpy: Likewise.
68008         * modules/unistr/u16-strnlen: Likewise.
68009         * modules/unistr/u16-strpbrk: Likewise.
68010         * modules/unistr/u16-strrchr: Likewise.
68011         * modules/unistr/u16-strspn: Likewise.
68012         * modules/unistr/u16-strstr: Likewise.
68013         * modules/unistr/u16-strtok: Likewise.
68014         * modules/unistr/u16-to-u32: Likewise.
68015         * modules/unistr/u16-to-u8: Likewise.
68016         * modules/unistr/u16-uctomb: Likewise.
68017         * modules/unistr/u32-check: Likewise.
68018         * modules/unistr/u32-chr: Likewise.
68019         * modules/unistr/u32-cmp: Likewise.
68020         * modules/unistr/u32-cmp2: Likewise.
68021         * modules/unistr/u32-cpy: Likewise.
68022         * modules/unistr/u32-cpy-alloc: Likewise.
68023         * modules/unistr/u32-endswith: Likewise.
68024         * modules/unistr/u32-mblen: Likewise.
68025         * modules/unistr/u32-mbsnlen: Likewise.
68026         * modules/unistr/u32-mbtouc: Likewise.
68027         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68028         * modules/unistr/u32-mbtoucr: Likewise.
68029         * modules/unistr/u32-move: Likewise.
68030         * modules/unistr/u32-next: Likewise.
68031         * modules/unistr/u32-prev: Likewise.
68032         * modules/unistr/u32-set: Likewise.
68033         * modules/unistr/u32-startswith: Likewise.
68034         * modules/unistr/u32-stpcpy: Likewise.
68035         * modules/unistr/u32-stpncpy: Likewise.
68036         * modules/unistr/u32-strcat: Likewise.
68037         * modules/unistr/u32-strchr: Likewise.
68038         * modules/unistr/u32-strcmp: Likewise.
68039         * modules/unistr/u32-strcoll: Likewise.
68040         * modules/unistr/u32-strcpy: Likewise.
68041         * modules/unistr/u32-strcspn: Likewise.
68042         * modules/unistr/u32-strdup: Likewise.
68043         * modules/unistr/u32-strlen: Likewise.
68044         * modules/unistr/u32-strmblen: Likewise.
68045         * modules/unistr/u32-strmbtouc: Likewise.
68046         * modules/unistr/u32-strncat: Likewise.
68047         * modules/unistr/u32-strncmp: Likewise.
68048         * modules/unistr/u32-strncpy: Likewise.
68049         * modules/unistr/u32-strnlen: Likewise.
68050         * modules/unistr/u32-strpbrk: Likewise.
68051         * modules/unistr/u32-strrchr: Likewise.
68052         * modules/unistr/u32-strspn: Likewise.
68053         * modules/unistr/u32-strstr: Likewise.
68054         * modules/unistr/u32-strtok: Likewise.
68055         * modules/unistr/u32-to-u16: Likewise.
68056         * modules/unistr/u32-to-u8: Likewise.
68057         * modules/unistr/u32-uctomb: Likewise.
68058         * modules/uniwbrk/u8-wordbreaks: Likewise.
68059         * modules/uniwbrk/u16-wordbreaks: Likewise.
68060         * modules/uniwbrk/u32-wordbreaks: Likewise.
68061         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68062         * modules/uniwbrk/wordbreak-property: Likewise.
68063         * modules/uniwidth/u8-strwidth: Likewise.
68064         * modules/uniwidth/u8-width: Likewise.
68065         * modules/uniwidth/u16-strwidth: Likewise.
68066         * modules/uniwidth/u16-width: Likewise.
68067         * modules/uniwidth/u32-strwidth: Likewise.
68068         * modules/uniwidth/u32-width: Likewise.
68069         * modules/uniwidth/width: Likewise.
68070         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68071         with $(LIBUNISTRING).
68072         * modules/unicase/ignorable-tests: Likewise.
68073         * modules/unicase/locale-language-tests: Likewise.
68074         * modules/unicase/tolower-tests: Likewise.
68075         * modules/unicase/totitle-tests: Likewise.
68076         * modules/unicase/toupper-tests: Likewise.
68077         * modules/unicase/u8-casecmp-tests: Likewise.
68078         * modules/unicase/u8-casecoll-tests: Likewise.
68079         * modules/unicase/u8-casefold-tests: Likewise.
68080         * modules/unicase/u8-is-cased-tests: Likewise.
68081         * modules/unicase/u8-is-casefolded-tests: Likewise.
68082         * modules/unicase/u8-is-lowercase-tests: Likewise.
68083         * modules/unicase/u8-is-titlecase-tests: Likewise.
68084         * modules/unicase/u8-is-uppercase-tests: Likewise.
68085         * modules/unicase/u8-tolower-tests: Likewise.
68086         * modules/unicase/u8-totitle-tests: Likewise.
68087         * modules/unicase/u8-toupper-tests: Likewise.
68088         * modules/unicase/u16-casecmp-tests: Likewise.
68089         * modules/unicase/u16-casecoll-tests: Likewise.
68090         * modules/unicase/u16-casefold-tests: Likewise.
68091         * modules/unicase/u16-is-cased-tests: Likewise.
68092         * modules/unicase/u16-is-casefolded-tests: Likewise.
68093         * modules/unicase/u16-is-lowercase-tests: Likewise.
68094         * modules/unicase/u16-is-titlecase-tests: Likewise.
68095         * modules/unicase/u16-is-uppercase-tests: Likewise.
68096         * modules/unicase/u16-tolower-tests: Likewise.
68097         * modules/unicase/u16-totitle-tests: Likewise.
68098         * modules/unicase/u16-toupper-tests: Likewise.
68099         * modules/unicase/u32-casecmp-tests: Likewise.
68100         * modules/unicase/u32-casecoll-tests: Likewise.
68101         * modules/unicase/u32-casefold-tests: Likewise.
68102         * modules/unicase/u32-is-cased-tests: Likewise.
68103         * modules/unicase/u32-is-casefolded-tests: Likewise.
68104         * modules/unicase/u32-is-lowercase-tests: Likewise.
68105         * modules/unicase/u32-is-titlecase-tests: Likewise.
68106         * modules/unicase/u32-is-uppercase-tests: Likewise.
68107         * modules/unicase/u32-tolower-tests: Likewise.
68108         * modules/unicase/u32-totitle-tests: Likewise.
68109         * modules/unicase/u32-toupper-tests: Likewise.
68110         * modules/unicase/ulc-casecmp-tests: Likewise.
68111         * modules/unicase/ulc-casecoll-tests: Likewise.
68112         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68113         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68114         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68115         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68116         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68117         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68118         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68119         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68120         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68121         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68122         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68123         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68124         * modules/unictype/bidicategory-byname-tests: Likewise.
68125         * modules/unictype/bidicategory-name-tests: Likewise.
68126         * modules/unictype/bidicategory-of-tests: Likewise.
68127         * modules/unictype/bidicategory-test-tests: Likewise.
68128         * modules/unictype/block-list-tests: Likewise.
68129         * modules/unictype/block-of-tests: Likewise.
68130         * modules/unictype/block-test-tests: Likewise.
68131         * modules/unictype/category-C-tests: Likewise.
68132         * modules/unictype/category-Cc-tests: Likewise.
68133         * modules/unictype/category-Cf-tests: Likewise.
68134         * modules/unictype/category-Cn-tests: Likewise.
68135         * modules/unictype/category-Co-tests: Likewise.
68136         * modules/unictype/category-Cs-tests: Likewise.
68137         * modules/unictype/category-L-tests: Likewise.
68138         * modules/unictype/category-Ll-tests: Likewise.
68139         * modules/unictype/category-Lm-tests: Likewise.
68140         * modules/unictype/category-Lo-tests: Likewise.
68141         * modules/unictype/category-Lt-tests: Likewise.
68142         * modules/unictype/category-Lu-tests: Likewise.
68143         * modules/unictype/category-M-tests: Likewise.
68144         * modules/unictype/category-Mc-tests: Likewise.
68145         * modules/unictype/category-Me-tests: Likewise.
68146         * modules/unictype/category-Mn-tests: Likewise.
68147         * modules/unictype/category-N-tests: Likewise.
68148         * modules/unictype/category-Nd-tests: Likewise.
68149         * modules/unictype/category-Nl-tests: Likewise.
68150         * modules/unictype/category-No-tests: Likewise.
68151         * modules/unictype/category-P-tests: Likewise.
68152         * modules/unictype/category-Pc-tests: Likewise.
68153         * modules/unictype/category-Pd-tests: Likewise.
68154         * modules/unictype/category-Pe-tests: Likewise.
68155         * modules/unictype/category-Pf-tests: Likewise.
68156         * modules/unictype/category-Pi-tests: Likewise.
68157         * modules/unictype/category-Po-tests: Likewise.
68158         * modules/unictype/category-Ps-tests: Likewise.
68159         * modules/unictype/category-S-tests: Likewise.
68160         * modules/unictype/category-Sc-tests: Likewise.
68161         * modules/unictype/category-Sk-tests: Likewise.
68162         * modules/unictype/category-Sm-tests: Likewise.
68163         * modules/unictype/category-So-tests: Likewise.
68164         * modules/unictype/category-Z-tests: Likewise.
68165         * modules/unictype/category-Zl-tests: Likewise.
68166         * modules/unictype/category-Zp-tests: Likewise.
68167         * modules/unictype/category-Zs-tests: Likewise.
68168         * modules/unictype/category-and-not-tests: Likewise.
68169         * modules/unictype/category-and-tests: Likewise.
68170         * modules/unictype/category-byname-tests: Likewise.
68171         * modules/unictype/category-name-tests: Likewise.
68172         * modules/unictype/category-none-tests: Likewise.
68173         * modules/unictype/category-of-tests: Likewise.
68174         * modules/unictype/category-or-tests: Likewise.
68175         * modules/unictype/category-test-withtable-tests: Likewise.
68176         * modules/unictype/combining-class-tests: Likewise.
68177         * modules/unictype/ctype-alnum-tests: Likewise.
68178         * modules/unictype/ctype-alpha-tests: Likewise.
68179         * modules/unictype/ctype-blank-tests: Likewise.
68180         * modules/unictype/ctype-cntrl-tests: Likewise.
68181         * modules/unictype/ctype-digit-tests: Likewise.
68182         * modules/unictype/ctype-graph-tests: Likewise.
68183         * modules/unictype/ctype-lower-tests: Likewise.
68184         * modules/unictype/ctype-print-tests: Likewise.
68185         * modules/unictype/ctype-punct-tests: Likewise.
68186         * modules/unictype/ctype-space-tests: Likewise.
68187         * modules/unictype/ctype-upper-tests: Likewise.
68188         * modules/unictype/ctype-xdigit-tests: Likewise.
68189         * modules/unictype/decimal-digit-tests: Likewise.
68190         * modules/unictype/digit-tests: Likewise.
68191         * modules/unictype/mirror-tests: Likewise.
68192         * modules/unictype/numeric-tests: Likewise.
68193         * modules/unictype/property-alphabetic-tests: Likewise.
68194         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68195         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68196         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68197         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68198         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68199         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68200         * modules/unictype/property-bidi-control-tests: Likewise.
68201         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68202         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68203         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68204         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68205         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68206         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68207         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68208         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68209         * modules/unictype/property-bidi-pdf-tests: Likewise.
68210         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68211         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68212         * modules/unictype/property-byname-tests: Likewise.
68213         * modules/unictype/property-combining-tests: Likewise.
68214         * modules/unictype/property-composite-tests: Likewise.
68215         * modules/unictype/property-currency-symbol-tests: Likewise.
68216         * modules/unictype/property-dash-tests: Likewise.
68217         * modules/unictype/property-decimal-digit-tests: Likewise.
68218         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68219         * modules/unictype/property-deprecated-tests: Likewise.
68220         * modules/unictype/property-diacritic-tests: Likewise.
68221         * modules/unictype/property-extender-tests: Likewise.
68222         * modules/unictype/property-format-control-tests: Likewise.
68223         * modules/unictype/property-grapheme-base-tests: Likewise.
68224         * modules/unictype/property-grapheme-extend-tests: Likewise.
68225         * modules/unictype/property-grapheme-link-tests: Likewise.
68226         * modules/unictype/property-hex-digit-tests: Likewise.
68227         * modules/unictype/property-hyphen-tests: Likewise.
68228         * modules/unictype/property-id-continue-tests: Likewise.
68229         * modules/unictype/property-id-start-tests: Likewise.
68230         * modules/unictype/property-ideographic-tests: Likewise.
68231         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68232         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68233         * modules/unictype/property-ignorable-control-tests: Likewise.
68234         * modules/unictype/property-iso-control-tests: Likewise.
68235         * modules/unictype/property-join-control-tests: Likewise.
68236         * modules/unictype/property-left-of-pair-tests: Likewise.
68237         * modules/unictype/property-line-separator-tests: Likewise.
68238         * modules/unictype/property-logical-order-exception-tests: Likewise.
68239         * modules/unictype/property-lowercase-tests: Likewise.
68240         * modules/unictype/property-math-tests: Likewise.
68241         * modules/unictype/property-non-break-tests: Likewise.
68242         * modules/unictype/property-not-a-character-tests: Likewise.
68243         * modules/unictype/property-numeric-tests: Likewise.
68244         * modules/unictype/property-other-alphabetic-tests: Likewise.
68245         * modules/unictype/property-other-default-ignorable-code-point-tests:
68246         Likewise.
68247         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68248         * modules/unictype/property-other-id-continue-tests: Likewise.
68249         * modules/unictype/property-other-id-start-tests: Likewise.
68250         * modules/unictype/property-other-lowercase-tests: Likewise.
68251         * modules/unictype/property-other-math-tests: Likewise.
68252         * modules/unictype/property-other-uppercase-tests: Likewise.
68253         * modules/unictype/property-paired-punctuation-tests: Likewise.
68254         * modules/unictype/property-paragraph-separator-tests: Likewise.
68255         * modules/unictype/property-pattern-syntax-tests: Likewise.
68256         * modules/unictype/property-pattern-white-space-tests: Likewise.
68257         * modules/unictype/property-private-use-tests: Likewise.
68258         * modules/unictype/property-punctuation-tests: Likewise.
68259         * modules/unictype/property-quotation-mark-tests: Likewise.
68260         * modules/unictype/property-radical-tests: Likewise.
68261         * modules/unictype/property-sentence-terminal-tests: Likewise.
68262         * modules/unictype/property-soft-dotted-tests: Likewise.
68263         * modules/unictype/property-space-tests: Likewise.
68264         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68265         * modules/unictype/property-test-tests: Likewise.
68266         * modules/unictype/property-titlecase-tests: Likewise.
68267         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68268         * modules/unictype/property-unified-ideograph-tests: Likewise.
68269         * modules/unictype/property-uppercase-tests: Likewise.
68270         * modules/unictype/property-variation-selector-tests: Likewise.
68271         * modules/unictype/property-white-space-tests: Likewise.
68272         * modules/unictype/property-xid-continue-tests: Likewise.
68273         * modules/unictype/property-xid-start-tests: Likewise.
68274         * modules/unictype/property-zero-width-tests: Likewise.
68275         * modules/unictype/scripts-tests: Likewise.
68276         * modules/unictype/syntax-c-ident-tests: Likewise.
68277         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68278         * modules/unictype/syntax-java-ident-tests: Likewise.
68279         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68280         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68281         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68282         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68283         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68284         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68285         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68286         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68287         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68288         * modules/uniname/uniname-tests: Likewise.
68289         * modules/uninorm/canonical-decomposition-tests: Likewise.
68290         * modules/uninorm/compat-decomposition-tests: Likewise.
68291         * modules/uninorm/composition-tests: Likewise.
68292         * modules/uninorm/decomposing-form-tests: Likewise.
68293         * modules/uninorm/decomposition-tests: Likewise.
68294         * modules/uninorm/filter-tests: Likewise.
68295         * modules/uninorm/nfc-tests: Likewise.
68296         * modules/uninorm/nfd-tests: Likewise.
68297         * modules/uninorm/nfkc-tests: Likewise.
68298         * modules/uninorm/nfkd-tests: Likewise.
68299         * modules/uninorm/u8-normcmp-tests: Likewise.
68300         * modules/uninorm/u8-normcoll-tests: Likewise.
68301         * modules/uninorm/u16-normcmp-tests: Likewise.
68302         * modules/uninorm/u16-normcoll-tests: Likewise.
68303         * modules/uninorm/u32-normcmp-tests: Likewise.
68304         * modules/uninorm/u32-normcoll-tests: Likewise.
68305         * modules/unistdio/u8-asnprintf-tests: Likewise.
68306         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68307         * modules/unistdio/u8-vasprintf-tests: Likewise.
68308         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68309         * modules/unistdio/u8-vsprintf-tests: Likewise.
68310         * modules/unistdio/u16-asnprintf-tests: Likewise.
68311         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68312         * modules/unistdio/u16-vasprintf-tests: Likewise.
68313         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68314         * modules/unistdio/u16-vsprintf-tests: Likewise.
68315         * modules/unistdio/u32-asnprintf-tests: Likewise.
68316         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68317         * modules/unistdio/u32-vasprintf-tests: Likewise.
68318         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68319         * modules/unistdio/u32-vsprintf-tests: Likewise.
68320         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68321         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68322         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68323         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68324         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68325         * modules/unistr/u8-check-tests: Likewise.
68326         * modules/unistr/u8-chr-tests: Likewise.
68327         * modules/unistr/u8-cmp-tests: Likewise.
68328         * modules/unistr/u8-cmp2-tests: Likewise.
68329         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68330         * modules/unistr/u8-cpy-tests: Likewise.
68331         * modules/unistr/u8-mblen-tests: Likewise.
68332         * modules/unistr/u8-mbsnlen-tests: Likewise.
68333         * modules/unistr/u8-mbtouc-tests: Likewise.
68334         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68335         * modules/unistr/u8-mbtoucr-tests: Likewise.
68336         * modules/unistr/u8-move-tests: Likewise.
68337         * modules/unistr/u8-next-tests: Likewise.
68338         * modules/unistr/u8-prev-tests: Likewise.
68339         * modules/unistr/u8-set-tests: Likewise.
68340         * modules/unistr/u8-stpcpy-tests: Likewise.
68341         * modules/unistr/u8-stpncpy-tests: Likewise.
68342         * modules/unistr/u8-strcat-tests: Likewise.
68343         * modules/unistr/u8-strcmp-tests: Likewise.
68344         * modules/unistr/u8-strcoll-tests: Likewise.
68345         * modules/unistr/u8-strcpy-tests: Likewise.
68346         * modules/unistr/u8-strdup-tests: Likewise.
68347         * modules/unistr/u8-strlen-tests: Likewise.
68348         * modules/unistr/u8-strmblen-tests: Likewise.
68349         * modules/unistr/u8-strmbtouc-tests: Likewise.
68350         * modules/unistr/u8-strncat-tests: Likewise.
68351         * modules/unistr/u8-strncmp-tests: Likewise.
68352         * modules/unistr/u8-strncpy-tests: Likewise.
68353         * modules/unistr/u8-strnlen-tests: Likewise.
68354         * modules/unistr/u8-to-u16-tests: Likewise.
68355         * modules/unistr/u8-to-u32-tests: Likewise.
68356         * modules/unistr/u8-uctomb-tests: Likewise.
68357         * modules/unistr/u16-check-tests: Likewise.
68358         * modules/unistr/u16-chr-tests: Likewise.
68359         * modules/unistr/u16-cmp-tests: Likewise.
68360         * modules/unistr/u16-cmp2-tests: Likewise.
68361         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68362         * modules/unistr/u16-cpy-tests: Likewise.
68363         * modules/unistr/u16-mblen-tests: Likewise.
68364         * modules/unistr/u16-mbsnlen-tests: Likewise.
68365         * modules/unistr/u16-mbtouc-tests: Likewise.
68366         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68367         * modules/unistr/u16-mbtoucr-tests: Likewise.
68368         * modules/unistr/u16-move-tests: Likewise.
68369         * modules/unistr/u16-next-tests: Likewise.
68370         * modules/unistr/u16-prev-tests: Likewise.
68371         * modules/unistr/u16-set-tests: Likewise.
68372         * modules/unistr/u16-stpcpy-tests: Likewise.
68373         * modules/unistr/u16-stpncpy-tests: Likewise.
68374         * modules/unistr/u16-strcat-tests: Likewise.
68375         * modules/unistr/u16-strcmp-tests: Likewise.
68376         * modules/unistr/u16-strcoll-tests: Likewise.
68377         * modules/unistr/u16-strcpy-tests: Likewise.
68378         * modules/unistr/u16-strdup-tests: Likewise.
68379         * modules/unistr/u16-strlen-tests: Likewise.
68380         * modules/unistr/u16-strmblen-tests: Likewise.
68381         * modules/unistr/u16-strmbtouc-tests: Likewise.
68382         * modules/unistr/u16-strncat-tests: Likewise.
68383         * modules/unistr/u16-strncmp-tests: Likewise.
68384         * modules/unistr/u16-strncpy-tests: Likewise.
68385         * modules/unistr/u16-strnlen-tests: Likewise.
68386         * modules/unistr/u16-to-u32-tests: Likewise.
68387         * modules/unistr/u16-to-u8-tests: Likewise.
68388         * modules/unistr/u16-uctomb-tests: Likewise.
68389         * modules/unistr/u32-check-tests: Likewise.
68390         * modules/unistr/u32-chr-tests: Likewise.
68391         * modules/unistr/u32-cmp-tests: Likewise.
68392         * modules/unistr/u32-cmp2-tests: Likewise.
68393         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68394         * modules/unistr/u32-cpy-tests: Likewise.
68395         * modules/unistr/u32-mblen-tests: Likewise.
68396         * modules/unistr/u32-mbsnlen-tests: Likewise.
68397         * modules/unistr/u32-mbtouc-tests: Likewise.
68398         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68399         * modules/unistr/u32-mbtoucr-tests: Likewise.
68400         * modules/unistr/u32-move-tests: Likewise.
68401         * modules/unistr/u32-next-tests: Likewise.
68402         * modules/unistr/u32-prev-tests: Likewise.
68403         * modules/unistr/u32-set-tests: Likewise.
68404         * modules/unistr/u32-stpcpy-tests: Likewise.
68405         * modules/unistr/u32-stpncpy-tests: Likewise.
68406         * modules/unistr/u32-strcat-tests: Likewise.
68407         * modules/unistr/u32-strcmp-tests: Likewise.
68408         * modules/unistr/u32-strcoll-tests: Likewise.
68409         * modules/unistr/u32-strcpy-tests: Likewise.
68410         * modules/unistr/u32-strdup-tests: Likewise.
68411         * modules/unistr/u32-strlen-tests: Likewise.
68412         * modules/unistr/u32-strmblen-tests: Likewise.
68413         * modules/unistr/u32-strmbtouc-tests: Likewise.
68414         * modules/unistr/u32-strncat-tests: Likewise.
68415         * modules/unistr/u32-strncmp-tests: Likewise.
68416         * modules/unistr/u32-strncpy-tests: Likewise.
68417         * modules/unistr/u32-strnlen-tests: Likewise.
68418         * modules/unistr/u32-to-u16-tests: Likewise.
68419         * modules/unistr/u32-to-u8-tests: Likewise.
68420         * modules/unistr/u32-uctomb-tests: Likewise.
68421         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68422         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68423         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68424         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68425         * modules/uniwidth/u8-strwidth-tests: Likewise.
68426         * modules/uniwidth/u8-width-tests: Likewise.
68427         * modules/uniwidth/u16-strwidth-tests: Likewise.
68428         * modules/uniwidth/u16-width-tests: Likewise.
68429         * modules/uniwidth/u32-strwidth-tests: Likewise.
68430         * modules/uniwidth/u32-width-tests: Likewise.
68431         * modules/uniwidth/width-tests: Likewise.
68433 2010-05-18  Richard Jones  <rjones@redhat.com>
68435         doc: users.txt: list hivex
68436         * users.txt: Add hivex.
68438 2010-05-18  Richard Jones  <rjones@redhat.com>
68440         doc: users.txt: list febootstrap
68441         * users.txt: Add febootstrap.
68443 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68445         bootstrap: fix an error when gnulib is not used as a git submodule
68446         * build-aux/bootstrap (gnulib_path): If its length is zero then
68447         assign "gnulib" to it.
68448         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68450 2010-05-16  Bruno Haible  <bruno@clisp.org>
68452         Avoid autoconf warnings about AM_ICONV.
68453         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68454         2.64.
68456 2010-05-16  Bruno Haible  <bruno@clisp.org>
68458         absolute-header: Make the macro usable in more situations.
68459         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68460         from gl_ABSOLUTE_HEADER.
68461         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68463 2010-05-16  James Youngman  <jay@gnu.org>
68465         doc: update users.txt
68466         * users.txt: Add CSSC.
68468 2010-05-16  Jim Meyering  <meyering@redhat.com>
68470         init.sh: fix an error in the previous change; add more comments
68471         * tests/init.sh: Compare exit code in loop against 9, not 2.
68472         Patch by Bruno Haible.
68473         Make the two tests more similar by adding an empty "then" clause.
68474         Add comments.
68476         init.sh: avoid unnecessary shell re-exec
68477         * tests/init.sh: Improve the re-exec-required check to first test the
68478         current shell.  If it passes the test, do not search for a shell that
68479         does pass, and do not re-exec.  This test is particularly contorted to
68480         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68481         of $(...) evokes a syntax error and causes immediate shell exit with
68482         status 2.  Bruno Haible reported that the re-exec made it impossible
68483         to single-step through any init.sh-using script.
68485 2010-05-16  Bruno Haible  <bruno@clisp.org>
68487         Fix collision between gnulib's and libintl's printf replacements.
68488         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68489         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68490         (printf): When using GNU C, map the __printf__ function to rpl_printf
68491         via __asm__. When not using GNU C, define rpl_printf instead of
68492         __printf__.
68493         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68494         commit.
68495         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68496         commit.
68497         * m4/asm-underscore.m4: New file.
68498         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68499         * modules/stdio (Files): Add m4/asm-underscore.m4.
68500         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68501         Reported by Ben Pfaff.
68503 2010-05-16  Bruno Haible  <bruno@clisp.org>
68505         verify: Avoid skipping the test on openSUSE 11.0.
68506         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68508 2010-05-13  Bruno Haible  <bruno@clisp.org>
68510         Avoid useless warnings from G++.
68511         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68512         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68513         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68515 2010-05-11  Jim Meyering  <meyering@redhat.com>
68517         maint.mk: tweak preceding change
68518         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
68519         regexps tighter by anchoring at EOL, and make the new group "shy"
68520         for slightly decreased overhead.
68522 2010-05-11  Eric Blake  <eblake@redhat.com>
68524         maint.mk: gnulib doesn't guarantee NSIG
68525         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
68527 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68529         test-pwrite.c: Remove unused variable declaration.
68530         * tests/test-pwrite.c (main): Remove read_buf declaration.
68532         Remove useless test-pwrite.sh file.
68533         * tests/test-pwrite.sh: Delete file.
68534         * modules/pwrite-tests: Remove references.
68535         Reported by Bruno Haible.
68537 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68539         init.sh: fix a typo
68540         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
68542 2010-05-10  Jim Meyering  <meyering@redhat.com>
68544         maint.mk: avoid using a temporary file in the always-defined-macros check
68545         * top/maint.mk (.re-defmac): Remove rule.
68546         (gl_trap_): Remove definition.
68547         (sc_prohibit_always-defined_macros): Rewrite not to create and
68548         depend on a temporary file.  Instead, depend on GNU grep's ability
68549         to read a list of regular expressions from stdin when given "-f -".
68551 2010-05-09  Bruno Haible  <bruno@clisp.org>
68553         Update to GNU gettext 0.18, part 1.
68554         * m4/gettext.m4: Update to GNU gettext 0.18.
68555         * m4/intl.m4: Likewise.
68556         * m4/po.m4: Likewise.
68557         * modules/gettext (Files): Add m4/fcntl-o.m4.
68558         (configure.ac): Require gettext infrastructure from version 0.18.
68560 2010-05-09  Jim Meyering  <meyering@redhat.com>
68562         init.sh: enable MALLOC_PERTURB_
68563         * tests/init.sh: Enable glibc's malloc-perturbing option.
68565         maint.mk: improve sc_cross_check_PATH_usage_in_tests
68566         With my recent change in init.sh from the two-line form:
68567             -#   : ${srcdir=.}
68568             -#   . "$srcdir/init.sh"; path_prepend_ .
68569             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
68570         I noticed that using the one-line form would cause this test
68571         to fail with a false-positive, or to stop working altogether,
68572         depending on whether help-version changed or all the tests did.
68573         * top/maint.mk (_hv_regex): Remove this definition.
68574         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
68575         (_hv_regex_strong): Use a stronger regex to check for conformance.
68576         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
68577         Give a separate diagnostic for lack of conforming use.
68579         maint.mk: prohibit definition of symbols defined by gnulib
68580         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
68581         definition of symbols defined by gnulib.
68583 2010-05-09  Bruno Haible  <bruno@clisp.org>
68585         acl: Avoid test failure on Cygwin-hosted mingw.
68586         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
68588 2010-05-09  Bruno Haible  <bruno@clisp.org>
68590         error: Use system's fcntl function.
68591         * lib/error.c (fcntl): Undefine.
68593 2010-05-09  Jim Meyering  <meyering@redhat.com>
68595         verify: adjust formatting to be more consistent
68596         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68597         argument-list '('s, and after one comma.
68599 2010-05-09  Bruno Haible  <bruno@clisp.org>
68601         error: More reliable output on mingw.
68602         * lib/error.c: Include <windows.h>.
68603         (is_open): New function.
68604         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68605         defined.
68607 2010-05-09  Bruno Haible  <bruno@clisp.org>
68609         vasnprintf: Fix syntax errors in libintl build on mingw.
68610         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
68611         pad_ourselves and prec_ourselves after use.
68613 2010-05-08  Bruno Haible  <bruno@clisp.org>
68615         * lib/config.charset: Update comments for Cygwin 1.7.
68616         * lib/localcharset.c: Likewise.
68618 2010-05-07  Jim Meyering  <meyering@redhat.com>
68620         init.sh: improve comments
68621         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68622         . "${srcdir=.}/init.sh"; path_prepend_ .
68623         Add a note about path_prepend_ and the alternative of using
68624         TESTS_ENVIRONMENT.
68626 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68628         exclude: Unescape hashed patterns in wildcard mode.
68629         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68630         to the hash list.
68631         * tests/test-exclude8.sh: New test case.
68632         * modules/exclude-tests: Add new test.
68634 2010-05-05  Eric Blake  <eblake@redhat.com>
68636         verify: automate tests
68637         * modules/verify-tests: New module.
68638         * tests/test-verify.sh: New file.
68639         * tests/test-verify.c: Guard each negative test with a unique id.
68640         Also avoid warning about unused left hand of comma expressions.
68642 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68644         Further improvements to verify.h, suggested by Eric Blake.
68645         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68646         the GL_* versions, to avoid collision with OpenGL.
68647         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68648         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68649         than testing merely whether it's defined.
68651         Modify verify.h to pacify gcc -Wredundant_decls.
68652         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68653         These use the prefix "GL_" since they're likely to be useful elsewhere.
68654         We may need to break them out into a different .h file.
68655         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68656         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68657         of verify_function__.
68659 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68661         Tests for module pwrite.
68662         * modules/pwrite-tests: New file.
68663         * tests/test-pwrite.sh: New file.
68664         * tests/test-pwrite.c: New file.
68666         New module pwrite.
68667         * lib/unistd.in.h (pwrite): New declaration.
68668         * lib/pwrite.c: New file, from glibc with modifications.
68669         * m4/pwrite.m4: New file.
68670         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68671         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68672         REPLACE_PWRITE.
68673         * modules/pwrite: New file.
68674         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68675         REPLACE_PWRITE.
68676         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68677         * doc/posix-functions/pwrite.texi: Mention the new module.
68679 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68681         pread: Update documentation.
68682         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68684 2010-05-04  Eric Blake  <eblake@redhat.com>
68686         docs: update cygwin progress
68687         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68688         this bug.
68689         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68690         Added in cygwin 1.7.2.
68691         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68692         Likewise.
68693         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68694         Likewise.
68695         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68696         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68697         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68698         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68699         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68700         Mention nproc module.
68701         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68702         bug in cygwin 1.7.5 addition.
68703         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68704         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68705         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68706         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68707         1.7.5.
68708         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68709         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68710         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68711         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68712         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68713         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68714         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68715         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68716         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68717         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68718         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68719         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68720         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68721         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68722         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68723         Likewise.
68724         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68725         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68726         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68727         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68728         Likewise.
68729         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68730         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68731         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68732         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68733         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68734         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68735         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68736         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68737         Likewise.
68738         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68739         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68740         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68741         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68742         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68743         Likewise.
68744         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68745         Likewise.
68746         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68747         Likewise.
68748         * doc/glibc-functions/xdrrec_endofrecord.texi
68749         (xdrrec_endofrecord): Likewise.
68750         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68751         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68752         Likewise.
68753         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68754         Likewise.
68756 2010-05-04  Jim Meyering  <meyering@redhat.com>
68758         gendocs.sh: make its "-s FILE" option more useful
68759         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68760         $PACKAGE to reflect the probably-different basename of "FILE".
68762 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68764         bootstrap: don't ignore download_po_files failure
68765         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68766         failure.
68768 2010-05-03  Jim Meyering  <meyering@redhat.com>
68770         maint.mk: allow to pass options to gendocs.sh
68771         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68772         (gendocs_options_): New overridable variable.
68774         gnu-web-doc-update: don't ignore configure or build failure
68775         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68777         announce-gen: backslash-escape '@'s in --help output
68778         * build-aux/announce-gen: Fix syntax errors.
68780         maint.mk, announce-gen: allow project-specific announcement mail headers
68781         * top/maint.mk (translation_project_): Define default.
68782         (announcement_Cc_, announcement_mail_headers_): Likewise.
68783         (announcement): Invoke announce-gen with new --mail-headers option.
68784         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68786         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68787         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68788         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68789         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68790         line in the "err2" output file when running "make check" in verbose
68791         mode (i.e., with set -x enabled).
68793 2010-05-03  Bruno Haible  <bruno@clisp.org>
68795         wctob: Fix for weird platforms.
68796         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68797         argument value.
68799 2010-05-03  Jim Meyering  <meyering@redhat.com>
68801         maint.mk: prohibit unwarranted use of <strings.h>
68802         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68803         strings.h in a file that does not also use strcasecmp, strncasecmp,
68804         ffs or ffsll.
68806         maint.mk: remove obsolete comments
68807         * top/maint.mk: Remove stale, commented-out rules.
68809 2010-05-02  Bruno Haible  <bruno@clisp.org>
68811         wcwidth: Declare also when it's aliased.
68812         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68813         macro.
68815 2010-05-02  Bruno Haible  <bruno@clisp.org>
68817         Fix regression from 2010-04-25.
68818         * gnulib-tool (func_modules_transitive_closure): Check the status of
68819         all modules, not only of the tests that are of the form foo-tests where
68820         foo is a module.
68822 2010-05-02  Bruno Haible  <bruno@clisp.org>
68824         wctob: Work around nasty Cygwin 1.7.2 bug.
68825         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68826         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68828 2010-05-01  Bruno Haible  <bruno@clisp.org>
68830         fpurge: Sharper test.
68831         * tests/test-fpurge.c (main): Add one more ftell check.
68832         * modules/fpurge-tests (Depends-on): Add ftell.
68833         Suggested by Eric Blake.
68835 2010-05-01  Bruno Haible  <bruno@clisp.org>
68837         ftello: Another test.
68838         * tests/test-ftello3.c: New file.
68839         * modules/ftello-tests (Files): Add it.
68840         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68841         MOSTLYCLEANFILES.
68843         ftell: Another test.
68844         * tests/test-ftell3.c: New file.
68845         * modules/ftell-tests (Files): Add it.
68846         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68847         MOSTLYCLEANFILES.
68849 2010-05-01  Bruno Haible  <bruno@clisp.org>
68851         ftell, ftello: Work around Solaris bug.
68852         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68853         * lib/ftello.c: Include stdio-impl.h.
68854         (ftello): On Solaris, when _IOWRT is set, compute the result without
68855         looking at _IOREAD.
68856         * modules/ftello (Files): Add lib/stdio-impl.h.
68857         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68858         * doc/posix-functions/ftello.texi: Likewise.
68859         Reported by Eric Blake.
68861 2010-05-01  Bruno Haible  <bruno@clisp.org>
68863         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68864         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68865         the _IOWRT flag is also set.
68867 2010-05-01  Bruno Haible  <bruno@clisp.org>
68869         Fix doc about a HP-UX stdio bug.
68870         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68871         * doc/posix-functions/ftello.texi: Likewise.
68873 2010-05-01  Bruno Haible  <bruno@clisp.org>
68875         lseek test: Fix failure on Solaris.
68876         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68877         output.
68879 2010-04-30  Jim Meyering  <meyering@redhat.com>
68881         bootstrap: don't ignore failure to generate po*/Makevars
68882         * build-aux/bootstrap (with_gettext): Don't ignore failure
68883         to create po/Makevars or runtime-po/Makevars.
68885 2010-04-29  Eric Blake  <eblake@redhat.com>
68887         headers: relax license to LGPLv2+
68888         * modules/fcntl-h (License): Relax license.
68889         * modules/getopt-posix (License): Likewise.
68890         * modules/locale (License): Likewise.
68891         * modules/math (License): Likewise.
68892         * modules/pty (License): Likewise.
68893         * modules/sched (License): Likewise.
68894         * modules/search (License): Likewise.
68895         * modules/spawn (License): Likewise.
68896         * modules/stdarg (License): Likewise.
68897         * modules/sysexits (License): Likewise.
68899 2010-04-29  Jim Meyering  <meyering@redhat.com>
68901         inttypes: relax license to LGPLv2+
68902         * modules/inttypes (License): Relax license.
68904 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68906         * top/maint.mk (indent): Run twice to produce idempotent results.
68908 2010-04-28  Bruno Haible  <bruno@clisp.org>
68910         getdate: Generate getdate.c in the source directory.
68911         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68912         MOSTLYCLEANFILES.
68913         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68915 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68917         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68918         is not declared as a const *; avoid warnings in that case.
68920 2010-04-28  Eric Blake  <eblake@redhat.com>
68922         canonicalize-lgpl: avoid compiler warning
68923         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68924         declaration' / 'extraneous semicolon' warning with some compilers.
68925         Reported by Andreas Gruenbacher.
68927 2010-04-28  Jim Meyering  <meyering@redhat.com>
68929         init.sh: ensure a more reliable exit status when exiting via trap
68930         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68931         Inspired by patches from Dmitry V. Levin.
68932         Also trap on signal 3 (SIGQUIT).
68934 2010-04-27  Bruno Haible  <bruno@clisp.org>
68936         Update doc about utimes().
68937         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
68938         'utimens' module.
68939         Reported by Andreas Gruenbacher <agruen@suse.de>.
68941 2010-04-27  Eric Blake  <eblake@redhat.com>
68943         full-read, full-write: relax license
68944         * modules/full-read (License): Drop to LGPLv2+.
68945         * modules/full-write (License): Likewise.
68946         * modules/safe-read (License): Likewise.
68947         * modules/safe-write (License): Likewise.
68949         pthread: mention library for linking
68950         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68952 2010-04-27  Jim Meyering  <meyering@redhat.com>
68954         maint.mk: fix a bug introduced in last change
68955         * top/maint.mk (gl_assured_headers_): Now that all names are on
68956         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68957         is not anchored to end of word, it should be adequate.
68959         maint.mk: avoid side-effect in latest syntax-check
68960         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68961         to run commands via $(shell...), and hence to incur cost only when
68962         the new rule is actually run.
68964         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68965         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68966         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68967         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68968         (gl_assured_headers_, az_, AZ_): Define.
68969         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68971 2010-04-26  Jim Meyering  <jim@meyering.net>
68972             Bruno Haible  <bruno@clisp.org>
68974         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68975         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68976         Prompted by an exchange with Gilles Espinasse.
68978 2010-04-26  Jim Meyering  <meyering@redhat.com>
68980         git-version-gen: aesthetic tweak
68981         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68982         so that the command remains on a single line.
68984 2010-04-26  Eric Blake  <eblake@redhat.com>
68986         git-version-gen: allow use on EBCDIC hosts
68987         * build-aux/git-version-gen (dirty): Use literal rather than tying
68988         ourselves to ascii.
68989         Reported by Steve Goetze.
68991 2010-04-25  Bruno Haible  <bruno@clisp.org>
68993         netdb: Add support for GNULIB_POSIXCHECK.
68994         * lib/netdb.in.h: Include warn-on-use.h.
68995         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68996         functions are used when GNULIB_POSIXCHECK is defined and the
68997         getaddrinfo module is not in use.
68998         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68999         freeaddrinfo, gai_strerror, getnameinfo are declared.
69000         * modules/netdb (Depends-on): Add warn-on-use.
69001         (Makefile.am): Include warn-on-use.h in netdb.h.
69003 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69005         build: avoid "make check" failure without .git/ directory
69006         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69007         there is no .git/ directory.
69009 2010-04-25  Bruno Haible  <bruno@clisp.org>
69011         ptsname: Fix misuse of ttyname_r.
69012         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69013         of errno.
69015 2010-04-25  Bruno Haible  <bruno@clisp.org>
69017         ttyname_r: Make it work on Solaris 10.
69018         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69019         if the system function has the POSIX declaration. Test whether the
69020         function fails if the buffer is less than 128 bytes large.
69021         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69022         system's ttyname_r function. Provide a reasonably large buffer.
69023         * modules/ttyname_r (Depends-on): Add extensions.
69024         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69026 2010-04-25  Bruno Haible  <bruno@clisp.org>
69028         Use the 'extensions' module for some more functions on Solaris.
69029         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69030         module.
69031         * doc/posix-functions/ctime_r.texi: Likewise.
69032         * doc/posix-functions/getgrgid_r.texi: Likewise.
69033         * doc/posix-functions/getgrnam_r.texi: Likewise.
69034         * doc/posix-functions/getpwnam_r.texi: Likewise.
69035         * doc/posix-functions/getpwuid_r.texi: Likewise.
69036         * doc/posix-functions/readdir_r.texi: Likewise.
69037         * doc/posix-functions/sigwait.texi: Likewise.
69038         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69039         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69041 2010-04-25  Bruno Haible  <bruno@clisp.org>
69043         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69044         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69045         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69046         * lib/ttyname_r.c: Include <limits.h>.
69047         (ttyname_r): Define using the system's ttyname_r function, if it exists
69048         and not on Solaris.
69049         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69050         set.
69051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69052         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69053         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69054         Reported by Simon Josefsson.
69056 2010-04-25  Bruno Haible  <bruno@clisp.org>
69058         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69059         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69060         * doc/posix-functions/ctime_r.texi: Likewise.
69061         * doc/posix-functions/getgrgid_r.texi: Likewise.
69062         * doc/posix-functions/getgrnam_r.texi: Likewise.
69063         * doc/posix-functions/getlogin_r.texi: Likewise.
69064         * doc/posix-functions/getpwnam_r.texi: Likewise.
69065         * doc/posix-functions/getpwuid_r.texi: Likewise.
69066         * doc/posix-functions/readdir_r.texi: Likewise.
69067         * doc/posix-functions/sigwait.texi: Likewise.
69068         * doc/posix-functions/ttyname_r.texi: Likewise.
69069         Reported by Simon Josefsson.
69071 2010-04-25  Bruno Haible  <bruno@clisp.org>
69073         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69074         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69075         also to --create-testdir.
69076         (func_acceptable): Don't consider the status of *-tests modules here.
69077         (func_modules_transitive_closure): Consider it here, before including a
69078         test module.
69079         (func_import, func_create_testdir): Set inc_all_direct_tests,
69080         inc_all_indirect_tests.
69081         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69082         --create-testdir and --create-megatestdir.
69084 2010-04-25  Bruno Haible  <bruno@clisp.org>
69086         gnulib-tool: Add --without-*-tests options.
69087         * gnulib-tool (func_usage): Document the --without-*-tests options.
69088         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69089         excl_unportable_tests): New variables.
69090         Fail if they are specified with --import or --update.
69091         (func_acceptable): Respect the excl_*_tests variables.
69092         (func_import): Set the excl_*_tests variables to empty.
69094 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69095             Bruno Haible  <bruno@clisp.org>
69097         Work around a MacOS X 10.4 bug with openpty.
69098         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69099         * tests/test-openpty.c (main): Close the master side explicitly.
69101 2010-04-25  Bruno Haible  <bruno@clisp.org>
69103         strnlen: Fix a C++ test error on MacOS X and Solaris.
69104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69105         the function is not declared.
69106         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69107         Simon Josefsson.
69109 2010-04-24  Bruno Haible  <bruno@clisp.org>
69111         Avoid a gcc warning.
69112         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69113         of correct type for %08lx directive.
69114         Reported by Eric Blake.
69116 2010-04-24  Bruno Haible  <bruno@clisp.org>
69118         vasnprintf: Correct errno value in case of out-of-memory.
69119         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69120         or sprintf. Use the errno value from SNPRINTF or sprintf.
69121         Reported by Ian Beckwith <ianb@erislabs.net>.
69123 2010-04-24  Bruno Haible  <bruno@clisp.org>
69125         ansi-c++-opt: Find correct compiler when cross-compiling.
69126         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69127         AC_CHECK_PROGS.
69128         Reported by Simon Josefsson.
69130 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69132         vc-list-files: Add support for subversion
69133         * build-aux/vc-list-files: Use "svn list" to generate the list of
69134         files controlled by subversion.
69136 2010-04-23  Jim Meyering  <meyering@redhat.com>
69138         vc-list-files tests: convert to use init.sh
69139         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69140         path_prepend_.
69141         Use Exit, not exit.
69142         Use skip_ rather than open coding it.
69143         Remove trap set-up and compare definitions.
69144         * tests/test-vc-list-files-git.sh: Likewise.
69145         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69147 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69149         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69150         backup files.
69152 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69154         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69156 2010-04-20  Eric Blake  <eblake@redhat.com>
69158         tests: be robust to ignored SIGPIPE
69159         * tests/test-select-in.sh: Consume all output.
69160         * tests/test-lseek.sh: Check correct exit status, while avoiding
69161         EPIPE.
69163 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69164             Bruno Haible  <bruno@clisp.org>
69166         visibility: Don't use -fvisibility if it leads to a warning.
69167         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69168         yes, don't pretend that visibility works if it leads to a warning.
69169         Reported by Mike Gran <spk121@yahoo.com>.
69171 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69173         * build-aux/bootstrap: Use "git -h" for testing for supported options
69174         instead of "git --help".  The short-form option only shows a summary,
69175         and doesn't layout the full man page.  Grep for the full option name
69176         in the summary, too.
69178 2010-04-19  Bruno Haible  <bruno@clisp.org>
69180         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69182         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69183         mention of RELOCATABLE_STRIP.
69184         Reported by Sylvain Beucler <beuc@beuc.net>.
69186 2010-04-19  Bruno Haible  <bruno@clisp.org>
69188         * lib/diffseq.h: Fix typo in comment.
69189         Reported by Eric Blake.
69191 2010-04-19  Bruno Haible  <bruno@clisp.org>
69193         ioctl: Move autoconf macro to a .m4 file.
69194         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69195         * modules/ioctl (Files): Add it.
69196         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69197         Reported by Ian Beckwith <ianb@erislabs.net>.
69199 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69200             Bruno Haible  <bruno@clisp.org>
69202         diffseq: Accommodate use-case with abstract arrays.
69203         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69204         is not defined.
69205         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69206         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69208 2010-04-18  Bruno Haible  <bruno@clisp.org>
69210         * doc/posix-headers/stdbool.texi: More precise wording.
69212 2010-04-17  Jim Meyering  <meyering@redhat.com>
69214         maint.mk: use gnu-style indentation in an embedded perl script
69215         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69216         Rename variable: s/two/last_two_bytes/
69218 2010-04-16  Eric Blake  <eblake@redhat.com>
69220         test-stdbool: skip test that fails with Solaris CC
69221         * tests/test-stdbool.c (f): Skip test that causes compilation
69222         error under buggy C++ compiler.
69223         * lib/stdbool.in.h: Document the limitation.
69224         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69226         setenv: allow compilation with C++
69227         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69228         register keyword.
69230         stdint: allow test to pass with C++
69231         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69233         getopt: allow compilation with C++
69234         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69235         struct.
69236         * lib/getopt.c (_getopt_internal_r): Use correct type.
69237         Reported by Dagobert Michelson, via Joel E. Denny.
69239 2010-04-16  Bruno Haible  <bruno@clisp.org>
69241         Override netdb.h always.
69242         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69243         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69244         Reported by Ludovic Courtès <ludo@gnu.org>.
69246 2010-04-15  Bruno Haible  <bruno@clisp.org>
69248         openpty: Fix mistake from 2010-03-21.
69249         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69250         Reported by Simon Josefsson.
69252 2010-04-15  Eric Blake  <eblake@redhat.com>
69254         test-forkpty: fix expected signature
69255         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69256         Reported by Simon Josefsson.
69258 2010-04-15  Jim Meyering  <meyering@redhat.com>
69260         maint.mk: texinfo_suffix_re_: correct the default regexp
69261         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69263         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69264         make it configurable via texinfo_suffix_re_.
69266 2010-04-14  Eric Blake  <eblake@redhat.com>
69268         strtok_r: relax license to LGPLv2+
69269         * modules/strtok_r (License): Relax license.
69270         Reported by Matthias Bolte.
69272 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69274         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69275         version 1.4.4 by default instead of requiring the libgcrypt
69276         version used during build.  This makes it possible to use the
69277         application with older but still binary compatible libgcrypt
69278         versions.
69280 2010-04-13  Eric Blake  <eblake@redhat.com>
69282         getopt-gnu: match recent glibc fixes and posix ruling
69283         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69284         '+' handling, when requesting extensions.
69285         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69286         'W;' handling.
69287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69288         * doc/posix-functions/getopt.texi (getopt): Document this.
69289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69291         Likewise.
69293         getopt: merge bug fixes from glibc
69294         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69295         diagnostics.  Honor '+:' correctly.  Reject ';'.
69297         getopt-posix: detect MacOS bug
69298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69299         optind when missing a required argument.
69300         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69301         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69302         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69303         Likewise.
69305         getopt-posix: avoid spurious failure on Solaris
69306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69307         an indicator that setting optind=1 is sufficient for reset.
69309         getopt-posix: avoid spurious failure on FreeBSD
69310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69311         in POSIX mode, since the m4 test uses it.
69313         gnulib-tool: silence warning on BSD sh
69314         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69316 2010-04-13  Jim Meyering  <meyering@redhat.com>
69318         doc: users.txt: GNU patch now uses gnulib
69319         * users.txt: Add patch.
69321 2010-04-12  Jim Meyering  <meyering@redhat.com>
69323         maint.mk: generate more concise timing data for syntax-check rules
69324         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69325         " done" from each line that reports a syntax-check test duration.
69327 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69329         git-version-gen: use "git update-index..." rather than "git status"
69330         * build-aux/git-version-gen: Use git update-index --refresh, not
69331         "git status".  With some versions of git, "git status" would fail
69332         to update the index and result in an unwarranted "-dirty" suffix.
69334 2010-04-11  Jim Meyering  <meyering@redhat.com>
69336         openat: correct formatting (no semantic change)
69337         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69338         Suggested by Bruno Haible.
69340 2010-04-11  Bruno Haible  <bruno@clisp.org>
69342         Stricter declaration checking in testdirs.
69343         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69344         If for_tests is true, augment AM_CPPFLAGS to define
69345         GNULIB_STRICT_CHECKING.
69346         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69347         GNULIB_STRICT_CHECKING is defined, verify that the function is
69348         declared.
69350 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69351             Bruno Haible  <bruno@clisp.org>
69353         libunistring: Improve configure output.
69354         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69355         Don't say "consider installing GNU libunistring" when checking again
69356         with libiconv.
69358 2010-04-11  Bruno Haible  <bruno@clisp.org>
69360         libunistring: Correct value of $LTLIBUNISTRING.
69361         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69362         correct the value of $LTLIBUNISTRING.
69364 2010-04-11  Bruno Haible  <bruno@clisp.org>
69366         havelib: Add static libraries to LIBS in the right order.
69367         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69368         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69370 2010-04-11  Bruno Haible  <bruno@clisp.org>
69372         libunistring: Detect libunistring also when it depends on libiconv.
69373         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69374         the second AC_LIB_HAVE_LINKFLAGS invocation.
69376 2010-04-11  James Youngman  <jay@gnu.org>
69378         close-stream: declare local scalars to be "const"
69379         * lib/close-stream.c (close_stream): Make boolean variables const
69380         to document the fact that we set but do not change them.
69382 2010-04-11  Bruno Haible  <bruno@clisp.org>
69384         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69386 2010-04-11  Jim Meyering  <meyering@redhat.com>
69388         maint.mk: don't include dist-check.mk
69389         * top/maint.mk: Remove bogus include directive.
69391         maint.mk: improve empty-line-at-EOF check
69392         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69393         solution, rather than tail+Perl-based one.  The latter would read
69394         a few kilobytes from the end of each file, and did not handle empty
69395         files properly.
69397         maint.mk: print the elapsed time for each syntax-check rule
69398         * top/maint.mk (sc_m_rules_): Save start time in a file.
69399         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69400         (local-check): Interpose the .z rules
69402 2010-04-11  Jim Meyering  <meyering@redhat.com>
69404         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69405         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69406         empty file with one that ends in an empty line.
69408 2010-04-10  Bruno Haible  <bruno@clisp.org>
69410         mkdir: Make it work on mingw64.
69411         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69412         * lib/mkdir.c: Update comment.
69413         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69415 2010-04-10  Bruno Haible  <bruno@clisp.org>
69417         Don't override improved macro from newer autoconf.
69418         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69419         autoconf >= 2.62.
69420         Reported by Joel E. Denny <jdenny@clemson.edu>.
69422 2010-04-10  Jim Meyering  <meyering@redhat.com>
69424         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69425         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69427         maint.mk: correct a diagnostic
69428         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69429         in diagnostic; now use $prohibit.
69431 2010-04-10  Bruno Haible  <address@hidden>
69433         fchownat: Fix a C++ test error on Solaris 8.
69434         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69435         the function does not exist.
69437 2010-04-10  Bruno Haible  <bruno@clisp.org>
69439         vasnprintf: Add more tests.
69440         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69441         (test_function): Test converting an invalid wide string.
69443         vasnprintf: Correct handling of unconvertible wide string arguments.
69444         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69445         VASNPRINTF.
69446         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69447         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69448         smaller than the expected maximum need for the directive. Set errno to
69449         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69450         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69452         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69453         * modules/vasnprintf (Files): Add m4/printf.m4.
69454         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69456 2010-04-10  Bruno Haible  <bruno@clisp.org>
69458         vasnprintf: Fix crash in %ls directive.
69459         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69460         string is passed as argument to %ls, with no precision and no width.
69461         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69463 2010-04-10  Bruno Haible  <bruno@clisp.org>
69465         vasnprintf: Fix multiple test failures on mingw.
69466         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69467         _snprintf, or snwprintf, not _snwprintf.
69469 2010-04-10  Bruno Haible  <bruno@clisp.org>
69471         write: Fix a C++ test error on mingw.
69472         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69474 2010-04-10  Bruno Haible  <bruno@clisp.org>
69476         vasnprintf test: Reduce code duplication.
69477         * tests/test-vasnprintf.c (test_function): New function, extracted from
69478         test_vasnprintf.
69479         (test_vasnprintf, test_asnprintf): Invoke it.
69481 2010-04-10  Bruno Haible  <bruno@clisp.org>
69483         strnlen: Fix warning in C++ mode on MacOS X.
69484         * lib/string.in.h (strnlen): Use the modern idiom.
69485         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69486         defining strnlen as a macro already in <config.h>.
69487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69488         REPLACE_STRNLEN.
69489         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69490         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69492 2010-04-08  James Youngman  <jay@gnu.org>
69494         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69495         the example.
69497 2010-04-09  Jim Meyering  <meyering@redhat.com>
69499         maint.mk: print better diagnostic when there is no $(_hv_file)
69500         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69501         announce that when $(_hv_file) (aka help-version) does not exist.
69503         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69504         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69505         not try to interpret its random input bytes.  Jarno Rajahalme reported
69506         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69507         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69508         (mktempd_): Likewise, just in case.
69510         ftruncate: add two years to projected module removal date: 2012
69511         * m4/ftruncate.m4: Adjust comments.
69513         ftruncate: mark module as obsolete; even MinGW provides it, now
69514         * modules/ftruncate (Status): Obsolete.
69515         (Notice): Say that.
69516         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
69517         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
69519 2010-04-08  Bruno Haible  <bruno@clisp.org>
69521         Fix side effects from tests-related modules.
69522         * modules/dprintf-posix (Comment): New section.
69523         * modules/fprintf-posix (Comment): Likewise.
69524         * modules/obstack-printf-posix (Comment): Likewise.
69525         * modules/printf-posix (Comment): Likewise.
69526         * modules/snprintf-posix (Comment): Likewise.
69527         * modules/sprintf-posix (Comment): Likewise.
69528         * modules/vasnprintf-posix (Comment): Likewise.
69529         * modules/vasprintf-posix (Comment): Likewise.
69530         * modules/vdprintf-posix (Comment): Likewise.
69531         * modules/vfprintf-posix (Comment): Likewise.
69532         * modules/vprintf-posix (Comment): Likewise.
69533         * modules/vsnprintf-posix (Comment): Likewise.
69534         * modules/vsprintf-posix (Comment): Likewise.
69535         * modules/xprintf-posix (Comment): Likewise.
69536         * modules/xvasprintf-posix (Comment): Likewise.
69537         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
69538         * modules/floorf-tests (Depends-on): Likewise.
69539         * modules/round-tests (Depends-on): Likewise.
69540         * modules/roundf-tests (Depends-on): Likewise.
69541         * modules/trunc-tests (Depends-on): Likewise.
69542         * modules/truncf-tests (Depends-on): Likewise.
69543         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
69544         'fprintf-posix' module is not present.
69545         * tests/test-floorf2.c (check): Likewise.
69546         * tests/test-trunc2.c (check): Likewise.
69547         * tests/test-truncf2.c (check): Likewise.
69548         * tests/test-round2.c (equal): Likewise.
69549         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69551 2010-04-07  Karl Berry  <karl@gnu.org>
69553         * config/srclist.txt,
69554         * config/srclistvars.sh,
69555         * config/srclist-update: doc fixes.
69557 2010-04-07  Jim Meyering  <meyering@redhat.com>
69559         maint.mk: add a PATH crosschecking syntax-check rule
69560         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
69561         Useful if you use a test like the one in help-version (coreutils,
69562         diffutils, grep, gzip) that ensures $(VERSION) matches what is
69563         printed by prog --version.
69565 2010-04-06  Bruno Haible  <bruno@clisp.org>
69567         Fix link error on mingw.
69568         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
69569         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
69571 2010-04-06  Bruno Haible  <bruno@clisp.org>
69573         Assume rmdir exists.
69574         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
69576 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
69578         doc: update users.txt
69579         * users.txt: Add gcal.
69581 2010-04-06  Jim Meyering  <meyering@redhat.com>
69583         init.sh: simply unset TMPDIR rather than risking env -i
69584         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
69585         although it probably works fine on all Unix-based systems, some
69586         systems (Cygwin?) cannot tolerate a totally cleared environment.
69587         Suggestion from Eric Blake.
69589 2010-04-06  Jim Meyering  <meyering@redhat.com>
69591         init.sh: portability fix: use env's POSIX-specified -i option not -u
69592         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69593         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69595 2010-04-05  Bruno Haible  <bruno@clisp.org>
69597         btowc: Work around Cygwin 1.7.2 bug.
69598         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69599         does not map NUL to 0.
69600         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69602 2010-04-05  Bruno Haible  <bruno@clisp.org>
69604         Make the multithread modules work on Cygwin 1.7.2.
69605         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69606         imported symbols can be declared weak, so that it returns "no" on
69607         Cygwin 1.7.2.
69609 2010-04-05  Bruno Haible  <bruno@clisp.org>
69611         Use the module 'strncat'.
69612         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69614         Tests for module 'strncat'.
69615         * modules/strncat-tests: New file.
69616         * tests/test-strncat.c: New file.
69618         New module 'strncat'.
69619         * lib/string.in.h (strncat): New declaration.
69620         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69621         * m4/strncat.m4: New file, based on m4/memchr.m4.
69622         * modules/strncat: New file.
69623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69624         is declared.
69625         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69626         REPLACE_STRNCAT.
69627         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69628         REPLACE_STRNCAT.
69629         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69630         module.
69631         * tests/test-string-c++.cc: Check signature of strncat.
69633 2010-04-05  Jim Meyering  <meyering@redhat.com>
69635         xstrtoumax-tests: convert to use init.sh
69636         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69637         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69638         Use Exit, not exit.
69639         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69641         xstrtoimax-tests: convert to use init.sh
69642         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69643         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69644         Use Exit, not exit.
69645         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69647 2010-04-05  Bruno Haible  <bruno@clisp.org>
69649         sys_socket: Avoid #define replacements in C++ mode.
69650         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69651         warning to the function if possible, rather than #defining the symbol
69652         to a dysfunctional alias.
69654 2010-04-05  Bruno Haible  <bruno@clisp.org>
69656         fseeko: Fix C++ test error on mingw.
69657         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69658         gl_FUNC_FSEEKO.
69659         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69660         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69661         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69662         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69664 2010-04-05  Bruno Haible  <bruno@clisp.org>
69666         duplocale: Improve test output.
69667         * tests/test-duplocale.c (main): Print reason for skipped test.
69669 2010-04-05  Bruno Haible  <bruno@clisp.org>
69671         Assume rmdir exists.
69672         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69673         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69675 2010-04-05  Bruno Haible  <bruno@clisp.org>
69677         Fix link error on Solaris 8 with cc.
69678         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69680 2010-04-05  Bruno Haible  <bruno@clisp.org>
69682         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69683         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69685 2010-04-05  Bruno Haible  <bruno@clisp.org>
69687         vasprintf: Update documentation.
69688         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69690 2010-04-05  Bruno Haible  <bruno@clisp.org>
69692         ptsname: Improve test.
69693         * tests/test-ptsname.c (main): Also try the various master names of BSD
69694         systems.
69696 2010-04-05  Bruno Haible  <bruno@clisp.org>
69698         memchr: Avoid a possible C++ test error.
69699         * lib/string.in.h (memchr): Provide declaration if function is missing.
69700         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69701         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69703         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69705 2010-04-05  Bruno Haible  <bruno@clisp.org>
69707         strtok_r: Improve idiom.
69708         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69709         AC_LIBOBJ is used.
69711 2010-04-05  Bruno Haible  <bruno@clisp.org>
69713         strdup: Improve idiom.
69714         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69715         AC_LIBOBJ is used.
69716         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69717         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69718         when AC_LIBOBJ is used.
69720 2010-04-05  Bruno Haible  <bruno@clisp.org>
69722         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69723         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69724         don't set REPLACE_MBSINIT to 1.
69725         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69726         don't set REPLACE_MBRTOWC to 1.
69727         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69728         exist, don't set REPLACE_MBSRTOWCS to 1.
69729         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69730         exist, don't set REPLACE_MBSNRTOWCS to 1.
69731         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69732         don't set REPLACE_WCRTOMB to 1.
69733         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69734         exist, don't set REPLACE_WCSRTOMBS to 1.
69735         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69736         exist, don't set REPLACE_WCSNRTOMBS to 1.
69738 2010-04-05  Bruno Haible  <bruno@clisp.org>
69740         ldexpl: Improve idiom.
69741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69742         make sure to set HAVE_DECL_LDEXPL to 0.
69744 2010-04-05  Jim Meyering  <meyering@redhat.com>
69746         xstrtol-tests: convert to use init.sh
69747         * modules/xstrtol-tests (Files): Add tests/init.sh.
69748         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69749         Use Exit, not exit.
69750         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69752         atexit-tests: convert to use init.sh
69753         * modules/atexit-tests (Files): Add tests/init.sh.
69754         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69755         Use Exit, not exit.
69756         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69758         init.sh: fix typo
69759         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69761         init.sh: make it easier for a test script to write to the tty, ...
69762         when using automake's parallel-tests mode.
69763         * tests/init.sh (stderr_fileno_): Define overridable variable.
69764         (warn_): New function, to use it.
69765         (fail_, skip_, framework_failure_): Use warn_.
69767 2010-04-04  Bruno Haible  <bruno@clisp.org>
69769         btowc: Avoid warning.
69770         * lib/btowc.c: Include <stdlib.h>.
69771         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69773 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69774             Bruno Haible  <bruno@clisp.org>
69776         wchar: Port to NetBSD 1.5.
69777         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69778         * lib/wctype.in.h (WEOF): Likewise.
69780 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69781             Bruno Haible  <bruno@clisp.org>
69783         Port extended stdio to NetBSD 1.5.
69784         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69785         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69786         older.
69788 2010-04-04  Bruno Haible  <bruno@clisp.org>
69790         string: Remove unused substitution.
69791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69792         HAVE_DECL_STRERROR.
69793         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69795 2010-04-04  Bruno Haible  <bruno@clisp.org>
69797         strtod: Avoid a possible C++ test error.
69798         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69799         set REPLACE_STRTOD.
69801 2010-04-04  Bruno Haible  <bruno@clisp.org>
69803         strerror: Update documentation.
69804         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69806 2010-04-04  Bruno Haible  <bruno@clisp.org>
69808         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69809         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69810         _GL_CXXALIAS_SYS_CAST.
69812 2010-04-04  Bruno Haible  <bruno@clisp.org>
69814         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69816         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69817         REPLACE_FREXPL to 1.
69818         * doc/posix-functions/frexpl.texi: Update documentation.
69820 2010-04-04  Bruno Haible  <bruno@clisp.org>
69822         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69823         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69825 2010-04-04  Bruno Haible  <bruno@clisp.org>
69827         Implement nanosleep for native Windows.
69828         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69830 2010-04-04  Bruno Haible  <bruno@clisp.org>
69832         math: Fix some C++ test errors on Solaris 8.
69833         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69835 2010-04-04  Bruno Haible  <bruno@clisp.org>
69837         math: Fix some C++ test errors on Cygwin.
69838         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69839         truncl): Provide declaration if the system does not have it.
69840         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69841         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69842         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69843         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69844         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69845         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69846         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69847         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69848         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69849         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69850         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69851         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69852         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69853         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69854         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69855         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69857         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69858         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69859         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69860         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69861         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69863 2010-04-04  Bruno Haible  <bruno@clisp.org>
69865         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69866         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69867         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69868         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69869         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69870         * m4/isinf.m4 (gl_ISINF): Likewise.
69871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69873 2010-04-04  Bruno Haible  <bruno@clisp.org>
69875         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69876         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69878 2010-04-04  Bruno Haible  <bruno@clisp.org>
69880         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69881         * modules/tmpfile (configure.ac): Update.
69883         tmpfile: Fix C++ test error on mingw.
69884         * lib/stdio.in.h (tmpfile): New declaration.
69885         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69886         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69887         * modules/tmpfile (Depends-on): Add stdio.
69888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69889         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69890         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69891         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69892         REPLACE_TMPFILE.
69893         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69895 2010-04-04  Bruno Haible  <bruno@clisp.org>
69897         ioctl: Fix C++ test error on mingw.
69898         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69899         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69900         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69902 2010-04-03  Bruno Haible  <bruno@clisp.org>
69904         wcwidth: Fix C++ test error on mingw.
69905         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69907         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69909 2010-04-03  Bruno Haible  <bruno@clisp.org>
69911         nanosleep: Fix C++ test error on mingw.
69912         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69913         * lib/time.in.h (nanosleep): Use modern idiom.
69914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69915         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69916         REPLACE_NANOSLEEP to 1.
69917         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69918         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69920 2010-04-03  Bruno Haible  <bruno@clisp.org>
69922         strptime: Fix C++ test error on mingw.
69923         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69924         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69925         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69926         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69927         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69928         not REPLACE_STRPTIME.
69929         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69930         REPLACE_STRPTIME.
69932 2010-04-03  Bruno Haible  <bruno@clisp.org>
69934         timegm: Fix C++ test error on mingw.
69935         * lib/time.in.h (timegm): Use modern idiom.
69936         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
69937         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
69938         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
69939         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
69941 2010-04-03  Bruno Haible  <bruno@clisp.org>
69943         timegm: Assume declaration if function exists.
69944         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
69945         if it exists. Don't clobber ac_cv_func_timegm.
69947 2010-04-03  Bruno Haible  <bruno@clisp.org>
69949         time_r: Fix C++ test error on mingw.
69950         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69951         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69952         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69953         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69954         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69956 2010-04-03  Bruno Haible  <bruno@clisp.org>
69958         time_r: Minor updates.
69959         * modules/time_r (Description): Mention the provided functions.
69960         * lib/time_r.c: Don't include <string.h>.
69961         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69962         * doc/posix-functions/localtime_r.texi: Likewise.
69964 2010-04-03  Bruno Haible  <bruno@clisp.org>
69966         time: Fix regression introduced on 2010-03-08.
69967         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69968         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69970 2010-04-03  Jim Meyering  <meyering@redhat.com>
69972         maint.mk: don't silently disable project-specific syntax-check rules
69973         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69974         that they need to convert their project-specific syntax-check rules
69975         to use the new _sc_search_regexp.
69977 2010-04-03  Bruno Haible  <bruno@clisp.org>
69979         fchdir: Fix regression introduced on 2010-03-08.
69980         * lib/unistd.in.h (fchdir): Fix declaration.
69981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69983         REPLACE_FCHDIR.
69984         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69985         REPLACE_FCHDIR.
69987 2010-04-03  Bruno Haible  <bruno@clisp.org>
69989         getpagesize: Fix C++ test error on mingw.
69990         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69991         system does not declare the function.
69992         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69993         declared.
69994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69995         HAVE_DECL_GETPAGESIZE.
69996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69998 2010-04-03  Bruno Haible  <bruno@clisp.org>
70000         stdio: Make C++ tests work on mingw.
70001         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70002         does not declare the function.
70004 2010-04-03  Bruno Haible  <bruno@clisp.org>
70006         ftello: Fix C++ test error on mingw.
70007         * lib/stdio.in.h (ftello): Use modern idiom.
70008         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70009         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70010         is missing and that it needs to be replaced.
70011         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70013         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70015 2010-04-03  Bruno Haible  <bruno@clisp.org>
70017         fseeko: Fix C++ test error on mingw.
70018         * lib/stdio.in.h (fseeko): Use modern idiom.
70019         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70020         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70021         is missing and that it needs to be replaced.
70022         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70024         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70026 2010-04-03  Bruno Haible  <bruno@clisp.org>
70028         mkstemp: Fix C++ test error on mingw.
70029         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70030         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70031         function is missing and that it needs to be replaced.
70032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70033         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70035 2010-04-03  Bruno Haible  <bruno@clisp.org>
70037         stpncpy: Fix C++ test error on mingw.
70038         * lib/string.in.h (stpncpy): Use modern idiom.
70039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70040         function is missing and that it needs to be replaced.
70041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70042         REPLACE_STPNCPY.
70043         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70045 2010-04-03  Bruno Haible  <bruno@clisp.org>
70047         sys_stat: Fix C++ test error on mingw.
70048         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70049         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70051 2010-04-03  Bruno Haible  <bruno@clisp.org>
70053         pty: Update doc.
70054         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70056 2010-04-03  Bruno Haible  <bruno@clisp.org>
70058         unistd: Fix C++ test error on mingw.
70059         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70061 2010-04-03  Bruno Haible  <bruno@clisp.org>
70063         Update doc regarding mingw.
70064         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70065         * doc/glibc-functions/login_tty.texi: Likewise.
70066         * doc/glibc-functions/forkpty.texi: Likewise.
70068 2010-04-03  Bruno Haible  <bruno@clisp.org>
70070         stdlib: Avoid compilation failure of c-strtold on mingw.
70071         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70073 2010-04-03  Bruno Haible  <bruno@clisp.org>
70075         locale: Make C++ tests work on Cygwin and mingw.
70076         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70077         cannot provide the function.
70078         Reported by Simon Josefsson.
70080 2010-04-03  Bruno Haible  <bruno@clisp.org>
70082         localename: Port to MacOS X 10.6.
70083         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70084         memory layout of the locales in MacOS X 10.6 as well.
70085         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70087 2010-04-02  Bruno Haible  <bruno@clisp.org>
70089         gnulib-tool: Ensure that long-running tests are executed last.
70090         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70091         running tests after the one for the other tests.
70093 2010-04-02  Bruno Haible  <bruno@clisp.org>
70095         gnulib-tool: Ensure the tests in the main directory are executed first.
70096         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70097         start with the current directory.
70099 2010-04-02  Bruno Haible  <bruno@clisp.org>
70101         Tests for module 'havelib', moved here from GNU gettext.
70102         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70103         modifications.
70104         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70105         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70106         with modifications.
70107         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70108         modifications.
70109         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70110         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70111         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70112         with modifications.
70113         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70114         with modifications.
70115         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70116         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70117         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70118         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70119         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70120         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70121         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70122         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70123         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70124         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70125         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70126         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70127         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70128         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70129         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70130         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70131         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70132         with modifications.
70133         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70134         with modifications.
70135         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70136         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70137         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70138         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70139         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70140         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70141         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70142         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70143         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70144         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70145         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70146         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70147         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70148         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70149         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70150         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70151         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70152         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70153         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70154         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70155         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70156         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70157         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70158         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70159         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70160         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70161         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70162         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70163         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70164         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70165         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70166         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70167         * tests/havelib/rpathx/rpathx.c: New file, from
70168         gettext/autoconf-lib-link.
70169         * tests/havelib/rpathx/Makefile.am: New file, from
70170         gettext/autoconf-lib-link.
70171         * tests/havelib/rpathx/configure.ac: New file, from
70172         gettext/autoconf-lib-link with modifications.
70173         * tests/havelib/rpathy/rpathy.c: New file, from
70174         gettext/autoconf-lib-link.
70175         * tests/havelib/rpathy/Makefile.am: New file, from
70176         gettext/autoconf-lib-link.
70177         * tests/havelib/rpathy/configure.ac: New file, from
70178         gettext/autoconf-lib-link with modifications.
70179         * tests/havelib/rpathz/rpathz.c: New file, from
70180         gettext/autoconf-lib-link.
70181         * tests/havelib/rpathz/Makefile.am: New file, from
70182         gettext/autoconf-lib-link.
70183         * tests/havelib/rpathz/configure.ac: New file, from
70184         gettext/autoconf-lib-link with modifications.
70185         * tests/havelib/rpathlx/usex.c: New file, from
70186         gettext/autoconf-lib-link.
70187         * tests/havelib/rpathlx/Makefile.am: New file, from
70188         gettext/autoconf-lib-link.
70189         * tests/havelib/rpathlx/configure.ac: New file, from
70190         gettext/autoconf-lib-link with modifications.
70191         * tests/havelib/rpathly/usey.c: New file, from
70192         gettext/autoconf-lib-link.
70193         * tests/havelib/rpathly/Makefile.am: New file, from
70194         gettext/autoconf-lib-link.
70195         * tests/havelib/rpathly/configure.ac: New file, from
70196         gettext/autoconf-lib-link with modifications.
70197         * tests/havelib/rpathlz/usez.c: New file, from
70198         gettext/autoconf-lib-link.
70199         * tests/havelib/rpathlz/Makefile.am: New file, from
70200         gettext/autoconf-lib-link.
70201         * tests/havelib/rpathlz/configure.ac: New file, from
70202         gettext/autoconf-lib-link with modifications.
70203         * tests/havelib/rpathlyx/usey.c: New file, from
70204         gettext/autoconf-lib-link.
70205         * tests/havelib/rpathlyx/Makefile.am: New file, from
70206         gettext/autoconf-lib-link.
70207         * tests/havelib/rpathlyx/configure.ac: New file, from
70208         gettext/autoconf-lib-link with modifications.
70209         * tests/havelib/rpathlzyx/usez.c: New file, from
70210         gettext/autoconf-lib-link.
70211         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70212         gettext/autoconf-lib-link.
70213         * tests/havelib/rpathlzyx/configure.ac: New file, from
70214         gettext/autoconf-lib-link with modifications.
70215         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70216         with modifications.
70218 2010-04-02  Bruno Haible  <bruno@clisp.org>
70220         gnulib-tool: Create distributed built sources also for the tests.
70221         * gnulib-tool (func_create_testdir): Also generate distributed built
70222         sources in the tests directory.
70224 2010-04-02  Bruno Haible  <bruno@clisp.org>
70226         gnulib-tool: Obey user's environment variables.
70227         * gnulib-tool (func_create_testdir): When creating built sources,
70228         respect the environment variables for autoconf, automake, etc. given by
70229         the user.
70231 2010-04-02  Bruno Haible  <bruno@clisp.org>
70233         gnulib-tool: Provide the value of --m4-base to modules.
70234         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70235         of gl_m4_base.
70237 2010-04-02  Eric Blake  <eblake@redhat.com>
70239         maint.mk: fix some fallout
70240         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70241         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70243 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70245         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70246         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70247         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70248         (sc_cast_of_x_alloc_return_value): Likewise.
70249         (sc_cast_of_alloca_return_value): Likewise.
70250         (sc_space_tab): Likewise.
70251         (sc_prohibit_atoi_atof): Likewise.
70252         (sc_prohibit_magic_number_exit): Likewise.
70253         (sc_error_exit_success): Likewise.
70254         (sc_file_system): Likewise.
70255         (sc_prohibit_have_config_h): Likewise.
70256         (sc_require_config_h): Likewise.
70257         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70258         (sc_obsolete_symbols): Likewise.
70259         (sc_changelog): Likewise.
70260         (sc_program_name): Likewise.
70261         (sc_the_the): Likewise.
70262         (sc_trailing_blank): Likewise.
70263         (sc_two_space_separator_in_usage): Likewise.
70264         (sc_useless_cpp_parens): Likewise.
70265         (sc_GPL_version): Likewise.
70266         (sc_GFDL_version): Likewise.
70267         (sc_texinfo_acronym): Likewise.
70268         (sc_prohibit_cvs_keyword): Likewise.
70269         (sc_prohibit_stat_st_blocks): Likewise.
70270         (sc_prohibit_S_IS_definition): Likewise.
70271         (sc_redundant_const): Likewise.
70272         (sc_makefile_TAB_only_indentation): Likewise.
70273         (sc_m4_quote_check): Likewise.
70274         (sc_makefile_path_separator_check): Likewise.
70275         (sc_copyright_check): Likewise.
70276         (sc_Wundef_boolean): Likewise.
70277         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70279         maint.mk: match 0 or more whitespace-before-function-call '('
70280         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70281         that have zero or two-and-more spaces between the function name
70282         and the open parenthesis.
70283         (sc_error_message_warn_fatal): Likewise.
70284         (sc_error_message_uppercase): Likewise.
70285         (sc_error_message_period): Likewise.
70287 2010-03-31  Eric Blake  <eblake@redhat.com>
70289         maint.mk: check for [ as well as test
70290         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70291         Based on a libvirt report by Matthias Bolte.
70293         gnumakefile: don't squelch _version output
70294         * top/GNUmakefile (_version): Create one-shot dependency rather
70295         than using $(shell) when version must be regenerated.
70296         (_autoreconf): Run verbosely, by default.
70298         sys_time: avoid compiler warnings
70299         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70300         unconditional, fixing regression from 2010-03-29.
70301         Reported by Simon Josefsson.
70303 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70305         maint.mk: s/_header_without_use/_sc_header_without_use/
70306         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70307         (sc_prohibit_assert_without_use): Use the new name.
70308         (sc_prohibit_close_stream_without_use): Likewise.
70309         (sc_prohibit_getopt_without_use): Likewise.
70310         (sc_prohibit_quotearg_without_use): Likewise.
70311         (sc_prohibit_quote_without_use): Likewise.
70312         (sc_prohibit_long_options_without_use): Likewise.
70313         (sc_prohibit_inttostr_without_use): Likewise.
70314         (sc_prohibit_ignore_value_without_use): Likewise.
70315         (sc_prohibit_error_without_use): Likewise.
70316         (sc_prohibit_xalloc_without_use): Likewise.
70317         (sc_prohibit_hash_without_use): Likewise.
70318         (sc_prohibit_hash_pjw_without_use): Likewise.
70319         (sc_prohibit_safe_read_without_use): Likewise.
70320         (sc_prohibit_argmatch_without_use): Likewise.
70321         (sc_prohibit_canonicalize_without_use): Likewise.
70322         (sc_prohibit_root_dev_ino_without_use): Likewise.
70323         (sc_prohibit_openat_without_use): Likewise.
70324         (sc_prohibit_c_ctype_without_use): Likewise.
70325         (sc_prohibit_signal_without_use): Likewise.
70326         (sc_prohibit_intprops_without_use): Likewise.
70328 2010-03-30  Eric Blake  <eblake@redhat.com>
70330         maint: improve module indicators
70331         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70332         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70333         columns, and avoid extra macro expansion.
70335         fdopendir: work around FreeBSD bug
70336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70337         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70338         * modules/dirent (Makefile.am): Substitute it.
70339         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70340         declaration.
70341         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70342         fix.
70343         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70345 2010-03-29  Bruno Haible  <bruno@clisp.org>
70347         Emit #pragma system_header after the inclusion guard, not before.
70348         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70349         guard that spans the entire file, not before. This enables an
70350         optimization in GCC's preprocessor.
70351         * lib/ctype.in.h: Likewise.
70352         * lib/dirent.in.h: Likewise.
70353         * lib/errno.in.h: Likewise.
70354         * lib/float.in.h: Likewise.
70355         * lib/getopt.in.h: Likewise.
70356         * lib/iconv.in.h: Likewise.
70357         * lib/langinfo.in.h: Likewise.
70358         * lib/locale.in.h: Likewise.
70359         * lib/math.in.h: Likewise.
70360         * lib/netdb.in.h: Likewise.
70361         * lib/netinet_in.in.h: Likewise.
70362         * lib/pty.in.h: Likewise.
70363         * lib/sched.in.h: Likewise.
70364         * lib/se-selinux.in.h: Likewise.
70365         * lib/search.in.h: Likewise.
70366         * lib/spawn.in.h: Likewise.
70367         * lib/stdarg.in.h: Likewise.
70368         * lib/stdint.in.h: Likewise.
70369         * lib/string.in.h: Likewise.
70370         * lib/strings.in.h: Likewise.
70371         * lib/sys_file.in.h: Likewise.
70372         * lib/sys_ioctl.in.h: Likewise.
70373         * lib/sys_time.in.h: Likewise.
70374         * lib/sys_times.in.h: Likewise.
70375         * lib/sys_utsname.in.h: Likewise.
70376         * lib/sys_wait.in.h: Likewise.
70377         * lib/sysexits.in.h: Likewise.
70378         * lib/wctype.in.h: Likewise.
70380 2010-03-28  James Youngman  <jay@gnu.org>
70382         save-cwd: don't leak a file descriptor when the caller execs.
70383         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70384         saved file descriptor.
70385         * modules/save-cwd (Depends-on): Depend on cloexec.
70387 2010-03-29  Bruno Haible  <bruno@clisp.org>
70389         Remove vestiges of fts-lgpl module.
70390         * lib/fts_.h: Assume GNULIB_FTS is 1.
70391         * lib/fts.c: Likewise.
70392         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70394 2010-03-28  Bruno Haible  <bruno@clisp.org>
70396         Fix definition of tests witness macro.
70397         * gnulib-tool (func_import): Fix definition of witness macro.
70399 2010-03-28  Bruno Haible  <bruno@clisp.org>
70401         Fix ioctl's protoype on glibc systems.
70402         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70403         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70404         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70405         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70406         signature. If not, arrange to replace the ioctl function.
70407         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70408         REPLACE_IOCTL.
70409         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70410         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70411         Reported by Ludovic Courtès <ludo@gnu.org>.
70413 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70415         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70416         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70417         made it so grep -r --include=GLOB* ... did not work.
70419 2010-03-26  Jim Meyering  <meyering@redhat.com>
70420             Eric Blake  <eblake@redhat.com>
70422         maint.mk: prohibit use of test's -o and -a operators
70423         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70425 2010-03-28  Bruno Haible  <bruno@clisp.org>
70427         Remove unused GNULIB_XYZ macro definitions.
70428         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70429         invocation.
70431 2010-03-28  Bruno Haible  <bruno@clisp.org>
70433         Mark privileged tests modules.
70434         * modules/idpriv-drop-tests (Status): New section.
70435         * modules/idpriv-droptemp-tests (Status): New section.
70437 2010-03-28  Bruno Haible  <bruno@clisp.org>
70439         Split C++ tests into separate tests modules.
70440         * modules/dirent-c++-tests: New file, extracted from
70441         modules/dirent-tests.
70442         * modules/dirent-tests: Depend on it.
70443         * modules/fcntl-h-c++-tests: New file, extracted from
70444         modules/fcntl-h-tests.
70445         * modules/fcntl-h-tests: Depend on it.
70446         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70447         * modules/glob-tests: Depend on it.
70448         * modules/iconv-h-c++-tests: New file, extracted from
70449         modules/iconv-h-tests.
70450         * modules/iconv-h-tests: Depend on it.
70451         * modules/langinfo-c++-tests: New file, extracted from
70452         modules/langinfo-tests.
70453         * modules/langinfo-tests: Depend on it.
70454         * modules/locale-c++-tests: New file, extracted from
70455         modules/locale-tests.
70456         * modules/locale-tests: Depend on it.
70457         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70458         * modules/math-tests: Depend on it.
70459         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70460         * modules/pty-tests: Depend on it.
70461         * modules/search-c++-tests: New file, extracted from
70462         modules/search-tests.
70463         * modules/search-tests: Depend on it.
70464         * modules/signal-c++-tests: New file, extracted from
70465         modules/signal-tests.
70466         * modules/signal-tests: Depend on it.
70467         * modules/spawn-c++-tests: New file, extracted from
70468         modules/spawn-tests.
70469         * modules/spawn-tests: Depend on it.
70470         * modules/stdio-c++-tests: New file, extracted from
70471         modules/stdio-tests.
70472         * modules/stdio-tests: Depend on it.
70473         * modules/stdlib-c++-tests: New file, extracted from
70474         modules/stdlib-tests.
70475         * modules/stdlib-tests: Depend on it.
70476         * modules/string-c++-tests: New file, extracted from
70477         modules/string-tests.
70478         * modules/string-tests: Depend on it.
70479         * modules/sys_ioctl-c++-tests: New file, extracted from
70480         modules/sys_ioctl-tests.
70481         * modules/sys_ioctl-tests: Depend on it.
70482         * modules/sys_select-c++-tests: New file, extracted from
70483         modules/sys_select-tests.
70484         * modules/sys_select-tests: Depend on it.
70485         * modules/sys_socket-c++-tests: New file, extracted from
70486         modules/sys_socket-tests.
70487         * modules/sys_socket-tests: Depend on it.
70488         * modules/sys_stat-c++-tests: New file, extracted from
70489         modules/sys_stat-tests.
70490         * modules/sys_stat-tests: Depend on it.
70491         * modules/sys_time-c++-tests: New file, extracted from
70492         modules/sys_time-tests.
70493         * modules/sys_time-tests: Depend on it.
70494         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70495         * modules/time-tests: Depend on it.
70496         * modules/unistd-c++-tests: New file, extracted from
70497         modules/unistd-tests.
70498         * modules/unistd-tests: Depend on it.
70499         * modules/wchar-c++-tests: New file, extracted from
70500         modules/wchar-tests.
70501         * modules/wchar-tests: Depend on it.
70502         * modules/wctype-c++-tests: New file, extracted from
70503         modules/wctype-tests.
70504         * modules/wctype-tests: Depend on it.
70505         Reported by Simon Josefsson.
70507 2010-03-28  Bruno Haible  <bruno@clisp.org>
70509         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70510         * gnulib-tool (func_exists_module): New function, extracted from
70511         func_verify_module.
70512         (func_verify_module): Use it.
70513         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70514         'foo' only if 'foo' exists.
70515         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
70516         module.
70518 2010-03-28  Bruno Haible  <bruno@clisp.org>
70520         gnulib-tool: Add support for special categories of tests.
70521         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
70522         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
70523         (func_usage): Document them.
70524         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
70525         inc_unportable_tests, inc_all_tests): New variables.
70526         (func_acceptable): Consider these variables.
70527         (func_modules_transitive_closure): Make it work when the 'Status' field
70528         consists of multiple words.
70529         (func_import): Store and restore the values of inc_cxx_tests,
70530         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
70531         inc_all_tests in gnulib-comp.m4.
70532         (func_create_testdir): Set inc_all_tests to true.
70533         * doc/gnulib.texi (Extra tests modules): New section.
70534         Suggested by Jim Meyering.
70536 2010-03-28  Bruno Haible  <bruno@clisp.org>
70538         ansi-c++-opt: Allow turning off the C++ build by default.
70539         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
70540         gl_CXX_CHOICE_DEFAULT_NO is defined.
70541         Requested by Eric Blake.
70543 2010-03-28  Bruno Haible  <bruno@clisp.org>
70545         unistd: Avoid #define replacements in C++ mode.
70546         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
70547         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
70548         setsockopt, shutdown, select): In C++, attach a warning to the function
70549         if possible, rather than #defining the symbol to a dysfunctional alias.
70550         Reported by John W. Eaton <jwe@gnu.org>.
70552 2010-03-28  Bruno Haible  <bruno@clisp.org>
70554         Fix link errors on mingw.
70555         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
70556         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
70557         $(LIBSOCKET).
70558         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
70559         $(LIBSOCKET).
70561 2010-03-28  Bruno Haible  <bruno@clisp.org>
70562             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70564         lib-ignore: Determine different options for different compilers.
70565         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
70566         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
70567         Add comments.
70568         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
70569         * NEWS: Mention the change.
70571 2010-03-27  Bruno Haible  <bruno@clisp.org>
70573         Remove unused GNULIB_XYZ macro definitions.
70574         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70575         * modules/fseek (configure.ac): Likewise.
70576         * modules/ioctl (configure.ac): Likewise.
70577         * modules/open (configure.ac): Likewise.
70578         * modules/stdlib-safer (configure.ac): Likewise.
70580 2010-03-27  Bruno Haible  <bruno@clisp.org>
70582         Add a remark about certain modules.
70583         * modules/malloc (Comment): New section.
70584         * modules/realloc (Comment): Likewise.
70585         * modules/sigpipe (Comment): Likewise.
70587 2010-03-27  Bruno Haible  <bruno@clisp.org>
70589         Resolve conflict between the two kinds of module indicators.
70590         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
70591         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70592         * modules/canonicalize (configure.ac): Invoke
70593         gl_MODULE_INDICATOR_FOR_TESTS.
70594         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70595         GNULIB_XYZ.
70596         * tests/test-dirent-c++.cc: Likewise.
70597         * tests/test-dirent-safer.c: Likewise.
70598         * tests/test-dup2.c: Likewise.
70599         * tests/test-fchdir.c: Likewise.
70600         * tests/test-fcntl-h-c++.cc: Likewise.
70601         * tests/test-getopt.c: Likewise.
70602         * tests/test-getopt.h: Likewise.
70603         * tests/test-langinfo-c++.cc: Likewise.
70604         * tests/test-locale-c++.cc: Likewise.
70605         * tests/test-math-c++.cc: Likewise.
70606         * tests/test-pty-c++.cc: Likewise.
70607         * tests/test-search-c++.cc: Likewise.
70608         * tests/test-signal-c++.cc: Likewise.
70609         * tests/test-spawn-c++.cc: Likewise.
70610         * tests/test-stdio-c++.cc: Likewise.
70611         * tests/test-stdlib-c++.cc: Likewise.
70612         * tests/test-string-c++.cc: Likewise.
70613         * tests/test-sys_ioctl-c++.cc: Likewise.
70614         * tests/test-sys_select-c++.cc: Likewise.
70615         * tests/test-sys_socket-c++.cc: Likewise.
70616         * tests/test-sys_stat-c++.cc: Likewise.
70617         * tests/test-sys_time-c++.cc: Likewise.
70618         * tests/test-time-c++.cc: Likewise.
70619         * tests/test-unistd-c++.cc: Likewise.
70620         * tests/test-wchar-c++.cc: Likewise.
70621         * tests/uninorm/test-u8-nfc.c: Likewise.
70622         * tests/uninorm/test-u8-nfd.c: Likewise.
70623         * tests/uninorm/test-u8-nfkc.c: Likewise.
70624         * tests/uninorm/test-u8-nfkd.c: Likewise.
70625         * tests/uninorm/test-u16-nfc.c: Likewise.
70626         * tests/uninorm/test-u16-nfd.c: Likewise.
70627         * tests/uninorm/test-u16-nfkc.c: Likewise.
70628         * tests/uninorm/test-u16-nfkd.c: Likewise.
70629         * tests/uninorm/test-u32-nfc.c: Likewise.
70630         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70631         * tests/uninorm/test-u32-nfd.c: Likewise.
70632         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70633         * tests/uninorm/test-u32-nfkc.c: Likewise.
70634         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70635         * tests/uninorm/test-u32-nfkd.c: Likewise.
70636         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70637         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70639 2010-03-27  Bruno Haible  <bruno@clisp.org>
70641         Distinguish two kinds of module indicators.
70642         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70643         gl_MODULE_INDICATOR.
70644         (gl_MODULE_INDICATOR): New macro.
70645         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70646         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70647         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70648         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70649         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70650         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70651         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70652         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70653         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70654         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70655         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70656         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70657         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70659         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70660         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70661         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70662         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70663         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70664         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70665         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70666         * modules/cloexec (configure.ac): Likewise.
70667         * modules/getopt-gnu (configure.ac): Likewise.
70668         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70669         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70670         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70671         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70673 2010-03-27  Bruno Haible  <bruno@clisp.org>
70675         New module description field 'Comment'.
70676         * gnulib-tool: New option --extract-comment.
70677         (func_usage): Document it.
70678         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70679         (func_get_comment): New function.
70680         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70682 2010-03-27  Bruno Haible  <bruno@clisp.org>
70684         Addendum to 2010-02-07 commit.
70685         * gnulib-tool (func_usage): Document --extract-applicability option.
70687 2010-03-27  Bruno Haible  <bruno@clisp.org>
70689         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70690         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70691         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70692         rather than link errors.
70694 2010-03-27  Bruno Haible  <bruno@clisp.org>
70696         Avoid side effects from tests-related modules on the compilation of lib.
70697         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70698         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70699         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70700         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70701         macro.
70702         (func_import): Define a witness macro. Assign it a value that depends
70703         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70704         tests-related modules.
70705         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70706         Reported by Jim Meyering.
70708 2010-03-27  Bruno Haible  <bruno@clisp.org>
70710         Factorize common .m4 code.
70711         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70712         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70713         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70714         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70715         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70716         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70717         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70718         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70719         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70720         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70721         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70722         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70723         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70724         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70725         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70726         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70727         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70728         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70730         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70731         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70732         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70733         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70735         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70736         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70737         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70738         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70739         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70740         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70741         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70742         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70744 2010-03-27  Bruno Haible  <bruno@clisp.org>
70746         Fix a compilation error on Cygwin with g++ >= 4.3.
70747         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70748         if it is undefined or if we alias it to chmod.
70749         (lstat): Don't warn about the use of this function if it is undefined
70750         or if we alias it to stat.
70751         Reported by Simon Josefsson.
70753 2010-03-27  Bruno Haible  <bruno@clisp.org>
70755         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70756         * modules/getlogin (configure.ac): Update.
70758         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70759         * modules/getlogin_r (configure.ac): Update.
70761         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70763         * modules/inet_ntop (configure.ac): Update.
70765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70766         * modules/inet_pton (configure.ac): Update.
70768         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70769         * modules/mbslen (configure.ac): Update.
70771         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70772         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70773         * modules/forkpty (configure.ac): Update.
70774         * modules/openpty (configure.ac): Update.
70776 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70778         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70779         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70781 2010-03-25  Eric Blake  <eblake@redhat.com>
70783         maint: use pragma consistently across replacement headers
70784         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70785         * lib/dirent.in.h (system_header): Likewise.
70786         * lib/errno.in.h (system_header): Likewise.
70787         * lib/float.in.h (system_header): Likewise.
70788         * lib/getopt.in.h (system_header): Likewise.
70789         * lib/iconv.in.h (system_header): Likewise.
70790         * lib/inttypes.in.h (system_header): Likewise.
70791         * lib/langinfo.in.h (system_header): Likewise.
70792         * lib/locale.in.h (system_header): Likewise.
70793         * lib/math.in.h (system_header): Likewise.
70794         * lib/netdb.in.h (system_header): Likewise.
70795         * lib/netinet_in.in.h (system_header): Likewise.
70796         * lib/pty.in.h (system_header): Likewise.
70797         * lib/sched.in.h (system_header): Likewise.
70798         * lib/se-selinux.in.h (system_header): Likewise.
70799         * lib/search.in.h (system_header): Likewise.
70800         * lib/spawn.in.h (system_header): Likewise.
70801         * lib/stdarg.in.h (system_header): Likewise.
70802         * lib/stdint.in.h (system_header): Likewise.
70803         * lib/string.in.h (system_header): Likewise.
70804         * lib/strings.in.h (system_header): Likewise.
70805         * lib/sys_file.in.h (system_header): Likewise.
70806         * lib/sys_ioctl.in.h (system_header): Likewise.
70807         * lib/sys_socket.in.h (system_header): Likewise.
70808         * lib/sys_times.in.h (system_header): Likewise.
70809         * lib/sys_utsname.in.h (system_header): Likewise.
70810         * lib/sys_wait.in.h (system_header): Likewise.
70811         * lib/sysexits.in.h (system_header): Likewise.
70812         * lib/unistd.in.h (system_header): Likewise.
70813         * lib/wctype.in.h (system_header): Likewise.
70815         arpa/inet: fix mingw compilation warning
70816         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70817         Reported by Matthew Bolte.
70819 2010-03-25  Bruno Haible  <bruno@clisp.org>
70821         Avoid collision between gnulib wrapper and libintl wrapper.
70822         * lib/printf.c (printf): Don't define if a printf wrapper is already
70823         defined in intl/printf.c.
70824         Reported by Michel Boaventura <michel@michelboaventura.com>.
70826 2010-03-25  Bruno Haible  <bruno@clisp.org>
70828         Use ANSI C.
70829         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70831 2010-03-25  Bruno Haible  <bruno@clisp.org>
70833         Minor formatting changes.
70834         * lib/acosl.c: Insert space before function argument list.
70835         * lib/argz.c: Likewise.
70836         * lib/asinl.c: Likewise.
70837         * lib/expl.c: Likewise.
70838         * lib/gen-uni-tables.c: Likewise.
70839         * lib/gettext.h: Likewise.
70840         * lib/glthread/lock.h: Likewise.
70841         * lib/tanl.c: Likewise.
70842         * lib/uniname/uniname.c: Likewise.
70843         * tests/test-idpriv-drop.c: Likewise.
70844         * tests/test-idpriv-droptemp.c: Likewise.
70845         * tests/test-lock.c: Likewise.
70846         * tests/test-tls.c: Likewise.
70847         * lib/argp-help.c: Insert space before function-like macro argument
70848         list.
70849         * lib/memcmp.c: Likewise.
70850         * tests/test-base64.c: Likewise.
70851         * lib/localename.c: Insert space before sizeof's argument list.
70852         * lib/safe-alloc.h: Likewise.
70853         * lib/file-set.h: Insert space before macro argument list.
70854         * tests/test-argp.c: Likewise.
70855         * lib/argp-namefrob.h: Insert space before function parameter list.
70856         * lib/getaddrinfo.c: Likewise.
70857         * lib/netdb.in.h: Likewise.
70858         * lib/parse-duration.h: Likewise.
70859         * lib/parse-duration.c: Likewise.
70860         * lib/poll.c: Likewise.
70861         * lib/select.c: Likewise.
70862         * lib/trim.h: Likewise.
70863         * tests/test-usleep.c: Likewise.
70864         * lib/ldexpl.c: Insert space before function parameter list and before
70865         function argument list.
70866         * lib/logl.c: Likewise.
70867         * lib/sqrtl.c: Likewise.
70868         * lib/trim.c: Likewise.
70869         * lib/cosl.c: Use GNU style indentation. Insert space before function
70870         argument list.
70871         * lib/sinl.c: Likewise.
70872         * lib/tsearch.c: Insert space after 'for'.
70873         Reported by Jim Meyering.
70875 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70877         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70878         config header before grepping, as it's not present before
70879         autoreconf/configure are run.  Reported by Simon Josefsson.
70881 2010-03-23  Bruno Haible  <bruno@clisp.org>
70883         pt_chown: Make it work with automake < 1.11.
70884         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70885         Reported by Simon Josefsson.
70887 2010-03-23  Bruno Haible  <bruno@clisp.org>
70889         pt_chown: Don't depend on GPLed modules.
70890         * lib/pt_chown.c: Don't include idpriv.h.
70891         (main): Don't drop privileges.
70892         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70893         Reported by Simon Josefsson.
70895 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70897         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70898         suggestions from karl@freefriends.org (Karl Berry).
70900 2010-03-22  Eric Blake  <eblake@redhat.com>
70902         gethostname: further tweaks
70903         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70904         are overriding gethostname.
70905         Suggested by Bruno Haible.
70907 2010-03-21  Bruno Haible  <bruno@clisp.org>
70909         Fix comments.
70910         * lib/forkpty.c (rpl_forkpty): Fix comment.
70911         * lib/openpty.c (rpl_openpty): Likewise.
70912         Reported by Eric Blake.
70914 2010-03-22  Eric Blake  <eblake@redhat.com>
70916         gethostname: fix build on mingw
70917         * lib/unistd.in.h (includes): Work around fact that mingw
70918         <winsock2.h> re-includes <unistd.h>, by avoiding any
70919         redeclarations if we are being included by <winsock2.h>.
70920         Reported by Matthias Bolte.
70922 2010-03-21  Bruno Haible  <bruno@clisp.org>
70924         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70925         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70926         modifications.
70927         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70928         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70929         provide the replacement.
70930         * modules/forkpty (Depends-on): Add openpty, login_tty.
70931         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70932         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70933         * doc/glibc-functions/forkpty.texi: More supported platforms.
70934         * config/srclist.txt: Add forkpty.c (commented).
70936 2010-03-21  Bruno Haible  <bruno@clisp.org>
70938         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
70939         (Makefile.am): Verify that PTY_LIB is defined.
70941         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
70943 2010-03-21  Bruno Haible  <bruno@clisp.org>
70945         Tests for module 'login_tty'.
70946         * modules/login_tty-tests: New file.
70947         * tests/test-login_tty.c: New file.
70949         New module 'login_tty'.
70950         * lib/login_tty.c: New file.
70951         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70952         * modules/login_tty: New file.
70953         * doc/glibc-functions/login_tty.texi: Mention the new module.
70955 2010-03-21  Bruno Haible  <bruno@clisp.org>
70957         login_tty: Documentation.
70958         * doc/glibc-functions/login_tty.texi: New file.
70959         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70961 2010-03-21  Bruno Haible  <bruno@clisp.org>
70963         pty: Consistent macro naming.
70964         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70965         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70966         * modules/pty (configure.ac): Update.
70968 2010-03-21  Bruno Haible  <bruno@clisp.org>
70970         Tests for openpty: Make stricter.
70971         * tests/test-openpty.c (main): Add test of canonical processing and
70972         erase.
70973         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70975         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70976         * lib/openpty.c (openpty): New replacement function.
70977         * lib/pty.in.h: Include <termios.h>.
70978         (openpty): Update declaration. Add comments.
70979         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70980         is not declared, arrange to provide the replacement. Check for _getpty
70981         and posix_openpt.
70982         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70983         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70984         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70985         * modules/pty-tests (test_pty_c___LDADD): New variable.
70986         * doc/glibc-functions/openpty.texi: More supported platforms.
70988 2010-03-21  Bruno Haible  <bruno@clisp.org>
70990         setenv: Tweaks.
70991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70992         the test program.
70993         * doc/posix-functions/setenv.texi: Update platforms list.
70995 2010-03-21  Bruno Haible  <bruno@clisp.org>
70997         New module 'unlockpt'.
70998         * lib/unlockpt.c: New file, from glibc with modifications.
70999         * m4/unlockpt.m4: New file.
71000         * modules/unlockpt: New file.
71001         * lib/stdlib.in.h (unlockpt): New declaration.
71002         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71003         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71004         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71005         HAVE_UNLOCKPT.
71006         * doc/posix-functions/unlockpt.texi: Mention the new module.
71007         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71008         * config/srclist.txt: Add unlockpt.c (commented).
71010 2010-03-21  Jim Meyering  <meyering@redhat.com>
71012         maint.mk: prohibit inclusion of "intprops.h" without use
71013         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71015 2010-03-21  Bruno Haible  <bruno@clisp.org>
71017         New module 'grantpt'.
71018         * lib/grantpt.c: New file, from glibc with modifications.
71019         * m4/grantpt.m4: New file.
71020         * modules/grantpt: New file.
71021         * lib/stdlib.in.h (grantpt): New declaration.
71022         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71023         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71024         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71025         HAVE_GRANTPT.
71026         * doc/posix-functions/grantpt.texi: Mention the new module.
71027         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71028         * config/srclist.txt: Add grantpt.c (commented).
71030 2010-03-21  Bruno Haible  <bruno@clisp.org>
71032         New module 'pt_chown'.
71033         * lib/pt_chown.c: New file, from glibc with modifications.
71034         * lib/pty-private.h: New file, from glibc with modifications.
71035         * modules/pt_chown: New file.
71036         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71038 2010-03-21  Bruno Haible  <bruno@clisp.org>
71040         Tests for module 'ptsname'.
71041         * modules/ptsname-tests: New file.
71042         * tests/test-ptsname.c: New file.
71044         New module 'ptsname'.
71045         * lib/ptsname.c: New file, from glibc with modifications.
71046         * m4/ptsname.m4: New file.
71047         * modules/ptsname: New file.
71048         * lib/stdlib.in.h (ptsname): New declaration.
71049         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71050         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71051         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71052         HAVE_PTSNAME.
71053         * doc/posix-functions/ptsname.texi: Mention the new module.
71054         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71055         * config/srclist.txt: Add ptsname.c (commented).
71057 2010-03-21  Bruno Haible  <bruno@clisp.org>
71059         Tests for module 'ttyname_r'.
71060         * modules/ttyname_r-tests: New file.
71061         * tests/test-ttyname_r.c: New file.
71063         New module 'ttyname_r'.
71064         * lib/ttyname_r.c: New file.
71065         * m4/ttyname_r.m4: New file.
71066         * modules/ttyname_r: New file.
71067         * lib/unistd.in.h (ttyname_r): New declaration.
71068         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71070         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71071         HAVE_TTYNAME_R.
71072         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71073         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71075 2010-03-20  Bruno Haible  <bruno@clisp.org>
71077         signal: Undefine macro definitions in C++ mode.
71078         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71079         sigfillset): Undefine macro definitions from the system header in C++
71080         mode.
71081         Reported by John W. Eaton <jwe@gnu.org>.
71083 2010-03-20  Bruno Haible  <bruno@clisp.org>
71085         Ensure no #include statements inside extern "C" { ... }.
71086         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71087         contain #include statements.
71088         * lib/time.in.h: Likewise.
71090 2010-03-20  Bruno Haible  <bruno@clisp.org>
71092         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71093         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71094         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71095         Reported by John W. Eaton <jwe@gnu.org>.
71097 2010-03-20  Bruno Haible  <bruno@clisp.org>
71099         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71100         Reported by Jim Meyering.
71102 2010-03-20  Bruno Haible  <bruno@clisp.org>
71104         pipe: Set errno upon failure.
71105         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71106         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71107         errno value in error message.
71109 2010-03-20  Bruno Haible  <bruno@clisp.org>
71110             Jim Meyering  <meyering@redhat.com>
71112         lchown: Avoid "unused variable" warning.
71113         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71115 2010-03-20  Bruno Haible  <bruno@clisp.org>
71117         Work around unlink() bug on MacOS X 10.5.6.
71118         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71119         attempting to unlink a parent directory.
71120         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71121         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71122         activate for the replacement function.
71123         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71125 2010-03-20  Bruno Haible  <bruno@clisp.org>
71127         Fix link errors on Solaris 8.
71128         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71129         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71131 2010-03-19  Jim Meyering  <meyering@redhat.com>
71133         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71134         The _LIBC implementation of build_range_exp correctly honors the
71135         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71136         However, the non-_LIBC implementation would ignore that syntax-bit
71137         flag and return REG_ERANGE unconditionally.
71138         This change makes it honor that flag.
71139         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71140         Make two pointer parameters "const".
71141         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71142         (parse_bracket_exp): Update caller.
71144         regex.m4: correct the reversed range endpoint ([b-a]) test
71145         * m4/regex.m4: When requiring that [b-a] evoke failure,
71146         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71147         test pass once again for x86-based systems.
71149 2010-03-19  Bruno Haible  <bruno@clisp.org>
71151         scandir: Fix link error on Solaris 8.
71152         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71153         macros.
71155 2010-03-19  Bruno Haible  <bruno@clisp.org>
71157         getusershell: Fix documentation.
71158         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71159         module.
71160         * doc/glibc-functions/setusershell.texi: Likewise.
71162         getusershell: Provide declaration, missing on Solaris 9.
71163         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71164         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71165         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71166         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71168         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71169         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71170         HAVE_GETUSERSHELL.
71171         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71173 2010-03-19  Bruno Haible  <bruno@clisp.org>
71175         wctype: Provide iswblank function.
71176         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71177         exists and is fine.
71178         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71179         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71180         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71181         * doc/posix-functions/iswblank.texi: Update.
71183 2010-03-19  Bruno Haible  <bruno@clisp.org>
71185         Tests of module 'pty' in C++ mode.
71186         * modules/pty-tests: New file.
71187         * tests/test-pty-c++.cc: New file.
71188         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71190 2010-03-19  Eric Blake  <eblake@redhat.com>
71192         logb: fix documentation
71193         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71194         1.5 declaration bug.
71196         forkpty, openpty: prefer glibc's const-safe prototype
71197         * lib/forkpty.c (rpl_forkpty): New file.
71198         * lib/openpty.c (rpl_openpty): Likewise.
71199         * modules/forkpty (Files): Distribute it.
71200         * modules/openpty (Files): Likewise.
71201         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71202         check...
71203         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71204         replacement for non-const BSD signature.
71205         * modules/pty (Makefile.am): Substitute witnesses.
71206         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71207         * tests/test-forkpty.c: Update signature check.
71208         * tests/test-openpty.c: Likewise.
71209         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71210         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71212         forkpty, openpty: split functions into new modules
71213         * modules/pty (Makefile.am): Substitute new witnesses.
71214         (Libraries): Move library detection...
71215         * modules/forkpty: ...into new module.
71216         * modules/openpty: Another new module.
71217         * modules/pty-tests: Rename and split...
71218         * modules/forkpty-tests: ...to this...
71219         * modules/openpty-tests: ...and this.
71220         * tests/test-pty.c: Rename and split...
71221         * tests/test-forkpty.c: ...to this...
71222         * tests/test-openpty.c: ...and this.
71223         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71224         (gl_PTY): Split library searching...
71225         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71226         (gl_FORKPTY, gl_OPENPTY): New macros.
71227         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71228         * NEWS: Mention the split.
71229         * MODULES.html.sh (Misc): Document the modules.
71230         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71231         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71233         pty: improve replacement header
71234         * lib/pty.in.h: New file.
71235         * modules/pty (Files): Ship it.
71236         (Makefile.am): Always build replacement.
71237         * m4/pty.m4: Rename...
71238         * m4/pty_h.m4: ...to this.
71239         (gl_PTY): Modernize setting of witness macros; update check of
71240         forkpty to take proper advantage of cache.
71241         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71243         getopt: avoid compiler warning
71244         * lib/getopt.c (attribute_hidden): Remove unused macro.
71246 2010-03-18  Bruno Haible  <bruno@clisp.org>
71248         Fix link errors on Solaris 8.
71249         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71250         * modules/search-tests (test_search_c___LDADD): Likewise.
71251         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71252         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71253         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71254         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71255         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71256         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71257         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71259 2010-03-18  Bruno Haible  <bruno@clisp.org>
71261         Fix bug introduced on 2010-03-14.
71262         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71263         (gl_SPAWN_H): Require it.
71264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71265         Reported by Simon Josefsson.
71267 2010-03-18  Bruno Haible  <bruno@clisp.org>
71269         Fix typo introduced on 2009-12-31.
71270         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71271         posix_spawn_file_actions_adddup2.
71273 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71274         and Eric Blake  <eblake@redhat.com>
71276         test-vc-list-files-git: make more robust
71277         * tests/test-vc-list-files-git.sh: Unset problematic environment
71278         variables.  Chain commands together.
71280 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71282         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71283         `AC_CHECK_DECL' invocation.
71285 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71287         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71288         appears before executable statements. Suggested by Petr Sumbera
71289         <Petr.Sumbera@Sun.COM>.
71291 2010-03-14  Bruno Haible  <bruno@clisp.org>
71293         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71294         portability problems. Instead use a simpler test.
71295         (main): Check that invalid arguments are rejected only on Linux.
71297 2010-03-14  Bruno Haible  <bruno@clisp.org>
71299         Fix bug introduced on 2009-12-31.
71300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71301         gl_PREREQ_SYS_H_WINSOCK2 always.
71302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71303         SYS_SOCKET_H variable.
71304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71305         Update comments.
71306         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71307         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71308         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71309         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71310         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71312 2010-03-14  Bruno Haible  <bruno@clisp.org>
71314         Fix values returned by sinl, cosl.
71315         * lib/trigl.h: Add specification comments.
71316         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71317         that combines the values from the precomputed table with the values of
71318         the Chebyshev polynomials.
71320 2010-03-14  Bruno Haible  <bruno@clisp.org>
71322         Fix compilation error when modules 'posix_spawn[p]' are not used.
71323         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71326 2010-03-14  Bruno Haible  <bruno@clisp.org>
71328         Fix compilation error on mingw when module 'time_r' is not used.
71329         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71330         is 1.
71331         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71332         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71333         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71334         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71336 2010-03-14  Bruno Haible  <bruno@clisp.org>
71338         Fix compilation error with Sun C.
71339         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71340         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71341         instead of GCC specific ULONG_LONG_MAX.
71342         * lib/xstrtoll.c: Likewise.
71343         * lib/xstrtoull.c: Likewise.
71345 2010-03-13  Bruno Haible  <bruno@clisp.org>
71347         Allow the user to disable C++ code and tests.
71348         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71349         (gl_PROG_ANSI_CXX): Require it.
71351 2010-03-13  Bruno Haible  <bruno@clisp.org>
71353         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71354         cases.
71356 2010-03-13  Bruno Haible  <bruno@clisp.org>
71358         Test that gnulib does not break the standard C++ headers.
71359         * tests/test-locale-c++2.cc: New file.
71360         * modules/locale-tests (Files): Add it.
71361         (Makefile.am): Compile it for test-locale-c++.
71362         * tests/test-math-c++2.cc: New file.
71363         * modules/math-tests (Files): Add it.
71364         (Makefile.am): Compile it for test-math-c++.
71365         * tests/test-signal-c++2.cc: New file.
71366         * modules/signal-tests (Files): Add it.
71367         (Makefile.am): Compile it for test-signal-c++.
71368         * tests/test-stdio-c++2.cc: New file.
71369         * modules/stdio-tests (Files): Add it.
71370         (Makefile.am): Compile it for test-stdio-c++.
71371         * tests/test-stdlib-c++2.cc: New file.
71372         * modules/stdlib-tests (Files): Add it.
71373         (Makefile.am): Compile it for test-stdlib-c++.
71374         * tests/test-string-c++2.cc: New file.
71375         * modules/string-tests (Files): Add it.
71376         (Makefile.am): Compile it for test-string-c++.
71377         * tests/test-time-c++2.cc: New file.
71378         * modules/time-tests (Files): Add it.
71379         (Makefile.am): Compile it for test-time-c++.
71380         Reported by John W. Eaton <jwe@gnu.org>.
71382 2010-03-13  Bruno Haible  <bruno@clisp.org>
71384         * gnulib-tool (func_usage): Clarify which options are available for
71385         --create-testdir and --create-megatestdir.
71387 2010-03-13  Bruno Haible  <bruno@clisp.org>
71389         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71390         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71391         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71392         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71393         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71394         when appropriate.
71395         Reported by Jim Meyering.
71397 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71399         * gnulib-tool (func_import): Explain origin of code.
71401 2010-03-12  Bruno Haible  <bruno@clisp.org>
71403         Fix problem with automake's definition of CXXLINK.
71404         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71405         Reported by Simon Josefsson and Ludovic Courtès.
71407 2010-03-12  Bruno Haible  <bruno@clisp.org>
71409         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71410         stable releases.
71412 2010-03-11  Bruno Haible  <bruno@clisp.org>
71414         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71415         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71416         whether the system provides one variant or multiple variants of the
71417         function.
71418         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71419         C++ compilers.
71420         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71421         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71422         Reported by Jim Meyering.
71424 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71426         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71428 2010-03-08  Bruno Haible  <bruno@clisp.org>
71430         gnulib-tool: Add support for --libtool in --create-testdir.
71431         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71432         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71434 2010-03-08  Eric Blake  <eblake@redhat.com>
71436         gnulib-tool.texi: mention possibility of git submodule
71437         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71438         submodules.
71439         * doc/.gitignore: Ignore another generated file.
71441 2010-03-08  Karl Berry  <karl@gnu.org>
71443         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71444         of committing gnulib files while skipping others.
71446 2010-03-07  Bruno Haible  <bruno@clisp.org>
71448         Tests of module 'wctype' in C++ mode.
71449         * tests/test-wctype-c++.cc: New file.
71450         * modules/wctype-tests (Files): Add it and tests/signature.h.
71451         (Depends-on): Add ansi-c++-opt.
71452         (Makefile.am): Arrange to compile and run test-wctype-c++.
71454         Tests of module 'wchar' in C++ mode.
71455         * tests/test-wchar-c++.cc: New file.
71456         * modules/wchar-tests (Files): Add it and tests/signature.h.
71457         (Depends-on): Add ansi-c++-opt.
71458         (Makefile.am): Arrange to compile and run test-wchar-c++.
71459         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71460         gl_MODULE_INDICATOR.
71462         Tests of module 'unistd' in C++ mode.
71463         * tests/test-unistd-c++.cc: New file.
71464         * modules/unistd-tests (Files): Add it and tests/signature.h.
71465         (Depends-on): Add ansi-c++-opt.
71466         (Makefile.am): Arrange to compile and run test-unistd-c++.
71467         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71468         gl_MODULE_INDICATOR.
71470         Tests of module 'time' in C++ mode.
71471         * tests/test-time-c++.cc: New file.
71472         * modules/time-tests (Files): Add it and tests/signature.h.
71473         (Depends-on): Add ansi-c++-opt.
71474         (Makefile.am): Arrange to compile and run test-time-c++.
71475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71477         Tests of module 'sys_time' in C++ mode.
71478         * tests/test-sys_time-c++.cc: New file.
71479         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71480         (Depends-on): Add ansi-c++-opt.
71481         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71482         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71483         gl_MODULE_INDICATOR.
71485         Tests of module 'sys_stat' in C++ mode.
71486         * tests/test-sys_stat-c++.cc: New file.
71487         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71488         (Depends-on): Add ansi-c++-opt.
71489         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71490         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71491         gl_MODULE_INDICATOR.
71493         Tests of module 'sys_socket' in C++ mode.
71494         * tests/test-sys_socket-c++.cc: New file.
71495         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71496         (Depends-on): Add ansi-c++-opt.
71497         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71498         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71499         gl_MODULE_INDICATOR.
71501         Tests of module 'sys_select' in C++ mode.
71502         * tests/test-sys_select-c++.cc: New file.
71503         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71504         (Depends-on): Add ansi-c++-opt.
71505         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71506         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71507         gl_MODULE_INDICATOR.
71509         Tests of module 'sys_ioctl' in C++ mode.
71510         * tests/test-sys_ioctl-c++.cc: New file.
71511         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71512         (Depends-on): Add ansi-c++-opt.
71513         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71514         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
71515         gl_MODULE_INDICATOR.
71517         Tests of module 'string' in C++ mode.
71518         * tests/test-string-c++.cc: New file.
71519         * modules/string-tests (Files): Add it and tests/signature.h.
71520         (Depends-on): Add ansi-c++-opt.
71521         (Makefile.am): Arrange to compile and run test-string-c++.
71522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
71523         gl_MODULE_INDICATOR.
71525         Tests of module 'stdlib' in C++ mode.
71526         * tests/test-stdlib-c++.cc: New file.
71527         * modules/stdlib-tests (Files): Add it and tests/signature.h.
71528         (Depends-on): Add ansi-c++-opt.
71529         (Makefile.am): Arrange to compile and run test-stdlib-c++.
71530         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
71531         gl_MODULE_INDICATOR.
71533         Tests of module 'stdio' in C++ mode.
71534         * tests/test-stdio-c++.cc: New file.
71535         * modules/stdio-tests (Files): Add it and tests/signature.h.
71536         (Depends-on): Add ansi-c++-opt.
71537         (Makefile.am): Arrange to compile and run test-stdio-c++.
71538         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
71539         gl_MODULE_INDICATOR.
71541         Tests of module 'spawn' in C++ mode.
71542         * tests/test-spawn-c++.cc: New file.
71543         * modules/spawn-tests (Files): Add it and tests/signature.h.
71544         (Depends-on): Add ansi-c++-opt.
71545         (Makefile.am): Arrange to compile and run test-spawn-c++.
71546         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
71547         gl_MODULE_INDICATOR.
71549         Tests of module 'signal' in C++ mode.
71550         * tests/test-signal-c++.cc: New file.
71551         * modules/signal-tests (Files): Add it and tests/signature.h.
71552         (Depends-on): Add ansi-c++-opt.
71553         (Makefile.am): Arrange to compile and run test-signal-c++.
71554         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
71555         gl_MODULE_INDICATOR.
71557         Tests of module 'search' in C++ mode.
71558         * tests/test-search-c++.cc: New file.
71559         * modules/search-tests (Files): Add it and tests/signature.h.
71560         (Depends-on): Add ansi-c++-opt.
71561         (Makefile.am): Arrange to compile and run test-search-c++.
71562         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
71563         gl_MODULE_INDICATOR.
71565         Tests of module 'math' in C++ mode.
71566         * tests/test-math-c++.cc: New file.
71567         * modules/math-tests (Files): Add it and tests/signature.h.
71568         (Depends-on): Add ansi-c++-opt.
71569         (Makefile.am): Arrange to compile and run test-math-c++.
71570         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71572         Tests of module 'locale' in C++ mode.
71573         * tests/test-locale-c++.cc: New file.
71574         * modules/locale-tests (Files): Add it and tests/signature.h.
71575         (Depends-on): Add ansi-c++-opt.
71576         (Makefile.am): Arrange to compile and run test-locale-c++.
71577         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
71578         gl_MODULE_INDICATOR.
71580         Tests of module 'langinfo' in C++ mode.
71581         * tests/test-langinfo-c++.cc: New file.
71582         * modules/langinfo-tests (Files): Add it and tests/signature.h.
71583         (Depends-on): Add ansi-c++-opt.
71584         (Makefile.am): Arrange to compile and run test-langinfo-c++.
71585         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
71586         gl_MODULE_INDICATOR.
71588         Tests of module 'iconv-h' in C++ mode.
71589         * tests/test-iconv-h-c++.cc: New file.
71590         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
71591         (Depends-on): Add ansi-c++-opt.
71592         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71594         Tests of module 'glob' in C++ mode.
71595         * tests/test-glob-c++.cc: New file.
71596         * modules/glob-tests (Files): Add it.
71597         (Depends-on): Add ansi-c++-opt.
71598         (Makefile.am): Arrange to compile and run test-glob-c++.
71600         Tests of module 'fcntl-h' in C++ mode.
71601         * tests/test-fcntl-h-c++.cc: New file.
71602         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71603         (Depends-on): Add ansi-c++-opt.
71604         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71605         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71606         gl_MODULE_INDICATOR.
71608         Tests of module 'dirent' in C++ mode.
71609         * tests/test-dirent-c++.cc: New file.
71610         * modules/dirent-tests (Files): Add it and tests/signature.h.
71611         (Depends-on): Add ansi-c++-opt.
71612         (Makefile.am): Arrange to compile and run test-dirent-c++.
71613         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71614         gl_MODULE_INDICATOR.
71616         New module 'ansi-c++-opt'.
71617         * modules/ansi-c++-opt: New file.
71618         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71620         Document C++ namespace mode.
71621         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71623         wctype: Avoid #define replacements in C++ mode.
71624         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71625         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71626         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71627         In C++, define a namespaced alias symbol.
71628         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71629         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71630         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71631         rule.
71633         wchar: Avoid #define replacements in C++ mode.
71634         * lib/wchar.in.h: Include c++defs.h.
71635         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71636         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71637         symbol.
71638         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71639         * modules/wchar (Depends-on): Add c++defs.
71640         (Makefile.am): Update wchar.h rule.
71642         unistd: Avoid #define replacements in C++ mode.
71643         * lib/unistd.in.h: Include c++defs.h.
71644         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71645         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71646         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71647         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71648         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71649         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71650         symbol.
71651         (environ): Update.
71652         * modules/unistd (Depends-on): Add c++defs.
71653         (Makefile.am): Update unistd.h rule.
71655         time: Avoid #define replacements in C++ mode.
71656         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71657         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71658         define a namespaced alias symbol.
71659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71660         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71661         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71662         * modules/time (Depends-on): Add c++defs, warn-on-use.
71663         (Makefile.am): Update time.h rule.
71664         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71665         * modules/nanosleep (configure.ac): Likewise.
71666         * modules/strptime (configure.ac): Likewise.
71667         * modules/timegm (configure.ac): Likewise.
71669         sys_time: Avoid #define replacements in C++ mode.
71670         * lib/sys_time.in.h: Include c++defs.h.
71671         (gettimeofday): In C++, define a namespaced alias symbol.
71672         * modules/sys_time (Depends-on): Add c++defs.
71673         (Makefile.am): Update sys/time.h rule.
71675         sys_stat: Avoid #define replacements in C++ mode.
71676         * lib/sys_stat.in.h: Include c++defs.h.
71677         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71678         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71679         namespaced alias symbol.
71680         In C++, define a namespaced alias symbol.
71681         * modules/sys_stat (Depends-on): Add c++defs.
71682         (Makefile.am): Update sys/stat.h rule.
71684         sys_socket: Avoid #define replacements in C++ mode.
71685         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71686         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71687         definitions also when the system has a <sys/socket.h>.
71688         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71689         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71690         In C++, define a namespaced alias symbol.
71691         * modules/sys_socket (Depends-on): Add c++defs.
71692         (Makefile.am): Update sys/socket.h rule.
71694         sys_select: Avoid #define replacements in C++ mode.
71695         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71696         definitions also when the system has a <sys/select.h>.
71697         (select): In C++, define a namespaced alias symbol.
71698         * modules/sys_select (Depends-on): Add c++defs.
71699         (Makefile.am): Update sys/select.h rule.
71701         sys_ioctl: Avoid #define replacements in C++ mode.
71702         * lib/sys_ioctl.in.h: Include c++defs.h.
71703         (ioctl): In C++, define a namespaced alias symbol.
71704         * modules/sys_ioctl (Depends-on): Add c++defs.
71705         (Makefile.am): Update sys/ioctl.h rule.
71707         string: Avoid #define replacements in C++ mode.
71708         * lib/string.in.h: Include c++defs.h.
71709         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71710         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71711         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71712         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71713         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71714         * modules/string (Depends-on): Add c++defs.
71715         (Makefile.am): Update string.h rule.
71717         stdlib: Avoid #define replacements in C++ mode.
71718         * lib/stdlib.in.h: Include c++defs.h.
71719         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71720         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71721         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71722         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71723         symbol.
71724         * modules/stdlib (Depends-on): Add c++defs.
71725         (Makefile.am): Update stdlib.h rule.
71727         stdio: Avoid #define replacements in C++ mode.
71728         * lib/stdio.in.h: Include c++defs.h.
71729         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71730         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71731         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71732         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71733         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71734         namespaced alias symbol.
71735         * modules/stdio (Depends-on): Add c++defs.
71736         (Makefile.am): Update stdio.h rule.
71738         spawn: Avoid #define replacements in C++ mode.
71739         * lib/spawn.in.h: Include c++defs.h.
71740         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71741         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71742         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71743         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71744         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71745         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71746         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71747         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71748         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71749         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71750         In C++, define a namespaced alias symbol.
71751         * modules/spawn (Depends-on): Add c++defs.
71752         (Makefile.am): Update spawn.h rule.
71754         signal: Avoid #define replacements in C++ mode.
71755         * lib/signal.in.h: Include c++defs.h.
71756         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71757         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71758         namespaced alias symbol.
71759         * modules/signal (Depends-on): Add c++defs.
71760         (Makefile.am): Update signal.h rule.
71762         search: Avoid #define replacements in C++ mode.
71763         * lib/search.in.h: Include c++defs.h.
71764         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71765         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71766         symbol.
71767         * modules/search (Depends-on): Add c++defs.
71768         (Makefile.am): Update search.h rule.
71770         math: Avoid #define replacements in C++ mode.
71771         * lib/math.in.h: Include c++defs.h.
71772         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71773         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71774         trunc, truncl): In C++, define a namespaced alias symbol.
71775         * modules/math (Depends-on): Add c++defs.
71776         (Makefile.am): Update math.h rule.
71778         locale: Avoid #define replacements in C++ mode.
71779         * lib/locale.in.h: Include c++defs.h.
71780         (duplocale): In C++, define a namespaced alias symbol.
71781         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71782         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71783         * modules/locale (Depends-on): Add c++defs.
71784         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71786         langinfo: Avoid #define replacements in C++ mode.
71787         * lib/langinfo.in.h: Include c++defs.h.
71788         (nl_langinfo): In C++, define a namespaced alias symbol.
71789         * modules/langinfo (Depends-on): Add c++defs.
71790         (Makefile.am): Update langinfo.h rule.
71792         iconv-h: Avoid #define replacements in C++ mode.
71793         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71794         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71795         symbol.
71796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71797         whenever iconv is present.
71798         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71799         (Makefile.am): Update iconv.h rule.
71801         glob: Avoid #define replacements in C++ mode.
71802         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71803         (_gl_glob_errfunc_fn): New type.
71804         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71805         symbol.
71806         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71807         (Makefile.am): Update glob.h rule.
71809         fcntl-h: Avoid #define replacements in C++ mode.
71810         * lib/fcntl.in.h: Include c++defs.h.
71811         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71812         * modules/fcntl-h (Depends-on): Add c++defs.
71813         (Makefile.am): Update fcntl.h rule.
71815         dirent: Avoid #define replacements in C++ mode.
71816         * lib/dirent.in.h: Include c++defs.h.
71817         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71818         namespaced alias symbol.
71819         (dirfd): Update declaration.
71820         * modules/dirent (Depends-on): Add c++defs.
71821         (Makefile.am): Update dirent.h rule.
71823         ctype: Make it usable in C++ code.
71824         * lib/ctype.in.h: Include c++defs.h.
71825         (isblank): Declare as extern "C".
71826         * modules/ctype (Depends-on): Add c++defs.
71827         (Makefile.am): Update ctype.h rule.
71829         New module 'c++defs'.
71830         * modules/c++defs: New file.
71831         * build-aux/c++defs.h: New file.
71832         Reported by John W. Eaton <jwe@gnu.org>.
71834 2010-03-07  Bruno Haible  <bruno@clisp.org>
71836         logb: Provide missing declaration for Cygwin.
71837         * lib/math.in.h (logb): New declaration.
71838         * m4/logb.m4: New file.
71839         * modules/logb (Files): Add m4/logb.m4.
71840         (Depends-on): Add math.
71841         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71842         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71844         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71845         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71847 2010-03-07  Bruno Haible  <bruno@clisp.org>
71849         Fix test-cond link error.
71850         * tests/test-cond.c: Include <stdio.h>.
71852 2010-03-07  Bruno Haible  <bruno@clisp.org>
71854         Fix test-dirent-safer link error.
71855         * modules/dirent-safer-tests (Makefile.am): Define
71856         test_dirent_safer_LDADD.
71858 2010-03-07  Bruno Haible  <bruno@clisp.org>
71860         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71861         among default module list.
71863 2010-03-07  Bruno Haible  <bruno@clisp.org>
71865         Fix link error on platforms with GNU libiconv.
71866         * modules/unistr/u8-strcoll-tests (Makefile): Define
71867         test_u8_strcoll_LDADD.
71868         * modules/unistr/u16-strcoll-tests (Makefile): Define
71869         test_u16_strcoll_LDADD.
71870         * modules/unistr/u32-strcoll-tests (Makefile): Define
71871         test_u32_strcoll_LDADD.
71873 2010-03-07  Bruno Haible  <bruno@clisp.org>
71875         Use POSIX declarations for socket functions.
71876         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71877         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71878         rpl_sendto): Change declaration to match POSIX.
71879         * lib/connect.c (rpl_connect): Likewise.
71880         * lib/accept.c (rpl_accept): Likewise.
71881         * lib/bind.c (rpl_bind): Likewise.
71882         * lib/getpeername.c (rpl_getpeername): Likewise.
71883         * lib/getsockname.c (rpl_getsockname): Likewise.
71884         * lib/recv.c (rpl_recv): Likewise.
71885         * lib/send.c (rpl_send): Likewise.
71886         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71887         * lib/sendto.c (rpl_sendto): Likewise.
71889 2010-03-06  Bruno Haible  <bruno@clisp.org>
71891         Clarify access, euidaccess, faccessat.
71892         * doc/posix-functions/faccessat.texi: Mention security problem under
71893         "Other problems", not "Portability problems".
71894         * doc/posix-functions/access.texi: Likewise. Mention a related security
71895         problem.
71896         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71897         * lib/euidaccess.c: Add comments about platforms.
71898         * lib/unistd.in.h (access, euidaccess): Add warnings.
71900 2010-03-07  Bruno Haible  <bruno@clisp.org>
71902         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71903         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71904         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71905         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71906         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71907         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71908         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71909         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71910         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71912         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71913         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71914         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71915         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71916         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71917         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71918         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71919         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71920         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71921         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71922         Likewise.
71923         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71924         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71925         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71926         Likewise.
71927         * tests/test-spawn.c (main): Make it work when
71928         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71930 2010-03-07  Bruno Haible  <bruno@clisp.org>
71932         Fix incorrect Makefile.am generation in German locale.
71933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71934         Execute sed command with character range in C locale.
71936 2010-03-06  Bruno Haible  <bruno@clisp.org>
71938         Tests for module 'iconv-h'.
71939         * modules/iconv-h-tests: New file.
71940         * tests/test-iconv-h.c: New file.
71942         New module 'iconv-h'.
71943         * modules/iconv-h: New file.
71944         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
71945         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
71946         (configure.ac): Remove gl_ICONV_H.
71947         (Makefile.am): Remove rule for iconv.h.
71949 2010-03-06  Bruno Haible  <bruno@clisp.org>
71951         More consistent naming of *.m4 files.
71952         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71953         * modules/wctype (Files): Update.
71955         More consistent naming of *.m4 files.
71956         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71957         * modules/wchar (Files): Update.
71959 2010-03-06  Jim Meyering  <meyering@redhat.com>
71961         euidaccess: relax license to LGPLv2+
71962         * modules/euidaccess (License): Relax to LGPLv2+.
71964 2010-03-06  Bruno Haible  <bruno@clisp.org>
71966         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71967         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71968         (Makefile.am): Augment lib_SOURCES instead.
71970 2010-03-04  Jim Meyering  <meyering@redhat.com>
71972         utime: remove obsolete module
71973         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71974         unnecessary for years, and has been marked as obsolete for 10 months.
71975         * modules/utime: Remove file.
71976         * lib/utime.c: Remove file.
71977         * m4/utime.m4: Remove file.
71978         * m4/utimes-null.m4: Remove file.
71979         * doc/posix-functions/utime.texi (utime): Remove reference to
71980         the module.  Move the sole "fixed by gnulib" item into the
71981         "problems not fixed by Gnulib" list.
71982         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71984 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71986         * modules/exit (License): Relax license to LGPLv2+.
71987         (Status): Mark as obsolete.
71988         * NEWS: Mention deprecated 'exit' module.
71989         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71990         of now obsolete 'exit'.
71992 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71994         fts-lgpl: remove unused module
71995         * modules/fts-lgpl: Remove.
71996         * MODULES.html.sh (func_all_modules): Adjust.
71997         * check-module (find_included_lib_files): Adjust.
71998         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72000 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72002         copy-acl: enhance Solaris ACL error handling
72003         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72004         * lib/set-mode-acl.c (qset_acl): Likewise.
72006 2010-03-02  Bruno Haible  <bruno@clisp.org>
72008         spawn: Don't override the system defined values on FreeBSD 8.
72009         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72010         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72011         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72012         if HAVE_POSIX_SPAWN is 1.
72013         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72015 2010-03-01  Bruno Haible  <bruno@clisp.org>
72017         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72018         regarding Automake.
72020 2010-02-25  Bruno Haible  <bruno@clisp.org>
72022         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72023         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72024         setting, not afterwards.
72025         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72027 2010-02-24  Eric Blake  <eblake@redhat.com>
72029         bootstrap, git-version-gen: use timestamp
72030         * build-aux/git-version-gen (scriptversion): Force UTC.
72031         * build-aux/bootstrap (scriptversion): New variable.
72033         bootstrap: allow older git
72034         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72035         older than 1.6.4.  Requested by the libvirt project.
72037 2010-02-23  Eric Blake  <eblake@redhat.com>
72039         warn-on-use: work with old autoconf
72040         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72041         AS_VAR semantics of autoconf 2.60.
72042         Reported by Bruno Haible.
72044         bootstrap: improve some comments
72045         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72046         clarification comments.
72048         gettimeofday: provide correct function
72049         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72050         when replacement is declared, otherwise provide gettimeofday.
72051         Reported by Michael Goffioul.
72053 2010-02-23  Jim Meyering  <meyering@redhat.com>
72055         lib-ignore: relax license to "unlimited", not LGPLv2+
72056         * modules/lib-ignore (License): Relax to "unlimited".
72058 2010-02-23  Jim Meyering  <meyering@redhat.com>
72060         lib-ignore: relax license to LGPLv2+
72061         * modules/lib-ignore (License): Relax to LGPLv2+.
72063 2010-02-22  Eric Blake  <eblake@redhat.com>
72065         lseek: avoid bash 3.2 broken pipe bug
72066         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72067         warning from bash 3.2.
72068         Reported by Ben Pfaff, with analysis from Bruno Haible.
72070         bootstrap: support non-FSF copyright holder
72071         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72072         bootstrap.conf override of COPYRIGHT_HOLDER.
72073         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72075         bootstrap: interoperate with gettext 0.14.1
72076         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72078         bootstrap: allow for alternate submodule location
72079         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72080         hardcoding submodule location.
72081         (gnulib_mk): Allow direct use of Makefile.am.
72083         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72084         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72085         rather than reconfiguring where the submodule points.
72087         gettimeofday: restore support for platforms that lack function
72088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72089         replacement if function is missing.
72090         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72091         * modules/sys_time (Makefile.am): Substitute it.
72092         * lib/sys_time.in.h (gettimeofday): Check it.
72093         Reported by Michael Goffioul.
72095 2010-02-21  Bruno Haible  <bruno@clisp.org>
72097         * lib/stdio.in.h (obstack_printf): Fix typo.
72099 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72101         vc-list-files: use bzr ls's -R option
72102         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72103         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72105 2010-02-21  Jim Meyering  <meyering@redhat.com>
72107         init.sh: fix EXEEXT shims to work also for names like test-prog
72108         * tests/init.sh: Re-exec a better shell, when needed.
72109         If the current shell lacks support for posix $(...), an init.sh-using
72110         test will now try to find a shell that supports that.  If EXEEXT is
72111         nonempty, we also require support for hyphen-in-alias-name and shell
72112         substitutions like ${var#glob}.  Failure to find such a shell results
72113         in a skipped test.
72115 2010-02-21  Bruno Haible  <bruno@clisp.org>
72117         Really work around "broken pipe" error message from bash 3.2.
72118         * gnulib-tool (func_reset_sigpipe): Remove function.
72119         (echo): In bash 3.2, define to a function that uses printf.
72120         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72122 2010-02-20  Bruno Haible  <bruno@clisp.org>
72124         Restore support for automake 1.9.6 with autoconf 2.61.
72125         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72126         Reported by James Youngman <jay@gnu.org>.
72128 2010-02-20  Bruno Haible  <bruno@clisp.org>
72130         Improve *printf warning condition.
72131         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72132         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72133         and the function is overridden due to SIGPIPE emulation.
72135 2010-02-20  Bruno Haible  <bruno@clisp.org>
72137         * lib/stdio.in.h: Tweak comments.
72139 2010-02-19  Bruno Haible  <bruno@clisp.org>
72141         Make it easier to find modules. New gnulib-tool option '--find'.
72142         * gnulib-tool: New option --find.
72143         (func_usage): Document it.
72144         (func_sanitize_modulelist): New function, extracted from
72145         func_all_modules.
72146         (func_all_modules): Invoke it.
72147         * doc/gnulib-tool.texi (Which modules?): New node.
72149 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72151         * lib/sys_select.in.h: Provide select replacement even if
72152         sys/select.h exists on a system, for Interix.
72154 2010-02-18  Jim Meyering  <meyering@redhat.com>
72156         init.sh: don't use $(...) just yet
72157         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72158         to accommodate e.g., Solaris' /bin/sh.
72160 2010-02-17  Bruno Haible  <bruno@clisp.org>
72162         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72163         Reported by Ludovic Courtès <ludo@gnu.org>.
72165 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72167         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72168         linking with -lintl.
72170 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72172         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72173         if not provided by the system's netdb.h.  Reported by
72174         ludo@gnu.org (Ludovic Courtès).
72176 2010-02-15  Jim Meyering  <meyering@redhat.com>
72178         init.sh: improve portability and efficiency
72179         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72180         "dummy" in a for loop.
72181         Use '!', not '^' to select the complement of a character set used
72182         in a "case" statement.
72183         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72184         Suggestions from Eric Blake.
72186         init.sh: automatically accommodate programs with the .exe suffix
72187         Automatically arrange for an invocation of "prog" to execute the
72188         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72189         may use the simpler "prog", yet still work when built on a system
72190         that requires specifying the added suffix.
72191         Do this by constructing a function named "prog" that invokes
72192         "prog.exe" for each .exe file in selected directories.
72193         * tests/init.sh (find_exe_basenames_): New function.
72194         (create_exe_shim_functions_): New function.
72195         (path_prepend_): Use it.
72197         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72198         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72199         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72201 2010-02-14  Jim Meyering  <meyering@redhat.com>
72203         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72204         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72205         (sc_prohibit_hash_pjw_without_use): New rule.
72207         maint.mk: allow the default upload destination dir to be overridden
72208         * top/maint.mk (upload_dest_dir_): Define with a default that
72209         preserves the status quo.
72210         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72211         Reported by Peter Simons.
72213         maint.mk: prohibit inclusion of "hash.h" without_use
72214         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72216 2010-02-10  Jim Meyering  <meyering@redhat.com>
72218         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72219         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72221 2010-02-09  Eric Blake  <ebb9@byu.net>
72222         and Bruno Haible  <bruno@clisp.org>
72224         obstack-printf-posix: ensure declaration
72225         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72226         extracted from gl_FUNC_OBSTACK_PRINTF.
72227         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72228         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72229         Likewise.
72230         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72231         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72232         0.
72234 2010-02-08  Bruno Haible  <bruno@clisp.org>
72236         gnulib-tool: Fix typo in 2010-02-07 commit.
72237         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72238         Reported by Eric Blake.
72240 2010-02-07  Bruno Haible  <bruno@clisp.org>
72242         gnulib-tool: Fix up caching patches.
72243         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72244         option --no-cache. Use associative arrays when supported by the shell.
72245         (sed_comments): New variable.
72246         (modcache): Renamed from do_cache.
72247         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72248         abbreviate unnecessarily.
72249         (have_associative): New variable.
72250         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72251         way also for ksh and zsh.
72252         (func_init_sed_convert_to_cache_statements): New function, extracted
72253         from func_cache_lookup_module. Add support for associative arrays.
72254         Don't set the c_MODULE_cached variable here. Ignore all lines before
72255         the first field header. Remove only the final newline, not all trailing
72256         newlines. Support empty fields correctly. Limit the use of 'eval' to
72257         assignments.
72258         (func_get_description, func_get_status, func_get_notice,
72259         func_get_applicability, func_get_filelist, func_get_dependencies,
72260         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72261         func_get_automake_snippet, func_get_include_directive,
72262         func_get_link_directive, func_get_license, func_get_maintainer):
72263         Update documentation. List the unoptimized code first. Add support for
72264         associative arrays. Limit the use of 'eval' to assignments.
72265         (func_get_applicability): Undo stylistic pessimisations.
72266         (func_get_automake_snippet, func_get_include_directive): Reduce code
72267         duplication.
72268         (func_modules_transitive_closure, func_modules_add_dummy,
72269         func_modules_notice, func_modules_to_filelist, func_add_file,
72270         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72271         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72272         func_create_testdir, func_create_megatestdir): Update documentation.
72274 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72276         * gnulib-tool (func_cache_lookup_module): Store the module name
72277         belonging to the cache variable; error out if two different
72278         module names map to the same cache variable name.
72280 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72282         gnulib-tool: Make caching optional.
72283         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72284         Update matching short versions of --no-changelog.
72285         (func_usage): Update.
72286         (sed_extract_cache_prog): Renamed from ...
72287         (sed_extract_prog): ... this; revert to old extraction script.
72288         (func_get_description, func_get_status)
72289         (func_get_notice, func_get_applicability, func_get_filelist)
72290         (func_get_dependencies, func_get_autoconf_early_snippet)
72291         (func_get_autoconf_snippet, func_get_automake_snippet)
72292         (func_get_include_directive, func_get_link_directive)
72293         (func_get_license, func_get_maintainer): If $do_cache is false,
72294         use old, non-caching extraction scripts.
72295         Suggestion by Bruno Haible.
72297 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72299         gnulib-tool: cache module metainformation.
72300         * gnulib-tool (sed_extract_prog): Match newline before each
72301         header, and rewrite header to a shell variable suffix.
72302         (func_cache_var, func_cache_lookup_module): New functions,
72303         to turn a module name into a cache variable prefix, and to
72304         look up and cache module metainformation.
72305         (func_get_description, func_get_status)
72306         (func_get_notice, func_get_applicability, func_get_filelist)
72307         (func_get_dependencies, func_get_autoconf_early_snippet)
72308         (func_get_autoconf_snippet, func_get_automake_snippet)
72309         (func_get_include_directive, func_get_link_directive)
72310         (func_get_license, func_get_maintainer): Use
72311         func_cache_lookup_module.
72313 2010-02-07  Bruno Haible  <bruno@clisp.org>
72315         fnctl: Fix missing dependency.
72316         * modules/fcntl (Depends-on): Add getdtablesize.
72317         Reported by John W. Eaton <jwe@gnu.org>.
72319 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72321         Argp: fix recognition of short alias options.
72323         * lib/argp-parse.c (convert_options): Fix improper use of
72324         `|' between character values.
72325         * tests/test-argp.c (group1_option): New alias option
72326         --read (-r).
72327         (group1_parser): Special handling for 'r'.
72328         (test15): New test case.
72329         (test_fun): Add test15.
72330         * tests/test-argp-2.sh: Update expected --help and --usage
72331         outputs.
72333 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72335         * tests/test-argp.c: Fix indentation.
72337 2010-02-04  Eric Blake  <ebb9@byu.net>
72339         gettimeofday: expose type of second argument
72340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72341         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72342         * tests/test-gettimeofday.c: Use it to silence warning.
72343         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72344         the issue.
72346 2010-02-03  Jim Meyering  <meyering@redhat.com>
72348         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72349         * lib/regcomp.c (TYPE_SIGNED): Define.
72350         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72352         regcomp.c: avoid a new -Wshadow warning
72353         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72355 2010-02-01  Jim Meyering  <meyering@redhat.com>
72357         removing useless parentheses in cpp #define directives
72358         For motivation, see commit c0221df4, "define STREQ(a,b)
72359         consistently, removing useless parentheses"
72360         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72361         * lib/mountlist.c (MNT_IGNORE): Likewise.
72362         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72364 2010-02-01  Eric Blake  <ebb9@byu.net>
72366         sys_time: use link-warning
72367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72368         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72369         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72370         * modules/sys_time (Depends-on): Add warn-on-use.
72371         (Makefile.am): Always build replacement.
72372         (configure.ac): Update substitutions.
72373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72374         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72375         bother with SYS_TIME_H.
72376         * modules/gettimeofday (configure.ac): Declare indicator.
72377         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72378         in use.
72380         closein-tests: silence compiler warning
72381         * tests/test-closein.c (main): Ignore fread result.
72382         * modules/closein-tests (Depends-on): Add ignore-value.
72384         tests: silence warning about system return
72385         * tests/test-areadlink-with-size.c (main): Ignore system result.
72386         * tests/test-areadlink.c (main): Likewise.
72387         * tests/test-areadlinkat-with-size.c (main): Likewise.
72388         * tests/test-areadlinkat.c (main): Likewise.
72389         * tests/test-canonicalize-lgpl.c (main): Likewise.
72390         * tests/test-canonicalize.c (main): Likewise.
72391         * tests/test-chown.c (main): Likewise.
72392         * tests/test-fchownat.c (main): Likewise.
72393         * tests/test-fdutimensat.c (main): Likewise.
72394         * tests/test-fstatat.c (main): Likewise.
72395         * tests/test-futimens.c (main): Likewise.
72396         * tests/test-lchown.c (main): Likewise.
72397         * tests/test-link.c (main): Likewise.
72398         * tests/test-linkat.c (main): Likewise.
72399         * tests/test-lstat.c (main): Likewise.
72400         * tests/test-mkdir.c (main): Likewise.
72401         * tests/test-mkdirat.c (main): Likewise.
72402         * tests/test-mkfifo.c (main): Likewise.
72403         * tests/test-mkfifoat.c (main): Likewise.
72404         * tests/test-mknod.c (main): Likewise.
72405         * tests/test-readlink.c (main): Likewise.
72406         * tests/test-remove.c (main): Likewise.
72407         * tests/test-rename.c (main): Likewise.
72408         * tests/test-renameat.c (main): Likewise.
72409         * tests/test-rmdir.c (main): Likewise.
72410         * tests/test-symlink.c (main): Likewise.
72411         * tests/test-symlinkat.c (main): Likewise.
72412         * tests/test-unlink.c (main): Likewise.
72413         * tests/test-unlinkat.c (main): Likewise.
72414         * tests/test-utimens.c (main): Likewise.
72415         * tests/test-utimensat.c (main): Likewise.
72416         * modules/areadlink-tests (Depends-on): Add ignore-value.
72417         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72418         * modules/areadlinkat-tests (Depends-on): Likewise.
72419         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72420         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72421         * modules/canonicalize-tests (Depends-on): Likewise.
72422         * modules/chown-tests (Depends-on): Likewise.
72423         * modules/fdutimensat-tests (Depends-on): Likewise.
72424         * modules/futimens-tests (Depends-on): Likewise.
72425         * modules/lchown-tests (Depends-on): Likewise.
72426         * modules/link-tests (Depends-on): Likewise.
72427         * modules/linkat-tests (Depends-on): Likewise.
72428         * modules/lstat-tests (Depends-on): Likewise.
72429         * modules/mkdir-tests (Depends-on): Likewise.
72430         * modules/mkfifo-tests (Depends-on): Likewise.
72431         * modules/mkfifoat-tests (Depends-on): Likewise.
72432         * modules/mknod-tests (Depends-on): Likewise.
72433         * modules/openat-tests (Depends-on): Likewise.
72434         * modules/readlink-tests (Depends-on): Likewise.
72435         * modules/remove-tests (Depends-on): Likewise.
72436         * modules/rename-tests (Depends-on): Likewise.
72437         * modules/renameat-tests (Depends-on): Likewise.
72438         * modules/rmdir-tests (Depends-on): Likewise.
72439         * modules/symlink-tests (Depends-on): Likewise.
72440         * modules/symlinkat-tests (Depends-on): Likewise.
72441         * modules/unlink-tests (Depends-on): Likewise.
72442         * modules/utimens-tests (Depends-on): Likewise.
72443         * modules/utimensat-tests (Depends-on): Likewise.
72445 2010-01-31  Bruno Haible  <bruno@clisp.org>
72447         Perform the same test for many <math.h> functions.
72448         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72449         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72450         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72451         of gl_MATHFUNC.
72452         * modules/acos (configure.ac): Likewise.
72453         * modules/asin (configure.ac): Likewise.
72454         * modules/atan (configure.ac): Likewise.
72455         * modules/atan2 (configure.ac): Likewise.
72456         * modules/cbrt (configure.ac): Likewise.
72457         * modules/copysign (configure.ac): Likewise.
72458         * modules/cos (configure.ac): Likewise.
72459         * modules/cosh (configure.ac): Likewise.
72460         * modules/erf (configure.ac): Likewise.
72461         * modules/erfc (configure.ac): Likewise.
72462         * modules/exp (configure.ac): Likewise.
72463         * modules/fmod (configure.ac): Likewise.
72464         * modules/hypot (configure.ac): Likewise.
72465         * modules/j0 (configure.ac): Likewise.
72466         * modules/j1 (configure.ac): Likewise.
72467         * modules/jn (configure.ac): Likewise.
72468         * modules/lgamma (configure.ac): Likewise.
72469         * modules/log (configure.ac): Likewise.
72470         * modules/log10 (configure.ac): Likewise.
72471         * modules/log1p (configure.ac): Likewise.
72472         * modules/pow (configure.ac): Likewise.
72473         * modules/remainder (configure.ac): Likewise.
72474         * modules/sin (configure.ac): Likewise.
72475         * modules/sinh (configure.ac): Likewise.
72476         * modules/tan (configure.ac): Likewise.
72477         * modules/tanh (configure.ac): Likewise.
72478         * modules/y0 (configure.ac): Likewise.
72479         * modules/y1 (configure.ac): Likewise.
72480         * modules/yn (configure.ac): Likewise.
72481         Suggested by Paolo Bonzini.
72483 2010-01-31  Bruno Haible  <bruno@clisp.org>
72485         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72487 2010-01-31  Bruno Haible  <bruno@clisp.org>
72489         Work around getdelim() bug on FreeBSD 8.0.
72490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72491         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72492         not work.
72493         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72494         is 1.
72495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72496         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72497         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72498         a non-zero size.
72499         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72501 2010-01-31  Bruno Haible  <bruno@clisp.org>
72503         Work around getline() bug on FreeBSD 8.0.
72504         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72505         and a non-zero size.
72506         * tests/test-getline.c (main): Likewise.
72507         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72508         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72510 2010-01-28  Eric Blake  <ebb9@byu.net>
72512         regex: fix build failure
72513         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72514         platforms.
72516 2010-01-28  Jim Meyering  <meyering@redhat.com>
72518         regex: do not ignore memory allocation failure
72519         * lib/regex_internal.c (create_cd_newstate): Detect
72520         re_node_set_init_copy failure.   Extracted from glibc commit
72521         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72523         regex: sync more white-space changes from libc
72524         * lib/regex_internal.c: White-space only changes.
72525         * lib/regexec.c: Likewise.
72527         regex: add many uses of __attribute_warn_unused_result__
72528         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
72529         * lib/regexec.c: Likewise.
72530         Extracted from a messy glibc commit.
72532         regcomp.c: spelling and merge-artifact from glibc
72533         * lib/regcomp.c: Merge remainder of glibc's
72534         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72536         regcomp.c: sync white-space changes from glibc
72537         * lib/regcomp.c: Merge to accommodate white space
72538         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72540         regcomp.c: do not ignore internal return values
72541         * lib/regcomp.c: Do not ignore internal return values.
72542         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
72543         but without its white-space changes and spelling fixes.
72545         regex_internal.h: define __attribute_warn_unused_result__
72546         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
72548         maint: add a syntax-check rule to check for vulnerable Makefile.in
72549         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
72551 2010-01-27  Jim Meyering  <meyering@redhat.com>
72553         ncftpput-ftp: clean up spaces
72554         * build-aux/ncftpput-ftp: Make Copyright line consistent.
72555         Remove trailing blanks.
72557 2010-01-27  Simon Josefsson  <simon@josefsson.org>
72559         * build-aux/git-version-gen: Fix copyright statement.
72560         * build-aux/gnupload: Likewise.
72561         * tests/test-arcfour.c: Likewise.
72562         * tests/test-arctwo.c: Likewise.
72563         * tests/test-count-one-bits.c: Likewise.
72564         * tests/test-crc.c: Likewise.
72565         * tests/test-des.c: Likewise.
72566         * tests/test-gc-arcfour.c: Likewise.
72567         * tests/test-gc-arctwo.c: Likewise.
72568         * tests/test-gc-des.c: Likewise.
72569         * tests/test-gc-hmac-md5.c: Likewise.
72570         * tests/test-gc-hmac-sha1.c: Likewise.
72571         * tests/test-gc-md2.c: Likewise.
72572         * tests/test-gc-md4.c: Likewise.
72573         * tests/test-gc-md5.c: Likewise.
72574         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72575         * tests/test-gc-rijndael.c: Likewise.
72576         * tests/test-gc-sha1.c: Likewise.
72577         * tests/test-gc.c: Likewise.
72578         * tests/test-gethostname.c: Likewise.
72579         * tests/test-gettimeofday.c: Likewise.
72580         * tests/test-hash.c: Likewise.
72581         * tests/test-hmac-md5.c: Likewise.
72582         * tests/test-hmac-sha1.c: Likewise.
72583         * tests/test-md2.c: Likewise.
72584         * tests/test-md4.c: Likewise.
72585         * tests/test-md5.c: Likewise.
72586         * tests/test-memchr.c: Likewise.
72587         * tests/test-memchr2.c: Likewise.
72588         * tests/test-memcmp.c: Likewise.
72589         * tests/test-memmem.c: Likewise.
72590         * tests/test-memrchr.c: Likewise.
72591         * tests/test-rawmemchr.c: Likewise.
72592         * tests/test-read-file.c: Likewise.
72593         * tests/test-rijndael.c: Likewise.
72594         * tests/test-sockets.c: Likewise.
72595         * tests/test-strchrnul.c: Likewise.
72596         * tests/test-strstr.c: Likewise.
72597         * tests/test-strtod.c: Likewise.
72598         * build-aux/ncftpput-ftp: Likewise.
72600 2010-01-26  Eric Blake  <ebb9@byu.net>
72602         ignore-value: update recommended header name
72603         * modules/ignore-value (Include): Only use <> for headers that
72604         exist in glibc.
72606 2010-01-26  Jim Meyering  <meyering@redhat.com>
72608         test-userspec.c: avoid compiler warnings
72609         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
72610         and "initialization discards qualifiers..." warnings.
72611         Put the first "uid" in its own scope, and make char* members "const".
72613 2010-01-25  Bruno Haible  <bruno@clisp.org>
72615         gnulib-tool: Make warning diagnostics consistent.
72616         * gnulib-tool (func_warning): New function.
72617         Use it everywhere where gnulib-tool produces output to stderr and it is
72618         not a fatal error.
72620 2010-01-25  Bruno Haible  <bruno@clisp.org>
72622         Fix test dependencies.
72623         * modules/xstrtol-tests (Depends-on): Add inttypes.
72624         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72626 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72628         syntax-check: detect incorrect boolean macro values in config.h
72629         * modules/maintainer-makefile (configure.ac): Parameterize the location
72630         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72631         The logic is from Eric Blake and the location indicated by Jim Meyering.
72632         Note the more natural CONFIG_HEADER name is prohibited by automake
72633         for backwards compatibility reasons.
72634         * top/maint.mk (sc_Wundef_boolean): New rule.
72636 2010-01-25  Jim Meyering  <meyering@redhat.com>
72638         bootstrap: detect MacOS 10.6's shasum, too
72639         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72640         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72642 2010-01-23  Jim Meyering  <meyering@redhat.com>
72644         xstrtoll: new module
72645         * modules/xstrtoll: New file.
72646         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72647         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72648         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72649         ./configure fails if you use this module and lack "long long".
72650         * modules/xstrtoll-tests: New module.
72651         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72652         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72653         new init.sh-based test framework.
72655 2010-01-24  Bruno Haible  <bruno@clisp.org>
72657         Tests for module 'yn'.
72658         * modules/yn-tests: New file.
72659         * tests/test-yn.c: New file.
72661         Tests for module 'y1'.
72662         * modules/y1-tests: New file.
72663         * tests/test-y1.c: New file.
72665         Tests for module 'y0'.
72666         * modules/y0-tests: New file.
72667         * tests/test-y0.c: New file.
72669         Tests for module 'tanh'.
72670         * modules/tanh-tests: New file.
72671         * tests/test-tanh.c: New file.
72673         Tests for module 'tan'.
72674         * modules/tan-tests: New file.
72675         * tests/test-tan.c: New file.
72677         Tests for module 'sqrt'.
72678         * modules/sqrt-tests: New file.
72679         * tests/test-sqrt.c: New file.
72681         Tests for module 'sinh'.
72682         * modules/sinh-tests: New file.
72683         * tests/test-sinh.c: New file.
72685         Tests for module 'sin'.
72686         * modules/sin-tests: New file.
72687         * tests/test-sin.c: New file.
72689         Tests for module 'rint'.
72690         * modules/rint-tests: New file.
72691         * tests/test-rint.c: New file.
72693         Tests for module 'remainder'.
72694         * modules/remainder-tests: New file.
72695         * tests/test-remainder.c: New file.
72697         Tests for module 'pow'.
72698         * modules/pow-tests: New file.
72699         * tests/test-pow.c: New file.
72701         Tests for module 'nextafter'.
72702         * modules/nextafter-tests: New file.
72703         * tests/test-nextafter.c: New file.
72705         Tests for module 'modf'.
72706         * modules/modf-tests: New file.
72707         * tests/test-modf.c: New file.
72709         Tests for module 'logb'.
72710         * modules/logb-tests: New file.
72711         * tests/test-logb.c: New file.
72713         Tests for module 'log1p'.
72714         * modules/log1p-tests: New file.
72715         * tests/test-log1p.c: New file.
72717         Tests for module 'log10'.
72718         * modules/log10-tests: New file.
72719         * tests/test-log10.c: New file.
72721         Tests for module 'log'.
72722         * modules/log-tests: New file.
72723         * tests/test-log.c: New file.
72725         Tests for module 'lgamma'.
72726         * modules/lgamma-tests: New file.
72727         * tests/test-lgamma.c: New file.
72729         Tests for module 'ldexp'.
72730         * modules/ldexp-tests: New file.
72731         * tests/test-ldexp.c: New file.
72733         Tests for module 'jn'.
72734         * modules/jn-tests: New file.
72735         * tests/test-jn.c: New file.
72737         Tests for module 'j1'.
72738         * modules/j1-tests: New file.
72739         * tests/test-j1.c: New file.
72741         Tests for module 'j0'.
72742         * modules/j0-tests: New file.
72743         * tests/test-j0.c: New file.
72745         Tests for module 'hypot'.
72746         * modules/hypot-tests: New file.
72747         * tests/test-hypot.c: New file.
72749         Tests for module 'fmod'.
72750         * modules/fmod-tests: New file.
72751         * tests/test-fmod.c: New file.
72753         Tests for module 'fabs'.
72754         * modules/fabs-tests: New file.
72755         * tests/test-fabs.c: New file.
72757         Tests for module 'exp'.
72758         * modules/exp-tests: New file.
72759         * tests/test-exp.c: New file.
72761         Tests for module 'erfc'.
72762         * modules/erfc-tests: New file.
72763         * tests/test-erfc.c: New file.
72765         Tests for module 'erf'.
72766         * modules/erf-tests: New file.
72767         * tests/test-erf.c: New file.
72769         Tests for module 'cosh'.
72770         * modules/cosh-tests: New file.
72771         * tests/test-cosh.c: New file.
72773         Tests for module 'cos'.
72774         * modules/cos-tests: New file.
72775         * tests/test-cos.c: New file.
72777         Tests for module 'copysign'.
72778         * modules/copysign-tests: New file.
72779         * tests/test-copysign.c: New file.
72781         Tests for module 'cbrt'.
72782         * modules/cbrt-tests: New file.
72783         * tests/test-cbrt.c: New file.
72785         Tests for module 'atan2'.
72786         * modules/atan2-tests: New file.
72787         * tests/test-atan2.c: New file.
72789         Tests for module 'atan'.
72790         * modules/atan-tests: New file.
72791         * tests/test-atan.c: New file.
72793         Tests for module 'asin'.
72794         * modules/asin-tests: New file.
72795         * tests/test-asin.c: New file.
72797         Tests for module 'acos'.
72798         * modules/acos-tests: New file.
72799         * tests/test-acos.c: New file.
72801 2010-01-24  Bruno Haible  <bruno@clisp.org>
72803         Fix tests for common <math.h> functions.
72804         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72805         code snippet that references the function pointer, rather than merely
72806         calling the function. Substitute the FUNC_LIBM variable.
72807         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72808         * modules/acos (configure.ac): Likewise.
72809         * modules/asin (configure.ac): Likewise.
72810         * modules/atan (configure.ac): Likewise.
72811         * modules/atan2 (configure.ac): Likewise.
72812         * modules/cbrt (configure.ac): Likewise.
72813         * modules/copysign (configure.ac): Likewise.
72814         * modules/cos (configure.ac): Likewise.
72815         * modules/cosh (configure.ac): Likewise.
72816         * modules/erf (configure.ac): Likewise.
72817         * modules/erfc (configure.ac): Likewise.
72818         * modules/exp (configure.ac): Likewise.
72819         * modules/fabs (configure.ac): Likewise.
72820         * modules/fmod (configure.ac): Likewise.
72821         * modules/hypot (configure.ac): Likewise.
72822         * modules/j0 (configure.ac): Likewise.
72823         * modules/j1 (configure.ac): Likewise.
72824         * modules/jn (configure.ac): Likewise.
72825         * modules/ldexp (configure.ac): Likewise.
72826         * modules/lgamma (configure.ac): Likewise.
72827         * modules/log (configure.ac): Likewise.
72828         * modules/log10 (configure.ac): Likewise.
72829         * modules/log1p (configure.ac): Likewise.
72830         * modules/logb (configure.ac): Likewise.
72831         * modules/modf (configure.ac): Likewise.
72832         * modules/nextafter (configure.ac): Likewise.
72833         * modules/pow (configure.ac): Likewise.
72834         * modules/remainder (configure.ac): Likewise.
72835         * modules/rint (configure.ac): Likewise.
72836         * modules/sin (configure.ac): Likewise.
72837         * modules/sinh (configure.ac): Likewise.
72838         * modules/tan (configure.ac): Likewise.
72839         * modules/tanh (configure.ac): Likewise.
72840         * modules/y0 (configure.ac): Likewise.
72841         * modules/y1 (configure.ac): Likewise.
72842         * modules/yn (configure.ac): Likewise.
72844 2010-01-24  Bruno Haible  <bruno@clisp.org>
72846         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72847         * tests/test-acosl.c (x): New variable.
72848         (main): Store argument in x and fetch it from x.
72849         * tests/test-asinl.c (x): New variable.
72850         (main): Store argument in x and fetch it from x.
72851         * tests/test-atanl.c (x): New variable.
72852         (main): Store argument in x and fetch it from x.
72853         * tests/test-cosl.c (x): New variable.
72854         (main): Store argument in x and fetch it from x.
72855         * tests/test-expl.c (x): New variable.
72856         (main): Store argument in x and fetch it from x.
72857         * tests/test-logl.c (x): New variable.
72858         (main): Store argument in x and fetch it from x.
72859         * tests/test-sinl.c (x): New variable.
72860         (main): Store argument in x and fetch it from x.
72861         * tests/test-sqrtl.c (x): New variable.
72862         (main): Store argument in x and fetch it from x.
72863         * tests/test-tanl.c (x): New variable.
72864         (main): Store argument in x and fetch it from x.
72866 2010-01-24  Bruno Haible  <bruno@clisp.org>
72868         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72869         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72870         assignments to the initial TESTS_ENVIRONMENT.
72871         * doc/gnulib.texi (Unit test modules): Document it.
72872         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72873         TESTS_ENVIRONMENT.
72874         * modules/btowc-tests (Makefile.am): Likewise.
72875         * modules/c-stack-tests (Makefile.am): Likewise.
72876         * modules/c-strcase-tests (Makefile.am): Likewise.
72877         * modules/copy-file-tests (Makefile.am): Likewise.
72878         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72879         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72880         * modules/mbrtowc-tests (Makefile.am): Likewise.
72881         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72882         * modules/mbscasestr-tests (Makefile.am): Likewise.
72883         * modules/mbschr-tests (Makefile.am): Likewise.
72884         * modules/mbscspn-tests (Makefile.am): Likewise.
72885         * modules/mbsinit-tests (Makefile.am): Likewise.
72886         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72887         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72888         * modules/mbspbrk-tests (Makefile.am): Likewise.
72889         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72890         * modules/mbsrchr-tests (Makefile.am): Likewise.
72891         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72892         * modules/mbsspn-tests (Makefile.am): Likewise.
72893         * modules/mbsstr-tests (Makefile.am): Likewise.
72894         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72895         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72896         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72897         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72898         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72899         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72900         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72901         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72902         * modules/wcrtomb-tests (Makefile.am): Likewise.
72903         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72904         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72905         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72906         assignments from TESTS_ENVIRONMENT.
72907         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72908         augmentation.
72909         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72910         * modules/atexit-tests (Makefile.am): Likewise.
72911         * modules/binary-io-tests (Makefile.am): Likewise.
72912         * modules/closein-tests (Makefile.am): Likewise.
72913         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72914         * modules/exclude-tests (Makefile.am): Likewise.
72915         * modules/fflush-tests (Makefile.am): Likewise.
72916         * modules/fpending-tests (Makefile.am): Likewise.
72917         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72918         * modules/freadahead-tests (Makefile.am): Likewise.
72919         * modules/freadptr-tests (Makefile.am): Likewise.
72920         * modules/freadseek-tests (Makefile.am): Likewise.
72921         * modules/fseek-tests (Makefile.am): Likewise.
72922         * modules/fseeko-tests (Makefile.am): Likewise.
72923         * modules/ftell-tests (Makefile.am): Likewise.
72924         * modules/ftello-tests (Makefile.am): Likewise.
72925         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72926         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72927         * modules/lseek-tests (Makefile.am): Likewise.
72928         * modules/parse-duration-tests (Makefile.am): Likewise.
72929         * modules/perror-tests (Makefile.am): Likewise.
72930         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72931         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72932         * modules/pipe-tests (Makefile.am): Likewise.
72933         * modules/pread-tests (Makefile.am): Likewise.
72934         * modules/printf-posix-tests (Makefile.am): Likewise.
72935         * modules/select-tests (Makefile.am): Likewise.
72936         * modules/sigpipe-tests (Makefile.am): Likewise.
72937         * modules/tsearch-tests (Makefile.am): Likewise.
72938         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
72939         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
72940         * modules/uniname/uniname-tests (Makefile.am): Likewise.
72941         * modules/uniwidth/width-tests (Makefile.am): Likewise.
72942         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
72943         * modules/version-etc-tests (Makefile.am): Likewise.
72944         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
72945         * modules/vprintf-posix-tests (Makefile.am): Likewise.
72946         * modules/xalloc-die-tests (Makefile.am): Likewise.
72947         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72948         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72949         * modules/xstrtol-tests (Makefile.am): Likewise.
72950         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72951         * modules/yesno-tests (Makefile.am): Likewise.
72952         Suggested by Jim Meyering.
72954 2010-01-24  Bruno Haible  <bruno@clisp.org>
72956         More documentation.
72957         * doc/gnulib.texi (Writing modules): New chapter.
72958         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72959         the new chapter.
72961 2010-01-24  Jim Meyering  <meyering@redhat.com>
72963         maint.mk: do not prepend "./" after filtering
72964         * top/maint.mk (_prepend_srcdir_prefix): New variable
72965         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72966         "./" when $(srcdir) is ".".
72968         define STREQ(a,b) consistently, removing useless parentheses
72969         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72970         since the only risk is that "a" or "b" contains an unparenthesized
72971         comma, but if either did that, STREQ would have 3 or more arguments.
72972         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72973         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72974         * lib/hash-triple.c (STREQ): Likewise.
72975         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72976         * lib/getugroups.c (STREQ): Likewise.
72978 2010-01-23  Jim Meyering  <meyering@redhat.com>
72980         maint.mk: fix syntax-check in a non-srcdir build directory
72981         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72982         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72984 2010-01-22  Jim Meyering  <meyering@redhat.com>
72986         userspec: add unit tests
72987         * tests/test-userspec.c: New file.
72988         * modules/userspec-tests: Likewise.
72990 2010-01-21  Jim Meyering  <meyering@redhat.com>
72992         maint.mk: handle source file names containing "." robustly
72993         * top/maint.mk (_dot_escaped_srcdir): Define.
72994         (VC_LIST): Use it in LHS of sed substitution.
72996 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72998         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72999         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73000         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73001         from a non-srcdir build.
73003 2010-01-20  Eric Blake  <ebb9@byu.net>
73005         warn-on-use: use instead of link-warning
73006         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73007         * modules/unistd (Depends-on, Makefile.am): Likewise.
73008         * modules/arpa_inet (Depends-on): Replace link-warning with
73009         warn-on-use.
73010         (Makefile.am): Update rules accordingly.
73011         * modules/ctype (Depends-on, Makefile.am): Likewise.
73012         * modules/dirent (Depends-on, Makefile.am): Likewise.
73013         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73014         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73015         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73016         * modules/locale (Depends-on, Makefile.am): Likewise.
73017         * modules/math (Depends-on, Makefile.am): Likewise.
73018         * modules/search (Depends-on, Makefile.am): Likewise.
73019         * modules/signal (Depends-on, Makefile.am): Likewise.
73020         * modules/spawn (Depends-on, Makefile.am): Likewise.
73021         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73022         * modules/string (Depends-on, Makefile.am): Likewise.
73023         * modules/strings (Depends-on, Makefile.am): Likewise.
73024         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73025         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73026         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73027         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73028         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73029         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73030         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73031         * modules/wchar (Depends-on, Makefile.am): Likewise.
73032         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73033         should be poisoned.
73034         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73035         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73036         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73037         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73038         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73039         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73040         * m4/math_h.m4 (gl_MATH_H): Likewise.
73041         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73042         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73043         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73044         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73045         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73046         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73047         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73048         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73050         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73052         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73055         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73057         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73058         GL_LINK_WARNING.
73059         * lib/ctype.in.h: Likewise.
73060         * lib/dirent.in.h: Likewise.
73061         * lib/fcntl.in.h: Likewise.
73062         * lib/inttypes.in.h: Likewise.
73063         * lib/langinfo.in.h: Likewise.
73064         * lib/locale.in.h: Likewise.
73065         * lib/math.in.h: Likewise.
73066         * lib/search.in.h: Likewise.
73067         * lib/signal.in.h: Likewise.
73068         * lib/spawn.in.h: Likewise.
73069         * lib/stdio.in.h: Likewise.
73070         * lib/stdlib.in.h: Likewise.
73071         * lib/string.in.h: Likewise.
73072         * lib/strings.in.h: Likewise.
73073         * lib/sys_file.in.h: Likewise.
73074         * lib/sys_ioctl.in.h: Likewise.
73075         * lib/sys_select.in.h: Likewise.
73076         * lib/sys_socket.in.h: Likewise.
73077         * lib/sys_stat.in.h: Likewise.
73078         * lib/sys_times.in.h: Likewise.
73079         * lib/sys_utsname.in.h: Likewise.
73080         * lib/unistd.in.h: Likewise.
73081         * lib/wchar.in.h: Likewise.
73083 2010-01-20  Bruno Haible  <bruno@clisp.org>
73085         Avoid duplicate -lm.
73086         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73087         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73089         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73090         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73091         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73092         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73093         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73094         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73095         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73096         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73097         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73098         Reported by Paolo Bonzini.
73100 2010-01-19  Bruno Haible  <bruno@clisp.org>
73102         langinfo, nl_langinfo: Relicense under LGPLv2+.
73103         * modules/langinfo (License): Change to LGPLv2+.
73104         * modules/nl_langinfo (License): Likewise.
73105         Patch by David Lutterkort <lutter@redhat.com>.
73107 2010-01-19  Bruno Haible  <bruno@clisp.org>
73109         Avoid compilation error with cc on OSF/1 5.1.
73110         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73111         statement, not before.
73112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73114 2010-01-18  Bruno Haible  <bruno@clisp.org>
73116         Avoid a link error due to the __printf__ symbol.
73117         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73118         and 2.6.x.
73119         (__format__, __printf__): Remove definitions.
73120         * lib/argp-fmtstream.h: Likewise.
73121         * lib/argp.h: Likewise.
73122         * lib/error.h: Likewise.
73123         * lib/vasnprintf.h: Likewise.
73124         * lib/xprintf.h: Likewise.
73125         * lib/xvasprintf.h: Likewise.
73126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73128 2010-01-18  Bruno Haible  <bruno@clisp.org>
73130         Tests for module 'tanl'.
73131         * modules/tanl-tests: New file.
73132         * tests/test-tanl.c: New file.
73134         Tests for module 'sqrtl'.
73135         * modules/sqrtl-tests: New file.
73136         * tests/test-sqrtl.c: New file.
73138         Tests for module 'sinl'.
73139         * modules/sinl-tests: New file.
73140         * tests/test-sinl.c: New file.
73142         Tests for module 'logl'.
73143         * modules/logl-tests: New file.
73144         * tests/test-logl.c: New file.
73146         Tests for module 'expl'.
73147         * modules/expl-tests: New file.
73148         * tests/test-expl.c: New file.
73150         Tests for module 'cosl'.
73151         * modules/cosl-tests: New file.
73152         * tests/test-cosl.c: New file.
73154         Tests for module 'atanl'.
73155         * modules/atanl-tests: New file.
73156         * tests/test-atanl.c: New file.
73158         Tests for module 'asinl'.
73159         * modules/asinl-tests: New file.
73160         * tests/test-asinl.c: New file.
73162         Tests for module 'acosl'.
73163         * modules/acosl-tests: New file.
73164         * tests/test-acosl.c: New file.
73166         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73167         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73168         tanl): Use the standard gnulib idiom.
73169         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73170         * lib/sinl.c: Likewise.
73171         * lib/tanl.c: Don't include trigl.c.
73172         (kernel_tanl): Make static.
73173         * lib/sincosl.c: Include trigl.h first.
73174         * lib/trigl.c: Likewise.
73175         * m4/acosl.m4: New file.
73176         * m4/asinl.m4: New file.
73177         * m4/atanl.m4: New file.
73178         * m4/cosl.m4: New file.
73179         * m4/expl.m4: New file.
73180         * m4/logl.m4: New file.
73181         * m4/sinl.m4: New file.
73182         * m4/sqrtl.m4: New file.
73183         * m4/tanl.m4: New file.
73184         * m4/mathl.m4: Remove file.
73185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73186         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73187         Don't initialize GNULIB_MATHL.
73188         * modules/acosl: New file.
73189         * modules/asinl: New file.
73190         * modules/atanl: New file.
73191         * modules/cosl: New file.
73192         * modules/expl: New file.
73193         * modules/logl: New file.
73194         * modules/sinl: New file.
73195         * modules/sqrtl: New file.
73196         * modules/tanl: New file.
73197         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73198         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73199         substitute GNULIB_MATHL.
73200         * modules/mathl: Rewritten.
73201         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73202         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73203         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73204         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73205         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73206         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73207         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73208         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73209         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73211 2010-01-18  Bruno Haible  <bruno@clisp.org>
73213         sqrt: Make gl_FUNC_SQRT requirable.
73214         * m4/sqrt.m4: New file.
73215         * modules/sqrt (Files): Add it.
73216         (configure.ac): Invoke gl_FUNC_SQRT.
73218 2010-01-18  Bruno Haible  <bruno@clisp.org>
73220         New modules for common <math.h> functions.
73221         * m4/mathfunc.m4: New file.
73222         * modules/acos: New file.
73223         * modules/asin: New file.
73224         * modules/atan: New file.
73225         * modules/atan2: New file.
73226         * modules/cbrt: New file.
73227         * modules/copysign: New file.
73228         * modules/cos: New file.
73229         * modules/cosh: New file.
73230         * modules/erf: New file.
73231         * modules/erfc: New file.
73232         * modules/exp: New file.
73233         * modules/fabs: New file.
73234         * modules/fmod: New file.
73235         * modules/hypot: New file.
73236         * modules/j0: New file.
73237         * modules/j1: New file.
73238         * modules/jn: New file.
73239         * modules/ldexp: New file.
73240         * modules/lgamma: New file.
73241         * modules/log: New file.
73242         * modules/log10: New file.
73243         * modules/log1p: New file.
73244         * modules/logb: New file.
73245         * modules/modf: New file.
73246         * modules/nextafter: New file.
73247         * modules/pow: New file.
73248         * modules/remainder: New file.
73249         * modules/rint: New file.
73250         * modules/sin: New file.
73251         * modules/sinh: New file.
73252         * modules/sqrt: New file.
73253         * modules/tan: New file.
73254         * modules/tanh: New file.
73255         * modules/y0: New file.
73256         * modules/y1: New file.
73257         * modules/yn: New file.
73258         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73259         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73260         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73261         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73262         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73263         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73264         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73265         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73266         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73267         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73268         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73269         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73270         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73271         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73272         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73273         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73274         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73275         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73276         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73277         * doc/posix-functions/log.texi: Mention the 'log' module.
73278         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73279         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73280         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73281         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73282         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73283         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73284         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73285         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73286         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73287         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73288         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73289         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73290         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73291         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73292         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73293         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73295 2010-01-18  Jim Meyering  <meyering@redhat.com>
73297         ignore-value: relax license to LGPLv2+
73298         * modules/ignore-value (License): Relax to LGPLv2+.
73300         getdate: don't leak when TZ contains two or more '"'s
73301         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73302         double quote in TZ after the first one.
73304         readtokens: do not leak internal token_lengths buffer
73305         * lib/readtokens.c (readtokens): Free the local, lengths,
73306         when the supplied "token_lengths" parameter is NULL.
73308 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73310         Fix a couple of missing LIBTHREAD link failures on AIX.
73311         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73312         $(LIBTHREAD).
73313         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73315         Link test-poll against INET_PTON_LIB.
73316         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73317         for inet_pton on Solaris 10.
73319 2010-01-17  Bruno Haible  <bruno@clisp.org>
73321         unistdio/*-sprintf: Fix typo in module description.
73322         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73323         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73324         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73325         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73326         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73327         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73328         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73331 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73333         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73334         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73335         variables in shell case patterns, for AIX and HP-UX ksh.
73337         Split large sed scripts, for HP-UX sed.
73338         * modules/stdio: Split sed scripts around 50 sed commands,
73339         to avoid HP-UX limit of 99 commands, in the near future.
73340         * modules/string: Likewise.
73341         * modules/unistd: Likewise.
73343         gnulib-tool: avoid writing in the current directory.
73344         * gnulib-tool (func_emit_lib_Makefile_am)
73345         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73346         not in the current directory, so concurrent gnulib-tool
73347         instances do not interfere.
73349 2010-01-16  Jim Meyering  <meyering@redhat.com>
73351         doc: update users.txt
73352         * users.txt: Add grep.
73353         (diffutils, gzip): Update URLs.
73355 2010-01-12  Bruno Haible  <bruno@clisp.org>
73357         posix_spawn: Avoid test failure on Cygwin.
73358         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73359         characters.
73360         Reported by Simon Josefsson.
73362 2010-01-12  Bruno Haible  <bruno@clisp.org>
73364         * tests/test-cond.c (main): When skipping the test, show the reason.
73366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73368         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73370 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73372         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73373         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73375 2010-01-12  Eric Blake  <ebb9@byu.net>
73377         build: guarantee AS_VAR_IF
73378         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73379         (gl_AS_VAR_IF): Move...
73380         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73381         Reported by Simon Josefsson.
73383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73385         * lib/stdio.in.h: Fix typo.
73387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73389         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73390         libgpg-error.
73392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73394         * tests/test-xalloc-die.sh: Use $EXEEXT.
73396 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73397             Bruno Haible  <bruno@clisp.org>
73399         getlogin, getlogin_r: Avoid test failure.
73400         * tests/test-getlogin.c: Include <stdio.h>.
73401         (main): Skip the test when the function fails because stdin is not a
73402         tty.
73403         * tests/test-getlogin_r.c: Include <stdio.h>.
73404         (main): Skip the test when the function fails because stdin is not a
73405         tty.
73407 2010-01-11  Eric Blake  <ebb9@byu.net>
73409         tests: avoid more large file warnings
73410         * tests/test-fflush.c: Avoid warning about ftell use.
73411         * tests/test-fseek.c: Avoid warning about fseek use.
73413 2010-01-10  Bruno Haible  <bruno@clisp.org>
73415         nproc: Work better on Linux when /proc and /sys are not mounted.
73416         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73417         as lower bound when, on glibc/Linux systems,
73418         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73419         Suggested by Pádraig Brady <P@draigbrady.com>.
73420         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73422         nproc: Refactor.
73423         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73424         extracted from num_processors.
73425         (num_processors): Call it.
73427 2010-01-11  Jim Meyering  <meyering@redhat.com>
73429         utimecmp: avoid new warning from upcoming gcc-4.5.0
73430         * lib/utimecmp.c (BILLION): Define using #define rather than an
73431         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73433 2010-01-11  Eric Blake  <ebb9@byu.net>
73435         math: add portability warnings for classification macros
73436         * modules/math (Depends-on): Add warn-on-use.
73437         (Makefile.am): Provide new substitutions.
73438         * m4/math_h.m4 (gl_MATH_H): Require inline.
73439         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73440         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73441         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73442         implement warnings.
73444         unistd: warn on use of environ without module
73445         * modules/unistd (Depends-on): Add warn-on-use.
73446         (Makefile.am): Provide new substitutions.
73447         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73448         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73450         stdio: warn on suspicious uses
73451         * modules/stdio (Depends-on): Add warn-on-use.
73452         (Makefile.am): Provide new substitutions.
73453         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73454         fseeko.
73455         * lib/stdio.in.h (gets): Always warn on use.
73456         (fseek, ftell): Adjust when warnings are issued, and honor
73457         _GL_NO_LARGE_FILES as a way to silence the warning.
73458         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73459         any warning about large file offsets.
73460         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73461         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73462         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73463         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73464         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73465         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73466         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73467         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73469         warn-on-use: new module
73470         * modules/warn-on-use: New file.
73471         * build-aux/warn-on-use.h: Likewise.
73472         * m4/warn-on-use.m4: Likewise.
73473         * MODULES.html.sh (Support for building): Mention it.
73475 2010-01-10  Bruno Haible  <bruno@clisp.org>
73477         Tests for module 'unistr/u32-strdup'.
73478         * modules/unistr/u32-strdup-tests: New file.
73479         * tests/unistr/test-u32-strdup.c: New file.
73481         Tests for module 'unistr/u16-strdup'.
73482         * modules/unistr/u16-strdup-tests: New file.
73483         * tests/unistr/test-u16-strdup.c: New file.
73485         Tests for module 'unistr/u8-strdup'.
73486         * modules/unistr/u8-strdup-tests: New file.
73487         * tests/unistr/test-u8-strdup.c: New file.
73488         * tests/unistr/test-strdup.h: New file.
73490         Tests for module 'unistr/u32-strncmp'.
73491         * modules/unistr/u32-strncmp-tests: New file.
73492         * tests/unistr/test-u32-strncmp.c: New file.
73494         Tests for module 'unistr/u16-strncmp'.
73495         * modules/unistr/u16-strncmp-tests: New file.
73496         * tests/unistr/test-u16-strncmp.c: New file.
73498         Tests for module 'unistr/u8-strncmp'.
73499         * modules/unistr/u8-strncmp-tests: New file.
73500         * tests/unistr/test-u8-strncmp.c: New file.
73501         * tests/unistr/test-strncmp.h: New file.
73503         Tests for module 'unistr/u32-strcoll'.
73504         * modules/unistr/u32-strcoll-tests: New file.
73505         * tests/unistr/test-u32-strcoll.c: New file.
73507         Tests for module 'unistr/u16-strcoll'.
73508         * modules/unistr/u16-strcoll-tests: New file.
73509         * tests/unistr/test-u16-strcoll.c: New file.
73511         Tests for module 'unistr/u8-strcoll'.
73512         * modules/unistr/u8-strcoll-tests: New file.
73513         * tests/unistr/test-u8-strcoll.c: New file.
73515         Tests for module 'unistr/u32-strcmp'.
73516         * modules/unistr/u32-strcmp-tests: New file.
73517         * tests/unistr/test-u32-strcmp.c: New file.
73518         * tests/unistr/test-u32-strcmp.h: New file.
73520         Tests for module 'unistr/u16-strcmp'.
73521         * modules/unistr/u16-strcmp-tests: New file.
73522         * tests/unistr/test-u16-strcmp.c: New file.
73523         * tests/unistr/test-u16-strcmp.h: New file.
73525         Tests for module 'unistr/u8-strcmp'.
73526         * modules/unistr/u8-strcmp-tests: New file.
73527         * tests/unistr/test-u8-strcmp.c: New file.
73528         * tests/unistr/test-u8-strcmp.h: New file.
73529         * tests/unistr/test-strcmp.h: New file.
73531         Tests for module 'unistr/u32-strncat'.
73532         * modules/unistr/u32-strncat-tests: New file.
73533         * tests/unistr/test-u32-strncat.c: New file.
73535         Tests for module 'unistr/u16-strncat'.
73536         * modules/unistr/u16-strncat-tests: New file.
73537         * tests/unistr/test-u16-strncat.c: New file.
73539         Tests for module 'unistr/u8-strncat'.
73540         * modules/unistr/u8-strncat-tests: New file.
73541         * tests/unistr/test-u8-strncat.c: New file.
73542         * tests/unistr/test-strncat.h: New file.
73544         Tests for module 'unistr/u32-strcat'.
73545         * modules/unistr/u32-strcat-tests: New file.
73546         * tests/unistr/test-u32-strcat.c: New file.
73548         Tests for module 'unistr/u16-strcat'.
73549         * modules/unistr/u16-strcat-tests: New file.
73550         * tests/unistr/test-u16-strcat.c: New file.
73552         Tests for module 'unistr/u8-strcat'.
73553         * modules/unistr/u8-strcat-tests: New file.
73554         * tests/unistr/test-u8-strcat.c: New file.
73555         * tests/unistr/test-strcat.h: New file.
73557         Tests for module 'unistr/u32-stpncpy'.
73558         * modules/unistr/u32-stpncpy-tests: New file.
73559         * tests/unistr/test-u32-stpncpy.c: New file.
73561         Tests for module 'unistr/u16-stpncpy'.
73562         * modules/unistr/u16-stpncpy-tests: New file.
73563         * tests/unistr/test-u16-stpncpy.c: New file.
73565         Tests for module 'unistr/u8-stpncpy'.
73566         * modules/unistr/u8-stpncpy-tests: New file.
73567         * tests/unistr/test-u8-stpncpy.c: New file.
73568         * tests/unistr/test-stpncpy.h: New file.
73570         Tests for module 'unistr/u32-strncpy'.
73571         * modules/unistr/u32-strncpy-tests: New file.
73572         * tests/unistr/test-u32-strncpy.c: New file.
73574         Tests for module 'unistr/u16-strncpy'.
73575         * modules/unistr/u16-strncpy-tests: New file.
73576         * tests/unistr/test-u16-strncpy.c: New file.
73578         Tests for module 'unistr/u8-strncpy'.
73579         * modules/unistr/u8-strncpy-tests: New file.
73580         * tests/unistr/test-u8-strncpy.c: New file.
73581         * tests/unistr/test-strncpy.h: New file.
73583         Tests for module 'unistr/u32-stpcpy'.
73584         * modules/unistr/u32-stpcpy-tests: New file.
73585         * tests/unistr/test-u32-stpcpy.c: New file.
73587         Tests for module 'unistr/u16-stpcpy'.
73588         * modules/unistr/u16-stpcpy-tests: New file.
73589         * tests/unistr/test-u16-stpcpy.c: New file.
73591         Tests for module 'unistr/u8-stpcpy'.
73592         * modules/unistr/u8-stpcpy-tests: New file.
73593         * tests/unistr/test-u8-stpcpy.c: New file.
73594         * tests/unistr/test-stpcpy.h: New file.
73596         Tests for module 'unistr/u32-strcpy'.
73597         * modules/unistr/u32-strcpy-tests: New file.
73598         * tests/unistr/test-u32-strcpy.c: New file.
73600         Tests for module 'unistr/u16-strcpy'.
73601         * modules/unistr/u16-strcpy-tests: New file.
73602         * tests/unistr/test-u16-strcpy.c: New file.
73604         Tests for module 'unistr/u8-strcpy'.
73605         * modules/unistr/u8-strcpy-tests: New file.
73606         * tests/unistr/test-u8-strcpy.c: New file.
73607         * tests/unistr/test-strcpy.h: New file.
73609         Tests for module 'unistr/u32-strnlen'.
73610         * modules/unistr/u32-strnlen-tests: New file.
73611         * tests/unistr/test-u32-strnlen.c: New file.
73613         Tests for module 'unistr/u16-strnlen'.
73614         * modules/unistr/u16-strnlen-tests: New file.
73615         * tests/unistr/test-u16-strnlen.c: New file.
73617         Tests for module 'unistr/u8-strnlen'.
73618         * modules/unistr/u8-strnlen-tests: New file.
73619         * tests/unistr/test-u8-strnlen.c: New file.
73620         * tests/unistr/test-strnlen.h: New file.
73622         Tests for module 'unistr/u32-strlen'.
73623         * modules/unistr/u32-strlen-tests: New file.
73624         * tests/unistr/test-u32-strlen.c: New file.
73626         Tests for module 'unistr/u16-strlen'.
73627         * modules/unistr/u16-strlen-tests: New file.
73628         * tests/unistr/test-u16-strlen.c: New file.
73630         Tests for module 'unistr/u8-strlen'.
73631         * modules/unistr/u8-strlen-tests: New file.
73632         * tests/unistr/test-u8-strlen.c: New file.
73634         Tests for module 'unistr/u32-prev'.
73635         * modules/unistr/u32-prev-tests: New file.
73636         * tests/unistr/test-u32-prev.c: New file.
73638         Tests for module 'unistr/u16-prev'.
73639         * modules/unistr/u16-prev-tests: New file.
73640         * tests/unistr/test-u16-prev.c: New file.
73642         Tests for module 'unistr/u8-prev'.
73643         * modules/unistr/u8-prev-tests: New file.
73644         * tests/unistr/test-u8-prev.c: New file.
73646         Tests for module 'unistr/u32-next'.
73647         * modules/unistr/u32-next-tests: New file.
73648         * tests/unistr/test-u32-next.c: New file.
73650         Tests for module 'unistr/u16-next'.
73651         * modules/unistr/u16-next-tests: New file.
73652         * tests/unistr/test-u16-next.c: New file.
73654         Tests for module 'unistr/u8-next'.
73655         * modules/unistr/u8-next-tests: New file.
73656         * tests/unistr/test-u8-next.c: New file.
73658         Tests for module 'unistr/u32-strmbtouc'.
73659         * modules/unistr/u32-strmbtouc-tests: New file.
73660         * tests/unistr/test-u32-strmbtouc.c: New file.
73662         Tests for module 'unistr/u16-strmbtouc'.
73663         * modules/unistr/u16-strmbtouc-tests: New file.
73664         * tests/unistr/test-u16-strmbtouc.c: New file.
73666         Tests for module 'unistr/u8-strmbtouc'.
73667         * modules/unistr/u8-strmbtouc-tests: New file.
73668         * tests/unistr/test-u8-strmbtouc.c: New file.
73670         Tests for module 'unistr/u32-strmblen'.
73671         * modules/unistr/u32-strmblen-tests: New file.
73672         * tests/unistr/test-u32-strmblen.c: New file.
73674         Tests for module 'unistr/u16-strmblen'.
73675         * modules/unistr/u16-strmblen-tests: New file.
73676         * tests/unistr/test-u16-strmblen.c: New file.
73678         Tests for module 'unistr/u8-strmblen'.
73679         * modules/unistr/u8-strmblen-tests: New file.
73680         * tests/unistr/test-u8-strmblen.c: New file.
73682         Tests for module 'unistr/u32-cpy-alloc'.
73683         * modules/unistr/u32-cpy-alloc-tests: New file.
73684         * tests/unistr/test-u32-cpy-alloc.c: New file.
73686         Tests for module 'unistr/u16-cpy-alloc'.
73687         * modules/unistr/u16-cpy-alloc-tests: New file.
73688         * tests/unistr/test-u16-cpy-alloc.c: New file.
73690         Tests for module 'unistr/u8-cpy-alloc'.
73691         * modules/unistr/u8-cpy-alloc-tests: New file.
73692         * tests/unistr/test-u8-cpy-alloc.c: New file.
73693         * tests/unistr/test-cpy-alloc.h: New file.
73695         Tests for module 'unistr/u32-mbsnlen'.
73696         * modules/unistr/u32-mbsnlen-tests: New file.
73697         * tests/unistr/test-u32-mbsnlen.c: New file.
73699         Tests for module 'unistr/u16-mbsnlen'.
73700         * modules/unistr/u16-mbsnlen-tests: New file.
73701         * tests/unistr/test-u16-mbsnlen.c: New file.
73703         Tests for module 'unistr/u8-mbsnlen'.
73704         * modules/unistr/u8-mbsnlen-tests: New file.
73705         * tests/unistr/test-u8-mbsnlen.c: New file.
73707         Tests for module 'unistr/u32-chr'.
73708         * modules/unistr/u32-chr-tests: New file.
73709         * tests/unistr/test-u32-chr.c: New file.
73711         Tests for module 'unistr/u16-chr'.
73712         * modules/unistr/u16-chr-tests: New file.
73713         * tests/unistr/test-u16-chr.c: New file.
73715         Tests for module 'unistr/u8-chr'.
73716         * modules/unistr/u8-chr-tests: New file.
73717         * tests/unistr/test-u8-chr.c: New file.
73718         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73720         Tests for module 'unistr/u32-cmp2'.
73721         * modules/unistr/u32-cmp2-tests: New file.
73722         * tests/unistr/test-u32-cmp2.c: New file.
73724         Tests for module 'unistr/u16-cmp2'.
73725         * modules/unistr/u16-cmp2-tests: New file.
73726         * tests/unistr/test-u16-cmp2.c: New file.
73728         Tests for module 'unistr/u8-cmp2'.
73729         * modules/unistr/u8-cmp2-tests: New file.
73730         * tests/unistr/test-u8-cmp2.c: New file.
73731         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73733         Tests for module 'unistr/u32-cmp'.
73734         * modules/unistr/u32-cmp-tests: New file.
73735         * tests/unistr/test-u32-cmp.c: New file.
73737         Tests for module 'unistr/u16-cmp'.
73738         * modules/unistr/u16-cmp-tests: New file.
73739         * tests/unistr/test-u16-cmp.c: New file.
73741         Tests for module 'unistr/u8-cmp'.
73742         * modules/unistr/u8-cmp-tests: New file.
73743         * tests/unistr/test-u8-cmp.c: New file.
73744         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73746         Tests for module 'unistr/u32-set'.
73747         * modules/unistr/u32-set-tests: New file.
73748         * tests/unistr/test-u32-set.c: New file.
73750         Tests for module 'unistr/u16-set'.
73751         * modules/unistr/u16-set-tests: New file.
73752         * tests/unistr/test-u16-set.c: New file.
73754         Tests for module 'unistr/u8-set'.
73755         * modules/unistr/u8-set-tests: New file.
73756         * tests/unistr/test-u8-set.c: New file.
73757         * tests/unistr/test-set.h: New file.
73759         Tests for module 'unistr/u32-move'.
73760         * modules/unistr/u32-move-tests: New file.
73761         * tests/unistr/test-u32-move.c: New file.
73763         Tests for module 'unistr/u16-move'.
73764         * modules/unistr/u16-move-tests: New file.
73765         * tests/unistr/test-u16-move.c: New file.
73767         Tests for module 'unistr/u8-move'.
73768         * modules/unistr/u8-move-tests: New file.
73769         * tests/unistr/test-u8-move.c: New file.
73770         * tests/unistr/test-move.h: New file.
73772         Tests for module 'unistr/u32-cpy'.
73773         * modules/unistr/u32-cpy-tests: New file.
73774         * tests/unistr/test-u32-cpy.c: New file.
73776         Tests for module 'unistr/u16-cpy'.
73777         * modules/unistr/u16-cpy-tests: New file.
73778         * tests/unistr/test-u16-cpy.c: New file.
73780         Tests for module 'unistr/u8-cpy'.
73781         * modules/unistr/u8-cpy-tests: New file.
73782         * tests/unistr/test-u8-cpy.c: New file.
73783         * tests/unistr/test-cpy.h: New file.
73785 2010-01-09  Bruno Haible  <bruno@clisp.org>
73787         Tests for module 'unistr/u32-uctomb'.
73788         * modules/unistr/u32-uctomb-tests: New file.
73789         * tests/unistr/test-u32-uctomb.c: New file.
73791         Tests for module 'unistr/u16-uctomb'.
73792         * modules/unistr/u16-uctomb-tests: New file.
73793         * tests/unistr/test-u16-uctomb.c: New file.
73795         Tests for module 'unistr/u8-uctomb'.
73796         * modules/unistr/u8-uctomb-tests: New file.
73797         * tests/unistr/test-u8-uctomb.c: New file.
73799         Tests for module 'unistr/u32-mbtoucr'.
73800         * modules/unistr/u32-mbtoucr-tests: New file.
73801         * tests/unistr/test-u32-mbtoucr.c: New file.
73803         Tests for module 'unistr/u16-mbtoucr'.
73804         * modules/unistr/u16-mbtoucr-tests: New file.
73805         * tests/unistr/test-u16-mbtoucr.c: New file.
73807         Tests for module 'unistr/u8-mbtoucr'.
73808         * modules/unistr/u8-mbtoucr-tests: New file.
73809         * tests/unistr/test-u8-mbtoucr.c: New file.
73811         Tests for module 'unistr/u32-mbtouc'.
73812         * modules/unistr/u32-mbtouc-tests: New file.
73813         * tests/unistr/test-u32-mbtouc.c: New file.
73815         Tests for module 'unistr/u16-mbtouc'.
73816         * modules/unistr/u16-mbtouc-tests: New file.
73817         * tests/unistr/test-u16-mbtouc.c: New file.
73819         Tests for module 'unistr/u8-mbtouc'.
73820         * modules/unistr/u8-mbtouc-tests: New file.
73821         * tests/unistr/test-u8-mbtouc.c: New file.
73823         Tests for module 'unistr/u32-mbtouc-unsafe'.
73824         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73825         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73826         * tests/unistr/test-u32-mbtouc.h: New file.
73828         Tests for module 'unistr/u16-mbtouc-unsafe'.
73829         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73830         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73831         * tests/unistr/test-u16-mbtouc.h: New file.
73833         Tests for module 'unistr/u8-mbtouc-unsafe'.
73834         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73835         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73836         * tests/unistr/test-u8-mbtouc.h: New file.
73838         Tests for module 'unistr/u32-mblen'.
73839         * modules/unistr/u32-mblen-tests: New file.
73840         * tests/unistr/test-u32-mblen.c: New file.
73842         Tests for module 'unistr/u16-mblen'.
73843         * modules/unistr/u16-mblen-tests: New file.
73844         * tests/unistr/test-u16-mblen.c: New file.
73846         Tests for module 'unistr/u8-mblen'.
73847         * modules/unistr/u8-mblen-tests: New file.
73848         * tests/unistr/test-u8-mblen.c: New file.
73850         Tests for module 'unistr/u32-to-u16'.
73851         * modules/unistr/u32-to-u16-tests: New file.
73852         * tests/unistr/test-u32-to-u16.c: New file.
73854         Tests for module 'unistr/u32-to-u8'.
73855         * modules/unistr/u32-to-u8-tests: New file.
73856         * tests/unistr/test-u32-to-u8.c: New file.
73858         Tests for module 'unistr/u16-to-u32'.
73859         * modules/unistr/u16-to-u32-tests: New file.
73860         * tests/unistr/test-u16-to-u32.c: New file.
73862         Tests for module 'unistr/u16-to-u8'.
73863         * modules/unistr/u16-to-u8-tests: New file.
73864         * tests/unistr/test-u16-to-u8.c: New file.
73866         Tests for module 'unistr/u8-to-u32'.
73867         * modules/unistr/u8-to-u32-tests: New file.
73868         * tests/unistr/test-u8-to-u32.c: New file.
73870         Tests for module 'unistr/u8-to-u16'.
73871         * modules/unistr/u8-to-u16-tests: New file.
73872         * tests/unistr/test-u8-to-u16.c: New file.
73874         Tests for module 'unistr/u32-check'.
73875         * modules/unistr/u32-check-tests: New file.
73876         * tests/unistr/test-u32-check.c: New file.
73878         Tests for module 'unistr/u16-check'.
73879         * modules/unistr/u16-check-tests: New file.
73880         * tests/unistr/test-u16-check.c: New file.
73882         Tests for module 'unistr/u8-check'.
73883         * modules/unistr/u8-check-tests: New file.
73884         * tests/unistr/test-u8-check.c: New file.
73886         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73887         (category_equals): New function.
73888         (main): Add more tests.
73889         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73891         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73893 2010-01-10  Bruno Haible  <bruno@clisp.org>
73895         unistr/u*-strcoll: Try harder to distinguish different strings.
73896         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73897         compare s1 and s2 to see if they are different.
73899 2010-01-10  Bruno Haible  <bruno@clisp.org>
73901         unistr/u*-stpncpy: Fix the return value.
73902         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73903         description of the return value consistent with stpncpy in glibc.
73904         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73905         written non-NUL unit.
73907 2010-01-10  Bruno Haible  <bruno@clisp.org>
73909         unistr/u*-next: Add missing dependencies.
73910         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73911         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73912         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73914 2010-01-10  Bruno Haible  <bruno@clisp.org>
73916         unistr/u8-mbsnlen: Fix return value for incomplete character.
73917         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73918         u8_mblen.
73919         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73920         Remove unistr/u8-mblen.
73921         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73922         u16_mblen.
73923         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73924         Remove unistr/u16-mblen.
73926 2010-01-10  Bruno Haible  <bruno@clisp.org>
73928         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73929         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73930         Reported by Brian Gough <bjg@gnu.org> and
73931         Chris Clayton <chris2553@googlemail.com> via
73932         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73934 2010-01-09  Bruno Haible  <bruno@clisp.org>
73936         unistr/u16-to-u32: Reject invalid input.
73937         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
73938         u16_mbtouc.
73939         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
73940         Remove unistr/u16-mbtouc.
73942         unistr/u16-to-u8: Reject invalid input.
73943         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
73944         u16_mbtouc.
73945         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
73946         Remove unistr/u16-mbtouc.
73948         unistr/u8-to-u32: Reject invalid input.
73949         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73950         u8_mbtouc.
73951         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73952         Remove unistr/u8-mbtouc.
73954         unistr/u8-to-u16: Reject invalid input.
73955         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73956         u8_mbtouc.
73957         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73958         Remove unistr/u8-mbtouc.
73960 2010-01-09  Bruno Haible  <bruno@clisp.org>
73962         Tests for module 'getlogin'.
73963         * modules/getlogin-tests: New file.
73964         * tests/test-getlogin.c: New file.
73966         New module 'getlogin'.
73967         * lib/unistd.in.h (getlogin): New declaration.
73968         * lib/getlogin.c: New file.
73969         * m4/getlogin.m4: New file.
73970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73971         HAVE_GETLOGIN.
73972         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73973         HAVE_GETLOGIN.
73974         * modules/getlogin: New file.
73975         * doc/posix-functions/getlogin.texi: Mention the new module.
73976         Reported by John W. Eaton <jwe@gnu.org>.
73978 2010-01-09  Bruno Haible  <bruno@clisp.org>
73980         getlogin_r: Support for native Windows.
73981         * lib/getlogin_r.c: Include <windows.h>
73982         (getlogin_r): Implement for native Windows.
73983         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73984         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73985         via John W. Eaton <jwe@gnu.org>.
73987 2010-01-09  Bruno Haible  <bruno@clisp.org>
73989         getlogin_r: Small fixes.
73990         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73991         succeeds.
73992         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73993         before testing whether getlogin_r is declared. No need to set
73994         HAVE_DECL_GETLOGIN_R to 1.
73995         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73997 2010-01-09  Bruno Haible  <bruno@clisp.org>
73999         * lib/unistd.in.h (getlogin_r): Add comment.
74001 2010-01-09  Bruno Haible  <bruno@clisp.org>
74003         Tests for module 'getlogin_r'.
74004         * modules/getlogin_r-tests: New file.
74005         * tests/test-getlogin_r.c: New file.
74007 2010-01-09  Jim Meyering  <meyering@redhat.com>
74009         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74010         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74011         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74013 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74015         * lib/dup2.c (rpl_dup2): Improve comment.
74017 2010-01-08  Eric Blake  <ebb9@byu.net>
74019         maint.mk: allow packages to add makefile @@ exceptions
74020         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74021         (sc_makefile_check): Rename...
74022         (sc_makefile_at_at_check): ...to this, and use hook.
74024         dup2: work around mingw bug
74025         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74026         Reported by Simon Josefsson.
74028 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74030         glob: Fix C++ compilation.
74031         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74032         C++.
74034 2010-01-07  Bruno Haible  <bruno@clisp.org>
74036         Fix indentation of wctype.in.h, broken since 2007-01-06.
74037         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74039 2010-01-07  Bruno Haible  <bruno@clisp.org>
74041         mbslen: Avoid collision with system function.
74042         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74043         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74044         * m4/mbslen.m4: New file.
74045         * modules/mbslen (Files): Add it.
74046         (configure.ac): Invoke gl_MBSLEN.
74047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74048         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74049         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74050         via Ian Beckwith <ianb@erislabs.net>.
74052 2010-01-07  Bruno Haible  <bruno@clisp.org>
74054         dirent: Document the last fix.
74055         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74057 2010-01-07  Bruno Haible  <bruno@clisp.org>
74059         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74060         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74061         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74062         va_list are defined.
74063         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74064         Reported by Eric Blake.
74066 2010-01-07  Bruno Haible  <bruno@clisp.org>
74068         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74069         * modules/xlist (Depends-on): Add 'list',
74070         * modules/xoset (Depends-on): Add 'oset'.
74071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74073 2010-01-07  Bruno Haible  <bruno@clisp.org>
74075         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74076         * doc/posix-functions/strncasecmp.texi: Likewise.
74078 2010-01-07  Bruno Haible  <bruno@clisp.org>
74080         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74082 2010-01-07  John W. Eaton  <jwe@octave.org>
74084         wctype: allow C++ use
74085         * lib/wctype.in.h: Add extern "C" block for C++.
74087 2010-01-06  Eric Blake  <ebb9@byu.net>
74089         maint.mk: detect incorrect GFDL usage
74090         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74092 2010-01-06  Jim Meyering  <meyering@redhat.com>
74093         and Eric Blake  <ebb9@byu.net>
74095         maint.mk: ignore multi-line copyright in NEWS
74096         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74098 2010-01-06  Eric Blake  <ebb9@byu.net>
74100         select: add missing dependency
74101         * modules/select-tests (Depends-on): Move sockets dependency...
74102         * modules/select (Depends-on): ...here.
74103         Reported by Ian Beckwith.
74105         doc: regenerate INSTALL
74106         * doc/INSTALL: Reflect recent autoconf update.
74107         * doc/INSTALL.ISO: Likewise.
74108         * doc/INSTALL.UTF-8: Likewise.
74110         pread: fix compilation on glibc
74111         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74112         Reported by Ralf Wildenhues.
74114         dirent: fix test failure
74115         * lib/dirent.in.h (includes): Guarantee ino_t.
74116         Reported by Ralf Wildenhues.
74118 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74120         linkat, renameat: avoid bad free
74121         * lib/at-func2.c (at_func2): Fix typo.
74122         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74124 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74126         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74127         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74128         to avoid failure of symlink test later.
74130 2010-01-06  Eric Blake  <ebb9@byu.net>
74132         stdio, unistd: guarantee ssize_t
74133         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74134         2008 are exposed when needed.
74135         * lib/stdio.in.h (includes): Likewise.
74136         Reported by Ralf Wildenhues.
74138 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74140         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74141         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74142         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74144 2010-01-06  Jim Meyering  <meyering@redhat.com>
74146         readtokens: this module *does* require xalloc.h
74147         It uses only functions that were omitted by the old syntax-check rule.
74148         * lib/readtokens.c: Include "xalloc.h" once again.
74149         * modules/readtokens (Depends-on): Add xalloc.
74150         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74152 2010-01-05  Eric Blake  <ebb9@byu.net>
74154         maint: support 'make announcement' from a VPATH build
74155         * top/maint.mk (announcement): Look for correct NEWS file.
74157 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74159         utimens (fdutimens): ignore a negative FD, per contract
74160         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74161         when we have a valid file descriptor.  Otherwise, using a brand
74162         new glibc (with just-patched futimens that now fails with EBADF)
74163         would cause this function to fail with ENOSYS.
74164         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74165         See also http://bugzilla.redhat.com/552320.
74167 2010-01-05  Eric Blake  <ebb9@byu.net>
74169         strcase: document what it provides
74170         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74171         gnulib module.
74172         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74173         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74175 2010-01-05  Jim Meyering  <meyering@redhat.com>
74177         maint: remove useless inclusions of "xalloc.h"
74178         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74179         * lib/readtokens.c: Likewise.
74180         * lib/same.c: Likewise.
74181         * modules/getloadavg (Depends-on): Remove xalloc.
74182         * modules/readtokens: Likewise.
74183         * modules/same: Likewise.
74185         maint.mk: include 4 more function names in alloca.h-checking regexp
74186         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74187         regexp.  Before, we would give a false-positive (saying alloca.h
74188         is included unnecessarily) when the only uses involved omitted symbols.
74190         xalloc.h: use consistent formatting
74191         * lib/xalloc.h: Move declarations to start in the first column.
74193 2010-01-05  Eric Blake  <ebb9@byu.net>
74195         mkdir: avoid xalloc
74196         * lib/mkdir.c (includes): Drop unused header.
74197         Reported by John W. Eaton.
74199 2010-01-04  Jim Meyering  <meyering@redhat.com>
74201         nl_langinfo: avoid configure-time syntax error
74202         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74203         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74204         the empty string.  Don't let that provoke a shell syntax error.
74206         regcomp, regexec, fnmatch: avoid array bounds read error
74207         * lib/regcomp.c (build_equiv_class): From glibc:
74208         Use only the low 24 bits of a findidx return value as an index
74209         into the weights array.  Patch by Ulrich Drepper:
74210         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74211         * lib/regexec.c (check_node_accept_bytes): Likewise.
74212         * lib/fnmatch_loop.c (FCT): Likewise.
74214         regcomp: skip collseq lookup when there are no rules
74215         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74218         regcomp: recognize ill-formed { } expressions
74219         * lib/regcomp.c (parse_dup_op): From glibc:
74220         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74222         regcomp: fix typo in comment
74223         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74224         s/satisfy/satisfies/.
74226         regcomp: sync from glibc: remove dead store
74227         * lib/regcomp.c (duplicate_node_closure): Remove useless
74228         search_duplicated_node call and dead store.
74230         regcomp: sync from glibc; always use nl_langinfo
74231         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74232         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74233         * modules/regex (Depends-on): Add nl_langinfo.
74235 2010-01-04  Eric Blake  <ebb9@byu.net>
74237         fdopendir: fix configure test
74238         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74240 2010-01-01  Bruno Haible  <bruno@clisp.org>
74242         wchar: Remove unused configure check.
74243         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74245 2010-01-01  Eric Blake  <ebb9@byu.net>
74247         headers: make check of system header explicit
74248         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74249         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74250         ourselves.
74251         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74253         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74254         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74255         internals.
74256         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74257         missing.
74258         Suggested by Bruno Haible.
74260 2010-01-01  Jim Meyering  <meyering@redhat.com>
74262         ChangeLog: tweak to eliminate unnecessary copyright line
74263         * ChangeLog: Remove a copyright line that was mistakenly updated
74264         by today's update-copyright run.  Reported by Eric Blake.
74266         test-update-copyright: don't let envvar setting cause test failure
74267         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74269 2010-01-01  Bruno Haible  <bruno@clisp.org>
74271         localename: Avoid gcc warning.
74272         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74273         function if it is not used.
74275 2010-01-01  Jim Meyering  <meyering@redhat.com>
74277         update nearly all FSF copyright year lists to include 2010
74278         Use the same procedure as for 2009, outlined in
74279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74281         version-etc: set COPYRIGHT_YEAR to 2010
74282         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74284 2009-12-31  Eric Blake  <ebb9@byu.net>
74286         doc: correct availability of cygwin 1.5.x getopt
74287         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74288         variables.
74289         * doc/posix-functions/opterr.texi (opterr): Likewise.
74290         * doc/posix-functions/optind.texi (optind): Likewise.
74291         * doc/posix-functions/optopt.texi (optopt): Likewise.
74292         * doc/posix-functions/tzname.texi (tzname): Likewise.
74294         openat: update maintainer
74295         * modules/openat (Maintainer): Add myself.
74297         utimens: avoid shadowing warning
74298         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74299         buffers into one, to avoid shadowing, as well as avoiding a
74300         redundant stat.
74301         Reported by Jim Meyering.
74303         test-dup2: avoid compiler warning
74304         * tests/test-dup2.c (is_inheritable): Only define if used.
74306 2010-01-01  Bruno Haible  <bruno@clisp.org>
74308         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74309         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74310         defined, use wctomb instead of wcrtomb.
74312 2010-01-01  Bruno Haible  <bruno@clisp.org>
74314         iconv: Reject native Solaris iconv.
74315         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74316         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74318 2009-12-31  Bruno Haible  <bruno@clisp.org>
74320         * tests/test-signal.c (main): Remove test of 'SIG'.
74322 2009-12-31  Bruno Haible  <bruno@clisp.org>
74324         spawn: Fix incomplete fix.
74325         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74326         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74327         warnings for GNULIB_POSIXCHECK again.
74328         Reported by Eric Blake.
74330 2009-12-31  Bruno Haible  <bruno@clisp.org>
74332         Avoid namespace pollution on glibc systems.
74333         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74334         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74335         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74336         glibc systems.
74338 2009-12-31  Bruno Haible  <bruno@clisp.org>
74340         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74341         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74342         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74343         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74344         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74345         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74346         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74348 2009-12-31  Bruno Haible  <bruno@clisp.org>
74350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74351         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74352         afterwards.
74354 2009-12-31  Bruno Haible  <bruno@clisp.org>
74356         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74357         SYS_UTSNAME_H.
74359 2009-12-31  Bruno Haible  <bruno@clisp.org>
74361         spawn: Fix misapplied patch.
74362         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74363         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74364         warnings for GNULIB_POSIXCHECK.
74366 2009-12-31  Bruno Haible  <bruno@clisp.org>
74368         times: Update after sys_times changed.
74369         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74370         * modules/times (Files): Add it.
74371         (configure.ac): Invoke gl_FUNC_TIMES.
74373 2009-12-31  Bruno Haible  <bruno@clisp.org>
74375         Use AC_C_INLINE where necessary.
74376         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74377         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74379         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74380         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74381         * m4/mbiter.m4 (gl_MBITER): Likewise.
74382         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74383         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74384         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74385         * modules/u64 (configure.ac): Likewise.
74387 2009-12-31  Bruno Haible  <bruno@clisp.org>
74389         Use AC_C_INLINE instead of module 'inline' where possible.
74390         * modules/inline (Description): Clarify purpose.
74391         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74392         * modules/count-one-bits (Depends-on): Remove inline.
74393         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74394         * modules/openat (Depends-on): Remove inline.
74395         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74396         instead of depending on module 'inline'.
74397         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74398         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74399         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74400         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74401         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74402         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74403         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74404         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74405         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74406         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74407         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74408         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74409         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74410         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74411         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74412         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74413         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74414         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74415         Likewise.
74416         * modules/unictype/property-ascii-hex-digit (Depends-on,
74417         configure.ac): Likewise.
74418         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74419         configure.ac): Likewise.
74420         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74421         configure.ac): Likewise.
74422         * modules/unictype/property-bidi-block-separator (Depends-on,
74423         configure.ac): Likewise.
74424         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74425         configure.ac): Likewise.
74426         * modules/unictype/property-bidi-common-separator (Depends-on,
74427         configure.ac): Likewise.
74428         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74429         Likewise.
74430         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74431         configure.ac): Likewise.
74432         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74433         configure.ac): Likewise.
74434         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74435         configure.ac): Likewise.
74436         * modules/unictype/property-bidi-european-digit (Depends-on,
74437         configure.ac): Likewise.
74438         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74439         configure.ac): Likewise.
74440         * modules/unictype/property-bidi-left-to-right (Depends-on,
74441         configure.ac): Likewise.
74442         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74443         configure.ac): Likewise.
74444         * modules/unictype/property-bidi-other-neutral (Depends-on,
74445         configure.ac): Likewise.
74446         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74447         Likewise.
74448         * modules/unictype/property-bidi-segment-separator (Depends-on,
74449         configure.ac): Likewise.
74450         * modules/unictype/property-bidi-whitespace (Depends-on,
74451         configure.ac): Likewise.
74452         * modules/unictype/property-combining (Depends-on, configure.ac):
74453         Likewise.
74454         * modules/unictype/property-composite (Depends-on, configure.ac):
74455         Likewise.
74456         * modules/unictype/property-currency-symbol (Depends-on,
74457         configure.ac): Likewise.
74458         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74459         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74460         Likewise.
74461         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74462         configure.ac): Likewise.
74463         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74464         Likewise.
74465         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74466         Likewise.
74467         * modules/unictype/property-extender (Depends-on, configure.ac):
74468         Likewise.
74469         * modules/unictype/property-format-control (Depends-on, configure.ac):
74470         Likewise.
74471         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74472         Likewise.
74473         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74474         Likewise.
74475         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74476         Likewise.
74477         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74478         Likewise.
74479         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74480         Likewise.
74481         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74482         Likewise.
74483         * modules/unictype/property-id-start (Depends-on, configure.ac):
74484         Likewise.
74485         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74486         Likewise.
74487         * modules/unictype/property-ids-binary-operator (Depends-on,
74488         configure.ac): Likewise.
74489         * modules/unictype/property-ids-trinary-operator (Depends-on,
74490         configure.ac): Likewise.
74491         * modules/unictype/property-ignorable-control (Depends-on,
74492         configure.ac): Likewise.
74493         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74494         Likewise.
74495         * modules/unictype/property-join-control (Depends-on, configure.ac):
74496         Likewise.
74497         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74498         Likewise.
74499         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74500         Likewise.
74501         * modules/unictype/property-logical-order-exception (Depends-on,
74502         configure.ac): Likewise.
74503         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74504         Likewise.
74505         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74506         * modules/unictype/property-non-break (Depends-on, configure.ac):
74507         Likewise.
74508         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74509         Likewise.
74510         * modules/unictype/property-numeric (Depends-on, configure.ac):
74511         Likewise.
74512         * modules/unictype/property-other-alphabetic (Depends-on,
74513         configure.ac): Likewise.
74514         * modules/unictype/property-other-default-ignorable-code-point
74515         (Depends-on, configure.ac): Likewise.
74516         * modules/unictype/property-other-grapheme-extend (Depends-on,
74517         configure.ac): Likewise.
74518         * modules/unictype/property-other-id-continue (Depends-on,
74519         configure.ac): Likewise.
74520         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
74521         Likewise.
74522         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
74523         Likewise.
74524         * modules/unictype/property-other-math (Depends-on, configure.ac):
74525         Likewise.
74526         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
74527         Likewise.
74528         * modules/unictype/property-paired-punctuation (Depends-on,
74529         configure.ac): Likewise.
74530         * modules/unictype/property-paragraph-separator (Depends-on,
74531         configure.ac): Likewise.
74532         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
74533         Likewise.
74534         * modules/unictype/property-pattern-white-space (Depends-on,
74535         configure.ac): Likewise.
74536         * modules/unictype/property-private-use (Depends-on, configure.ac):
74537         Likewise.
74538         * modules/unictype/property-punctuation (Depends-on, configure.ac):
74539         Likewise.
74540         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
74541         Likewise.
74542         * modules/unictype/property-radical (Depends-on, configure.ac):
74543         Likewise.
74544         * modules/unictype/property-sentence-terminal (Depends-on,
74545         configure.ac): Likewise.
74546         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
74547         Likewise.
74548         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
74549         * modules/unictype/property-terminal-punctuation (Depends-on,
74550         configure.ac): Likewise.
74551         * modules/unictype/property-titlecase (Depends-on, configure.ac):
74552         Likewise.
74553         * modules/unictype/property-unassigned-code-value (Depends-on,
74554         configure.ac): Likewise.
74555         * modules/unictype/property-unified-ideograph (Depends-on,
74556         configure.ac): Likewise.
74557         * modules/unictype/property-uppercase (Depends-on, configure.ac):
74558         Likewise.
74559         * modules/unictype/property-variation-selector (Depends-on,
74560         configure.ac): Likewise.
74561         * modules/unictype/property-white-space (Depends-on, configure.ac):
74562         Likewise.
74563         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
74564         Likewise.
74565         * modules/unictype/property-xid-start (Depends-on, configure.ac):
74566         Likewise.
74567         * modules/unictype/property-zero-width (Depends-on, configure.ac):
74568         Likewise.
74569         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
74570         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
74571         Likewise.
74573 2009-12-31  Bruno Haible  <bruno@clisp.org>
74575         Remove unnecessary AC_C_INLINE invocation.
74576         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
74577         since 2009-08-21.
74579 2009-12-31  Jim Meyering  <meyering@redhat.com>
74581         maint.mk: don't require explicit gpg_key_ID in cfg.mk
74582         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
74583         With this change, we can all remove the gpg_key_ID = ... definition
74584         from our respective cfg.mk files.
74586         maint.mk: create announcement template in ~/, not in /tmp
74587         * top/maint.mk (emit_upload_commands): Adjust.
74588         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
74589         Remove temporary file, .ci-msg.
74591 2009-12-31  Eric Blake  <ebb9@byu.net>
74593         link-warning: always build headers with link warnings
74594         * modules/arpa_inet (Makefile.am): Always build replacement
74595         header.
74596         * modules/ctype (Makefile.am): Likewise.
74597         * modules/dirent (Makefile.am): Likewise.
74598         * modules/inttypes (Makefile.am): Likewise.
74599         * modules/langinfo (Makefile.am): Likewise.
74600         * modules/locale (Makefile.am): Likewise.
74601         * modules/spawn (Makefile.am): Likewise.
74602         * modules/sys_file (Makefile.am): Likewise.
74603         * modules/sys_ioctl (Makefile.am): Likewise.
74604         * modules/sys_select (Makefile.am): Likewise.
74605         * modules/sys_socket (Makefile.am): Likewise.
74606         * modules/sys_times (Makefile.am): Likewise.
74607         * modules/sys_utsname (Makefile.am): Likewise.
74608         * modules/sys_wait (Makefile.am): Likewise.
74609         * modules/wchar (Makefile.am): Likewise.
74610         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
74611         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74612         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74613         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74614         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74615         Likewise.
74616         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74617         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74618         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74619         Likewise.
74620         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74621         Likewise.
74622         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74623         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74624         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74625         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74626         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74627         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74628         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74629         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74630         (gl_WCHAR_H_DEFAULTS): Likewise.
74632 2009-12-31  Eric Blake  <ebb9@byu.net>
74634         signal, spawn: use link warnings
74635         * lib/signal.in.h (sigset_t): Make unconditional.
74636         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74637         (sigpending, sigprocmask, sigaction): Add link warnings.
74638         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74639         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74640         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74641         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74642         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74643         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74644         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74645         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74646         (posix_spawn_file_actions_destroy)
74647         (posix_spawn_file_actions_addopen)
74648         (posix_spawn_file_actions_addclose)
74649         (posix_spawn_file_actions_adddup2): Likewise.
74650         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74651         * tests/test-signal.c (main): Enhance test.
74653         spawn: improve wrapper support
74654         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74655         (gl_SPAWN_H_DEFAULTS): New defaults.
74656         * modules/spawn (Makefile.am): Substitute them.
74657         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74658         Only declare if missing or broken.
74660         sys_times, sys_utsname: use include_next
74661         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74662         header.
74663         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74665         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74666         * modules/sys_times (Depends-on): Add include_next.
74667         (Makefile.am): Substitute additional values.
74668         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74669         * lib/sys_times.in.h (includes): Include native header, if
74670         available.
74671         * lib/sys_utsname.in.h (includes): Likewise.
74672         * tests/test-sys_times.c (main): Enhance test.
74674         fdutimensat: revert prior patch
74675         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74676         utimens.h.
74677         Reported by Bruno Haible.
74679 2009-12-30  Eric Blake  <ebb9@byu.net>
74681         sys_wait: drop link-warning dependency
74682         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74683         link-warning efforts.
74684         * lib/sys_wait.in.h: Likewise.
74686         fdutimensat: remove bogus dependency
74687         * modules/fdutimensat (Depends-on): Drop inline.
74689         unistd: fix typo
74690         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74692 2009-12-30  Bruno Haible  <bruno@clisp.org>
74694         Fix compilation error with Solaris cc.
74695         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74696         * lib/unicase/u16-is-invariant.c: Likewise.
74697         * lib/unicase/u32-is-invariant.c: Likewise.
74698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74700 2009-12-30  Bruno Haible  <bruno@clisp.org>
74702         Fix test crash.
74703         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74704         locales.
74705         Reported by Simon Josefsson <simon@josefsson.org>.
74707 2009-12-30  Bruno Haible  <bruno@clisp.org>
74709         Fix compilation error on most platforms.
74710         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74711         Reported by Simon Josefsson <simon@josefsson.org>
74712         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74714 2009-12-30  Eric Blake  <ebb9@byu.net>
74716         futimens, utimensat: work around ntfs-3g bug
74717         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74718         a ctime bug is present, and expand workaround to cover ntfs-3g.
74719         * lib/utimens.c (fdutimens, lutimens): Likewise.
74720         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74721         (validate_timespec): Adjust return value.
74722         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74723         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74724         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74726 2009-12-29  Eric Blake  <ebb9@byu.net>
74728         link-warning: make usage consistent
74729         * modules/ctype (Depends-on): Add link-warning.
74730         (Makefile.am): Update rules accordingly.
74731         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74732         * modules/locale (Depends-on, Makefile.am): Likewise.
74733         * modules/sys_file (Makefile.am): Likewise.
74734         * modules/getopt-posix (Makefile.am): Delete unused link warning
74735         efforts.
74736         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74737         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74738         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74739         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74741         stdio: remove unused variables
74742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74743         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74744         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74746         tests: test more substitute headers
74747         * modules/ctype-tests: New file.
74748         * modules/dirent-tests: Likewise.
74749         * modules/spawn-tests: Likewise.
74750         * modules/sys_file-tests: Likewise.
74751         * modules/sys_ioctl-tests: Likewise.
74752         * modules/sys_wait-tests: Likewise.
74753         * tests/test-ctype.c: Likewise.
74754         * tests/test-dirent.c: Likewise.
74755         * tests/test-spawn.c: Likewise.
74756         * tests/test-sys_file.c: Likewise.
74757         * tests/test-sys_ioctl.c: Likewise.
74758         * tests/test-sys_wait.c: Likewise.
74759         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74760         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74761         whether or not flock is in use.
74763         tests: remove License section from module
74764         * modules/arpa_inet-tests: Remove unneeded section.
74765         * modules/byteswap-tests: Likewise.
74766         * modules/ceilf-tests: Likewise.
74767         * modules/ceill-tests: Likewise.
74768         * modules/crypto/des-tests: Likewise.
74769         * modules/crypto/gc-arcfour-tests: Likewise.
74770         * modules/crypto/gc-arctwo-tests: Likewise.
74771         * modules/crypto/gc-des-tests: Likewise.
74772         * modules/crypto/gc-hmac-md5-tests: Likewise.
74773         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74774         * modules/crypto/gc-md2-tests: Likewise.
74775         * modules/crypto/gc-md4-tests: Likewise.
74776         * modules/crypto/gc-md5-tests: Likewise.
74777         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74778         * modules/crypto/gc-rijndael-tests: Likewise.
74779         * modules/crypto/gc-sha1-tests: Likewise.
74780         * modules/crypto/gc-tests: Likewise.
74781         * modules/crypto/md2-tests: Likewise.
74782         * modules/crypto/md4-tests: Likewise.
74783         * modules/fcntl-h-tests: Likewise.
74784         * modules/floorf-tests: Likewise.
74785         * modules/floorl-tests: Likewise.
74786         * modules/frexp-nolibm-tests: Likewise.
74787         * modules/frexp-tests: Likewise.
74788         * modules/frexpl-nolibm-tests: Likewise.
74789         * modules/frexpl-tests: Likewise.
74790         * modules/getaddrinfo-tests: Likewise.
74791         * modules/inttypes-tests: Likewise.
74792         * modules/isfinite-tests: Likewise.
74793         * modules/isinf-tests: Likewise.
74794         * modules/ldexpl-tests: Likewise.
74795         * modules/locale-tests: Likewise.
74796         * modules/math-tests: Likewise.
74797         * modules/netdb-tests: Likewise.
74798         * modules/netinet_in-tests: Likewise.
74799         * modules/printf-frexp-tests: Likewise.
74800         * modules/printf-frexpl-tests: Likewise.
74801         * modules/priv-set-tests: Likewise.
74802         * modules/random_r-tests: Likewise.
74803         * modules/round-tests: Likewise.
74804         * modules/roundf-tests: Likewise.
74805         * modules/roundl-tests: Likewise.
74806         * modules/search-tests: Likewise.
74807         * modules/select-tests: Likewise.
74808         * modules/signal-tests: Likewise.
74809         * modules/stdbool-tests: Likewise.
74810         * modules/stddef-tests: Likewise.
74811         * modules/stdint-tests: Likewise.
74812         * modules/stdio-tests: Likewise.
74813         * modules/stdlib-tests: Likewise.
74814         * modules/string-tests: Likewise.
74815         * modules/strings-tests: Likewise.
74816         * modules/sys_select-tests: Likewise.
74817         * modules/sys_socket-tests: Likewise.
74818         * modules/sys_stat-tests: Likewise.
74819         * modules/sys_time-tests: Likewise.
74820         * modules/sys_utsname-tests: Likewise.
74821         * modules/sysexits-tests: Likewise.
74822         * modules/time-tests: Likewise.
74823         * modules/trunc-tests: Likewise.
74824         * modules/truncf-tests: Likewise.
74825         * modules/truncl-tests: Likewise.
74826         * modules/tsearch-tests: Likewise.
74827         * modules/unistd-tests: Likewise.
74828         * modules/wchar-tests: Likewise.
74829         * modules/wctype-tests: Likewise.
74831         tests: fix license on several tests
74832         * tests/test-des.c: Update to GPLv3+.
74833         * tests/test-flock.c: Likewise.
74834         * tests/test-fsync.c: Likewise.
74835         * tests/test-futimens.h: Likewise.
74836         * tests/test-gc-arcfour.c: Likewise.
74837         * tests/test-gc-arctwo.c: Likewise.
74838         * tests/test-gc-des.c: Likewise.
74839         * tests/test-gc-hmac-md5.c: Likewise.
74840         * tests/test-gc-hmac-sha1.c: Likewise.
74841         * tests/test-gc-md2.c: Likewise.
74842         * tests/test-gc-md4.c: Likewise.
74843         * tests/test-gc-md5.c: Likewise.
74844         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74845         * tests/test-gc-rijndael.c: Likewise.
74846         * tests/test-gc-sha1.c: Likewise.
74847         * tests/test-gc.c: Likewise.
74848         * tests/test-getcwd.c: Likewise.
74849         * tests/test-link.c: Likewise.
74850         * tests/test-link.h: Likewise.
74851         * tests/test-lutimens.h: Likewise.
74852         * tests/test-md2.c: Likewise.
74853         * tests/test-md4.c: Likewise.
74854         * tests/test-mkdir.h: Likewise.
74855         * tests/test-rename.c: Likewise.
74856         * tests/test-rename.h: Likewise.
74857         * tests/test-safe-alloc.c: Likewise.
74858         * tests/test-utimens-common.h: Likewise.
74859         * tests/test-utimens.h: Likewise.
74861         maint: sync license texts
74862         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74863         * doc/gpl-3.0.texi: Revert copyright year update.
74864         * doc/lgpl-3.0.texi: Likewise.
74866 2009-12-29  Jim Meyering  <meyering@redhat.com>
74868         update nearly all FSF copyright year lists to include 2009
74869         The files named by the following are exempted:
74870             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74871               test -f "$dst" && { echo "$dst"; continue; }
74872               test -d "$dst" || continue
74873               echo "$dst"/$(basename "$src")
74874             done > exempt
74875             git ls-files tests/unictype >> exempt
74876         In the remaining files, convert to all-interval notation if
74877         - there is already at least one year interval like 2000-2003
74878         - the file is maintained by me
74879         - the file is in lib/uni*/, where that style already prevails
74880         Otherwise, use update-copyright's default.
74882 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74883         and Eric Blake  <ebb9@byu.net>
74885         tests: don't require debug system() to pass
74886         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74887         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74888         * tests/test-unlink.h (test_unlink_func): Likewise.
74889         * tests/test-fstatat.c (main): ...into callers.
74890         * tests/test-lstat.c (main): Likewise.
74891         * tests/test-rmdir.c (main): Likewise.
74892         * tests/test-unlink.c (main): Likewise.
74893         * tests/test-unlinkat.c (main): Likewise.
74894         * tests/test-areadlink-with-size.c (main): Don't require a
74895         debug-only system call to pass, aiding cross-testing to mingw.
74896         * tests/test-areadlink.c (main): Likewise.
74897         * tests/test-areadlinkat-with-size.c (main): Likewise.
74898         * tests/test-areadlinkat.c (main): Likewise.
74899         * tests/test-canonicalize-lgpl.c (main): Likewise.
74900         * tests/test-canonicalize.c (main): Likewise.
74901         * tests/test-chown.c (main): Likewise.
74902         * tests/test-fchownat.c (main): Likewise.
74903         * tests/test-lchown.c (main): Likewise.
74904         * tests/test-fdutimensat.c (main): Likewise.
74905         * tests/test-futimens.c (main): Likewise.
74906         * tests/test-link.c (main): Likewise.
74907         * tests/test-linkat.c (main): Likewise.
74908         * tests/test-mkdir.c (main): Likewise.
74909         * tests/test-mkdirat.c (main): Likewise.
74910         * tests/test-mkfifo.c (main): Likewise.
74911         * tests/test-mkfifoat.c (main): Likewise.
74912         * tests/test-mknod.c (main): Likewise.
74913         * tests/test-readlink.c (main): Likewise.
74914         * tests/test-remove.c (main): Likewise.
74915         * tests/test-rename.c (main): Likewise.
74916         * tests/test-renameat.c (main): Likewise.
74917         * tests/test-symlink.c (main): Likewise.
74918         * tests/test-symlinkat.c (main): Likewise.
74919         * tests/test-utimens.c (main): Likewise.
74920         * tests/test-utimensat.c (main): Likewise.
74922 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74924         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74925         on $(UNUSED_PARAMETER_H) to avoid build failure.
74927 2009-12-28  Jim Meyering  <meyering@redhat.com>
74929         update-copyright: you may specify a max. line length other than 72
74930         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74932         maint: use consistent FSF copyright line syntax
74933         * lib/posixtm.c: Add missing comma in FSF copyright line.
74934         * lib/posixtm.h: Likewise.
74935         * lib/getugroups.c: Add missing ", Inc.".
74937         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
74938         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
74939         FSF copyright line.  Remove trailing blanks.
74941 2009-12-28  Eric Blake  <ebb9@byu.net>
74943         test-dup2: reduce dependencies
74944         * modules/cloexec (Configure.ac): Set witness.
74945         * modules/dup2-tests (Depends-on): Drop cloexec.
74946         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74947         not present.
74948         Suggested by Bruno Haible.
74950 2009-12-26  Bruno Haible  <bruno@clisp.org>
74952         Remove an unneeded dependency.
74953         * modules/fseterr (Depends-on): Remove dup2.
74955 2009-12-26  Eric Blake  <ebb9@byu.net>
74957         tests: use macros.h in more places
74958         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74959         (ASSERT_STREAM): Provide default of stderr.
74960         * tests/test-dirent-safer.c: Include macros.h, using alternate
74961         stream for assertions.
74962         * tests/test-dup-safer.c: Likewise.
74963         * tests/test-freopen-safer.c: Likewise.
74964         * tests/test-getopt.c: Likewise.
74965         * tests/test-openat-safer.c: Likewise.
74966         * tests/test-pipe.c: Likewise.
74967         * tests/test-popen-safer.c: Likewise.
74968         * modules/dirent-safer-tests (Files): Include macros.h.
74969         * modules/unistd-safer-tests (Files): Likewise.
74970         * modules/freopen-safer-tests (Files): Likewise.
74971         * modules/getopt-posix-tests (Files): Likewise.
74972         * modules/openat-safer-tests (Files): Likewise.
74973         * modules/pipe-tests (Files): Likewise.
74975 2009-12-26  Bruno Haible  <bruno@clisp.org>
74977         javacomp-script: Portability fix.
74978         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74979         that it also works on Solaris.
74981 2009-12-26  Bruno Haible  <bruno@clisp.org>
74983         localename: Fix storage allocation of gl_locale_name_thread's result.
74984         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74985         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74986         all platforms that have 'uselocale'.
74987         (gl_locale_name_thread_unsafe): New function, extracted from
74988         gl_locale_name_thread.
74989         (gl_locale_name_thread): Call struniq on all platforms that have
74990         'uselocale'.
74991         * tests/test-localename.c (test_locale_name_thread): Check that the
74992         resulting strings are permanently allocated.
74993         * modules/localename-tests (Depends-on): Add strdup.
74995 2009-12-26  Bruno Haible  <bruno@clisp.org>
74997         * tests/test-localename.c (categories): Fill in the strings.
74999 2009-12-26  Jim Meyering  <meyering@redhat.com>
75001         isdir: complete the removal of m4/isdir.m4
75002         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75004         isdir: clean up, since at least grep still uses it
75005         * lib/isdir.c: Include "isdir.h".
75006         (S_ISDIR): Remove now-unneeded definition.
75007         * modules/isdir (Files): Add lib/isdir.h.
75008         * lib/isdir.h: New file, with declaration.
75009         * m4/isdir.m4: Remove file -- unneeded.
75011 2009-12-25  Bruno Haible  <bruno@clisp.org>
75013         selinux-h: Make generated .h files standalone.
75014         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75015         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75016         * lib/se-selinux.in.h: Likewise.
75017         * modules/selinux-h (Depends-on): Add unused-parameter.
75018         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75019         selinux/selinux.h and selinux/context.h.
75020         Suggested by Eric Blake.
75022 2009-12-25  Bruno Haible  <bruno@clisp.org>
75024         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75025         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75026         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75027         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75028         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75030 2009-12-24  Bruno Haible  <bruno@clisp.org>
75032         openat: Fix warning.
75033         * lib/openat-proc.c: Include <unistd.h>.
75035 2009-12-24  Bruno Haible  <bruno@clisp.org>
75037         New module 'unused-parameter'.
75038         * build-aux/unused-parameter.h: New file, extracted from earlier
75039         gnulib-common.m4.
75040         * modules/unused-parameter: New file.
75041         * lib/unistr.h: Include unused-parameter.h.
75042         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75043         _GL_UNUSED.
75044         * modules/unistr/base (Depends-on): Add unused-parameter.
75046 2009-12-24  Bruno Haible  <bruno@clisp.org>
75048         Add missing dependencies to 'extensions' module.
75049         * m4/extensions.m4: Add comment.
75050         * modules/accept4 (Depends-on): Add extensions.
75051         * modules/dup3 (Depends-on): Likewise.
75052         * modules/fcntl (Depends-on): Likewise.
75053         * modules/futimens (Depends-on): Likewise.
75054         * modules/mknod (Depends-on): Likewise.
75055         * modules/pipe2 (Depends-on): Likewise.
75056         * modules/stat-time (Depends-on): Likewise.
75057         * modules/strcasestr-simple (Depends-on): Likewise.
75058         * modules/strsignal (Depends-on): Likewise.
75059         * modules/utimensat (Depends-on): Likewise.
75060         * modules/localcharset (Depends-on): Likewise. Needed because of
75061         gl_FCNTL_O_FLAGS.
75062         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75063         AC_TYPE_MBSTATE_T.
75064         * modules/wcsnrtombs (Depends-on): Likewise.
75065         * modules/wcsrtombs (Depends-on): Likewise.
75067 2009-12-24  Bruno Haible  <bruno@clisp.org>
75069         binary-io: Avoid gcc warning due to SET_BINARY.
75070         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75071         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75073 2009-12-24  Bruno Haible  <bruno@clisp.org>
75075         Avoid future namespace pollution on glibc systems.
75076         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75077         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75078         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75079         glibc systems.
75081 2009-12-24  Bruno Haible  <bruno@clisp.org>
75083         Refactor common macros used in tests.
75084         * tests/macros.h: New file.
75085         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75086         and/or <stdlib.h>, if appropriate.
75087         (ASSERT, SIZEOF): Remove macros.
75088         * tests/test-areadlink-with-size.c: Likewise.
75089         * tests/test-areadlinkat.c: Likewise.
75090         * tests/test-areadlinkat-with-size.c: Likewise.
75091         * tests/test-argmatch.c: Likewise.
75092         * tests/test-argv-iter.c: Likewise.
75093         * tests/test-array-mergesort.c: Likewise.
75094         * tests/test-array_list.c: Likewise.
75095         * tests/test-array_oset.c: Likewise.
75096         * tests/test-avltree_list.c: Likewise.
75097         * tests/test-avltree_oset.c: Likewise.
75098         * tests/test-avltreehash_list.c: Likewise.
75099         * tests/test-base64.c: Likewise.
75100         * tests/test-binary-io.c: Likewise.
75101         * tests/test-bitrotate.c: Likewise.
75102         * tests/test-btowc.c: Likewise.
75103         * tests/test-byteswap.c: Likewise.
75104         * tests/test-c-ctype.c: Likewise.
75105         * tests/test-c-stack.c: Likewise.
75106         * tests/test-c-strcasecmp.c: Likewise.
75107         * tests/test-c-strcasestr.c: Likewise.
75108         * tests/test-c-strncasecmp.c: Likewise.
75109         * tests/test-c-strstr.c: Likewise.
75110         * tests/test-canonicalize-lgpl.c: Likewise.
75111         * tests/test-canonicalize.c: Likewise.
75112         * tests/test-carray_list.c: Likewise.
75113         * tests/test-ceilf1.c: Likewise.
75114         * tests/test-ceilf2.c: Likewise.
75115         * tests/test-ceill.c: Likewise.
75116         * tests/test-chown.c: Likewise.
75117         * tests/test-cloexec.c: Likewise.
75118         * tests/test-copy-acl.c: Likewise.
75119         * tests/test-copy-file.c: Likewise.
75120         * tests/test-count-one-bits.c: Likewise.
75121         * tests/test-dprintf-posix.c: Likewise.
75122         * tests/test-dup2.c: Likewise.
75123         * tests/test-dup3.c: Likewise.
75124         * tests/test-duplocale.c: Likewise.
75125         * tests/test-fbufmode.c: Likewise.
75126         * tests/test-fchdir.c: Likewise.
75127         * tests/test-fchownat.c: Likewise.
75128         * tests/test-fcntl-safer.c: Likewise.
75129         * tests/test-fcntl.c: Likewise.
75130         * tests/test-fdopendir.c: Likewise.
75131         * tests/test-fdutimensat.c: Likewise.
75132         * tests/test-fflush2.c: Likewise.
75133         * tests/test-file-has-acl.c: Likewise.
75134         * tests/test-filevercmp.c: Likewise.
75135         * tests/test-flock.c: Likewise.
75136         * tests/test-floorf1.c: Likewise.
75137         * tests/test-floorf2.c: Likewise.
75138         * tests/test-floorl.c: Likewise.
75139         * tests/test-fnmatch.c: Likewise.
75140         * tests/test-fopen.h: Likewise.
75141         * tests/test-fpending.c: Likewise.
75142         * tests/test-fprintf-posix.c: Likewise.
75143         * tests/test-fpurge.c: Likewise.
75144         * tests/test-freadable.c: Likewise.
75145         * tests/test-freadahead.c: Likewise.
75146         * tests/test-freading.c: Likewise.
75147         * tests/test-freadptr.c: Likewise.
75148         * tests/test-freadptr2.c: Likewise.
75149         * tests/test-freadseek.c: Likewise.
75150         * tests/test-freopen.c: Likewise.
75151         * tests/test-frexp.c: Likewise.
75152         * tests/test-frexpl.c: Likewise.
75153         * tests/test-fseek.c: Likewise.
75154         * tests/test-fseeko.c: Likewise.
75155         * tests/test-fstatat.c: Likewise.
75156         * tests/test-fstrcmp.c: Likewise.
75157         * tests/test-fsync.c: Likewise.
75158         * tests/test-ftell.c: Likewise.
75159         * tests/test-ftello.c: Likewise.
75160         * tests/test-func.c: Likewise.
75161         * tests/test-futimens.c: Likewise.
75162         * tests/test-fwritable.c: Likewise.
75163         * tests/test-fwriting.c: Likewise.
75164         * tests/test-getcwd.c: Likewise.
75165         * tests/test-getdate.c: Likewise.
75166         * tests/test-getdelim.c: Likewise.
75167         * tests/test-getdtablesize.c: Likewise.
75168         * tests/test-getgroups.c: Likewise.
75169         * tests/test-getline.c: Likewise.
75170         * tests/test-getndelim2.c: Likewise.
75171         * tests/test-glob.c: Likewise.
75172         * tests/test-hash.c: Likewise.
75173         * tests/test-i-ring.c: Likewise.
75174         * tests/test-iconv-utf.c: Likewise.
75175         * tests/test-iconv.c: Likewise.
75176         * tests/test-idpriv-drop.c: Likewise.
75177         * tests/test-idpriv-droptemp.c: Likewise.
75178         * tests/test-inet_ntop.c: Likewise.
75179         * tests/test-inet_pton.c: Likewise.
75180         * tests/test-isblank.c: Likewise.
75181         * tests/test-isfinite.c: Likewise.
75182         * tests/test-isinf.c: Likewise.
75183         * tests/test-isnan.c: Likewise.
75184         * tests/test-isnand.h: Likewise.
75185         * tests/test-isnanf.h: Likewise.
75186         * tests/test-isnanl.h: Likewise.
75187         * tests/test-lchown.c: Likewise.
75188         * tests/test-ldexpl.c: Likewise.
75189         * tests/test-link.c: Likewise.
75190         * tests/test-linkat.c: Likewise.
75191         * tests/test-linked_list.c: Likewise.
75192         * tests/test-linkedhash_list.c: Likewise.
75193         * tests/test-localename.c: Likewise.
75194         * tests/test-lseek.c: Likewise.
75195         * tests/test-lstat.c: Likewise.
75196         * tests/test-mbmemcasecmp.c: Likewise.
75197         * tests/test-mbmemcasecoll.c: Likewise.
75198         * tests/test-mbrtowc.c: Likewise.
75199         * tests/test-mbscasecmp.c: Likewise.
75200         * tests/test-mbscasestr1.c: Likewise.
75201         * tests/test-mbscasestr2.c: Likewise.
75202         * tests/test-mbscasestr3.c: Likewise.
75203         * tests/test-mbscasestr4.c: Likewise.
75204         * tests/test-mbschr.c: Likewise.
75205         * tests/test-mbscspn.c: Likewise.
75206         * tests/test-mbsinit.c: Likewise.
75207         * tests/test-mbsncasecmp.c: Likewise.
75208         * tests/test-mbsnrtowcs.c: Likewise.
75209         * tests/test-mbspbrk.c: Likewise.
75210         * tests/test-mbspcasecmp.c: Likewise.
75211         * tests/test-mbsrchr.c: Likewise.
75212         * tests/test-mbsrtowcs.c: Likewise.
75213         * tests/test-mbsspn.c: Likewise.
75214         * tests/test-mbsstr1.c: Likewise.
75215         * tests/test-mbsstr2.c: Likewise.
75216         * tests/test-mbsstr3.c: Likewise.
75217         * tests/test-memchr.c: Likewise.
75218         * tests/test-memchr2.c: Likewise.
75219         * tests/test-memcmp.c: Likewise.
75220         * tests/test-memmem.c: Likewise.
75221         * tests/test-memrchr.c: Likewise.
75222         * tests/test-mkdir.c: Likewise.
75223         * tests/test-mkdirat.c: Likewise.
75224         * tests/test-mkfifo.c: Likewise.
75225         * tests/test-mkfifoat.c: Likewise.
75226         * tests/test-mknod.c: Likewise.
75227         * tests/test-nanosleep.c: Likewise.
75228         * tests/test-nl_langinfo.c: Likewise.
75229         * tests/test-obstack-printf.c: Likewise.
75230         * tests/test-open.c: Likewise.
75231         * tests/test-openat.c: Likewise.
75232         * tests/test-pipe-filter-gi1.c: Likewise.
75233         * tests/test-pipe-filter-gi2-main.c: Likewise.
75234         * tests/test-pipe-filter-ii1.c: Likewise.
75235         * tests/test-pipe-filter-ii2-main.c: Likewise.
75236         * tests/test-pipe2.c: Likewise.
75237         * tests/test-popen.h: Likewise.
75238         * tests/test-posixtm.c: Likewise.
75239         * tests/test-pread.c: Likewise.
75240         * tests/test-printf-frexp.c: Likewise.
75241         * tests/test-printf-frexpl.c: Likewise.
75242         * tests/test-printf-posix.c: Likewise.
75243         * tests/test-priv-set.c: Likewise.
75244         * tests/test-quotearg.c: Likewise.
75245         * tests/test-random_r.c: Likewise.
75246         * tests/test-rawmemchr.c: Likewise.
75247         * tests/test-rbtree_list.c: Likewise.
75248         * tests/test-rbtree_oset.c: Likewise.
75249         * tests/test-rbtreehash_list.c: Likewise.
75250         * tests/test-readlink.c: Likewise.
75251         * tests/test-remove.c: Likewise.
75252         * tests/test-rename.c: Likewise.
75253         * tests/test-renameat.c: Likewise.
75254         * tests/test-rmdir.c: Likewise.
75255         * tests/test-round1.c: Likewise.
75256         * tests/test-roundf1.c: Likewise.
75257         * tests/test-roundl.c: Likewise.
75258         * tests/test-safe-alloc.c: Likewise.
75259         * tests/test-sameacls.c: Likewise.
75260         * tests/test-set-mode-acl.c: Likewise.
75261         * tests/test-setenv.c: Likewise.
75262         * tests/test-sigaction.c: Likewise.
75263         * tests/test-signbit.c: Likewise.
75264         * tests/test-sleep.c: Likewise.
75265         * tests/test-snprintf-posix.c: Likewise.
75266         * tests/test-snprintf.c: Likewise.
75267         * tests/test-sprintf-posix.c: Likewise.
75268         * tests/test-stat-time.c: Likewise.
75269         * tests/test-stat.c: Likewise.
75270         * tests/test-strcasestr.c: Likewise.
75271         * tests/test-strchrnul.c: Likewise.
75272         * tests/test-strerror.c: Likewise.
75273         * tests/test-striconv.c: Likewise.
75274         * tests/test-striconveh.c: Likewise.
75275         * tests/test-striconveha.c: Likewise.
75276         * tests/test-strsignal.c: Likewise.
75277         * tests/test-strstr.c: Likewise.
75278         * tests/test-strtod.c: Likewise.
75279         * tests/test-strverscmp.c: Likewise.
75280         * tests/test-symlink.c: Likewise.
75281         * tests/test-symlinkat.c: Likewise.
75282         * tests/test-trunc1.c: Likewise.
75283         * tests/test-trunc2.c: Likewise.
75284         * tests/test-truncf1.c: Likewise.
75285         * tests/test-truncf2.c: Likewise.
75286         * tests/test-truncl.c: Likewise.
75287         * tests/test-uname.c: Likewise.
75288         * tests/test-unlink.c: Likewise.
75289         * tests/test-unlinkat.c: Likewise.
75290         * tests/test-unsetenv.c: Likewise.
75291         * tests/test-usleep.c: Likewise.
75292         * tests/test-utimens.c: Likewise.
75293         * tests/test-utimensat.c: Likewise.
75294         * tests/test-vasnprintf-posix.c: Likewise.
75295         * tests/test-vasnprintf-posix2.c: Likewise.
75296         * tests/test-vasnprintf.c: Likewise.
75297         * tests/test-vasprintf-posix.c: Likewise.
75298         * tests/test-vasprintf.c: Likewise.
75299         * tests/test-vdprintf-posix.c: Likewise.
75300         * tests/test-vfprintf-posix.c: Likewise.
75301         * tests/test-vprintf-posix.c: Likewise.
75302         * tests/test-vsnprintf-posix.c: Likewise.
75303         * tests/test-vsnprintf.c: Likewise.
75304         * tests/test-vsprintf-posix.c: Likewise.
75305         * tests/test-wcrtomb.c: Likewise.
75306         * tests/test-wcsnrtombs.c: Likewise.
75307         * tests/test-wcsrtombs.c: Likewise.
75308         * tests/test-wctype.c: Likewise.
75309         * tests/test-wcwidth.c: Likewise.
75310         * tests/test-xfprintf-posix.c: Likewise.
75311         * tests/test-xmemdup0.c: Likewise.
75312         * tests/test-xprintf-posix.c: Likewise.
75313         * tests/test-xvasprintf.c: Likewise.
75314         * tests/unicase/test-locale-language.c: Likewise.
75315         * tests/unicase/test-mapping-part1.h: Likewise.
75316         * tests/unicase/test-predicate-part1.h: Likewise.
75317         * tests/unicase/test-u8-casecmp.c: Likewise.
75318         * tests/unicase/test-u8-casecoll.c: Likewise.
75319         * tests/unicase/test-u8-casefold.c: Likewise.
75320         * tests/unicase/test-u8-is-cased.c: Likewise.
75321         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75322         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75323         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75324         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75325         * tests/unicase/test-u8-tolower.c: Likewise.
75326         * tests/unicase/test-u8-totitle.c: Likewise.
75327         * tests/unicase/test-u8-toupper.c: Likewise.
75328         * tests/unicase/test-u16-casecmp.c: Likewise.
75329         * tests/unicase/test-u16-casecoll.c: Likewise.
75330         * tests/unicase/test-u16-casefold.c: Likewise.
75331         * tests/unicase/test-u16-is-cased.c: Likewise.
75332         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75333         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75334         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75335         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75336         * tests/unicase/test-u16-tolower.c: Likewise.
75337         * tests/unicase/test-u16-totitle.c: Likewise.
75338         * tests/unicase/test-u16-toupper.c: Likewise.
75339         * tests/unicase/test-u32-casecmp.c: Likewise.
75340         * tests/unicase/test-u32-casecoll.c: Likewise.
75341         * tests/unicase/test-u32-casefold.c: Likewise.
75342         * tests/unicase/test-u32-is-cased.c: Likewise.
75343         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75344         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75345         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75346         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75347         * tests/unicase/test-u32-tolower.c: Likewise.
75348         * tests/unicase/test-u32-totitle.c: Likewise.
75349         * tests/unicase/test-u32-toupper.c: Likewise.
75350         * tests/unicase/test-ulc-casecmp.c: Likewise.
75351         * tests/unicase/test-ulc-casecoll.c: Likewise.
75352         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75353         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75354         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75355         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75356         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75357         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75358         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75359         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75360         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75361         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75362         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75363         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75364         * tests/unictype/test-bidi_byname.c: Likewise.
75365         * tests/unictype/test-bidi_name.c: Likewise.
75366         * tests/unictype/test-bidi_of.c: Likewise.
75367         * tests/unictype/test-bidi_test.c: Likewise.
75368         * tests/unictype/test-block_list.c: Likewise.
75369         * tests/unictype/test-block_of.c: Likewise.
75370         * tests/unictype/test-block_test.c: Likewise.
75371         * tests/unictype/test-categ_and.c: Likewise.
75372         * tests/unictype/test-categ_and_not.c: Likewise.
75373         * tests/unictype/test-categ_byname.c: Likewise.
75374         * tests/unictype/test-categ_name.c: Likewise.
75375         * tests/unictype/test-categ_none.c: Likewise.
75376         * tests/unictype/test-categ_of.c: Likewise.
75377         * tests/unictype/test-categ_or.c: Likewise.
75378         * tests/unictype/test-categ_test_withtable.c: Likewise.
75379         * tests/unictype/test-combining.c: Likewise.
75380         * tests/unictype/test-decdigit.c: Likewise.
75381         * tests/unictype/test-digit.c: Likewise.
75382         * tests/unictype/test-mirror.c: Likewise.
75383         * tests/unictype/test-numeric.c: Likewise.
75384         * tests/unictype/test-pr_byname.c: Likewise.
75385         * tests/unictype/test-pr_test.c: Likewise.
75386         * tests/unictype/test-predicate-part1.h: Likewise.
75387         * tests/unictype/test-scripts.c: Likewise.
75388         * tests/unictype/test-sy_c_ident.c: Likewise.
75389         * tests/unictype/test-sy_java_ident.c: Likewise.
75390         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75391         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75392         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75393         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75394         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75395         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75396         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75397         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75398         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75399         * tests/uninorm/test-compat-decomposition.c: Likewise.
75400         * tests/uninorm/test-composition.c: Likewise.
75401         * tests/uninorm/test-decomposing-form.c: Likewise.
75402         * tests/uninorm/test-decomposition.c: Likewise.
75403         * tests/uninorm/test-u8-nfc.c: Likewise.
75404         * tests/uninorm/test-u8-nfd.c: Likewise.
75405         * tests/uninorm/test-u8-nfkc.c: Likewise.
75406         * tests/uninorm/test-u8-nfkd.c: Likewise.
75407         * tests/uninorm/test-u8-normcmp.c: Likewise.
75408         * tests/uninorm/test-u8-normcoll.c: Likewise.
75409         * tests/uninorm/test-u16-nfc.c: Likewise.
75410         * tests/uninorm/test-u16-nfd.c: Likewise.
75411         * tests/uninorm/test-u16-nfkc.c: Likewise.
75412         * tests/uninorm/test-u16-nfkd.c: Likewise.
75413         * tests/uninorm/test-u16-normcmp.c: Likewise.
75414         * tests/uninorm/test-u16-normcoll.c: Likewise.
75415         * tests/uninorm/test-u32-nfc.c: Likewise.
75416         * tests/uninorm/test-u32-nfd.c: Likewise.
75417         * tests/uninorm/test-u32-nfkc.c: Likewise.
75418         * tests/uninorm/test-u32-nfkd.c: Likewise.
75419         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75420         * tests/uninorm/test-u32-normcmp.c: Likewise.
75421         * tests/uninorm/test-u32-normcoll.c: Likewise.
75422         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75423         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75424         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75425         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75426         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75427         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75428         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75429         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75430         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75431         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75432         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75433         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75434         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75435         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75436         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75437         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75438         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75439         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75440         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75441         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75442         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75443         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75444         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75445         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75446         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75447         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75448         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75449         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75450         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75451         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75452         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75453         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75454         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75455         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75456         * tests/uniwidth/test-u8-width.c: Likewise.
75457         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75458         * tests/uniwidth/test-u16-width.c: Likewise.
75459         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75460         * tests/uniwidth/test-u32-width.c: Likewise.
75461         * tests/uniwidth/test-uc_width.c: Likewise.
75462         * tests/uniwidth/test-uc_width2.c: Likewise.
75463         * modules/acl-tests (Files): Add tests/macros.h.
75464         * modules/areadlink-tests (Files): Likewise.
75465         * modules/areadlink-with-size-tests (Files): Likewise.
75466         * modules/areadlinkat-tests (Files): Likewise.
75467         * modules/areadlinkat-with-size-tests (Files): Likewise.
75468         * modules/argmatch-tests (Files): Likewise.
75469         * modules/argv-iter-tests (Files): Likewise.
75470         * modules/array-list-tests (Files): Likewise.
75471         * modules/array-mergesort-tests (Files): Likewise.
75472         * modules/array-oset-tests (Files): Likewise.
75473         * modules/avltree-list-tests (Files): Likewise.
75474         * modules/avltree-oset-tests (Files): Likewise.
75475         * modules/avltreehash-list-tests (Files): Likewise.
75476         * modules/base64-tests (Files): Likewise.
75477         * modules/binary-io-tests (Files): Likewise.
75478         * modules/bitrotate-tests (Files): Likewise.
75479         * modules/btowc-tests (Files): Likewise.
75480         * modules/byteswap-tests (Files): Likewise.
75481         * modules/c-ctype-tests (Files): Likewise.
75482         * modules/c-stack-tests (Files): Likewise.
75483         * modules/c-strcase-tests (Files): Likewise.
75484         * modules/c-strcasestr-tests (Files): Likewise.
75485         * modules/c-strstr-tests (Files): Likewise.
75486         * modules/canonicalize-lgpl-tests (Files): Likewise.
75487         * modules/canonicalize-tests (Files): Likewise.
75488         * modules/carray-list-tests (Files): Likewise.
75489         * modules/ceilf-tests (Files): Likewise.
75490         * modules/ceill-tests (Files): Likewise.
75491         * modules/chown-tests (Files): Likewise.
75492         * modules/cloexec-tests (Files): Likewise.
75493         * modules/copy-file-tests (Files): Likewise.
75494         * modules/count-one-bits-tests (Files): Likewise.
75495         * modules/dprintf-posix-tests (Files): Likewise.
75496         * modules/dup2-tests (Files): Likewise.
75497         * modules/dup3-tests (Files): Likewise.
75498         * modules/duplocale-tests (Files): Likewise.
75499         * modules/fbufmode-tests (Files): Likewise.
75500         * modules/fchdir-tests (Files): Likewise.
75501         * modules/fcntl-safer-tests (Files): Likewise.
75502         * modules/fcntl-tests (Files): Likewise.
75503         * modules/fdopendir-tests (Files): Likewise.
75504         * modules/fdutimensat-tests (Files): Likewise.
75505         * modules/fflush-tests (Files): Likewise.
75506         * modules/filevercmp-tests (Files): Likewise.
75507         * modules/flock-tests (Files): Likewise.
75508         * modules/floorf-tests (Files): Likewise.
75509         * modules/floorl-tests (Files): Likewise.
75510         * modules/fnmatch-tests (Files): Likewise.
75511         * modules/fopen-safer-tests (Files): Likewise.
75512         * modules/fopen-tests (Files): Likewise.
75513         * modules/fpending-tests (Files): Likewise.
75514         * modules/fprintf-posix-tests (Files): Likewise.
75515         * modules/fpurge-tests (Files): Likewise.
75516         * modules/freadable-tests (Files): Likewise.
75517         * modules/freadahead-tests (Files): Likewise.
75518         * modules/freading-tests (Files): Likewise.
75519         * modules/freadptr-tests (Files): Likewise.
75520         * modules/freadseek-tests (Files): Likewise.
75521         * modules/freopen-tests (Files): Likewise.
75522         * modules/frexp-nolibm-tests (Files): Likewise.
75523         * modules/frexp-tests (Files): Likewise.
75524         * modules/frexpl-nolibm-tests (Files): Likewise.
75525         * modules/frexpl-tests (Files): Likewise.
75526         * modules/fseek-tests (Files): Likewise.
75527         * modules/fseeko-tests (Files): Likewise.
75528         * modules/fstrcmp-tests (Files): Likewise.
75529         * modules/fsync-tests (Files): Likewise.
75530         * modules/ftell-tests (Files): Likewise.
75531         * modules/ftello-tests (Files): Likewise.
75532         * modules/func-tests (Files): Likewise.
75533         * modules/futimens-tests (Files): Likewise.
75534         * modules/fwritable-tests (Files): Likewise.
75535         * modules/fwriting-tests (Files): Likewise.
75536         * modules/getcwd-tests (Files): Likewise.
75537         * modules/getdate-tests (Files): Likewise.
75538         * modules/getdelim-tests (Files): Likewise.
75539         * modules/getdtablesize-tests (Files): Likewise.
75540         * modules/getgroups-tests (Files): Likewise.
75541         * modules/getline-tests (Files): Likewise.
75542         * modules/getndelim2-tests (Files): Likewise.
75543         * modules/glob-tests (Files): Likewise.
75544         * modules/hash-tests (Files): Likewise.
75545         * modules/i-ring-tests (Files): Likewise.
75546         * modules/iconv-tests (Files): Likewise.
75547         * modules/iconv_open-utf-tests (Files): Likewise.
75548         * modules/idpriv-drop-tests (Files): Likewise.
75549         * modules/idpriv-droptemp-tests (Files): Likewise.
75550         * modules/inet_ntop-tests (Files): Likewise.
75551         * modules/inet_pton-tests (Files): Likewise.
75552         * modules/isblank-tests (Files): Likewise.
75553         * modules/isfinite-tests (Files): Likewise.
75554         * modules/isinf-tests (Files): Likewise.
75555         * modules/isnan-tests (Files): Likewise.
75556         * modules/isnand-nolibm-tests (Files): Likewise.
75557         * modules/isnand-tests (Files): Likewise.
75558         * modules/isnanf-nolibm-tests (Files): Likewise.
75559         * modules/isnanf-tests (Files): Likewise.
75560         * modules/isnanl-nolibm-tests (Files): Likewise.
75561         * modules/isnanl-tests (Files): Likewise.
75562         * modules/lchown-tests (Files): Likewise.
75563         * modules/ldexpl-tests (Files): Likewise.
75564         * modules/link-tests (Files): Likewise.
75565         * modules/linkat-tests (Files): Likewise.
75566         * modules/linked-list-tests (Files): Likewise.
75567         * modules/linkedhash-list-tests (Files): Likewise.
75568         * modules/localename-tests (Files): Likewise.
75569         * modules/lseek-tests (Files): Likewise.
75570         * modules/lstat-tests (Files): Likewise.
75571         * modules/mbmemcasecmp-tests (Files): Likewise.
75572         * modules/mbmemcasecoll-tests (Files): Likewise.
75573         * modules/mbrtowc-tests (Files): Likewise.
75574         * modules/mbscasecmp-tests (Files): Likewise.
75575         * modules/mbscasestr-tests (Files): Likewise.
75576         * modules/mbschr-tests (Files): Likewise.
75577         * modules/mbscspn-tests (Files): Likewise.
75578         * modules/mbsinit-tests (Files): Likewise.
75579         * modules/mbsncasecmp-tests (Files): Likewise.
75580         * modules/mbsnrtowcs-tests (Files): Likewise.
75581         * modules/mbspbrk-tests (Files): Likewise.
75582         * modules/mbspcasecmp-tests (Files): Likewise.
75583         * modules/mbsrchr-tests (Files): Likewise.
75584         * modules/mbsrtowcs-tests (Files): Likewise.
75585         * modules/mbsspn-tests (Files): Likewise.
75586         * modules/mbsstr-tests (Files): Likewise.
75587         * modules/memchr-tests (Files): Likewise.
75588         * modules/memchr2-tests (Files): Likewise.
75589         * modules/memcmp-tests (Files): Likewise.
75590         * modules/memmem-tests (Files): Likewise.
75591         * modules/memrchr-tests (Files): Likewise.
75592         * modules/mkdir-tests (Files): Likewise.
75593         * modules/mkfifo-tests (Files): Likewise.
75594         * modules/mkfifoat-tests (Files): Likewise.
75595         * modules/mknod-tests (Files): Likewise.
75596         * modules/nanosleep-tests (Files): Likewise.
75597         * modules/nl_langinfo-tests (Files): Likewise.
75598         * modules/obstack-printf-tests (Files): Likewise.
75599         * modules/open-tests (Files): Likewise.
75600         * modules/openat-tests (Files): Likewise.
75601         * modules/pipe-filter-gi-tests (Files): Likewise.
75602         * modules/pipe-filter-ii-tests (Files): Likewise.
75603         * modules/pipe2-tests (Files): Likewise.
75604         * modules/popen-safer-tests (Files): Likewise.
75605         * modules/popen-tests (Files): Likewise.
75606         * modules/posixtm-tests (Files): Likewise.
75607         * modules/pread-tests (Files): Likewise.
75608         * modules/printf-frexp-tests (Files): Likewise.
75609         * modules/printf-frexpl-tests (Files): Likewise.
75610         * modules/printf-posix-tests (Files): Likewise.
75611         * modules/priv-set-tests (Files): Likewise.
75612         * modules/quotearg-tests (Files): Likewise.
75613         * modules/random_r-tests (Files): Likewise.
75614         * modules/rawmemchr-tests (Files): Likewise.
75615         * modules/rbtree-list-tests (Files): Likewise.
75616         * modules/rbtree-oset-tests (Files): Likewise.
75617         * modules/rbtreehash-list-tests (Files): Likewise.
75618         * modules/readlink-tests (Files): Likewise.
75619         * modules/remove-tests (Files): Likewise.
75620         * modules/rename-tests (Files): Likewise.
75621         * modules/renameat-tests (Files): Likewise.
75622         * modules/rmdir-tests (Files): Likewise.
75623         * modules/round-tests (Files): Likewise.
75624         * modules/roundf-tests (Files): Likewise.
75625         * modules/roundl-tests (Files): Likewise.
75626         * modules/safe-alloc-tests (Files): Likewise.
75627         * modules/setenv-tests (Files): Likewise.
75628         * modules/sigaction-tests (Files): Likewise.
75629         * modules/signbit-tests (Files): Likewise.
75630         * modules/sleep-tests (Files): Likewise.
75631         * modules/snprintf-posix-tests (Files): Likewise.
75632         * modules/snprintf-tests (Files): Likewise.
75633         * modules/sprintf-posix-tests (Files): Likewise.
75634         * modules/stat-tests (Files): Likewise.
75635         * modules/stat-time-tests (Files): Likewise.
75636         * modules/strcasestr-tests (Files): Likewise.
75637         * modules/strchrnul-tests (Files): Likewise.
75638         * modules/strerror-tests (Files): Likewise.
75639         * modules/striconv-tests (Files): Likewise.
75640         * modules/striconveh-tests (Files): Likewise.
75641         * modules/striconveha-tests (Files): Likewise.
75642         * modules/strsignal-tests (Files): Likewise.
75643         * modules/strstr-tests (Files): Likewise.
75644         * modules/strtod-tests (Files): Likewise.
75645         * modules/strverscmp-tests (Files): Likewise.
75646         * modules/symlink-tests (Files): Likewise.
75647         * modules/symlinkat-tests (Files): Likewise.
75648         * modules/trunc-tests (Files): Likewise.
75649         * modules/truncf-tests (Files): Likewise.
75650         * modules/truncl-tests (Files): Likewise.
75651         * modules/uname-tests (Files): Likewise.
75652         * modules/unicase/cased-tests (Files): Likewise.
75653         * modules/unicase/ignorable-tests (Files): Likewise.
75654         * modules/unicase/locale-language-tests (Files): Likewise.
75655         * modules/unicase/tolower-tests (Files): Likewise.
75656         * modules/unicase/totitle-tests (Files): Likewise.
75657         * modules/unicase/toupper-tests (Files): Likewise.
75658         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75659         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75660         * modules/unicase/u8-casefold-tests (Files): Likewise.
75661         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75662         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75663         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75664         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75665         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75666         * modules/unicase/u8-tolower-tests (Files): Likewise.
75667         * modules/unicase/u8-totitle-tests (Files): Likewise.
75668         * modules/unicase/u8-toupper-tests (Files): Likewise.
75669         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75670         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75671         * modules/unicase/u16-casefold-tests (Files): Likewise.
75672         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75673         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75674         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75675         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75676         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75677         * modules/unicase/u16-tolower-tests (Files): Likewise.
75678         * modules/unicase/u16-totitle-tests (Files): Likewise.
75679         * modules/unicase/u16-toupper-tests (Files): Likewise.
75680         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75681         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75682         * modules/unicase/u32-casefold-tests (Files): Likewise.
75683         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75684         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75685         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75686         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75687         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75688         * modules/unicase/u32-tolower-tests (Files): Likewise.
75689         * modules/unicase/u32-totitle-tests (Files): Likewise.
75690         * modules/unicase/u32-toupper-tests (Files): Likewise.
75691         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75692         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75693         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75694         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75695         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75696         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75697         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75698         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75699         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75700         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75701         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75702         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75703         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75704         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75705         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75706         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75707         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75708         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75709         * modules/unictype/block-list-tests (Files): Likewise.
75710         * modules/unictype/block-of-tests (Files): Likewise.
75711         * modules/unictype/block-test-tests (Files): Likewise.
75712         * modules/unictype/category-C-tests (Files): Likewise.
75713         * modules/unictype/category-Cc-tests (Files): Likewise.
75714         * modules/unictype/category-Cf-tests (Files): Likewise.
75715         * modules/unictype/category-Cn-tests (Files): Likewise.
75716         * modules/unictype/category-Co-tests (Files): Likewise.
75717         * modules/unictype/category-Cs-tests (Files): Likewise.
75718         * modules/unictype/category-L-tests (Files): Likewise.
75719         * modules/unictype/category-Ll-tests (Files): Likewise.
75720         * modules/unictype/category-Lm-tests (Files): Likewise.
75721         * modules/unictype/category-Lo-tests (Files): Likewise.
75722         * modules/unictype/category-Lt-tests (Files): Likewise.
75723         * modules/unictype/category-Lu-tests (Files): Likewise.
75724         * modules/unictype/category-M-tests (Files): Likewise.
75725         * modules/unictype/category-Mc-tests (Files): Likewise.
75726         * modules/unictype/category-Me-tests (Files): Likewise.
75727         * modules/unictype/category-Mn-tests (Files): Likewise.
75728         * modules/unictype/category-N-tests (Files): Likewise.
75729         * modules/unictype/category-Nd-tests (Files): Likewise.
75730         * modules/unictype/category-Nl-tests (Files): Likewise.
75731         * modules/unictype/category-No-tests (Files): Likewise.
75732         * modules/unictype/category-P-tests (Files): Likewise.
75733         * modules/unictype/category-Pc-tests (Files): Likewise.
75734         * modules/unictype/category-Pd-tests (Files): Likewise.
75735         * modules/unictype/category-Pe-tests (Files): Likewise.
75736         * modules/unictype/category-Pf-tests (Files): Likewise.
75737         * modules/unictype/category-Pi-tests (Files): Likewise.
75738         * modules/unictype/category-Po-tests (Files): Likewise.
75739         * modules/unictype/category-Ps-tests (Files): Likewise.
75740         * modules/unictype/category-S-tests (Files): Likewise.
75741         * modules/unictype/category-Sc-tests (Files): Likewise.
75742         * modules/unictype/category-Sk-tests (Files): Likewise.
75743         * modules/unictype/category-Sm-tests (Files): Likewise.
75744         * modules/unictype/category-So-tests (Files): Likewise.
75745         * modules/unictype/category-Z-tests (Files): Likewise.
75746         * modules/unictype/category-Zl-tests (Files): Likewise.
75747         * modules/unictype/category-Zp-tests (Files): Likewise.
75748         * modules/unictype/category-Zs-tests (Files): Likewise.
75749         * modules/unictype/category-and-not-tests (Files): Likewise.
75750         * modules/unictype/category-and-tests (Files): Likewise.
75751         * modules/unictype/category-byname-tests (Files): Likewise.
75752         * modules/unictype/category-name-tests (Files): Likewise.
75753         * modules/unictype/category-none-tests (Files): Likewise.
75754         * modules/unictype/category-of-tests (Files): Likewise.
75755         * modules/unictype/category-or-tests (Files): Likewise.
75756         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75757         * modules/unictype/combining-class-tests (Files): Likewise.
75758         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75759         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75760         * modules/unictype/ctype-blank-tests (Files): Likewise.
75761         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75762         * modules/unictype/ctype-digit-tests (Files): Likewise.
75763         * modules/unictype/ctype-graph-tests (Files): Likewise.
75764         * modules/unictype/ctype-lower-tests (Files): Likewise.
75765         * modules/unictype/ctype-print-tests (Files): Likewise.
75766         * modules/unictype/ctype-punct-tests (Files): Likewise.
75767         * modules/unictype/ctype-space-tests (Files): Likewise.
75768         * modules/unictype/ctype-upper-tests (Files): Likewise.
75769         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75770         * modules/unictype/decimal-digit-tests (Files): Likewise.
75771         * modules/unictype/digit-tests (Files): Likewise.
75772         * modules/unictype/mirror-tests (Files): Likewise.
75773         * modules/unictype/numeric-tests (Files): Likewise.
75774         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75775         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75776         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75777         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75778         Likewise.
75779         * modules/unictype/property-bidi-block-separator-tests (Files):
75780         Likewise.
75781         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75782         Likewise.
75783         * modules/unictype/property-bidi-common-separator-tests (Files):
75784         Likewise.
75785         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75786         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75787         Likewise.
75788         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75789         Likewise.
75790         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75791         Likewise.
75792         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75793         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75794         Likewise.
75795         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75796         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75797         Likewise.
75798         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75799         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75800         * modules/unictype/property-bidi-segment-separator-tests (Files):
75801         Likewise.
75802         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75803         * modules/unictype/property-byname-tests (Files): Likewise.
75804         * modules/unictype/property-combining-tests (Files): Likewise.
75805         * modules/unictype/property-composite-tests (Files): Likewise.
75806         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75807         * modules/unictype/property-dash-tests (Files): Likewise.
75808         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75809         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75810         Likewise.
75811         * modules/unictype/property-deprecated-tests (Files): Likewise.
75812         * modules/unictype/property-diacritic-tests (Files): Likewise.
75813         * modules/unictype/property-extender-tests (Files): Likewise.
75814         * modules/unictype/property-format-control-tests (Files): Likewise.
75815         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75816         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75817         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75818         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75819         * modules/unictype/property-hyphen-tests (Files): Likewise.
75820         * modules/unictype/property-id-continue-tests (Files): Likewise.
75821         * modules/unictype/property-id-start-tests (Files): Likewise.
75822         * modules/unictype/property-ideographic-tests (Files): Likewise.
75823         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75824         * modules/unictype/property-ids-trinary-operator-tests (Files):
75825         Likewise.
75826         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75827         * modules/unictype/property-iso-control-tests (Files): Likewise.
75828         * modules/unictype/property-join-control-tests (Files): Likewise.
75829         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75830         * modules/unictype/property-line-separator-tests (Files): Likewise.
75831         * modules/unictype/property-logical-order-exception-tests (Files):
75832         Likewise.
75833         * modules/unictype/property-lowercase-tests (Files): Likewise.
75834         * modules/unictype/property-math-tests (Files): Likewise.
75835         * modules/unictype/property-non-break-tests (Files): Likewise.
75836         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75837         * modules/unictype/property-numeric-tests (Files): Likewise.
75838         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75839         * modules/unictype/property-other-default-ignorable-code-point-tests
75840         (Files): Likewise.
75841         * modules/unictype/property-other-grapheme-extend-tests (Files):
75842         Likewise.
75843         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75844         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75845         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75846         * modules/unictype/property-other-math-tests (Files): Likewise.
75847         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75848         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75849         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75850         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75851         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75852         * modules/unictype/property-private-use-tests (Files): Likewise.
75853         * modules/unictype/property-punctuation-tests (Files): Likewise.
75854         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75855         * modules/unictype/property-radical-tests (Files): Likewise.
75856         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75857         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75858         * modules/unictype/property-space-tests (Files): Likewise.
75859         * modules/unictype/property-terminal-punctuation-tests (Files):
75860         Likewise.
75861         * modules/unictype/property-test-tests (Files): Likewise.
75862         * modules/unictype/property-titlecase-tests (Files): Likewise.
75863         * modules/unictype/property-unassigned-code-value-tests (Files):
75864         Likewise.
75865         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75866         * modules/unictype/property-uppercase-tests (Files): Likewise.
75867         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75868         * modules/unictype/property-white-space-tests (Files): Likewise.
75869         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75870         * modules/unictype/property-xid-start-tests (Files): Likewise.
75871         * modules/unictype/property-zero-width-tests (Files): Likewise.
75872         * modules/unictype/scripts-tests (Files): Likewise.
75873         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75874         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75875         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75876         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75877         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75878         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75879         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75880         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75881         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75882         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75883         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75884         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75885         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75886         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75887         * modules/uninorm/composition-tests (Files): Likewise.
75888         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75889         * modules/uninorm/decomposition-tests (Files): Likewise.
75890         * modules/uninorm/filter-tests (Files): Likewise.
75891         * modules/uninorm/nfc-tests (Files): Likewise.
75892         * modules/uninorm/nfd-tests (Files): Likewise.
75893         * modules/uninorm/nfkc-tests (Files): Likewise.
75894         * modules/uninorm/nfkd-tests (Files): Likewise.
75895         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75896         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75897         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75898         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75899         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75900         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75901         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75902         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75903         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75904         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75905         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75906         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75907         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75908         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75909         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75910         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75911         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75912         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75913         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75914         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75915         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75916         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75917         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75918         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75919         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75920         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75921         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75922         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75923         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75924         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75925         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75926         * modules/uniwidth/u8-width-tests (Files): Likewise.
75927         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75928         * modules/uniwidth/u16-width-tests (Files): Likewise.
75929         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75930         * modules/uniwidth/u32-width-tests (Files): Likewise.
75931         * modules/uniwidth/width-tests (Files): Likewise.
75932         * modules/unlink-tests (Files): Likewise.
75933         * modules/unsetenv-tests (Files): Likewise.
75934         * modules/usleep-tests (Files): Likewise.
75935         * modules/utimens-tests (Files): Likewise.
75936         * modules/utimensat-tests (Files): Likewise.
75937         * modules/vasnprintf-posix-tests (Files): Likewise.
75938         * modules/vasnprintf-tests (Files): Likewise.
75939         * modules/vasprintf-posix-tests (Files): Likewise.
75940         * modules/vasprintf-tests (Files): Likewise.
75941         * modules/vdprintf-posix-tests (Files): Likewise.
75942         * modules/vfprintf-posix-tests (Files): Likewise.
75943         * modules/vprintf-posix-tests (Files): Likewise.
75944         * modules/vsnprintf-posix-tests (Files): Likewise.
75945         * modules/vsnprintf-tests (Files): Likewise.
75946         * modules/vsprintf-posix-tests (Files): Likewise.
75947         * modules/wcrtomb-tests (Files): Likewise.
75948         * modules/wcsnrtombs-tests (Files): Likewise.
75949         * modules/wcsrtombs-tests (Files): Likewise.
75950         * modules/wctype-tests (Files): Likewise.
75951         * modules/wcwidth-tests (Files): Likewise.
75952         * modules/xmemdup0-tests (Files): Likewise.
75953         * modules/xprintf-posix-tests (Files): Likewise.
75954         * modules/xvasprintf-tests (Files): Likewise.
75956 2009-12-24  Eric Blake  <ebb9@byu.net>
75958         test-nanosleep: fix typo
75959         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75960         patch.
75961         Reported by Bruno Haible.
75963 2009-12-24  Bruno Haible  <bruno@clisp.org>
75965         Reduce namespace pollution on glibc systems.
75966         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75967         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75968         systems.
75969         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75970         <getopt.h> on glibc systems.
75971         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75972         systems.
75973         * lib/fcntl.c: Include <unistd.h> here instead.
75975 2009-12-24  Bruno Haible  <bruno@clisp.org>
75977         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75979 2009-12-24  Eric Blake  <ebb9@byu.net>
75981         tests: add signature checks
75982         * tests/signature.h (SIGNATURE_CHECK): New file.
75983         * modules/atexit-tests (Files): Use it.
75984         * modules/btowc-tests (Files): Likewise.
75985         * modules/canonicalize-lgpl-tests (Files): Likewise.
75986         * modules/ceilf-tests (Files): Likewise.
75987         * modules/ceill-tests (Files): Likewise.
75988         * modules/chown-tests (Files): Likewise.
75989         * modules/dprintf-posix-tests (Files): Likewise.
75990         * modules/dup2-tests (Files): Likewise.
75991         * modules/dup3-tests (Files): Likewise.
75992         * modules/duplocale-tests (Files): Likewise.
75993         * modules/fchdir-tests (Files): Likewise.
75994         * modules/fcntl-tests (Files): Likewise.
75995         * modules/fdopendir-tests (Files): Likewise.
75996         * modules/fflush-tests (Files): Likewise.
75997         * modules/flock-tests (Files): Likewise.
75998         * modules/floorf-tests (Files): Likewise.
75999         * modules/floorl-tests (Files): Likewise.
76000         * modules/fnmatch-tests (Files): Likewise.
76001         * modules/fopen-tests (Files): Likewise.
76002         * modules/fprintf-posix-tests (Files): Likewise.
76003         * modules/freopen-tests (Files): Likewise.
76004         * modules/frexp-nolibm-tests (Files): Likewise.
76005         * modules/frexp-tests (Files): Likewise.
76006         * modules/frexpl-nolibm-tests (Files): Likewise.
76007         * modules/frexpl-tests (Files): Likewise.
76008         * modules/fseek-tests (Files): Likewise.
76009         * modules/fseeko-tests (Files): Likewise.
76010         * modules/fsync-tests (Files): Likewise.
76011         * modules/ftell-tests (Files): Likewise.
76012         * modules/ftello-tests (Files): Likewise.
76013         * modules/futimens-tests (Files): Likewise.
76014         * modules/getaddrinfo-tests (Files): Likewise.
76015         * modules/getcwd-tests (Files): Likewise.
76016         * modules/getdelim-tests (Files): Likewise.
76017         * modules/getdtablesize-tests (Files): Likewise.
76018         * modules/getgroups-tests (Files): Likewise.
76019         * modules/gethostname-tests (Files): Likewise.
76020         * modules/getline-tests (Files): Likewise.
76021         * modules/getopt-posix-tests (Files): Likewise.
76022         * modules/gettimeofday-tests (Files): Likewise.
76023         * modules/glob-tests (Files): Likewise.
76024         * modules/iconv-tests (Files): Likewise.
76025         * modules/inet_ntop-tests (Files): Likewise.
76026         * modules/inet_pton-tests (Files): Likewise.
76027         * modules/isblank-tests (Files): Likewise.
76028         * modules/lchown-tests (Files): Likewise.
76029         * modules/ldexpl-tests (Files): Likewise.
76030         * modules/link-tests (Files): Likewise.
76031         * modules/linkat-tests (Files): Likewise.
76032         * modules/lseek-tests (Files): Likewise.
76033         * modules/lstat-tests (Files): Likewise.
76034         * modules/mbrtowc-tests (Files): Likewise.
76035         * modules/mbsinit-tests (Files): Likewise.
76036         * modules/mbsnrtowcs-tests (Files): Likewise.
76037         * modules/mbsrtowcs-tests (Files): Likewise.
76038         * modules/memchr-tests (Files): Likewise.
76039         * modules/memcmp-tests (Files): Likewise.
76040         * modules/memmem-tests (Files): Likewise.
76041         * modules/memrchr-tests (Files): Likewise.
76042         * modules/mkdir-tests (Files): Likewise.
76043         * modules/mkfifo-tests (Files): Likewise.
76044         * modules/mkfifoat-tests (Files): Likewise.
76045         * modules/mknod-tests (Files): Likewise.
76046         * modules/nanosleep-tests (Files): Likewise.
76047         * modules/nl_langinfo-tests (Files): Likewise.
76048         * modules/obstack-printf-tests (Files): Likewise.
76049         * modules/open-tests (Files): Likewise.
76050         * modules/openat-tests (Files): Likewise.
76051         * modules/perror-tests (Files): Likewise.
76052         * modules/pipe2-tests (Files): Likewise.
76053         * modules/poll-tests (Files): Likewise.
76054         * modules/popen-tests (Files): Likewise.
76055         * modules/posix_spawn-tests (Files): Likewise.
76056         * modules/posix_spawnp-tests (Files): Likewise.
76057         * modules/pread-tests (Files): Likewise.
76058         * modules/printf-posix-tests (Files): Likewise.
76059         * modules/pty-tests (Files): Likewise.
76060         * modules/random_r-tests (Files): Likewise.
76061         * modules/rawmemchr-tests (Files): Likewise.
76062         * modules/readlink-tests (Files): Likewise.
76063         * modules/remove-tests (Files): Likewise.
76064         * modules/rename-tests (Files): Likewise.
76065         * modules/renameat-tests (Files): Likewise.
76066         * modules/rmdir-tests (Files): Likewise.
76067         * modules/round-tests (Files): Likewise.
76068         * modules/roundf-tests (Files): Likewise.
76069         * modules/roundl-tests (Files): Likewise.
76070         * modules/select-tests (Files): Likewise.
76071         * modules/setenv-tests (Files): Likewise.
76072         * modules/sigaction-tests (Files): Likewise.
76073         * modules/sleep-tests (Files): Likewise.
76074         * modules/snprintf-posix-tests (Files): Likewise.
76075         * modules/snprintf-tests (Files): Likewise.
76076         * modules/sprintf-posix-tests (Files): Likewise.
76077         * modules/stat-tests (Files): Likewise.
76078         * modules/strcasestr-tests (Files): Likewise.
76079         * modules/strchrnul-tests (Files): Likewise.
76080         * modules/strerror-tests (Files): Likewise.
76081         * modules/strsignal-tests (Files): Likewise.
76082         * modules/strstr-tests (Files): Likewise.
76083         * modules/strtod-tests (Files): Likewise.
76084         * modules/strverscmp-tests (Files): Likewise.
76085         * modules/symlink-tests (Files): Likewise.
76086         * modules/symlinkat-tests (Files): Likewise.
76087         * modules/times-tests (Files): Likewise.
76088         * modules/trunc-tests (Files): Likewise.
76089         * modules/truncf-tests (Files): Likewise.
76090         * modules/truncl-tests (Files): Likewise.
76091         * modules/tsearch-tests (Files): Likewise.
76092         * modules/uname-tests (Files): Likewise.
76093         * modules/unlink-tests (Files): Likewise.
76094         * modules/unsetenv-tests (Files): Likewise.
76095         * modules/usleep-tests (Files): Likewise.
76096         * modules/utimensat-tests (Files): Likewise.
76097         * modules/vasprintf-tests (Files): Likewise.
76098         * modules/vdprintf-posix-tests (Files): Likewise.
76099         * modules/vfprintf-posix-tests (Files): Likewise.
76100         * modules/vprintf-posix-tests (Files): Likewise.
76101         * modules/vsnprintf-posix-tests (Files): Likewise.
76102         * modules/vsnprintf-tests (Files): Likewise.
76103         * modules/vsprintf-posix-tests (Files): Likewise.
76104         * modules/wcrtomb-tests (Files): Likewise.
76105         * modules/wcsnrtombs-tests (Files): Likewise.
76106         * modules/wcsrtombs-tests (Files): Likewise.
76107         * modules/wcwidth-tests (Files): Likewise.
76108         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76109         * tests/test-isinf.c (isinf): Likewise.
76110         * tests/test-isnan.c (isnan): Likewise.
76111         * tests/test-signbit.c (signbit): Likewise.
76112         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76113         declaration, either as macro or with correct signature.
76114         (select): Ensure function under test is declared with correct
76115         signature in correct header.
76116         * tests/test-atexit.c (atexit): Likewise.
76117         * tests/test-btowc.c (btowc): Likewise.
76118         * tests/test-canonicalize-lgpl.c (realpath)
76119         (canonicalize_file_name): Likewise.
76120         * tests/test-ceilf1.c (ceilf): Likewise.
76121         * tests/test-ceill.c (ceill): Likewise.
76122         * tests/test-chown.c (chown): Likewise.
76123         * tests/test-dprintf-posix.c (dprintf): Likewise.
76124         * tests/test-dup2.c (dup2): Likewise.
76125         * tests/test-dup3.c (dup3): Likewise.
76126         * tests/test-duplocale.c (duplocale): Likewise.
76127         * tests/test-fchdir.c (fchdir): Likewise.
76128         * tests/test-fchownat.c (fchownat): Likewise.
76129         * tests/test-fcntl.c (fcntl): Likewise.
76130         * tests/test-fdopendir.c (fdopendir): Likewise.
76131         * tests/test-fflush.c (fflush): Likewise.
76132         * tests/test-flock.c (flock): Likewise.
76133         * tests/test-floorf1.c (floorf): Likewise.
76134         * tests/test-floorl.c (floorl): Likewise.
76135         * tests/test-fnmatch.c (fnmatch): Likewise.
76136         * tests/test-fopen.c (fopen): Likewise.
76137         * tests/test-fprintf-posix.c (fprintf): Likewise.
76138         * tests/test-freopen.c (freopen): Likewise.
76139         * tests/test-frexp.c (frexp): Likewise.
76140         * tests/test-frexpl.c (frexpl): Likewise.
76141         * tests/test-fseek.c (fseek): Likewise.
76142         * tests/test-fseeko.c (fseeko): Likewise.
76143         * tests/test-fstatat.c (fstatat): Likewise.
76144         * tests/test-fsync.c (fsync): Likewise.
76145         * tests/test-ftell.c (ftell): Likewise.
76146         * tests/test-ftello.c (ftello): Likewise.
76147         * tests/test-futimens.c (futimens): Likewise.
76148         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76149         (gai_strerror): Likewise.
76150         * tests/test-getcwd.c (getcwd): Likewise.
76151         * tests/test-getdelim.c (getdelim): Likewise.
76152         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76153         * tests/test-getgroups.c (getgroups): Likewise.
76154         * tests/test-gethostname.c (gethostname): Likewise.
76155         * tests/test-getline.c (getline): Likewise.
76156         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76157         Likewise.
76158         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76159         * tests/test-glob.c (glob, globfree): Likewise.
76160         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76161         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76162         * tests/test-inet_pton.c (inet_pton): Likewise.
76163         * tests/test-isblank.c (isblank): Likewise.
76164         * tests/test-lchown.c (lchown): Likewise.
76165         * tests/test-ldexpl.c (ldexpl): Likewise.
76166         * tests/test-link.c (link): Likewise.
76167         * tests/test-linkat.c (linkat): Likewise.
76168         * tests/test-lseek.c (lseek): Likewise.
76169         * tests/test-lstat.c (lstat): Likewise.
76170         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76171         * tests/test-mbsinit.c (mbsinit): Likewise.
76172         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76173         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76174         * tests/test-memchr.c (memchr): Likewise.
76175         * tests/test-memcmp.c (memcmp): Likewise.
76176         * tests/test-memmem.c (memmem): Likewise.
76177         * tests/test-memrchr.c (memrchr): Likewise.
76178         * tests/test-mkdir.c (mkdir): Likewise.
76179         * tests/test-mkdirat.c (mkdirat): Likewise.
76180         * tests/test-mkfifo.c (mkfifo): Likewise.
76181         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76182         * tests/test-mknod.c (mknod): Likewise.
76183         * tests/test-nanosleep.c (nanosleep): Likewise.
76184         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76185         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76186         Likewise.
76187         * tests/test-open.c (open): Likewise.
76188         * tests/test-openat.c (openat): Likewise.
76189         * tests/test-perror.c (perror): Likewise.
76190         * tests/test-pipe2.c (pipe2): Likewise.
76191         * tests/test-poll.c (poll): Likewise.
76192         * tests/test-popen.c (popen, pclose): Likewise.
76193         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76194         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76195         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76196         (posix_spawn_file_actions_destroy)
76197         (posix_spawn_file_actions_addclose)
76198         (posix_spawn_file_actions_addopen)
76199         (posix_spawn_file_actions_adddup2): Likewise.
76200         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76201         * tests/test-pread.c (pread): Likewise.
76202         * tests/test-printf-posix.c (printf): Likewise.
76203         * tests/test-pty.c (openpty, forkpty): Likewise.
76204         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76205         (random_r): Likewise.
76206         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76207         * tests/test-readlink.c (readlink): Likewise.
76208         * tests/test-remove.c (remove): Likewise.
76209         * tests/test-rename.c (rename): Likewise.
76210         * tests/test-renameat.c (renameat): Likewise.
76211         * tests/test-rmdir.c (rmdir): Likewise.
76212         * tests/test-round1.c (round): Likewise.
76213         * tests/test-roundf1.c (roundf): Likewise.
76214         * tests/test-roundl.c (roundl): Likewise.
76215         * tests/test-setenv.c (setenv): Likewise.
76216         * tests/test-sigaction.c (sigaction): Likewise.
76217         * tests/test-sleep.c (sleep): Likewise.
76218         * tests/test-snprintf.c (snprintf): Likewise.
76219         * tests/test-sprintf-posix.c (sprintf): Likewise.
76220         * tests/test-stat.c (stat): Likewise.
76221         * tests/test-stpncpy.c (stpncpy): Likewise.
76222         * tests/test-strcasestr.c (strcasestr): Likewise.
76223         * tests/test-strchrnul.c (strchrnul): Likewise.
76224         * tests/test-strerror.c (strerror): Likewise.
76225         * tests/test-strsignal.c (strsignal): Likewise.
76226         * tests/test-strstr.c (strstr): Likewise.
76227         * tests/test-strtod.c (strtod): Likewise.
76228         * tests/test-strverscmp.c (strverscmp): Likewise.
76229         * tests/test-symlink.c (symlink): Likewise.
76230         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76231         * tests/test-times.c (times): Likewise.
76232         * tests/test-trunc1.c (trunc): Likewise.
76233         * tests/test-truncf1.c (truncf): Likewise.
76234         * tests/test-truncl.c (truncl): Likewise.
76235         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76236         Likewise.
76237         * tests/test-uname.c (uname): Likewise.
76238         * tests/test-unlink.c (unlink): Likewise.
76239         * tests/test-unlinkat.c (unlinkat): Likewise.
76240         * tests/test-unsetenv.c (unsetenv): Likewise.
76241         * tests/test-usleep.c (usleep): Likewise.
76242         * tests/test-utimensat.c (utimensat): Likewise.
76243         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76244         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76245         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76246         * tests/test-vprintf-posix.c (vprintf): Likewise.
76247         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76248         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76249         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76250         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76251         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76252         * tests/test-wcwidth.c (wcwidth): Likewise.
76254         build: pull in conditional headers during GNULIB_POSIXCHECK
76255         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76256         definitions from any conditionally-included headers.
76257         * lib/stdlib.in.h (includes): Likewise.
76258         * lib/unistd.in.h (includes): Likewise.
76260 2009-12-24  Bruno Haible  <bruno@clisp.org>
76262         * tests/test-argv-iter.c: Include header file being tested immediately
76263         after config.h.
76264         * tests/test-base64.c: Likewise.
76265         * tests/test-flock.c: Likewise.
76266         * tests/test-fsync.c: Likewise.
76267         * tests/test-getdate.c: Likewise.
76268         * tests/test-getndelim2.c: Likewise.
76269         * tests/test-isfinite.c: Likewise.
76270         * tests/test-isinf.c: Likewise.
76271         * tests/test-strerror.c: Likewise.
76272         * tests/test-strsignal.c: Likewise.
76274 2009-12-23  Eric Blake  <ebb9@byu.net>
76276         unistd: work around cygwin bug
76277         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76278         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76279         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76281 2009-12-23  Bruno Haible  <bruno@clisp.org>
76283         localename: More tests.
76284         * tests/test-localename.c (SIZEOF): New macro.
76285         (categories): New variable.
76286         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76287         test_locale_name_default): Add test w.r.t. thread locale.
76288         (test_locale_name_thread): New function.
76289         (main): Invoke it.
76291         localename: Make aware of thread locale.
76292         * lib/localename.h (gl_locale_name_thread): New declaration.
76293         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76294         behaviour with respect to thread locale.
76295         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76296         <langinfo.h>, glthread/lock.h.
76297         (SIZE_BITS): New macro.
76298         (string_hash): New function.
76299         (struct hash_node): New type.
76300         (HASH_TABLE_SIZE): New macro.
76301         (struniq_hash_table, struniq_lock): New variables.
76302         (struniq): New function.
76303         (gl_locale_name_thread): New function.
76304         (gl_locale_name): Invoke it.
76305         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76306         * modules/localename (Depends-on): Add lock.
76307         Reported by Mike Gran <spk121@yahoo.com>.
76309 2009-12-23  Eric Blake  <ebb9@byu.net>
76311         va-args: new module
76312         * modules/va-args: New file.
76313         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76314         * MODULES.html.sh (Core language properties): Mention it.
76316         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76317         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76318         named alias for __attribute__((__unused__)).
76319         * lib/chown.c: Update client.
76320         * lib/fchmodat.c: Likewise.
76321         * lib/fts.c: Likewise.
76322         * lib/getdate.y: Likewise.
76323         * lib/getgroups.c: Likewise.
76324         * lib/getopt.c: Likewise.
76325         * lib/getugroups.c: Likewise.
76326         * lib/mkdir.c: Likewise.
76327         * lib/mkfifo.c: Likewise.
76328         * lib/mkfifoat.c: Likewise.
76329         * lib/mknod.c: Likewise.
76330         * lib/mknodat.c: Likewise.
76331         * lib/readlink.c: Likewise.
76332         * lib/se-context.in.h: Likewise.
76333         * lib/se-selinux.in.h: Likewise.
76334         * lib/sockets.c: Likewise.
76335         * lib/symlink.c: Likewise.
76336         * lib/symlinkat.c: Likewise.
76337         * lib/unicodeio.c: Likewise.
76338         * lib/unistr.h: Likewise.
76339         * tests/test-areadlink.c: Likewise.
76340         * tests/test-areadlinkat.c: Likewise.
76341         * tests/test-filenamecat.c: Likewise.
76342         * tests/test-fseeko.c: Likewise.
76343         * tests/test-ftello.c: Likewise.
76344         * tests/test-getdate.c: Likewise.
76345         * tests/test-getgroups.c: Likewise.
76346         * tests/test-gethostname.c: Likewise.
76347         * tests/test-quotearg.c: Likewise.
76348         * tests/test-version-etc.c: Likewise.
76349         * tests/test-xalloc-die.c: Likewise.
76350         * tests/test-xfprintf-posix.c: Likewise.
76351         * tests/test-xprintf-posix.c: Likewise.
76352         * tests/test-xvasprintf.c: Likewise.
76354         tests: avoid compiler warnings
76355         * tests/test-fcntl.c (main): Delete unused parameters.
76356         * tests/test-freopen-safer.c (main): Likewise.
76357         * tests/test-xalloc-die.c (main): Mark unused parameters.
76358         * tests/test-fseeko.c (main): Likewise.
76359         * tests/test-ftello.c (main): Likewise.
76360         * tests/test-nanosleep.c (main): Avoid declaration warning.
76361         * tests/test-sleep.c (main): Likewise.
76362         * tests/test-unsetenv.c (main): Silence warning about string
76363         literal.
76364         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76366 2009-12-23  Bruno Haible  <bruno@clisp.org>
76368         * tests/test-localename.c (test_locale_name): New function, extracted
76369         from main. Also test mixed situations.
76370         (test_locale_name_posix, test_locale_name_environ,
76371         test_locale_name_default): New functions.
76372         (main): Invoke them all.
76373         * modules/localename-tests (configure.ac): Test for newlocale.
76375 2009-12-23  Bruno Haible  <bruno@clisp.org>
76377         unistd: Ensure getcwd gets declared before being overridden.
76378         * lib/unistd.in.h: Conditionally include <io.h>.
76380 2009-12-22  Bruno Haible  <bruno@clisp.org>
76382         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76383         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76384         (gl_WCHAR_H): Invoke it.
76385         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76386         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76387         Reported by Karl Berry <karl@freefriends.org>.
76389 2009-12-22  Eric Blake  <ebb9@byu.net>
76391         math, unistd: avoid redundant includes
76392         * lib/math.in.h (isnan): No need to re-include <math.h>.
76393         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76395         getsubopt: work around cygwin bug
76396         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76397         avoid conflicting with system getsubopt.
76398         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76399         bug.
76401         getopt: synchronize from glibc
76402         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76403         parameter order.  Adjust all callers.
76404         (_getopt_internal_r, main): Adjust quoting in error messages.
76405         Drop considerations for outdated POSIX 1003.2 error message.
76406         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76407         callers.
76408         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76410         test-getopt: test stderr behavior
76411         * modules/getopt-posix-tests (Depends-on): Add dup2.
76412         * tests/test-getopt.c (ASSERT): Avoid stderr.
76413         (main): Move stderr to a temporary file.
76414         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76415         Instead, add parameter to inform caller if output occurred.
76416         (test_getopt): Adjust all existing tests to expect silence, and
76417         add new tests of leading ":".
76418         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76419         glibc shortcomings with leading "-:" or "+:" in optstring.
76420         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76421         Likewise.
76422         * doc/posix-functions/getopt.texi (getopt): Likewise.
76424         test-getopt: enhance test
76425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76426         supports optind=0.
76427         * tests/test-getopt.c (OPTIND_MIN): Move...
76428         * tests/test-getopt.h (OPTIND_MIN): ...here.
76429         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76430         Require that optind=0 works, since modern BSD supports it in
76431         addition to optreset, and since coreutils expects it.
76432         (test_getopt_long_only): New test.
76433         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76434         glibc shortcomings with 'W;', and enforcement of optind=0.
76435         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76436         Likewise.
76438 2009-12-21  Bruno Haible  <bruno@clisp.org>
76440         localename: Improvements for MacOS X and Cygwin.
76441         * lib/localename.h (gl_locale_name_environ): New declaration.
76442         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76443         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76444         (gl_locale_name_posix): Invoke it.
76445         (gl_locale_name_default): Add comments. Use Windows native API also on
76446         Cygwin.
76448 2009-12-21  Bruno Haible  <bruno@clisp.org>
76450         Update list of Win32 locale ids.
76451         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76452         (LANG_SAMI): Renamed from LANG_SAAMI.
76453         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76454         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76455         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76456         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76457         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76458         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76459         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76460         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76461         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76462         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76463         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76464         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76465         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76466         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76467         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76468         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76469         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76470         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76471         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76472         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76473         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76474         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76475         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76476         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76477         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76478         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76479         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76480         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76481         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76482         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76483         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76484         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76485         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76486         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76487         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76488         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76489         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76490         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76491         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76492         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76493         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76494         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76495         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76496         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76497         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76498         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76499         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76500         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76501         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76502         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76503         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76504         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76505         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76506         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76507         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76508         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76509         Add more languages and countries for Sami, Sorbian. Add more countries
76510         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76511         for Pashto. Change country for Syriac, Tswana.
76513 2009-12-21  Eric Blake  <ebb9@byu.net>
76515         test-utimens: avoid spurious failure
76516         * tests/test-chown.h (nap): Factor...
76517         * tests/nap.h: ...into new file.
76518         * tests/test-lchown.h (nap): Avoid duplication.
76519         * tests/test-utimens-common.h (nap): Use shared implementation,
76520         necessary on file systems with 1-second resolution.
76521         * modules/chown-tests (Files): Include new file.
76522         * modules/fdutimensat-tests (Files): Likewise.
76523         * modules/futimens-tests (Files): Likewise.
76524         * modules/lchown-tests (Files): Likewise.
76525         * modules/openat-tests (Files): Likewise.
76526         * modules/utimens-tests (Files): Likewise.
76527         * modules/utimensat-tests (Files): Likewise.
76529 2009-12-19  Eric Blake  <ebb9@byu.net>
76531         futimens, utimensat: work around Linux bug
76532         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
76533         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76534         * lib/utimensat.c (rpl_utimensat): Work around it.
76535         * lib/futimens.c (rpl_futimens): Adjust comment.
76537         utimens: work around Linux ctime bug
76538         * lib/utimens.c (detect_ctime_bug): New helper function.
76539         (update_timespec): Differentiate between workaround needed for
76540         this bug vs. what is needed for systems that lack utimensat.
76541         (fdutimens, lutimens): Work around bug.
76543         utimens: check for ctime update
76544         * tests/test-utimens-common.h (check_ctime): Define.
76545         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
76546         * tests/test-futimens.h (test_futimens): Likewise.
76547         * tests/test-lutimens.h (test_lutimens): Likewise.
76548         * doc/posix-functions/futimens.texi (futimens): Document the bug.
76549         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76551 2009-12-19  Bruno Haible  <bruno@clisp.org>
76553         dprintf-posix: Check against memory leak fixed on 2009-12-15.
76554         * tests/test-dprintf-posix2.sh: New file.
76555         * tests/test-dprintf-posix2.c: New file.
76556         * modules/dprintf-posix-tests (Files): Add them.
76557         (configure.ac): Check for getrlimit and setrlimit.
76558         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76560 2009-12-19  Bruno Haible  <bruno@clisp.org>
76562         fprintf-posix: Check against memory leak fixed on 2009-12-15.
76563         * tests/test-fprintf-posix3.sh: New file.
76564         * tests/test-fprintf-posix3.c: New file.
76565         * modules/fprintf-posix-tests (Files): Add them.
76566         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76568 2009-12-19  Eric Blake  <ebb9@byu.net>
76570         dirfd: fix prototype
76571         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
76572         * lib/dirfd.c (dirfd): Likewise.
76574         canonicalize: reduce memory usage
76575         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
76576         allocation to size.
76577         Reported by Solar Designer <solar@openwall.com>.
76579 2009-12-19  Bruno Haible  <bruno@clisp.org>
76581         New module attribute 'Applicability'.
76582         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
76583         * gnulib-tool: New option --extract-applicability.
76584         (func_usage): Document it.
76585         (sed_extract_prog): Recognize it.
76586         (func_get_applicability): New function.
76587         (func_import): Generalize handling of 'link-warning' module.
76588         * modules/link-warning (Applicability): New section.
76589         * modules/arg-nonnull (Applicability): New section.
76590         Repoted by Simon Josefsson <simon@josefsson.org>.
76592 2009-12-19  Bruno Haible  <bruno@clisp.org>
76594         fflush: tweak
76595         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76596         * lib/fseeko.c (rpl_fseeko): Likewise.
76598 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76600         * lib/gl_list.h: Fix typo in comment.
76602 2009-12-16  Eric Blake  <ebb9@byu.net>
76604         fcntl: use to simplify other modules
76605         * modules/cloexec (Depends-on): Add fcntl.
76606         * modules/fchdir (Depends-on): Likewise.
76607         * modules/fd-safer-flag (Depends-on): Likewise.
76608         * modules/unistd-safer (Depends-on): Likewise.
76609         * modules/dup3 (configure.ac): Set module indicator.
76610         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
76611         missing.
76612         * lib/fchdir.c (_gl_register_dup): Fix comment.
76613         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76614         * lib/dup-safer.c (dup_safer): Likewise.
76615         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76616         * lib/dup3.c (dup3): Likewise.
76617         * tests/test-fchdir.c (main): Enhance test.
76618         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76620         fcntl: port portions of fcntl to mingw
76621         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76622         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76623         replacement for mingw.
76624         * modules/fcntl (Description): Update.
76625         (Depends-on): Add dup2.
76626         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76627         * modules/fcntl-h (Makefile.am): Substitute it.
76628         * lib/fcntl.in.h (fcntl): Update declaration.
76629         (F_DUPFD, F_GETFD): New macros, when needed.
76630         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76631         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76632         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76633         we now guarantee.
76635         fcntl: work around cygwin bug in F_DUPFD
76636         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76637         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76638         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76639         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76640         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76642         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76643         * modules/fcntl (Files): List new files.
76644         (configure.ac): Run a test.
76645         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76646         * lib/fcntl.c (rpl_fcntl): Likewise.
76647         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76648         (gl_FCNTL_H): Always replace fcntl.h.
76649         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76650         * lib/fcntl.in.h (fcntl): Declare replacement.
76651         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76652         needed, plus a witness.
76653         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76654         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76655         * tests/test-fcntl.c: New file.
76656         * modules/fcntl-tests: Likewise.
76658         binary-io: avoid potential compilation warning
76659         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76660         directives.
76662         fflush: avoid compilation error on NetBSD
76663         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76664         between off_t and fpos_t, since the latter is sometimes a struct.
76665         * lib/fseeko.c (rpl_fseeko): Likewise.
76666         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76668 2009-12-15  Eric Blake  <ebb9@byu.net>
76670         fcntl-h, stdio, sys_ioctl: fix declarations
76671         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76672         function must not take arguments.
76673         * lib/sys_ioctl.in.h (ioctl): Likewise.
76674         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76675         (open): Add a link warning.
76677 2009-12-15  Jim Meyering  <meyering@redhat.com>
76679         areadlink, areadlink-with-size: relax license to LGPLv2+
76680         * modules/areadlink (License): Relax to LGPLv2+.
76681         * modules/areadlink-with-size (License): Likewise.
76683 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76684             Bruno Haible  <bruno@clisp.org>
76686         *printf: Fix memory leak.
76687         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76688         * lib/vfprintf.c (vfprintf): Likewise.
76689         * lib/dprintf.c (dprintf): Likewise.
76690         * lib/vdprintf.c (vdprintf): Likewise.
76692 2009-12-14  Eric Blake  <ebb9@byu.net>
76694         accept4: adjust module dependencies
76695         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76697         utimens: one more try at avoiding compiler warning
76698         * lib/utimens.c (lutimens): Lower scope of result.
76700 2009-12-13  Bruno Haible  <bruno@clisp.org>
76702         Move the malloc checking from module 'list' to new module 'xlist'.
76703         * modules/xlist: New file.
76704         * lib/gl_xlist.h: New file.
76705         * lib/gl_xlist.c: New file.
76706         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76707         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76708         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76709         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76710         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76711         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76712         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76713         gl_sortedlist_nx_add): New declarations.
76714         (struct gl_list_implementation): Rename and change methods accordingly.
76715         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76716         (gl_list_nx_create): Renamed from gl_list_create.
76717         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76718         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76719         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76720         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76721         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76722         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76723         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76724         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76725         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76726         gl_list_create_empty.
76727         (gl_list_nx_create): Renamed from gl_list_create.
76728         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76729         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76730         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76731         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76732         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76733         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76734         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76735         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76736         * lib/gl_array_list.c: Don't include xalloc.h.
76737         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76738         NULL upon out-of-memory.
76739         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76740         out-of-memory.
76741         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76742         Change return type to 'int'.
76743         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76744         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76745         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76746         upon out-of-memory.
76747         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76748         upon out-of-memory.
76749         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76750         upon out-of-memory.
76751         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76752         upon out-of-memory.
76753         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76754         out-of-memory.
76755         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76756         Update.
76757         (gl_array_list_implementation): Update.
76758         * lib/gl_carray_list.c: Don't include xalloc.h.
76759         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76760         Return NULL upon out-of-memory.
76761         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76762         out-of-memory.
76763         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76764         Change return type to 'int'.
76765         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76766         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76767         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76768         upon out-of-memory.
76769         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76770         upon out-of-memory.
76771         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76772         out-of-memory.
76773         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76774         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76775         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76776         Update.
76777         (gl_carray_list_implementation): Update.
76778         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76779         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76780         gl_linked_create_empty. Return NULL upon out-of-memory.
76781         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76782         out-of-memory.
76783         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76784         Change return type to 'int'. Return -1 upon out-of-memory.
76785         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76786         out-of-memory.
76787         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76788         upon out-of-memory.
76789         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76790         upon out-of-memory.
76791         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76792         NULL upon out-of-memory.
76793         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76794         upon out-of-memory.
76795         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76796         out-of-memory.
76797         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76798         Update.
76799         * lib/gl_linked_list.c: Don't include xalloc.h.
76800         (gl_linked_list_implementation): Update.
76801         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76802         (add_to_bucket): Change return type to 'int'.
76803         (gl_linkedhash_list_implementation): Update.
76804         * lib/gl_anytree_list1.h (free_subtree): New function.
76805         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76806         gl_tree_create_empty. Return NULL upon out-of-memory.
76807         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76808         Change return type to 'int'. Return -1 upon out-of-memory.
76809         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76810         out-of-memory.
76811         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76812         (gl_tree_remove_node): New function, moved here from
76813         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76814         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76815         Update.
76816         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76817         malloc, not xmalloc. Return NULL upon out-of-memory.
76818         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76819         out-of-memory.
76820         (gl_tree_remove_node_from_tree): New function, extracted from
76821         gl_tree_remove_node.
76822         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76823         upon out-of-memory.
76824         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76825         out-of-memory.
76826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76827         upon out-of-memory.
76828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76829         upon out-of-memory.
76830         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76831         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76832         not xmalloc. Return NULL upon out-of-memory.
76833         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76834         out-of-memory.
76835         (gl_tree_remove_node_from_tree): New function, extracted from
76836         gl_tree_remove_node.
76837         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76838         upon out-of-memory.
76839         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76840         out-of-memory.
76841         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76842         upon out-of-memory.
76843         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76844         upon out-of-memory.
76845         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76846         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76847         gl_anytree_list1.h before gl_anyavltree_list2.h.
76848         (gl_avltree_list_implementation): Update.
76849         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76850         gl_anytree_list1.h before gl_anyavltree_list2.h.
76851         (gl_rbtree_list_implementation): Update.
76852         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76853         Change return type to 'int'. Return -1 upon out-of-memory. Use
76854         __builtin_expect.
76855         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76856         (gl_avltreehash_list_implementation): Update.
76857         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76858         (gl_rbtreehash_list_implementation): Update.
76859         * modules/array-list (Depends-on): Remove xalloc.
76860         * modules/carray-list (Depends-on): Likewise.
76861         * modules/linked-list (Depends-on): Likewise.
76862         * modules/linkedhash-list (Depends-on): Likewise.
76863         * modules/avltree-list (Depends-on): Likewise.
76864         * modules/rbtree-list (Depends-on): Likewise.
76865         * modules/avltreehash-list (Depends-on): Likewise.
76866         * modules/rbtreehash-list (Depends-on): Likewise.
76868         * modules/xsublist: New file.
76869         * lib/gl_xsublist.h: New file.
76870         * lib/gl_xsublist.c: New file.
76871         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76872         (gl_sublist_nx_create): New declaration.
76873         * lib/gl_sublist.c: Don't include xalloc.h.
76874         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76875         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76876         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76877         Change return type to 'int'. Return -1 upon out-of-memory.
76878         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76879         upon out-of-memory.
76880         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76881         NULL upon out-of-memory.
76882         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76883         upon out-of-memory.
76884         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76885         NULL upon out-of-memory.
76886         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76887         NULL upon out-of-memory.
76888         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76889         upon out-of-memory.
76890         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76891         (gl_sublist_list_implementation): Update.
76892         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76893         upon out-of-memory.
76894         * modules/sublist (Depends-on): Remove xalloc.
76896         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76897         * tests/test-carray_list.c: Likewise.
76898         * tests/test-linked_list.c: Likewise.
76899         * tests/test-linkedhash_list.c: Likewise.
76900         * tests/test-avltree_list.c: Likewise.
76901         * tests/test-rbtree_list.c: Likewise.
76902         * tests/test-avltreehash_list.c: Likewise.
76903         * tests/test-rbtreehash_list.c: Likewise.
76904         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76905         * modules/carray-list-tests (Makefile.am): Likewise.
76906         * modules/linked-list-tests (Makefile.am): Likewise.
76907         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76908         * modules/avltree-list-tests (Makefile.am): Likewise.
76909         * modules/rbtree-list-tests (Makefile.am): Likewise.
76910         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76911         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76913         * NEWS: Mention the changes.
76915         * lib/clean-temp.c: Include gl_xlist.h.
76916         * modules/clean-temp (Depends-on): Add xlist.
76918         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76919         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76921         * tests/test-array_oset.c: Include gl_xlist.h.
76922         * modules/array-oset-tests (Depends-on): Add xlist.
76924         Reported by José E. Marchesi <jemarch@gnu.org>.
76926 2009-12-13  Bruno Haible  <bruno@clisp.org>
76928         Move the malloc checking from module 'oset' to new module 'xoset'.
76929         * modules/xoset: New file.
76930         * lib/gl_xoset.h: New file.
76931         * lib/gl_xoset.c: New file.
76932         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76933         declarations.
76934         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76935         (struct gl_oset_implementation): Rename and change methods accordingly.
76936         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
76937         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76938         'int'. Mark as __warn_unused_result__.
76939         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
76940         gl_oset_create_empty.
76941         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76942         'int'.
76943         * lib/gl_array_oset.c: Don't include xalloc.h.
76944         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
76945         malloc, not xmalloc.
76946         (grow): Change return type to 'int'. Don't call xalloc_die.
76947         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76948         to 'int'.
76949         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76950         'int'.
76951         (gl_array_oset_implementation): Update.
76952         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76953         gl_tree_create_empty.
76954         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76955         'int'.
76956         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76957         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76958         xmalloc.
76959         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76960         not xmalloc.
76961         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76962         xmalloc.
76963         (gl_avltree_oset_implementation): Update.
76964         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76965         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76966         xmalloc.
76967         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76968         not xmalloc.
76969         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76970         xmalloc.
76971         (gl_rbtree_oset_implementation): Update.
76972         * modules/array-oset (Depends-on): Remove xalloc.
76973         * modules/avltree-oset (Depends-on): Likewise.
76974         * modules/rbtree-oset (Depends-on): Likewise.
76975         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76976         * tests/test-avltree_oset.c: Likewise.
76977         * tests/test-rbtree_oset.c: Likewise.
76978         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76979         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76980         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76981         * NEWS: Mention the change.
76983 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76985         maint.mk: allow a project to override release-prep commands
76986         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76987         commands into a new rule.
76988         (release-prep): New rule.
76989         (release-prep-hook): New overridable variable.
76991 2009-12-13  Bruno Haible  <bruno@clisp.org>
76993         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76995 2009-12-13  Jim Meyering  <meyering@redhat.com>
76997         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76998         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77000 2009-12-12  Bruno Haible  <bruno@clisp.org>
77002         duplocale: Tweak.
77003         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77005 2009-12-12  Karl Berry  <karl@gnu.org>
77007         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77009 2009-12-12  Bruno Haible  <bruno@clisp.org>
77011         * m4/po.m4: Undo incorrect untabification.
77013 2009-12-12  Bruno Haible  <bruno@clisp.org>
77015         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77016         * modules/c-strtod (Depends-on): Add locale.
77017         * modules/c-strtold (Depends-on): Likewise.
77019 2009-12-12  Bruno Haible  <bruno@clisp.org>
77021         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77023 2009-12-11  Eric Blake  <ebb9@byu.net>
77025         setenv: relax requirement in light of POSIX ruling
77026         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77027         not NULL.
77028         * tests/test-setenv.c (main): Relax test.
77029         * tests/test-unsetenv.c (main): Likewise.
77030         * doc/posix-functions/setenv.texi (setenv): Document this.
77031         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77033 2009-12-11  Bruno Haible  <bruno@clisp.org>
77035         New module 'fd-safer-flag'.
77036         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77037         * lib/dup-safer.c (dup_safer_flag): Remove function.
77038         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77039         * lib/fd-safer.c (fd_safer_flag): Remove function.
77040         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77041         * modules/cloexec (configure.ac): Drop indicator macro.
77042         * modules/fd-safer-flag: New file.
77043         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77044         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77045         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77047 2009-12-11  Bruno Haible  <bruno@clisp.org>
77049         Tests for module 'nl_langinfo'.
77050         * modules/nl_langinfo-tests: New file.
77051         * tests/test-nl_langinfo.sh: New file.
77052         * tests/test-nl_langinfo.c: New file.
77054         New module 'nl_langinfo'.
77055         * lib/nl_langinfo.c: New file.
77056         * m4/nl_langinfo.m4: New file.
77057         * modules/nl_langinfo: New file.
77058         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77060 2009-12-11  Bruno Haible  <bruno@clisp.org>
77062         Tests for module 'langinfo'.
77063         * modules/langinfo-tests: New file.
77064         * tests/test-langinfo.c: New file.
77066         New module 'langinfo'.
77067         * lib/langinfo.in.h: New file.
77068         * m4/langinfo_h.m4: New file.
77069         * modules/langinfo: New file.
77070         * doc/posix-headers/langinfo.texi: Mention the new module.
77072 2009-12-11  Bruno Haible  <bruno@clisp.org>
77074         * lib/config.charset: Untabify.
77076 2009-12-11  Bruno Haible  <bruno@clisp.org>
77078         * modules/unistd-safer (configure.ac): Drop indicator macro.
77080 2009-12-11  Bruno Haible  <bruno@clisp.org>
77082         Move pipe2-safer code to its own file.
77083         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77084         * lib/pipe-safer.c (pipe2_safer): Remove function.
77085         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77086         (Makefile.am): Add it to lib_SOURCES.
77088 2009-12-10  Bruno Haible  <bruno@clisp.org>
77090         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77092 2009-12-10  Bruno Haible  <bruno@clisp.org>
77094         Declare which arguments expect non-NULL values, for GCC and clang.
77095         * build-aux/arg-nonnull.h: New file.
77096         * modules/arg-nonnull: New file.
77097         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77098         (inet_ntop, inet_pton): Use it.
77099         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77100         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77101         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77102         (open, openat): Use it.
77103         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77104         (fnmatch): Use it.
77105         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77106         (getopt, getopt_long, getopt_long_only): Use it.
77107         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77108         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77109         Use it.
77110         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77111         (iconv_open): Use it.
77112         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77113         (strtoimax, strtoumax): Use it.
77114         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77115         (duplocale): Use it.
77116         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77117         (frexp, frexpl): Use it.
77118         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77119         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77120         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77121         (tsearch, tfind, tdelete, twalk): Use it.
77122         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77123         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77124         sigpending): Use it.
77125         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77126         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77127         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77128         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77129         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77130         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77131         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77132         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77133         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77134         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77135         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77136         Use it.
77137         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77138         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77139         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77140         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77141         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77142         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77143         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77144         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77145         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77146         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77147         strtoull, unsetenv): Use it.
77148         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77149         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77150         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77151         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77152         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77153         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77154         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77155         (strcasecmp, strncasecmp): Use it.
77156         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77157         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77158         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77159         rpl_setsockopt): Use it.
77160         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77161         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77162         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77163         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77164         (gettimeofday): Use it.
77165         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77166         (times): Use it.
77167         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77168         (uname): Use it.
77169         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77170         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77171         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77172         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77173         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77174         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77175         unlinkat, write): Use it.
77176         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77177         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77178         * lib/argv-iter.h: Include arg-nonnull.h.
77179         (_ATTRIBUTE_NONNULL_): Remove macro.
77180         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77181         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77182         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77183         optimization.
77184         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77185         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77186         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77187         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77188         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77189         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77190         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77191         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77192         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77193         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77194         * modules/dirent (Depends-on): Add arg-nonnull.
77195         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77196         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77197         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77198         * modules/fnmatch (Depends-on): Add arg-nonnull.
77199         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77200         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77201         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77202         * modules/glob (Depends-on): Add arg-nonnull.
77203         (Makefile.am): Insert arg-nonnull.h into glob.h.
77204         * modules/iconv_open (Depends-on): Add arg-nonnull.
77205         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77206         * modules/inttypes (Depends-on): Add arg-nonnull.
77207         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77208         * modules/locale (Depends-on): Add arg-nonnull.
77209         (Makefile.am): Insert arg-nonnull.h into locale.h.
77210         * modules/math (Depends-on): Add arg-nonnull.
77211         (Makefile.am): Insert arg-nonnull.h into math.h.
77212         * modules/netdb (Depends-on): Add arg-nonnull.
77213         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77214         * modules/search (Depends-on): Add arg-nonnull.
77215         (Makefile.am): Insert arg-nonnull.h into search.h.
77216         * modules/signal (Depends-on): Add arg-nonnull.
77217         (Makefile.am): Insert arg-nonnull.h into signal.h.
77218         * modules/spawn (Depends-on): Add arg-nonnull.
77219         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77220         * modules/stdio (Depends-on): Add arg-nonnull.
77221         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77222         * modules/stdlib (Depends-on): Add arg-nonnull.
77223         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77224         * modules/string (Depends-on): Add arg-nonnull.
77225         (Makefile.am): Insert arg-nonnull.h into string.h.
77226         * modules/strings (Depends-on): Add arg-nonnull.
77227         (Makefile.am): Insert arg-nonnull.h into strings.h.
77228         * modules/sys_socket (Depends-on): Add arg-nonnull.
77229         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77230         * modules/sys_stat (Depends-on): Add arg-nonnull.
77231         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77232         * modules/sys_time (Depends-on): Add arg-nonnull.
77233         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77234         * modules/sys_times (Depends-on): Add arg-nonnull.
77235         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77236         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77237         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77238         * modules/time (Depends-on): Add arg-nonnull.
77239         (Makefile.am): Insert arg-nonnull.h into time.h.
77240         * modules/unistd (Depends-on): Add arg-nonnull.
77241         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77242         * modules/wchar (Depends-on): Add arg-nonnull.
77243         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77244         * modules/argv-iter (Depends-on): Add arg-nonnull.
77245         * tests/test-canonicalize.c (null_ptr): New function.
77246         (main): Use it.
77247         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77248         (main): Use it.
77249         * tests/test-memmem.c (null_ptr): New function.
77250         (main): Use it.
77251         Reported by Jim Meyering.
77253 2009-12-10  Bruno Haible  <bruno@clisp.org>
77255         Use spaces for indentation, not tabs.
77256         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77257         * m4/*.m4: Untabify.
77258         * build-aux/*.h: Untabify.
77259         * tests/**/*.[hc]: Untabify.
77260         * README: New section "Indent with spaces, not TABs", based on
77261         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77262         * NEWS: Mention the change.
77264 2009-12-10  Bruno Haible  <bruno@clisp.org>
77266         pty test: Fix link error.
77267         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77268         test_pty_LDADD.
77270 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77272         * modules/pty: New file.
77273         * modules/pty-tests: New file.
77274         * m4/pty.m4: New file.
77275         * tests/test-pty.c: New file.
77276         * doc/glibc-headers/pty.texi: Modified.
77277         * doc/glibc-functions/forkpty.texi: Modified.
77278         * doc/glibc-functions/openpty.texi: Modified.
77280 2009-12-10  Bruno Haible  <bruno@clisp.org>
77282         Avoid syntax error in C++ mode.
77283         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77285 2009-12-10  Bruno Haible  <bruno@clisp.org>
77287         Use sed with option -e.
77288         * gnulib-tool (func_version, func_emit_copyright_notice,
77289         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77290         option -e to sed.
77291         * modules/link-warning (Makefile.am): Likewise.
77293 2009-12-10  Jim Meyering  <meyering@redhat.com>
77295         mgetgroups: do not write bytes beyond end of malloc'd buffer
77296         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77297         username, we call getgroups with a one-element-shorter buffer,
77298         but still told it the length was original, max_n_groups.
77300 2009-12-09  Eric Blake  <ebb9@byu.net>
77302         cloexec: relax license
77303         * modules/cloexec (Maintainer): Add myself.
77304         (License): Use LGPL, not GPL.
77306         link-warning: optimize generation
77307         * modules/link-warning (Makefile.am): Reduce process usage.
77309 2009-12-09  Bruno Haible  <bruno@clisp.org>
77311         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77312         workaround was added on 2009-11-17.
77314 2009-12-09  Jim Meyering  <meyering@redhat.com>
77315             Bruno Haible  <bruno@clisp.org>
77317         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77318         * modules/link-warning (Makefile.am): Make the comment-removing sed
77319         command more robust in the face of bootstrap-prepended comment lines.
77321 2009-12-09  Bruno Haible  <bruno@clisp.org>
77323         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77324         most one group.
77326 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77327             Bruno Haible  <bruno@clisp.org>
77329         * build-aux/link-warning.h: Add copyright notice.
77330         * modules/link-warning (Makefile.am): Generate link-warning.h from
77331         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77332         * NEWS: Mention change in link-warning module.
77333         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77334         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77335         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77336         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77337         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77338         * modules/math (Makefile.am): Add dependency to math.h.
77339         * modules/search (Makefile.am): Add dependency to search.h.
77340         * modules/signal (Makefile.am): Add dependency to signal.h.
77341         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77342         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77343         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77344         * modules/string (Makefile.am): Add dependency to string.h.
77345         * modules/strings (Makefile.am): Add dependency to strings.h.
77346         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77347         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77348         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77349         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77350         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77351         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77352         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77353         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77354         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77356 2009-12-09  Bruno Haible  <bruno@clisp.org>
77358         fchdir: Optimize away rpl_fstat when possible.
77359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77360         REPLACE_OPEN_DIRECTORY.
77361         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77363 2009-12-09  Bruno Haible  <bruno@clisp.org>
77365         * lib/fchdir.c: Update comment.
77367 2009-12-09  Bruno Haible  <bruno@clisp.org>
77369         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77371 2009-12-08  Eric Blake  <ebb9@byu.net>
77373         fchdir: avoid memory leak on re-registration.
77374         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77376 2009-12-08  Jim Meyering  <meyering@redhat.com>
77378         init.sh: avoid Solaris 10 /bin/sh portability problem
77379         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77380         sourced script:
77381           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77382           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77383           bar
77384         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77385         and two tests used that idiom.
77386         * tests/init.sh: Update suggested usage comments.
77387         (path_prepend_): New function, to be used in place
77388         of the --src-path=DIR option.
77389         (setup_): Move PATH-prepending code into path_prepend_.
77390         * tests/test-pread.sh: Adapt to new usage.
77391         * tests/test-xalloc-die.sh: Likewise.
77393 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77395         * doc/gnulib.texi (Glibc pty.h): Add.
77396         * doc/glibc-functions/forkpty.texi: Add.
77397         * doc/glibc-functions/openpty.texi: Add.
77398         Suggested by Bruno Haible.
77400 2009-12-08  Eric Blake  <ebb9@byu.net>
77402         fchdir: fix logic bugs
77403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77404         * tests/test-fchdir.c (main): Enhance test.
77405         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77406         is in use.
77408         dup2: fix logic bugs
77409         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77410         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77411         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77412         exists.
77413         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77415 2009-12-07  Eric Blake  <ebb9@byu.net>
77417         unlink: fix m4 detection
77418         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77420         unistd-safer: add unit test
77421         * modules/unistd-safer-tests: New file.
77422         * tests/test-dup-safer.c: Likewise.
77423         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77424         * tests/test-dup2.c (setmode): Likewise.
77425         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77427         cloexec: preserve text vs. binary across dup_cloexec
77428         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77429         mode.
77430         * modules/dup2-tests (Depends-on): Add binary-io.
77431         * modules/cloexec-tests (Depends-on): Likewise.
77432         * tests/test-dup2.c (setmode, is_mode): New helpers.
77433         (main): Add tests that translation mode is preserved.
77434         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77435         Reported by Bruno Haible.
77437         mgetgroups: reduce duplicate listings
77438         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77439         resulting array.
77440         * tests/test-chown.h (test_chown): Simplify client.
77441         * tests/test-lchown.h (test_lchown): Likewise.
77443 2009-12-06  Bruno Haible  <bruno@clisp.org>
77445         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77446         value.
77448 2009-12-06  Bruno Haible  <bruno@clisp.org>
77450         * lib/progname.c: Include stdio.h, stdlib.h.
77451         (set_program_name): Reject a NULL argument.
77453 2009-12-05  Eric Blake  <ebb9@byu.net>
77455         pipe2-safer: new module
77456         * modules/pipe2-safer: New file.
77457         * lib/unistd-safer.h (pipe2_safer): New prototype.
77458         * lib/unistd--.h (pipe2): New wrapper.
77459         * lib/pipe-safer.c (pipe2_safer): New function.
77460         * modules/pipe (Depends-on): Add pipe2-safer.
77461         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77463         stdlib-safer: preserve cloexec flag for mkostemp[s]
77464         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77465         fd_safer_flag.
77467         unistd-safer: allow preservation of cloexec status via flag
77468         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77469         prototypes.
77470         * lib/dup-safer.c (dup_safer_flag): New function.
77471         * lib/fd-safer.c (fd_safer_flag): Likewise.
77472         * modules/cloexec (configure.ac): Set witness.
77474         test-dup2: enhance test
77475         * modules/dup2-tests (Depends-on): Add cloexec.
77476         * tests/test-dup2.c (main): Enhance test.
77478         cloexec: add dup_cloexec
77479         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77480         header and comments.
77481         * lib/cloexec.c (set_cloexec_flag): Add comments.
77482         (dup_cloexec): New function, with mingw implementation borrowed
77483         from...
77484         * lib/w32spawn.h (dup_noinherit): ...here.
77485         * modules/execute (Depends-on): Add cloexec.
77486         * modules/pipe (Depends-on): Likewise.
77487         * modules/cloexec (Depends-on): Add dup2.
77488         * modules/cloexec-tests (Files): New file.
77489         * tests/test-cloexec.c: Likewise.
77491         test-xalloc-die: fix test for mingw
77492         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77493         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77494         directory and .exe suffix off argv[0] output.
77496         test-fseeko: fix test for mingw
77497         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77498         than undefining fseek, so test will pass on mingw.
77500 2009-12-05  Bruno Haible  <bruno@clisp.org>
77502         * lib/progname.h (set_program_name): Clarify specification.
77503         * lib/progname.c (set_program_name): Likewise.
77504         Reported by Jim Meyering.
77506 2009-12-05  Jim Meyering  <meyering@redhat.com>
77508         maint.mk: backslash-escape parens in default regexp
77509         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77510         backslash-escape the literal parentheses.
77512         maint.mk: news-date-check: use grep -E
77513         * top/maint.mk (today): Define a Make variable, not a...
77514         (news-date-check): ...shell variable.
77515         (news-date-regexp): Use the Make variable.
77516         Use grep's -E option.  Change the failing diagnostic to mention
77517         the variable, $(news-date-regexp).
77519 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
77521         maintainer-makefile: allow customization of NEWS entry format
77522         * top/maint.mk (news-date-regexp): New overridable variable.
77523         (news-date-check): Use it.
77525 2009-12-04  Eric Blake  <ebb9@byu.net>
77527         mgetgroups: add xgetgroups, and avoid ENOSYS failures
77528         * lib/mgetgroups.h (xgetgroups): New prototype.
77529         * lib/mgetgroups.c (xgetgroups): New wrapper.
77530         (mgetgroups): Handle ENOSYS.
77531         * modules/mgetgroups (Depends-on): Add realloc.
77532         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
77534         mgetgroups: avoid argument promotion issues with -1
77535         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
77536         for invalid gid_t.
77537         * tests/test-chown.h (getegid, test_chown): Likewise.
77538         * tests/test-lchown.h (getegid, test_lchown): Likewise.
77540 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
77542         exclude: Fix header file problems.
77543         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
77545 2009-12-01  Jim Meyering  <meyering@redhat.com>
77547         fts: fts_open: do not let an empty string cause immediate failure
77548         This is required in support of GNU rm, for which the command
77549         "rm A '' B" must process and remove both A and B, in spite of
77550         the empty string argument.
77551         * lib/fts.c (fts_open): Do not let the presence of an empty string
77552         cause fts_open to fail immediately.  Most fts-using tools must be
77553         able to process all arguments, in order, and can be expected to
77554         diagnose such arguments themselves.
77556 2009-11-30  Eric Blake  <ebb9@byu.net>
77558         utimens: fix compilation error
77559         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
77560         Declare variable at right scope.
77562 2009-11-29  Jim Meyering  <meyering@redhat.com>
77564         bootstrap: handle perl-5.11's changed --version output
77565         * build-aux/bootstrap (get_version): Handle perl separately,
77566         since perl-5.11's --version output is different.
77568 2009-11-28  Jim Meyering  <meyering@redhat.com>
77570         userspec: depend on the inttostr module, too
77571         * modules/userspec (Depends-on): Add inttostr.
77573         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
77574         * lib/userspec.c (parse_with_separator): Do not accept a user ID
77575         number of MAXUID when it evaluates to (uid_t) -1.
77576         Likewise for group ID.  Reported by Matt McCutchen in
77577         <http://savannah.gnu.org/bugs/?28113>
77579         userspec: reformat to use spaces, not TABs
77580         * lib/userspec.c: Expand TABs to spaces.
77581         Add Emacs' "indent-tabs-mode: nil" hint.
77583 2009-11-27  Eric Blake  <ebb9@byu.net>
77585         getopt-gnu: flush out another BSD bug
77586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
77587         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
77588         flush out BSD bug.
77589         * tests/test-getopt.h (test_getopt): End lists with NULL.
77590         * tests/test-getopt_long.h (test_getopt_long): Likewise.
77591         (test_getopt_long_posix): Enhance test.
77592         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77593         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77594         getopt-gnu.
77595         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77596         Likewise.
77598 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77600         * modules/idpriv-droptemp-tests (Notice): Fix text.
77602 2009-11-27  Jim Meyering  <meyering@redhat.com>
77604         test-xalloc-die: avoid spurious failure due to libtool argv difference
77605         In a libtool-enabled project, this test would fail due to a difference
77606         in the emitted program name, e.g.,
77607         -test-xalloc-die: memory exhausted
77608         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
77609         Use program to avoid that.
77610         * modules/xalloc-die-tests (Depends-on): Add progname.
77611         * tests/test-xalloc-die.c: Include progname.h".
77612         (program_name): Remove decl.
77613         (main): Call set_program_name.
77614         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77616 2009-11-26  Richard Jones  <rjones@redhat.com>
77618         w32sock: leave win32 error in place.
77619         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77621 2009-11-26  Eric Blake  <ebb9@byu.net>
77623         init.sh: suggest to use skip_ and fail_ functions in comments
77624         * tests/init.sh: Add a sentence.
77626 2009-11-25  Bruno Haible  <bruno@clisp.org>
77628         init.sh: add documentation in comments
77629         * tests/init.sh: Add some developer and user documentation.
77631 2009-11-26  Jim Meyering  <meyering@redhat.com>
77633         init.sh: accommodate even those who specify bogus srcdir manually
77634         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77635         configure-time tests to be sanitized, so that there is no need to
77636         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77637         (with no double quotes) suffices.  However, since tests may be
77638         invoked manually, and since you may explicitly set srcdir to the
77639         name of a directory containing spaces, do quote its uses here.
77640         * tests/test-pread.sh: Likewise.
77641         Suggested by Bruno Haible.
77643         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77644         * tests/test-pread.sh: Write no data into the pipe, because
77645         test-pread actually reads none.  This avoids a diagnostic,
77646         "bash: echo: write error: Broken pipe", that arises in the unusual
77647         event something is ignoring SIGPIPE, and might be interpreted
77648         as some sort of failure.  Reported by Bruno Haible.
77650 2009-11-25  Jim Meyering  <meyering@redhat.com>
77652         test-pread: cover failure with ESPIPE and EINVAL
77653         * tests/test-pread.c (main): Test for failure, too.
77654         * tests/test-pread.sh: Invoke with stdin on a pipe.
77655         Suggested by Eric Blake.
77657         pread: improvement and fix
77658         * modules/pread (Depends-on): Depend on lseek, for portability to
77659         e.g., mingw.  Suggested by Eric Blake.
77660         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77662         unistd.in.h: correct declaration of pread
77663         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77664         Reported by Richard W.M. Jones.
77666         test-pread.sh: distribute the test script
77667         * modules/pread-tests (Files): Include test-pread.sh.
77669         test-pread.sh: clean up
77670         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77671         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77672         That is unnecessary, since it's always ".".
77673         Suggestion from Eric Blake.
77675         test-pread.sh: make executable
77676         * tests/test-pread.sh: Set executable bit.
77677         Reported by Eric Blake.
77679         correct typo in test-pread.sh
77680         * tests/test-pread.sh: Add #! line.
77682         test pread
77683         * tests/test-pread.c: New file.
77684         * tests/test-pread.sh: Likewise.
77685         * modules/pread-tests: Likewise.
77687         pread: new module
77688         * modules/pread: New file.
77689         * lib/unistd.in.h (pread): Define/declare.
77690         * lib/pread.c (pread): New file.
77691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77692         * modules/unistd (Makefile.am): Substitute witnesses.
77693         * doc/posix-functions/pread.texi (pread): Update.
77694         * MODULES.html.sh: Add pread.
77696 2009-11-25  Jim Meyering  <meyering@redhat.com>
77698         tests/init.sh: new file to be used via most *.sh tests
77699         * tests/init.sh: New file.
77701 2009-11-25  Eric Blake  <ebb9@byu.net>
77703         utimens: work around older Linux failure with symlinks
77704         * lib/utimens.c (lutimensat_works_really): New variable.
77705         (fdutimens, lutimens): Use it to manage kernels that support
77706         nanosecond times on files, but not on symlinks.
77707         Reported by Ondřej Vašík.
77709         utimes: fix configure grammar
77710         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77712 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77714         regex: Fix fastmap for multibyte character ranges.
77715         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77716         characters when a multibyte character range is included.
77718 2009-11-22  Andy Wingo  <wingo@pobox.com>
77720         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77721         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77723 2009-11-24  Bruno Haible  <bruno@clisp.org>
77725         doc: Most *_l functions exist in MacOS X 10.5.
77726         * doc/posix-functions/duplocale.texi: Update platforms list.
77727         * doc/posix-functions/freelocale.texi: Likewise.
77728         * doc/posix-functions/newlocale.texi: Likewise.
77729         * doc/posix-functions/uselocale.texi: Likewise.
77730         * doc/posix-functions/isalnum_l.texi: Likewise.
77731         * doc/posix-functions/isalpha_l.texi: Likewise.
77732         * doc/posix-functions/isblank_l.texi: Likewise.
77733         * doc/posix-functions/iscntrl_l.texi: Likewise.
77734         * doc/posix-functions/isdigit_l.texi: Likewise.
77735         * doc/posix-functions/isgraph_l.texi: Likewise.
77736         * doc/posix-functions/islower_l.texi: Likewise.
77737         * doc/posix-functions/isprint_l.texi: Likewise.
77738         * doc/posix-functions/ispunct_l.texi: Likewise.
77739         * doc/posix-functions/isspace_l.texi: Likewise.
77740         * doc/posix-functions/isupper_l.texi: Likewise.
77741         * doc/posix-functions/iswalnum_l.texi: Likewise.
77742         * doc/posix-functions/iswalpha_l.texi: Likewise.
77743         * doc/posix-functions/iswblank_l.texi: Likewise.
77744         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77745         * doc/posix-functions/iswctype_l.texi: Likewise.
77746         * doc/posix-functions/iswdigit_l.texi: Likewise.
77747         * doc/posix-functions/iswgraph_l.texi: Likewise.
77748         * doc/posix-functions/iswlower_l.texi: Likewise.
77749         * doc/posix-functions/iswprint_l.texi: Likewise.
77750         * doc/posix-functions/iswpunct_l.texi: Likewise.
77751         * doc/posix-functions/iswspace_l.texi: Likewise.
77752         * doc/posix-functions/iswupper_l.texi: Likewise.
77753         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77754         * doc/posix-functions/isxdigit_l.texi: Likewise.
77755         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77756         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77757         * doc/posix-functions/strcoll_l.texi: Likewise.
77758         * doc/posix-functions/strfmon_l.texi: Likewise.
77759         * doc/posix-functions/strftime_l.texi: Likewise.
77760         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77761         * doc/posix-functions/strxfrm_l.texi: Likewise.
77762         * doc/posix-functions/tolower_l.texi: Likewise.
77763         * doc/posix-functions/toupper_l.texi: Likewise.
77764         * doc/posix-functions/towctrans_l.texi: Likewise.
77765         * doc/posix-functions/towlower_l.texi: Likewise.
77766         * doc/posix-functions/towupper_l.texi: Likewise.
77767         * doc/posix-functions/wcscoll_l.texi: Likewise.
77768         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77769         * doc/posix-functions/wctrans_l.texi: Likewise.
77770         * doc/posix-functions/wctype_l.texi: Likewise.
77771         * doc/glibc-functions/strptime_l.texi: Likewise.
77772         * doc/glibc-functions/strtod_l.texi: Likewise.
77773         * doc/glibc-functions/strtof_l.texi: Likewise.
77774         * doc/glibc-functions/strtol_l.texi: Likewise.
77775         * doc/glibc-functions/strtold_l.texi: Likewise.
77776         * doc/glibc-functions/strtoll_l.texi: Likewise.
77777         * doc/glibc-functions/strtoul_l.texi: Likewise.
77778         * doc/glibc-functions/strtoull_l.texi: Likewise.
77779         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77780         * doc/glibc-functions/wcstod_l.texi: Likewise.
77781         * doc/glibc-functions/wcstof_l.texi: Likewise.
77782         * doc/glibc-functions/wcstol_l.texi: Likewise.
77783         * doc/glibc-functions/wcstold_l.texi: Likewise.
77784         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77785         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77786         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77788 2009-11-24  Bruno Haible  <bruno@clisp.org>
77790         duplocale: Fix logic bug.
77791         * lib/duplocale.c: Don't include <langinfo.h>.
77792         (_NL_LOCALE_NAME): Remove macro.
77793         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77794         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77796 2009-11-23  Jim Meyering  <meyering@redhat.com>
77798         test-update-copyright: don't hard-code /usr/bin/perl
77799         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77800         perl to print the current year.  Gilles Espinasse reported that
77801         the replaced use of perl was hard-coded as /usr/bin/perl.
77803 2009-11-23  Bruno Haible  <bruno@clisp.org>
77805         duplocale: Add support for glibc 2.3.x.
77806         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77808 2009-11-22  Bruno Haible  <bruno@clisp.org>
77810         vasnprintf: Tiny optimization.
77811         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77812         MacOS X.
77814 2009-11-22  Bruno Haible  <bruno@clisp.org>
77816         Tests for module 'duplocale'.
77817         * modules/duplocale-tests: New file.
77818         * tests/test-duplocale.c: New file.
77820         New module 'duplocale'.
77821         * m4/duplocale.m4: New file.
77822         * lib/locale.in.h (duplocale): New declaration.
77823         * lib/duplocale.c: New file.
77824         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77825         gl_LOCALE_H_DEFAULTS): New macros.
77826         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77827         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77828         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77829         REPLACE_DUPLOCALE.
77830         * modules/duplocale: New file.
77831         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77833 2009-11-22  Bruno Haible  <bruno@clisp.org>
77835         * modules/locale-tests (configure.ac): Test for newlocale function.
77836         * tests/test-locale.c: When the system has extended locale functions,
77837         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77839         locale: Make locale_t available when possible.
77840         * lib/locale.in.h: Include <xlocale.h> when it exists.
77841         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77842         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77843         * modules/locale (Depends-on): Add extensions.
77844         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77845         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77847 2009-11-22  Bruno Haible  <bruno@clisp.org>
77849         Add comments.
77850         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77851         invocation.
77852         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77853         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77854         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77856 2009-11-22  Bruno Haible  <bruno@clisp.org>
77858         error: account for the possibility of freopen (stdout).
77859         * lib/error.c: Include <unistd.h>.
77860         (flush_stdout): New function, extracted from error and error_at_line.
77861         Determine stdout's fd dynamically.
77862         (error, error_at_line): Invoke flush_stdout.
77863         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77864         * modules/error (Depends-on): Add unistd.
77866 2009-11-22  Bruno Haible  <bruno@clisp.org>
77868         diffseq: Add comment.
77869         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77871 2009-11-22  Jim Meyering  <meyering@redhat.com>
77873         c-stack: avoid defining an unused static function
77874         * lib/c-stack.c (find_stack_direction): Do not define this function
77875         when it will not be used.
77877         diffseq: avoid spurious gcc warnings
77878         * lib/diffseq.h (IF_LINT2): Define.
77879         (compareseq): Use it to initialize two members of "part".
77880         This avoids two used-uninitialized warnings.
77882 2009-11-21  Jim Meyering  <meyering@redhat.com>
77884         c-stack: avoid "ignoring return value of `write'" warning
77885         * lib/c-stack.c: Include "ignore-value.h".
77886         (die): Explicitly ignore each write return value.
77887         * modules/c-stack (Depends-on): Add ignore-value.
77889 2009-11-21  Bruno Haible  <bruno@clisp.org>
77891         diffseq: reduce scope of variable 'best'.
77892         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77893         variable, earlier used for two different purposes.
77895 2009-11-21  Jim Meyering  <meyering@redhat.com>
77897         diffseq: remove useless assignment to "best"
77898         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77899         assignment.  At that point "best" is already guaranteed to be zero.
77901 2009-11-20  Eric Blake  <ebb9@byu.net>
77903         build: mention ftp redirector in release announcements
77904         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77905         values that used to come from cfg.mk; mention FTP redirect URL.
77906         * build-aux/announce-gen: Mention the mirror list.
77907         Suggested by Karl Berry.
77909         nanosleep: improve port to mingw
77910         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77912         LIB_NANOSLEEP, but only when needed.
77913         * modules/select (Link): Document LIBSOCKET.
77914         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77915         enough.
77917         nanosleep: work around cygwin bug
77918         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77919         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77920         bug.
77921         (getnow): Delete, not needed.
77922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77923         LIB_CLOCK_GETTIME.
77924         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77925         clock-time, gettime.
77926         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77927         bug.
77928         * modules/nanosleep-tests: New test.
77929         * tests/test-nanosleep.c: New file.
77931         sleep: work around cygwin bug
77932         * lib/sleep.c (rpl_sleep): Work around the bug.
77933         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77934         (gl_PREREQ_SLEEP): Delete unused macro.
77935         * modules/sleep (Depends-on): Add verify.
77936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77937         * modules/unistd (Makefile.am): Substitute witness.
77938         * lib/unistd.in.h (sleep): Update prototype.
77939         * doc/posix-functions/sleep.texi (sleep): Document the bug.
77940         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
77941         * modules/sleep-tests (Depends-on): Check for alarm.
77943 2009-11-20  Jim Meyering  <meyering@redhat.com>
77945         maint.mk: improve sc_prohibit_magic_number_exit
77946         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77947         so it does not match uses like System.exit(1).
77948         Add comments showing how to correct all offenders.
77950 2009-11-19  Eric Blake  <ebb9@byu.net>
77952         xalloc-die-tests: add missing library
77953         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77955         test-xvasprintf: silence compiler warnings
77956         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77957         empty string from gcc.
77959 2009-11-19  Jim Meyering  <meyering@redhat.com>
77961         xfreopen: new module, from coreutils
77962         * modules/xfreopen: New module.
77963         * lib/xfreopen.c: New file.
77964         * lib/xfreopen.h: New file.
77965         * MODULES.html.sh (File stream based Input/Output"): Add it.
77967 2009-11-19  Eric Blake  <ebb9@byu.net>
77969         manywarnings: depend on warnings
77970         * modules/manywarnings (Depends-on): Add warnings.
77972         build: avoid compiler warnings
77973         * lib/select.c (rpl_select): Delete unused variable.
77974         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77976 2009-11-18  Eric Blake  <ebb9@byu.net>
77978         tests: avoid false negative with --with-packager
77979         * tests/test-version-etc.sh: Discard packager information.
77980         * tests/test-argp-version-etc-1.sh: Likewise.
77981         Reported by Mike Frysinger.
77983         utimens: fix regression on Solaris
77984         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77985         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77986         can only change fd timestamps via futimesat.  Instead, use an
77987         additional witness macro to avoid BSD bug.
77988         Reported by Jim Meyering.
77990 2009-11-17  Eric Blake  <ebb9@byu.net>
77992         usleep: use it to simplify tests
77993         * modules/stat-time-tests (Depends-on): Add usleep.
77994         (configure.ac): Drop usleep check.
77995         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77996         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77997         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77998         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77999         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78000         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78001         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78002         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78003         Likewise.
78004         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78005         * tests/test-lchown.h (nap): Likewise.
78006         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78007         * tests/test-stat-time.c (nap): Likewise.
78008         * tests/test-utimens-common.h (nap): Update comments.
78010         usleep: new module
78011         * modules/usleep: New file.
78012         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78013         * lib/usleep.c (usleep): Likewise.
78014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78015         * modules/unistd (Makefile.am): Substitute witnesses.
78016         * lib/unistd.in.h (usleep): Add declaration.
78017         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78018         * MODULES.html.sh (Date and time): Likewise.
78019         * modules/usleep-tests (Depends-on): New test.
78020         * tests/test-usleep.c: New file.
78022         chown: work around OpenBSD bug
78023         * lib/chown.c (rpl_chown): Work around the bug.
78024         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78025         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78026         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78027         * modules/chown (Depends-on): Add stdbool.
78028         * modules/lchown (Depends-on): Likewise.
78029         * doc/posix-functions/chown.texi (chown): Document the bug.
78030         * doc/posix-functions/lchown.texi (lchown): Likewise.
78031         * tests/test-lchown.h (test_chown): Relax test.
78033         mkstemp: avoid conflict with C++ keyword template
78034         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78035         * lib/mkostemp.c (mkostemp): Likewise.
78036         * lib/mkostemps.c (mkostemps): Likewise.
78037         * lib/mkstemp.c (mkstemp): Likewise.
78038         * lib/mkstemps.c (mkstemps): Likewise.
78040         xalloc-die-tests: optimize
78041         * tests/test-xalloc-die.sh: Reduce number of processes.
78043 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78045         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78046         patch from ludo@gnu.org (Ludovic Courtès).
78048 2009-11-17  Jim Meyering  <meyering@redhat.com>
78050         version-etc: use proper license string
78051         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78052         * modules/version-etc-fsf: Likewise.
78054 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78056         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78057         printed to stdout.  Deal with EOL differences.
78059 2009-11-17  Eric Blake  <ebb9@byu.net>
78061         unsetenv: work around Solaris bug
78062         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78063         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78064         Reported by Jim Meyering.
78066         vasnprintf: avoid compiler warnings
78067         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78068         variables.
78069         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78073         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78074         settings since xalloc-die is no longer the self test,
78075         xalloc-die.sh is.
78077 2009-11-17  Jim Meyering  <meyering@redhat.com>
78079         test-xalloc-die.sh: make the code agree with the commit log
78080         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78081         at the end, just in case you happen to have a test-xalloc-die
78082         program in some other PATH directory.
78084         test-xalloc-die.sh: fix a portability bug
78085         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78086         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78087         Otherwise, argv[0] (as often seen in diagnostics) would be too
78088         system-dependent, sometimes with, and sometimes without the leading "./".
78090         version-etc-fsf: relax license to LGPLv3+
78091         * modules/version-etc-fsf (License): Relax license.
78093 2009-11-16  Eric Blake  <ebb9@byu.net>
78095         xalloc-die-tests: avoid printing null pointer
78096         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78097         shell script.
78098         * tests/test-xalloc-die.c (program_name): Declare.
78099         * tests/test-xalloc-die.sh (tmpfiles): New file.
78101         setenv, unsetenv: work around various bugs
78102         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78103         (setenv) [HAVE_SETENV]: Work around bugs.
78104         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78106         for bugs.
78107         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78108         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78110         * modules/stdlib (Makefile.am): Update substitutions.
78111         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78112         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78113         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78114         * modules/setenv-tests: New test.
78115         * modules/unsetenv-tests: Likewise.
78116         * tests/test-setenv.c: New file.
78117         * tests/test-unsetenv.c: Likewise.
78119 2009-11-16  Jim Meyering  <meyering@redhat.com>
78121         version-etc: relax license to LGPLv3+
78122         * modules/version-etc (License): Relax license.
78124         better AC_REQUIRE expanded-before-required-warning avoidance
78125         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78126         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78127         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78128         which is no longer needed.
78130 2009-11-16  Eric Blake  <ebb9@byu.net>
78132         test-freading: clean up temporary file
78133         * tests/test-freading.c (main): Remove file on success, and use
78134         ASSERT more liberally.
78135         Reported by Jim Meyering.
78137 2009-11-16  Jim Meyering  <meyering@redhat.com>
78139         avoid new AC_REQUIRE expanded-before-required warnings
78140         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78141         merely using it.
78142         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78143         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78145 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78147         * tests/test-xalloc-die.c: New file.
78148         * modules/xalloc-die-tests: New file.
78149         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78150         XFAIL_TESTS so it can be appended by modules.
78152 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78154         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78155         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78157 2009-11-14  Eric Blake  <ebb9@byu.net>
78159         fnmatch: avoid compiler warning
78160         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78161         to silence compiler warning about mismatch signedness in ?:.
78162         Reported by Robert Millan.
78164         intprops: add double-inclusion guard
78165         * lib/intprops.h: Allow idempotent includes.
78166         Suggested by Bruce Korb.
78168         openat: detect Solaris fchownat bug
78169         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78170         penalizing glibc chownat when only lchownat is broken.
78171         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78172         trailing slash bugs.
78173         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78174         * modules/openat-tests (Files): Include more files.
78175         (Depends-on): Add mgetgroups, sleep, stat-time.
78176         (configure.ac): Add additional checks.
78177         (Makefile.am): Build new test.
78178         * tests/test-fchownat.c: New file.
78180         lchown: detect Solaris and FreeBSD bug
78181         * lib/lchown.c (rpl_lchown): Work around bug.
78182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78184         * modules/unistd (Makefile.am): Populate it.
78185         * lib/unistd.in.h (lchown): Update declaration.
78186         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78187         * modules/lchown-tests: New file.
78188         * tests/test-lchown.h (test_lchown): Likewise.
78189         * tests/test-lchown.c (main): Likewise.
78191         chown: detect Solaris and FreeBSD bug
78192         * lib/chown.c (rpl_chown): Work around bug.
78193         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78194         (gl_PREREQ_CHOWN): Delete.
78195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78196         * modules/unistd (Makefile.am): Populate it.
78197         * lib/unistd.in.h (chown): Update declaration.
78198         * lib/lchown.c (chown): Update client.
78199         * modules/lchown (Depends-on): Add lstat.
78200         * doc/posix-functions/chown.texi (chown): Document the bug.
78201         * doc/posix-functions/getgroups.texi (getgroups): Document
78202         getgroups pitfall.
78203         * modules/chown-tests: New file.
78204         * tests/test-chown.h (test_chown): Likewise.
78205         * tests/test-chown.c (main): Likewise.
78207 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78209         gnulib-tool: correctly detect absence of m4 directories
78210         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78212 2009-11-14  Jim Meyering  <meyering@redhat.com>
78214         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78215         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78217 2009-11-14  John W. Eaton  <jwe@gnu.org>
78219         strftime.h: wrap function declaration in extern "C" block
78220         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78222 2009-11-13  Eric Blake  <ebb9@byu.net>
78224         getgroups: avoid compiler warning
78225         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78227         getgroups: work around FreeBSD bug
78228         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78230         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78231         * tests/test-getgroups.c (main): Fix buffer overrun.
78233         getgroups: avoid compilation failure
78234         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78235         * modules/getgroups (Depends-on): Add stdint.
78237 2009-11-13  Jim Meyering  <meyering@redhat.com>
78239         test-getgroups: avoid compilation failure
78240         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78242 2009-11-13  Eric Blake  <ebb9@byu.net>
78244         mgetgroups: new module, taken from coreutils
78245         * modules/mgetgroups: New file.
78246         * lib/mgetgroups.h: Likewise.
78247         * lib/mgetgroups.c (mgetgroups): Likewise.
78248         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78249         * MODULES.html.sh (Users and groups): Mention it.
78251         getgroups: don't expose GETGROUPS_T to user
78252         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78253         an element at a time if GETGROUPS_T is wrong size.
78254         * lib/getugroups.h (getugroups): Change signature.
78255         * lib/unistd.in.h (getgroups): Likewise.
78256         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78257         signature needs fixing.
78258         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78259         AC_TYPE_GETGROUPS.
78260         * modules/group-member (Depends-on): Add getgroups.
78261         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78262         (group_member): Rely on getgroups replacement.
78263         * lib/getugroups.c (getugroups): Use gid_t.
78264         * tests/test-getgroups.c (main): Likewise.
78265         * NEWS: Mention the signature change.
78266         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78267         problem with signature.
78268         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78269         GETGROUPS_T is still useful for setgroups.
78271         getgroups, getugroups: provide stubs for mingw
78272         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78273         * lib/getugroups.c (getugroups): Likewise.
78274         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78275         function.  Modernize replacement scheme.
78276         (gl_PREREQ_GETGROUPS): Delete.
78277         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78278         * modules/getgroups (configure.ac): Declare witness.
78279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78280         * modules/unistd (Depends-on): Substitute witness.
78281         * lib/unistd.in.h (getgroups): Declare replacement.
78283         getgroups: avoid calling exit
78284         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78285         drop xalloc.
78286         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78287         dependencies.
78288         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78289         exiting, in the rare case of malloc failure.
78291         getgroups: fix logic error
78292         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78293         has more than 20 groups.
78294         * modules/getgroups-tests: New test.
78295         * tests/test-getgroups.c: New file.
78297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78299         * tests/test-base64.c: Improve.
78301 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78303         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78304         Blake <ebb9@byu.net>.
78306 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78308         * tests/test-xvasprintf.c: Add %s%s related checks.
78310 2009-11-12  Eric Blake  <ebb9@byu.net>
78312         version-etc: match standards.texi style
78313         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78314         and use <> only for URLs.
78316 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78318         fts: do not fail on a submount during traversal
78319         * lib/fts.c (fts_build): Read the stat info again after opening
78320         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78321         Original report at http://bugzilla.redhat.com/501848.
78323 2009-11-12  Jim Meyering  <meyering@redhat.com>
78325         bootstrap: sync from coreutils
78326         * build-aux/bootstrap (bootstrap_epilogue): New function.
78327         Use git_modules_config in one more place.  This make bootstrap's
78328         --gnulib-srcdir option more useful for testing.
78330         bootstrap: generalize autoheader check
78331         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78332         AC_CONFIG_HEADERS.
78334 2009-11-11  Eric Blake  <ebb9@byu.net>
78336         mkfifoat: use new modules for Solaris and BSD bugs
78337         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78338         * lib/mkfifoat.c (mknodat): Split...
78339         * lib/mknodat.c (mknodat): ...into new file.
78340         * modules/mkfifoat (Files): Ship new file.
78341         (Depends-on): Add mkfifo, mknod.
78342         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78343         (Depends-on): Add symlink.
78344         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78345         redundant with test_mkfifo.h.
78346         (do_mkfifoat, do_mknodat): New helpers.
78348         mknod: new module
78349         * modules/mknod: New file.
78350         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78351         * lib/mknod.c (mknod): Likewise.
78352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78353         defaults.
78354         * modules/sys_stat (Makefile.am): Substitute them.
78355         * lib/sys_stat.in.h (mknod): Declare replacement.
78356         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78357         Document it.
78358         * doc/posix-functions/mknod.texi (mknod): Likewise.
78359         * modules/mknod-tests: New test.
78360         * tests/test-mknod.c: Likewise.
78362         mkfifo: new module
78363         * modules/mkfifo: New file.
78364         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78365         * lib/mkfifo.c (mkfifo): Likewise.
78366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78367         defaults.
78368         * modules/sys_stat (Makefile.am): Substitute them.
78369         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78370         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78371         Document it.
78372         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78373         * modules/mkfifo-tests: New test.
78374         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78375         from test-mkfifoat.c.
78376         * tests/test-mkfifo.c: New file.
78378         readlink: detect FreeBSD bug
78379         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78380         slash on symlink.
78381         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78382         * tests/test-readlink.h (test_readlink): Enhance test.
78384         symlink: detect FreeBSD bug
78385         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78386         slash on symlink.
78387         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78388         * tests/test-symlink.h (test_symlink): Enhance test.
78390 2009-11-10  Eric Blake  <ebb9@byu.net>
78392         link: detect FreeBSD bug
78393         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78394         symlink.
78395         * doc/posix-functions/link.texi (link): Document the bug.
78396         * tests/test-link.h (test_link): Enhance test.
78397         * tests/test-linkat.c (main): Update caller.
78399         unlink, remove: detect FreeBSD bug
78400         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78401         slash on symlink.
78402         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78403         * doc/posix-functions/remove.texi (remove): Likewise.
78404         * tests/test-unlink.h (test_unlink): Enhance test.
78405         * tests/test-remove.c (main): Likewise.
78407 2009-11-09  Eric Blake  <ebb9@byu.net>
78409         rename: detect FreeBSD bug
78410         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78411         slash on symlink.
78412         * modules/renameat-tests (Depends-on): Add filenamecat.
78413         * tests/test-rename.h (test_rename): Allow one more errno.
78414         * tests/test-renameat.c (main): Likewise.
78415         * doc/posix-functions/rename.texi (rename): Document the bug.
78417         open: detect FreeBSD bug
78418         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78419         symlink.
78420         * doc/posix-functions/open.texi (open): Document the bug.
78421         * doc/posix-functions/utimes.texi (utimes): Likewise.
78422         * tests/test-open.h (test_open): Add parameters, and test symlink
78423         handling.
78424         * tests/test-open.c (main): Adjust caller.
78425         * tests/test-fcntl-safer.c (main): Likewise.
78426         * modules/open-tests (Depends-on): Add stdbool, symlink.
78427         * modules/fcntl-safer-tests (Depends-on): Likewise.
78428         * tests/test-openat.c (main): Add test-open tests.
78430         stat: detect FreeBSD bug
78431         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78432         symlink.
78433         * doc/posix-functions/stat.texi (stat): Document the bug.
78434         * tests/test-stat.h (test_stat_func): Add argument.
78435         * tests/test-stat.c (main): Adjust caller.
78436         * tests/test-fstatat.c (main): Likewise.
78437         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78438         Reported by Jim Meyering.
78440 2009-11-09  James Youngman  <jay@gnu.org>
78442         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78443         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78445 2009-11-08  Jim Meyering  <meyering@redhat.com>
78447         utimens: remove invalid futimesat call
78448         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78449         It used the file descriptor of the target file as the DIR_FD
78450         parameter and NULL as the file name.  That caused failure with
78451         errno == EFAULT on FreeBSD-8.0-rc2
78453 2009-11-07  Eric Blake  <ebb9@byu.net>
78455         fflush, freadseek: use fseeko, not fseek
78456         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78457         (clear_ungetc_buffer): Avoid potential problems on large files.
78458         * lib/freadseek.c (freadseek): Likewise.
78459         * modules/freadseek (Depends-on): Add fseeko.
78460         * modules/fseek (configure.ac): Set a witness.
78461         * tests/test-fflush.c (main): Use fseeko.
78462         * tests/test-fpurge.c (fseek): Disable link warning.
78463         * tests/test-freadable.c (fseek): Likewise.
78464         * tests/test-freading.c (fseek): Likewise.
78465         * tests/test-fseeko.c (fseek): Likewise.
78466         * tests/test-ftell.c (fseek): Likewise.
78467         * tests/test-ftello.c (fseek): Likewise.
78468         * tests/test-fwritable.c (fseek): Likewise.
78469         * tests/test-fwriting.c (fseek): Likewise.
78471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78473         * modules/memchr (Depends-on): Drop getpagesize dependency.
78475 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78477         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78478         Reported by Ludovic Courtès.
78479         * build-aux/pmccabe2html: Improve example usage.
78480         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78482 2009-11-06  Jim Meyering  <meyering@redhat.com>
78484         do-release-commit-and-tag: New module.
78485         Automate the release-commit and tag process.
78486         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78487         * modules/do-release-commit-and-tag: New file.
78488         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78490 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78492         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78493         because test-select.c uses inet_pton.
78495 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78497         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78498         GETADDRINFO_LIB.  Bump serial number.
78499         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78500         Suggested by Eric Blake <ebb9@byu.net>.
78502 2009-11-05  Eric Blake  <ebb9@byu.net>
78504         strtod: detect darwin bug
78505         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78506         Reported by Leo Davis.
78508         freopen-safer: new module
78509         * modules/freopen-safer: New module.
78510         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78511         * lib/freopen-safer.c (freopen_safer): New file.
78512         * lib/stdio-safer.h (freopen_safer): New declaration.
78513         * lib/stdio--.h (freopen): New override.
78514         * MODULES.html.sh (File stream based Input/Output): Mention it.
78515         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
78516         freopen-safer module.
78517         * doc/posix-functions/stderr.texi (stderr): Likewise.
78518         * doc/posix-functions/stdin.texi (stdin): Likewise.
78519         * doc/posix-functions/stdout.texi (stdout): Likewise.
78520         * modules/freopen-safer-tests: New test.
78521         * tests/test-reopen-safer.c: New file.
78523 2009-11-05  Jim Meyering  <meyering@redhat.com>
78525         maint.mk: Prohibit inclusion of "close-stream.h" without use.
78526         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78530         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
78532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78534         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
78536 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78538         Fix link error.
78539         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78540         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78544         * tests/test-func.c: Also test value of __func__.
78546 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78548         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
78549         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
78551 2009-11-05  Bruno Haible  <bruno@clisp.org>
78553         Fix link error.
78554         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78555         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78556         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
78558 2009-11-05  Bruno Haible  <bruno@clisp.org>
78560         Tests for module 'inet_pton'.
78561         * modules/inet_pton-tests: New file.
78562         * tests/test-inet_pton.c: New file.
78564 2009-11-05  Bruno Haible  <bruno@clisp.org>
78566         Tests for module 'inet_ntop'.
78567         * modules/inet_ntop-tests: New file.
78568         * tests/test-inet_ntop.c: New file.
78570 2009-11-04  Eric Blake  <ebb9@byu.net>
78572         stdlib-safer: wrap all mkstemp variants
78573         * modules/mkostemp (configure.ac): Set witness.
78574         * modules/mkostemps (configure.ac): Likewise.
78575         * modules/mkstemps (configure.ac): Likewise.
78576         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
78577         (mkstemps_safer): Wrap more functions.
78578         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
78579         wrapping.
78580         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
78581         (mkstemps_safer): Implement the wrappers.
78583         mkstemps, mkostemps: new modules
78584         * modules/mkostemps: New module.
78585         * modules/mkstemps: Likewise.
78586         * lib/mkostemps.c (mkostemps): New file.
78587         * lib/mkstemps.c (mkstemps): Likewise.
78588         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
78589         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
78590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
78591         * modules/stdlib (Makefile.am): Substitute them.
78592         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78593         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78594         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78595         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78596         * MODULES.html.sh (File system functions): Mention them.
78598         tempname: resync from glibc
78599         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78600         same values for __GT_FILE as glibc.  Abort even when assertions
78601         are disabled.
78602         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78603         match its value otherwise.  Allow idempotent inclusion.
78604         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78605         * lib/mkostemp.c (mkostemp): Likewise.
78606         * lib/mkstemp.c (mkstemp): Likewise.
78607         * lib/tmpfile.c (tmpfile): Likewise.
78608         * NEWS: Document this.
78610         utimens: fix use of futimens on older Linux
78611         * lib/utimens.c (fdutimens): Use updated, rather than original,
78612         timespec to avoid bug in older Linux kernel.
78613         Reported by Simon Josefsson.
78615 2009-11-04  Bruno Haible  <bruno@clisp.org>
78617         Make num_processors more flexible and consistent.
78618         * lib/nproc.h (enum nproc_query): New type.
78619         (num_processors): Add a 'query' argument.
78620         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78621         (num_processors): Add a 'query' argument. Test the value of the
78622         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78623         mingw, count the number of CPUs available for the current process.
78624         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78625         Check for sched_getaffinity and sched_getaffinity_np.
78626         * modules/nproc (Depends-on): Add c-ctype, extensions.
78627         * NEWS: Mention the change.
78629 2009-11-03  Bruno Haible  <bruno@clisp.org>
78631         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78633 2009-11-03  Jim Meyering  <meyering@redhat.com>
78635         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78636         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78637         if it is defined.
78639 2009-11-02  Eric Blake  <ebb9@byu.net>
78641         mktime, timegm: share common declaration
78642         * lib/mktime-internal.h: New file.
78643         * lib/mktime.c: Use it rather than open-coding a declaration.
78644         * lib/timegm.c: Likewise.
78645         * modules/mktime (Files): Ship it.
78646         * modules/timegm (Files): Likewise.
78647         Suggested by Bruno Haible.
78649         test-update-copyright: update test to match script changes
78650         * tests/test-update-copyright.sh: Avoid hard-coding perl
78651         location.  Don't update *.bak created by earlier runs.
78653 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78654             Simon Josefsson  <simon@josefsson.org>
78655             Bruno Haible  <bruno@clisp.org>
78657         Fix link error on Solaris 8.
78658         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78659         also in libnsl. Define also INET_PTON_LIB.
78660         * modules/inet_pton (Link): New section.
78662 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78663             Bruno Haible  <bruno@clisp.org>
78665         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78666         * modules/inet_ntop (Link): New section.
78667         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78669 2009-11-02  Eric Blake  <ebb9@byu.net>
78671         maint: avoid compiler warnings in m4 macros
78672         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78675 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78677         * m4/pmccabe2html.m4: Remove file.
78678         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78679         function.  Change maintainer.
78680         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78681         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78682         Courtès).
78684 2009-10-31  Eric Blake  <ebb9@byu.net>
78686         fseeko: fix m4 regression
78687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78688         regression from 2009-10-27.
78689         Reported by Ralf Wildenhues.
78691 2009-10-31  Jim Meyering  <meyering@redhat.com>
78693         inttostr: aesthetics and improved (compile-time) safety
78694         Define inttype_is_signed rather than inttype_is_unsigned,
78695         since the sole use is via "#if inttype_is_signed".
78696         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78697         inttype_is_unsigned.
78698         * lib/offtostr.c (inttype_is_signed): Likewise.
78699         * lib/uinttostr.c (inttype_is_signed): Likewise.
78700         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78701         * lib/inttostr.c (inttostr): Use verify to cross-check the
78702         inttype_is_signed value and the signedness of the actual type.
78703         * modules/inttostr (Depends-on): Add verify.
78705 2009-10-30  Eric Blake  <ebb9@byu.net>
78707         build: avoid compiler warnings
78708         * lib/fchmodat.c (lchmod): Mark unused variables.
78709         * lib/getopt.c (_getopt_initialize): Likewise.
78710         * lib/mktime.c (__mktime_internal): Provide prototype.
78711         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78712         older gcc that do not understand #pragma GCC diagnostic.
78713         * lib/uinttostr.c (inttype_is_unsigned): Define.
78714         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78716 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78718         stat: fix compilation on AIX
78719         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78720         only see struct stat64.
78722 2009-10-30  Eric Blake  <ebb9@byu.net>
78724         exclude: make more robust
78725         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78726         rather than masking a coding bug.
78727         Suggested by Bruno Haible.
78729 2009-10-30  Jim Meyering  <meyering@redhat.com>
78731         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78732         Rather than putting #!/usr/bin/perl on the first line,
78733         start with a variant of what's recommended by "man perlrun" that
78734         invokes the first "perl" program from your shell's search path.
78735         * build-aux/gitlog-to-changelog: Replace #!... as above.
78736         Add a "Local Variables" perl mode setting.
78737         Prompted by a patch from Ludovic Courtès.
78738         Improved by Eric Blake.
78739         * build-aux/useless-if-before-free: Likewise.
78740         * build-aux/announce-gen: Likewise.
78741         * build-aux/update-copyright: Likewise.
78743 2009-10-29  Eric Blake  <ebb9@byu.net>
78745         filenamecat-lgpl: adjust clients
78746         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78747         filenamecat.
78748         * modules/renameat (Depends-on): Likewise.
78750         filenamecat: split into filenamecat-lgpl
78751         * modules/filenamecat-lgpl: New module.
78752         * modules/filenamecat (Files): Move library-safe files into
78753         filenamecat-lgpl.
78754         (Depends-on): Add filenamecat-lgpl.
78755         (configure.ac): Declare witness.
78756         * lib/filenamecat.h (file_name_concat): Only declare when using
78757         GPL module.
78758         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78759         Move...
78760         * lib/filenamecat-lgpl.c: ...into new file.
78761         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78762         (gl_FILE_NAME_CONCAT): Use it.
78763         * MODULES.html.sh (File system functions): Mention new module.
78765         argp: avoid memory leak
78766         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78767         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78768         base_name, since the latter malloc()s and can call exit().
78769         Leak introduced 2006-07-03.
78771         dirname-lgpl: adjust clients that don't need full dirname
78772         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78773         * modules/filenamecat (Depends-on): Likewise.
78774         * modules/linkat (Depends-on): Likewise.
78775         * modules/mkancesdirs (Depends-on): Likewise.
78776         * modules/mkdir (Depends-on): Likewise.
78777         * modules/openat (Depends-on): Likewise.
78778         * modules/savewd (Depends-on): Likewise.
78779         * modules/rename (Depends-on): Likewise.
78780         (License): Relax license.
78781         * modules/mkdir-tests (Depends-on): Drop progname.
78782         (Makefile.am): Delete unneeded LDADD.
78783         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78785         dirname: split into dirname-lgpl
78786         * modules/dirname-lgpl: New module.
78787         * modules/dirname (Files): Move library-safe files into
78788         dirname-lgpl.
78789         (Depends-on): Add dirname-lgpl.
78790         (configure.ac): Declare witness.
78791         * modules/double-slash-root (License): Relax license.
78792         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78793         module.
78794         * lib/dirname.c (dir_len, mdir_name): Move...
78795         * lib/dirname-lgpl.c: ...into new file.
78796         * lib/basename.c (last_component, base_len): Move...
78797         * lib/basename-lgpl.c: ...into new file.
78798         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78799         (gl_DIRNAME): Use it.
78800         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78801         Mention new module.
78802         * modules/dirname-tests (Depends-on): Add progname.
78803         * tests/test-dirname.c (program_name): Delete.
78805         mkdir: make safe for libraries
78806         * modules/mkdir (Depends-on): Drop xalloc.
78807         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78808         exit.
78810         tests: avoid some compiler warnings
78811         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78812         literals.
78813         * tests/test-memchr.c (main): Avoid type mismatch.
78814         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78815         * tests/test-base64.c (main): Likewise.
78816         * tests/test-getdelim.c (main): Likewise.
78817         * tests/test-gethostname.c (main): Likewise.
78818         * tests/test-getline.c (main): Likewise.
78819         * tests/test-netinet_in.c (main): Likewise.
78820         * tests/test-select.c (open_server_socket, main): Likewise.
78821         * tests/test-select-stdin.c (main): Likewise.
78822         * tests/test-sockets.c (main): Likewise.
78823         * tests/test-strsignal.c (main): Likewise.
78824         * tests/test-sys_select.c (main): Likewise.
78825         * tests/test-sys_socket.c (main): Likewise.
78826         * tests/test-u64.c (main): Likewise.
78827         * tests/test-xfprintf-posix.c (main): Likewise.
78828         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78830         sockets: avoid compiler warning
78831         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78833         maint: detect usage(1) and other suspicious exits
78834         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78836 2009-10-29  Jim Meyering  <meyering@redhat.com>
78838         timespec: long-to-int truncation could make timespec_cmp malfunction
78839         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78840         a multiple of 2^32 nanoseconds as no difference.
78842 2009-10-28  Jim Meyering  <meyering@redhat.com>
78844         fprintftime: wrap macro code argument in "do {...} while(0)"
78845         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78846         cpy macro must be a statement that can be followed by a semicolon.
78847         Now that the else clause contains a comment and is hence longer
78848         than one line, I require curly braces.  That in turn requires
78849         that we wrap this code block in the standard do...while(0).
78851         fprintftime: remove stray semicolon from previous change
78852         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78854         fprintftime: avoid a warning about ignored fwrite return value
78855         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78856         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78857         that is unsafe.
78858         * modules/fprintftime (Depends-on): Add ignore-value.
78860         exclude: avoid an unwarranted warning
78861         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78863 2009-10-27  Eric Blake  <ebb9@byu.net>
78865         fseek: avoid compilation failure when fflush is replaced
78866         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78867         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78868         module is in use.
78869         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78870         module is not in use; since REPLACE_FSEEK worked otherwise.
78871         (GNULIB_FTELLO): Likewise for ftell.
78872         Reported by Ian Beckwith and others.
78874 2009-10-27  Bruno Haible  <bruno@clisp.org>
78876         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78877         Reported by Jim Meyering.
78879 2009-10-27  Jim Meyering  <jim@meyering.net>
78880             Bruno Haible  <bruno@clisp.org>
78882         Avoid warning despite dropping the return value of fwrite.
78883         * lib/unicodeio.c: Include ignore-value.h.
78884         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78885         * modules/unicodeio (Depends-on): Add ignore-value.
78887 2009-10-26  Eric Blake  <ebb9@byu.net>
78889         areadlinkat: fix fallback path
78890         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78891         pointer and zero.
78893 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78895         Use a better IO block size for modern systems
78896         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78897         * lib/md2.c: Likewise.
78898         * lib/md4.c: Likewise.
78899         * lib/md5.c: Likewise.
78900         * lib/sha1.c: Likewise.
78901         * lib/sha256.c: Likewise.
78902         * lib/sha512.c: Likewise.
78904 2009-10-22  Eric Blake  <ebb9@byu.net>
78906         tests: avoid several compiler warnings
78907         * tests/test-getcwd.c (main): Avoid buffer underflow.
78908         * tests/test-getdate.c (main): String literals are not safe with
78909         putenv, so use setenv.  Declare unused argument.
78910         * modules/getdate-tests (Depends-on): Add setenv.
78911         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78912         problems with string literals in char *.
78913         * tests/test-hash.c (main): Avoid shadowing declaration.
78914         (insert_new): Treat string literals as char const *.
78915         * tests/test-getopt.h (test_getopt): Likewise.
78916         (getopt_loop): Alter types to minimize casting elsewhere.
78917         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78918         (test_getopt_long_posix): Likewise.
78919         (do_getopt_long): Add wrapper to minimize casting.
78920         * tests/test-atexit.c (clear_temp_file): Use void.
78921         * tests/test-areadlink-with-size.c (main): Declare unused
78922         arguments.
78923         * tests/test-areadlink.c (main): Likewise.
78924         * tests/test-areadlinkat-with-size.c (main): Likewise.
78925         * tests/test-areadlinkat.c (main): Likewise.
78926         * tests/test-canonicalize-lgpl.c (main): Likewise.
78927         * tests/test-canonicalize.c (main): Likewise.
78928         * tests/test-dirent-safer.c (main): Likewise.
78929         * tests/test-dirname.c (main): Likewise.
78930         * tests/test-dup2.c (main): Likewise.
78931         * tests/test-fchdir.c (main): Likewise.
78932         * tests/test-fcntl-h.c (main): Likewise.
78933         * tests/test-fcntl-safer.c (main): Likewise.
78934         * tests/test-fdopendir.c (main): Likewise.
78935         * tests/test-fdutimensat.c (main): Likewise.
78936         * tests/test-fflush.c (main): Likewise.
78937         * tests/test-filenamecat.c (main): Likewise.
78938         * tests/test-filevercmp.c (main): Likewise.
78939         * tests/test-fopen-safer.c (main): Likewise.
78940         * tests/test-fopen.c (main): Likewise.
78941         * tests/test-fpending.c (main): Likewise.
78942         * tests/test-fpurge.c (main): Likewise.
78943         * tests/test-freading.c (main): Likewise.
78944         * tests/test-fstatat.c (main): Likewise.
78945         * tests/test-fsync.c (main): Likewise.
78946         * tests/test-futimens.c (main): Likewise.
78947         * tests/test-getndelim2.c (main): Likewise.
78948         * tests/test-gettimeofday.c (main): Likewise.
78949         * tests/test-getopt.c (main): Likewise.
78950         * tests/test-i-ring.c (main): Likewise.
78951         * tests/test-inttypes.c (main): Likewise.
78952         * tests/test-link.c (main): Likewise.
78953         * tests/test-lstat.c (main): Likewise.
78954         * tests/test-math.c (main): Likewise.
78955         * tests/test-md5.c (main): Likewise.
78956         * tests/test-memchr2.c (main): Likewise.
78957         * tests/test-memrchr.c (main): Likewise.
78958         * tests/test-mkdir.c (main): Likewise.
78959         * tests/test-mkdirat.c (main): Likewise.
78960         * tests/test-mkfifoat.c (main): Likewise.
78961         * tests/test-open.c (main): Likewise.
78962         * tests/test-openat-safer.c (main): Likewise.
78963         * tests/test-openat.c (main): Likewise.
78964         * tests/test-quotearg.c (main): Likewise.
78965         * tests/test-rawmemchr.c (main): Likewise.
78966         * tests/test-readlink.c (main): Likewise.
78967         * tests/test-remove.c (main): Likewise.
78968         * tests/test-rename.c (main): Likewise.
78969         * tests/test-renameat.c (main): Likewise.
78970         * tests/test-rmdir.c (main): Likewise.
78971         * tests/test-sha1.c (main): Likewise.
78972         * tests/test-signal.c (main): Likewise.
78973         * tests/test-sigaction.c (main): Likewise.
78974         * tests/test-stat.c (main): Likewise.
78975         * tests/test-stat-time.c (main): Likewise.
78976         * tests/test-stddef.c (main): Likewise.
78977         * tests/test-stdint.c (main): Likewise.
78978         * tests/test-stdio.c (main): Likewise.
78979         * tests/test-stdlib.c (main): Likewise.
78980         * tests/test-strchrnul.c (main): Likewise.
78981         * tests/test-strerror.c (main): Likewise.
78982         * tests/test-string.c (main): Likewise.
78983         * tests/test-strtod.c (main): Likewise.
78984         * tests/test-strverscmp.c (main): Likewise.
78985         * tests/test-symlink.c (main): Likewise.
78986         * tests/test-symlinkat.c (main): Likewise.
78987         * tests/test-sys_stat.c (main): Likewise.
78988         * tests/test-sys_time.c (main): Likewise.
78989         * tests/test-time.c (main): Likewise.
78990         * tests/test-unistd.c (main): Likewise.
78991         * tests/test-unlink.c (main): Likewise.
78992         * tests/test-unlinkat.c (main): Likewise.
78993         * tests/test-utimens.c (main): Likewise.
78994         * tests/test-utimensat.c (main): Likewise.
78995         * tests/test-version-etc.c (main): Likewise.
78996         * tests/test-wchar.c (main): Likewise.
78997         * tests/test-wctype.c (main): Likewise.
78998         * tests/test-xprintf-posix.c (main): Likewise.
78999         * tests/test-posixtm.c (main): Likewise.
79000         (STREQ): Delete unused macro.
79001         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79002         shadowed variables.
79003         * tests/test-memchr.c (main): Likewise.
79005 2009-10-21  Eric Blake  <ebb9@byu.net>
79007         areadlinkat: avoid failure on older glibc
79008         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79009         rather than mis-comparing 0 against FUNC_RESULT of char*.
79011 2009-10-21  Bruno Haible  <bruno@clisp.org>
79013         * modules/stpncpy (License): Relicense under LGPLv2+.
79014         Reported by David Lutterkort <lutter@redhat.com>.
79016 2009-10-20  Eric Blake  <ebb9@byu.net>
79018         utimensat: work around Solaris 9 bug
79019         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79020         has trailing slash bugs.
79021         * tests/test-lutimens.h (test_lutimens): Enhance test.
79022         * tests/test-utimens.h (test_utimens): Likewise.
79023         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79024         * doc/posix-functions/utimes.texi (utimes): Likewise.
79025         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79026         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79027         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79028         * doc/posix-functions/futimens.texi (futimens): Likewise.
79030         fdutimensat: new module
79031         * modules/fdutimensat: New file.
79032         * lib/fdutimensat.c (fdutimensat): Likewise.
79033         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79034         * MODULES.html.sh (File system functions): Mention module.
79035         * modules/fdutimensat-tests: New test.
79036         * tests/test-fdutimensat.c: Likewise.
79038         doc: regenerate INSTALL
79039         * doc/INSTALL: Reflect recent autoconf update.
79040         * doc/INSTALL.ISO: Likewise.
79041         * doc/INSTALL.UTF-8: Likewise.
79043 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79045         acl: warn if ACL support is not detected
79046         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79048 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79050         * lib/nproc.h: Add extern "C" block for C++.
79052 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79053             Bruno Haible  <bruno@clisp.org>
79055         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79056         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79057         * doc/posix-functions/isalpha.texi: Likewise.
79058         * doc/posix-functions/isblank.texi: Likewise.
79059         * doc/posix-functions/iscntrl.texi: Likewise.
79060         * doc/posix-functions/isdigit.texi: Likewise.
79061         * doc/posix-functions/isgraph.texi: Likewise.
79062         * doc/posix-functions/islower.texi: Likewise.
79063         * doc/posix-functions/isprint.texi: Likewise.
79064         * doc/posix-functions/ispunct.texi: Likewise.
79065         * doc/posix-functions/isspace.texi: Likewise.
79066         * doc/posix-functions/isupper.texi: Likewise.
79067         * doc/posix-functions/isxdigit.texi: Likewise.
79069 2009-10-18  Bruno Haible  <bruno@clisp.org>
79071         Tests for module 'isblank'.
79072         * modules/isblank-tests: New file.
79073         * tests/test-isblank.c: New file.
79075         New module 'isblank'.
79076         * lib/isblank.c: New file.
79077         * m4/isblank.m4: New file.
79078         * modules/isblank: New file.
79079         * doc/posix-functions/isblank.texi: Mention the new module.
79081 2009-10-18  Bruno Haible  <bruno@clisp.org>
79083         New module 'ctype'.
79084         * lib/ctype.in.h: New file.
79085         * m4/ctype.m4: New file.
79086         * modules/ctype: New file.
79087         * doc/posix-headers/ctype.texi: Mention the new module.
79089 2009-10-18  Jim Meyering  <meyering@redhat.com>
79091         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79092         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79093         right after its initialization, rather than farther down.
79094         Keeping these in close proximity makes it easier to ensure
79095         that each such variable is initialized.  E.g.,
79097             LIB_CLOCK_GETTIME=
79098             AC_SUBST([LIB_CLOCK_GETTIME])
79100         This change also increments these serial numbers.
79101         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79102         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79105 2009-10-18  Bruno Haible  <bruno@clisp.org>
79107         Don't let environment variables perturb build.
79108         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79109         (gl_PREREQ_GETHRXTIME): ... not here.
79111 2009-10-18  Bruno Haible  <bruno@clisp.org>
79113         Avoid symlink attack in localcharset module.
79114         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79115         (O_NOFOLLOW): Define fallback.
79116         (get_charset_aliases): Don't open the file if it is a symbolic link.
79117         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79118         gl_FCNTL_H.
79119         (gl_FCNTL_H): Require it.
79120         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79121         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79122         Reported by Fergal Glynn <fglynn@veracode.com>.
79124 2009-10-18  Bruno Haible  <bruno@clisp.org>
79126         Implement nproc for mingw.
79127         * lib/nproc.c: Include <windows.h>
79128         (num_processors): On native Windows platforms, try GetSystemInfo.
79130 2009-10-18  Bruno Haible  <bruno@clisp.org>
79132         Implement nproc for IRIX.
79133         * lib/nproc.c: Include <sys/sysmp.h>.
79134         (num_processors): On IRIX systems, try sysmp.
79135         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79137 2009-10-18  Bruno Haible  <bruno@clisp.org>
79139         Implement nproc for HP-UX.
79140         * lib/nproc.c: Include <sys/pstat.h>
79141         (num_processors): On HP-UX systems, try pstat_getdynamic.
79142         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79143         pstat_getdynamic.
79145 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79146             Bruno Haible  <bruno@clisp.org>
79148         Implement nproc for NetBSD, OpenBSD.
79149         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79150         (ARRAY_SIZE): New macro.
79151         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79152         * m4/nproc.m4: New file.
79153         * modules/nproc (Files): Add m4/nproc.m4.
79154         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79155         (Makefile.am): Instead, augment lib_SOURCES.
79157 2009-10-18  Bruno Haible  <bruno@clisp.org>
79159         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79160         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79161         sys/param.h.
79163 2009-10-16  Eric Blake  <ebb9@byu.net>
79165         utimensat: new module
79166         * modules/utimensat: New file.
79167         * lib/utimensat.c (utimensat): Likewise.
79168         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79169         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79170         so we can work around Linux bugs.
79171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79172         * modules/sys_stat (Makefile.am): Substitute them.
79173         * lib/sys_stat.in.h (utimensat): Declare it.
79174         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79175         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79176         * modules/utimensat-tests: New test.
79177         * tests/test-utimensat.c: Likewise.
79179         utimens: let lutimens work on non-symlinks
79180         * lib/utimens.c (lutimens): Fall back to utimens rather than
79181         failing with ENOSYS, when file is not a symlink.
79182         (utimens): Reduce redirection.
79183         * tests/test-lutimens.h (test_lutimens): Update test to cover
79184         non-symlinks.
79185         * tests/test-utimens.h (test_utimens): Update test to cover
79186         symlinks.
79187         * tests/test-utimens.c (main): Update caller.
79189         utimens: cache whether utimensat syscall works
79190         * lib/utimens.c (utimensat_works_really): New cache variable.
79191         (fdutimens, lutimens): Use it to avoid failing syscall.
79193         test-stat-time, test-utimens: improve portability
79194         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79195         ext4 on alpha, and for cygwin.
79196         * tests/test-utimens-common.h: New file.
79197         (nap): Factor delays into single function.
79198         * tests/test-lutimens.h (test_lutimens): Use new header.
79199         * tests/test-futimens.h (test_futimens): Likewise.
79200         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79201         timestamps to occur from same machine, as was done previously for
79202         test_utimens.
79203         * modules/utimens-tests (Files): Ship new file.
79204         * modules/futimens-tests (Files): Likewise.
79205         Reported in part by Jim Meyering.
79207         sys_stat: sort replacement declarations
79208         * lib/sys_stat.in.h: Sort declarations.
79209         * lib/futimens.c (futimens): Fix typo.
79211 2009-10-15  Jim Meyering  <meyering@redhat.com>
79213         don't let environment settings perturb build
79214         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79215         could cause a configure-time and/or build-time malfunction.
79216         Typically, a configure-time function-in-library test is performed
79217         via code like this:
79219           LIB_VAR=
79220           AC_SUBST([LIB_VAR])
79221           prefix_saved_LIBS=$LIBS
79222             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79223                        [test "$ac_cv_search_FUNC" = "none required" ||
79224                         LIB_VAR=$ac_cv_search_FUNC])
79225           LIBS=$prefix_saved_LIBS
79227         However, in each of the files affected by this change, the LIB_VAR=
79228         initialization was omitted.  Thus, when set in the environment, its
79229         value would propagate into generated Makefiles when FUNC is not found
79230         in LIB_NAME.
79231         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79232         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79235 2009-10-14  Eric Blake  <ebb9@byu.net>
79237         fchdir: avoid infinite recursion in mingw
79238         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79239         recursing.
79241         test-stat-time: port to mingw
79242         * tests/test-stat-time.c (force_unlink): Return a value.
79243         (test_ctime) [W32]: Fix compilation error.
79244         (nap): Don't call usleep with too large an argument.  Use
79245         force_unlink.
79246         * doc/pastposix-functions/usleep.texi (usleep): Document the
79247         portability issue.
79249 2009-10-13  Jim Meyering  <meyering@redhat.com>
79251         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79252         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79253         * modules/pipe-filter-ii: Likewise.
79254         * modules/sys_socket-tests: Likewise.
79255         * modules/tsearch-tests: Likewise.
79256         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79257         (check): Depend on it.
79259 2009-10-12  Eric Blake  <ebb9@byu.net>
79261         utimens-tests: port to NFS file systems
79262         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79263         comparisons to avoid spurious failures from timestamp drift
79264         between NFS machines.
79266 2009-10-12  Eric Blake  <ebb9@byu.net>
79268         stat-time-tests: minor cleanups
79269         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79270         * tests/test-stat-time.c (nap): Separate assignment from call.
79271         Suggested by Paolo Bonzini and Bruno Haible.
79273         sys_stat: guarantee struct timespec
79274         * lib/sys_stat.in.h (includes): Always include <time.h>
79275         * modules/sys_stat (Depends-on): Add time.
79276         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79277         mode_t permission values.
79278         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79279         get at subsecond timestamps.
79281 2009-10-10  Eric Blake  <ebb9@byu.net>
79283         futimens: new module
79284         * modules/futimens: New file.
79285         * lib/futimens.c (futimens): Likewise.
79286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79287         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79288         we can work around Linux bugs.
79289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79290         * modules/sys_stat (Makefile.am): Substitute them.
79291         * lib/sys_stat.in.h (futimens): Declare it.
79292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79293         * doc/posix-functions/futimens.texi (futimens): Likewise.
79294         * modules/futimens-tests: New test.
79295         * tests/test-futimens.c: Likewise.
79297         utimens: introduce fdutimens
79298         * lib/utimens.h (fdutimens): New prototype.
79299         * lib/utimens.c (gl_futimens): Move guts...
79300         (fdutimens): ...to new interface.
79301         * tests/test-utimens.c (do_fdutimens): Use it.
79303         utimens: add UTIME_NOW and UTIME_OMIT support
79304         * lib/utimens.c (validate_timespec, update_timespec): New helper
79305         functions.
79306         (gl_futimens, lutimens): Use them.
79307         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79308         stdbool, sys_stat.
79309         (Link): Mention resulting library dependency.
79310         * modules/utimecmp (Link): Likewise.
79311         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79312         (Makefile.am): Pick up library dependency.
79313         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79314         definition.
79315         * tests/test-sys_stat.c: Test the definitions.
79316         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79317         * NEWS: Document library dependency.
79319         utimecmp: support symlink timestamps
79320         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79321         hashing when possible.  Use pathconf when available.
79322         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79323         * modules/utimecmp (Depends-on): Add lstat.
79325         utimens: add lutimens interface
79326         * lib/utimens.c (lutimens): New function.
79327         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79328         * lib/utimens.h (lutimens): Declare new interface.
79329         * tests/test-utimens.c (main): Enhance test.
79330         * tests/test-lutimens.h (test_lutimens): New file.
79331         * modules/utimens-tests (Files): Distribute it.
79332         (Depends-on): Add symlink.
79333         (configure.ac): Check for usleep.
79335         utimens: validate futimens usage
79336         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79337         fewer syscalls on failure later on.  Avoid compiler warning on
79338         mingw.
79339         * modules/utimens (Depends-on): Add dup2.
79341         utimens: add test
79342         * modules/utimens-tests: New test.
79343         * tests/test-utimens.h: New file.
79344         * tests/test-futimens.h: Likewise.
79345         * tests/test-utimens.c: Likewise.
79347         doc: mention timestamp portability issues
79348         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79349         instead.
79350         * doc/posix-functions/utime.texi (utime): Likewise.
79351         * doc/posix-functions/utimes.texi (utimes): Likewise.
79352         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79353         instead.
79354         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79355         module.
79356         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79357         Mention weakness with symlink timestamps.
79358         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79359         to utimensat/futimens instead.
79360         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79362         test-dup2: enhance test
79363         * tests/test-dup2.c (main): Also check AT_FDCWD.
79365         test-stat-time: avoid more spurious failures
79366         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79367         xfs; and avoid race if the two timestamps cross quantization edge.
79369         relocatable: prefer 'file system' over 'filesystem'
79370         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79371         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79372         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79373         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79374         * lib/relocatable.c (compute_curr_prefix): Likewise.
79376 2009-10-10  Jim Meyering  <meyering@redhat.com>
79378         stat-time-tests: check for the usleep function
79379         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79381 2009-10-10  Bruno Haible  <bruno@clisp.org>
79383         * modules/xnanosleep: Put the Link section after the Include section.
79385 2009-10-09  Eric Blake  <ebb9@byu.net>
79387         dup2: work around FreeBSD 6.1 bug
79388         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79389         * doc/posix-functions/dup2.texi (dup2): Document it.
79390         Reported by Nelson H. F. Beebe and Jim Meyering.
79392         test-stat-time: port to buggy NFS clients
79393         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79394         (test_ctime): Also skip test if mtime and ctime are skewed.
79396         maint: prefer 'file system' over 'filesystem'
79397         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79398         * doc/posix-functions/lstat.texi (lstat): Likewise.
79399         * lib/file-has-acl.c (file_has_acl): Likewise.
79400         * lib/fwriteerror.c [TEST]: Likewise.
79401         * tests/test-areadlink.h (test_areadlink): Likewise.
79402         * tests/test-areadlinkat-with-size.c (main): Likewise.
79403         * tests/test-areadlinkat.c (main): Likewise.
79404         * tests/test-canonicalize-lgpl.c (main): Likewise.
79405         * tests/test-canonicalize.c (main): Likewise.
79406         * tests/test-fstatat.c (main): Likewise.
79407         * tests/test-linkat.c (main): Likewise.
79408         * tests/test-lstat.h (test_lstat_func): Likewise.
79409         * tests/test-mkdir.h (test_mkdir): Likewise.
79410         * tests/test-readlink.h (test_readlink): Likewise.
79411         * tests/test-remove.c (main): Likewise.
79412         * tests/test-rename.h (test_rename): Likewise.
79413         * tests/test-renameat.c (main): Likewise.
79414         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79415         * tests/test-symlink.h (test_symlink): Likewise.
79416         * tests/test-symlinkat.c (main): Likewise.
79417         * tests/test-unlink.h (test_unlink_func): Likewise.
79418         * tests/test-unlinkat.c (main): Likewise.
79420         maint: make realtime library usage explicit
79421         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79422         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79423         * modules/settime (Link): Likewise.
79424         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79426         test-stat-time: speed up execution
79427         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79428         warning on mingw.
79429         (nap): New helper function.
79430         (prepare_test): Use it to reduce sleep time.
79431         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79432         execution.
79433         * modules/stat-time-tests (configure.ac): Check for usleep.
79435 2009-10-09  Jim Meyering  <meyering@redhat.com>
79437         selinux-h: always use getfilecon wrappers
79438         * lib/getfilecon.c: New file.
79439         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79440         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79441         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79442         (fgetfilecon): Provide a stub.
79443         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79444         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79445         file unconditionally.
79446         When <selinux/selinux.h> is found, arrange to use wrappers.
79447         * modules/selinux-h (Files): Add getfilecon.c.
79448         (Makefile.am): Substitute include-next-related bits
79449         into the now-always-generated selinux/selinux.h file.
79450         * doc/glibc-functions/lgetfilecon.texi: New file.
79451         * doc/glibc-functions/fgetfilecon.texi: New file.
79452         * doc/glibc-functions/getfilecon.texi: New file.
79453         * doc/glibc-functions/getfilecon-desc.texi: New file.
79454         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79455         which to pull in the new files.
79456         * MODULES.html.sh (Misc): Add selinux-h.
79458 2009-10-08  Jim Meyering  <meyering@redhat.com>
79460         unistd: fix comment typo
79461         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79463 2009-10-08  Eric Blake  <ebb9@byu.net>
79465         areadlink: use SIZE_MAX consistently
79466         * modules/areadlink (Depends-on): Add stdint.
79467         * modules/areadlink-with-size (Depends-on): Likewise.
79468         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79469         gives NULL; drop sys/types, since unistd gives size_t; and add
79470         stdint for SIZE_MAX.
79471         (SIZE_MAX): Rely on headers.
79472         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79473         and add stdint.
79474         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79475         (SIZE_MAX): Likewise.
79476         (INITIAL_BUF_SIZE): Turn into enum.
79477         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79479 2009-10-08  Jim Meyering  <meyering@redhat.com>
79481         areadlinkat: avoid compilation failure
79482         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79483         Fix typo in comment.
79485 2009-10-07  Eric Blake  <ebb9@byu.net>
79487         areadlinkat-with-size: new module
79488         * modules/areadlinkat-with-size: New module.
79489         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79490         * lib/areadlink.h (areadlinkat): Declare it.
79491         * MODULES.html.sh (File system functions): Mention it.
79492         * modules/areadlinkat-with-size-tests: New test.
79493         * tests/test-areadlinkat-with-size.c: New file.
79495         xreadlinkat: new module
79496         * modules/xreadlinkat: New module.
79497         * lib/xreadlinkat.c (xreadlinkat): New file.
79498         * lib/xreadlink.h (xreadlinkat): Declare it.
79499         * MODULES.html.sh (File system functions): Mention it.
79501         areadlinkat: new module
79502         * lib/at-func.c (FUNC_FAIL): New define.
79503         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79504         * modules/areadlinkat: New module.
79505         * lib/linkat.c (areadlinkat): Move...
79506         * lib/areadlinkat.c (areadlinkat): ...to new file.
79507         * lib/areadlink.h (areadlinkat): Declare it.
79508         * modules/linkat (Depends-on): Add areadlinkat.
79509         * MODULES.html.sh (File system functions): Mention it.
79510         * modules/areadlinkat-tests: New test.
79511         * tests/test-areadlinkat.c: New file.
79513         areadlink, areadlink-with-size: add tests
79514         * modules/areadlink-tests: New test.
79515         * modules/areadlink-with-size-tests: Likewise.
79516         * tests/test-areadlink.h: New file.
79517         * tests/test-areadlink.c: Likewise.
79518         * tests/test-areadlink-with-size.c: Likewise.
79520         maint: minor cleanups
79521         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
79522         _UNUSED_PARAMETER_ instead.
79523         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
79524         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
79525         * modules/linkat-tests (Files): Distribute test-link.h.
79527         openat, utimens: whitespace cleanup
79528         * lib/openat.c: Prefer space throughout, rather than mix of 8
79529         spaces vs. tabs.
79530         * lib/at-func.c: Likewise.
79531         * lib/utimens.c: Likewise.
79533         openat: avoid using wrong fd
79534         * lib/openat.c (openat_permissive): Reject user's fd if saving the
79535         working directory chooses same fd.
79536         * lib/at-func.c (AT_FUNC_NAME): Likewise.
79538         mkdir, mkdirat: fix cygwin 1.5.x bug
79539         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
79540         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
79541         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
79542         bug.
79543         (gl_PREREQ_MKDIR): Delete unused macro.
79544         * modules/mkdir (Files): Track file rename.
79545         (configure.ac): Update macro name.
79546         * modules/openat (Depends-on): Add mkdir.
79547         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
79549         mkdir, mkdirat: add tests
79550         * modules/mkdir-tests: New test.
79551         * tests/test-mkdir.h: New file.
79552         * tests/test-mkdir.c: Likewise.
79553         * tests/test-mkdirat.c: Likewise.
79554         * modules/openat-tests (Files): Add new files.
79555         (Makefile.am): Run new test.
79557 2009-10-06  Eric Blake  <ebb9@byu.net>
79559         doc: tweak *at function documentation
79560         * doc/posix-functions/faccessat.texi (faccessat): Mention
79561         known issue with replacement.
79562         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
79563         * doc/posix-functions/linkat.texi (linkat): Likewise.
79564         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79565         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79566         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79567         * doc/posix-functions/renameat.texi (renameat): Likewise.
79568         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79570         openat: fix GNU/Hurd bug in unlinkat
79571         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
79572         broken.
79573         * doc/posix-functions/unlink.texi (unlink): Document this.
79574         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
79576         fdopendir: fix GNU/Hurd bug
79577         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
79578         allowing non-directory fds.
79579         * lib/fdopendir.c (rpl_fdopendir): Work around it.
79580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
79581         * modules/dirent (Makefile.am): Substitute it.
79582         * lib/dirent.in.h (fdopendir): Declare replacement.
79583         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
79584         * tests/test-fdopendir.c (main): Test something other than
79585         /dev/null, since on Hurd that behaves like a directory.
79587         test-symlink: port to GNU/Hurd
79588         * tests/test-symlink.h (test_symlink): Relax expected errno.
79590         doc: tweak more cygwin information
79591         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79592         now compatible with glibc.
79593         * doc/posix-functions/getopt.texi (getopt): Likewise.
79595         getopt-gnu: add another test
79596         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79597         guarantee behavior relied on by m4.
79598         * tests/test-getopt.c (main): Use it.
79599         * modules/getopt-posix-tests (Depends-on): Add setenv.
79600         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79602         getopt: fix compilation on darwin
79603         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79604         include.
79605         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79606         Reported by Ludovic Courtès.
79608 2009-10-06  Bruno Haible  <bruno@clisp.org>
79610         * modules/size_max (Description): Discourage its use.
79611         Reported by Simon Josefsson.
79613 2009-10-06  Jim Meyering  <meyering@redhat.com>
79615         linkat: avoid compilation failure
79616         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79618 2009-10-05  Eric Blake  <ebb9@byu.net>
79620         linkat: support Linux 2.6.17
79621         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79622         linkat on Linux, but allow cache variable override.
79623         * lib/linkat.c (rpl_linkat): Define override.
79624         * modules/linkat (Depends-on): Add symlinkat.
79625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79626         * modules/unistd (Makefile.am): Substitute it.
79627         * lib/unistd.in.h (linkat): Declare replacement.
79628         Reported by Pádraig Brady.
79630         quotearg: port test to systems with C.UTF-8 locale
79631         * tests/test-quotearg.c (struct result_strings): Add another
79632         member, differentiating between C.ASCII and C.UTF-8 handling.
79633         (compare_strings): Add parameter.
79634         (main): Adjust all callers.
79636         getopt: avoid clash with FreeBSD _getopt_internal
79637         * lib/getopt.in.h (_getopt_internal): Override the name.
79638         * lib/getopt_int.h (includes): Pick up any overrides.
79639         Reported by Reuben Thomas.
79641         hash: allow C89 compilation
79642         * lib/hash.c (check_tuning): Move declaration before statement.
79643         Reported by Reuben Thomas.
79645 2009-10-05  Karl Berry  <karl@gnu.org>
79647         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79649 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79650             Bruno Haible  <bruno@clisp.org>
79652         * lib/uname.c (uname): Use a table-driven algorithm to compute
79653         Windows NT versions.
79655 2009-10-04  Bruno Haible  <bruno@clisp.org>
79657         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79658         program_invocation_short_name.
79659         * modules/progname (configure.ac): Test for presence of
79660         program_invocation_short_name.
79661         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79663 2009-10-04  Bruno Haible  <bruno@clisp.org>
79665         * lib/progname.c (set_program_name): Fix comment.
79666         Reported by Jim Meyering.
79668 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79669             Bruno Haible  <bruno@clisp.org>
79671         * lib/uname.c: Include <string.h>.
79672         (uname): Do only one call to GetVersionEx in the common case.
79674 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79675             Bruno Haible  <bruno@clisp.org>
79677         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79678         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79679         (uname): Add support for Windows CE and various non-x86 CPU types.
79681 2009-10-03  Bruno Haible  <bruno@clisp.org>
79683         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79684         invocation to tests/configure.ac.
79685         Reported by Ian Beckwith <ianb@erislabs.net>.
79687 2009-10-02  Eric Blake  <ebb9@byu.net>
79689         fchdir: avoid compiler warning
79690         * lib/fchdir.c (canonicalize_file_name)
79691         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79693         test-open: support mingw errno values
79694         * tests/test-open.h (test_open): Relax test.
79695         * tests/test-fopen.h (test_fopen): Likewise.
79696         * tests/test-openat-safer.c (main): Likewise.
79698         open: fix opening directory on mingw
79699         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79701         test-open: on GNU/Hurd, /dev/null is a directory
79702         * tests/test-fopen.h (main): Rename...
79703         (test_fopen): ...to this.  Use a guaranteed non-directory when
79704         confirming open behavior on trailing slash.
79705         * tests/test-openat-safer.c (main): Likewise.
79706         * tests/test-open.h (main): Likewise....
79707         (test_open): ...to this.
79708         * tests/test-fopen.c (main): Adjust caller.
79709         * tests/test-fopen-safer.c (main): Likewise.
79710         * tests/test-open.c (main): Likewise.
79711         * tests/test-fcntl-safer.c (main): Likewise.
79712         Reported by Samuel Thibault.
79714         rename, fchdir: don't ignore chdir failure
79715         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79716         * lib/rename.c (rpl_rename) [W32]: Likewise.
79717         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79718         an empty destination directory if source cannot be renamed,
79719         although there is still possibility for failure.
79720         * doc/posix-functions/rename.texi (rename): Document the race.
79721         Reported by Jim Meyering.
79723         maint: cleanup whitespace in recent commits
79724         * lib/rename.c (rpl_rename): Remove tabs.
79725         * tests/test-link.h (test_link): Likewise.
79726         * lib/fchdir.c (get_name): Likewise.
79727         Reported by Jim Meyering.
79729 2009-10-02  Ben Pfaff  <blp@gnu.org>
79731         relocatable-prog-wrapper: Add missing dependency on
79732         double-slash-root.
79733         * modules/relocatable-prog-wrapper: Add dependency.
79734         Reported by Ian Beckwith <ianb@erislabs.net>.
79736 2009-10-02  Eric Blake  <ebb9@byu.net>
79738         renameat: fix Solaris bugs
79739         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79740         needed fixing.
79741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79742         * modules/stdio (Makefile.am): Substitute it.
79743         * lib/stdio.in.h (renameat): Declare replacement.
79744         * lib/renameat.c (rpl_renameat): Implement fix.
79746         renameat: new module
79747         * modules/renameat: New file.
79748         * lib/renameat.c (renameat): Likewise.
79749         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79751         * modules/stdio (Makefile.am): Substitute them.
79752         * lib/stdio.in.h (renameat): Declare it.
79753         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79754         * doc/posix-functions/renameat.texi (renameat): Likewise.
79755         * modules/renameat-tests: New test.
79756         * tests/test-renameat.c: Likewise.
79758         rename: fix mingw bugs
79759         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79760         directory overwrite bugs.
79762         rename: fix another cygwin 1.5 bug
79763         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79764         checks.
79765         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79766         unnecessary cygwin workarounds.  Also work around bug with moving
79767         full directory onto an empty one.
79768         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79770         rename-dest-slash: merge into rename module
79771         * modules/rename-dest-slash (Status): Mark obsolete.
79772         (Depends-on): Add rename.
79773         (Files): Let rename do it all.
79774         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79775         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79776         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79777         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79778         * lib/rename.c (rpl_rename): Update comments.
79780         rename: fix cygwin 1.5.x bugs
79781         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79782         * lib/rename.c (rpl_rename): Work around them.
79783         * modules/rename (Depends-on): Add same-inode.
79785         rename: fix Solaris 10 bug
79786         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79787         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79788         was the only bug.
79790         rename: fix Solaris 9 bug
79791         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79792         on non-directory.  Avoid calling exit.
79793         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79794         strdup.
79795         * modules/rename-tests (Depends-on): Drop lstat.
79796         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79797         (gl_PREREQ_RENAME): Delete unused macro.
79799         rename-dest-slash: fix NetBSD bug
79800         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79801         links.
79802         * modules/rename-dest-slash (Depends-on): Add same-inode.
79804         rename-tests: new test, exposes several platform bugs
79805         * modules/rename-tests: New file.
79806         * tests/test-rename.h: Likewise.
79807         * tests/test-rename.c: Likewise.
79808         * doc/posix-functions/rename.texi (rename): Improve documentation,
79809         including bugs that will eventually be fixed in gnulib.
79811 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79813         * lib/uname.c: Include <stdlib.h>
79814         (uname): Assume version info is available.
79816 2009-10-02  Jim Meyering  <meyering@redhat.com>
79818         gnu-web-doc-update: correct --help output
79819         * build-aux/gnu-web-doc-update: Make --help output relevant.
79821         gnu-web-doc-update: add standard options
79822         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79824         gnu-web-doc-update: New module.
79825         Use this script to automatically update the on-line web documentation
79826         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79827         * modules/gnu-web-doc-update: New file, from coreutils.
79828         * build-aux/gnu-web-doc-update: New script.
79830 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79832         link: LoadLibrary is not needed.
79833         * lib/link.c: Use GetModuleHandle.
79835 2009-10-01  Eric Blake  <ebb9@byu.net>
79837         getopt: bump serial number
79838         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79839         change.
79841         tests: tighten link, rmdir, and remove tests
79842         * tests/test-link.h (includes): No need to use <config.h> here.
79843         Clean up if directory hard link was created, otherwise test for
79844         trailing '.'.
79845         * tests/test-linkat.c (main): Simplify.
79846         * tests/test-remove.c (main): Enhance test for trailing '.'.
79847         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79849 2009-10-01  Jim Meyering  <meyering@redhat.com>
79851         maint.mk: requiring "make major" was annoying, for a "minor" release.
79852         What is intended is "stable", to contrast with alpha and beta,
79853         so require "make stable", not "make major".
79854         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79855         (get_tool_versions): Likewise.
79856         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79858 2009-09-30  Ben Pfaff  <blp@gnu.org>
79860         Fix broken build of replacement for Windows tmpfile().
79861         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79862         flags argument added along with the 'mkostemp' module.
79864 2009-09-28  Bruno Haible  <bruno@clisp.org>
79866         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79867         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79868         to 'remove_elt'.
79869         (gl_list_remove): Update.
79870         * lib/gl_list.c (gl_list_remove): Update.
79871         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79872         to 'remove_elt'.
79873         (gl_oset_remove): Update.
79874         * lib/gl_list.c (gl_oset_remove): Update.
79875         Reported by Eric Blake.
79877 2009-09-28  Eric Blake  <ebb9@byu.net>
79879         doc: mention yet more cygwin 1.7 status
79880         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79881         cygwin.
79882         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79883         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79885         argp: fix test failure
79886         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79887         that are not upper-case.  Pass correct range to tolower.
79889 2009-09-27  Jim Meyering  <meyering@redhat.com>
79891         test-yesno: work around sparc-dash here-document infelicity
79892         Without this change, the literal \177 byte in a here document
79893         would make dash 0.5.5.1-3 access uninitialized memory.
79894         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79895         Instead, use a marker, "@", and filter through tr to create the desired
79896         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79898 2009-09-27  Bruno Haible  <bruno@clisp.org>
79900         Disable untested support for new flavours of ACLs on AIX.
79901         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79902         progress.
79903         * lib/set-mode-acl.c (qset_acl): Likewise.
79905 2008-12-07  Bruno Haible  <bruno@clisp.org>
79907         Add support for new flavours of ACLs on AIX. (Untested.)
79908         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79909         (file_has_acl): Add support for newer AIX.
79910         * lib/set-mode-acl.c (qset_acl): Likewise.
79911         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79912         Rainer Tammer <tammer@tammer.net>.
79914 2009-09-26  Eric Blake  <ebb9@byu.net>
79916         argp: fix compilation of getopt
79917         * lib/getopt.in.h (includes): Use different guard than glibc.
79918         Reported by Sergey Poznyakoff.
79920         doc: mention more cygwin 1.7 status
79921         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79922         bug.
79923         * doc/posix-functions/execl.texi (execl): Likewise.
79924         * doc/posix-functions/execle.texi (execle): Likewise.
79925         * doc/posix-functions/execlp.texi (execlp): Likewise.
79926         * doc/posix-functions/execv.texi (execv): Likewise.
79927         * doc/posix-functions/execve.texi (execve): Likewise.
79928         * doc/posix-functions/execvp.texi (execvp): Likewise.
79929         * doc/glibc-functions/canonicalize_file_name.texi
79930         (canonicalize_file_name): Cygwin 1.7 now provides this.
79931         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79932         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79933         on AT_SYMLINK_NOFOLLOW.
79935 2009-09-24  Eric Blake  <ebb9@byu.net>
79937         test-linkat: make test more robust
79938         * tests/test-linkat.c (main): Avoid collision with EEXIST.
79940         getopt: fix inclusion guards for cygwin
79941         * modules/getopt-posix (Depends-on): Add include-next.
79942         (Makefile.am): Substitute more items in replacement header.
79943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
79944         <getopt.h>.
79945         * lib/getopt.in.h (includes): Use split inclusion guard, and
79946         prefer <getopt.h> over include <unistd.h> when one is present.
79947         (option): Also override name of 'struct option'.
79949         same-inode: revert prior change; it is not yet ready
79950         * NEWS: Undo mention of this change.
79951         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79952         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79953         * lib/cycle-check.c (cycle_check): Likewise.
79954         * lib/same.c (same_name): Likewise.
79955         * lib/at-func2.c (at_func2): Likewise.
79957 2009-09-23  Eric Blake  <ebb9@byu.net>
79959         linkat: new module
79960         * modules/linkat: New file.
79961         * lib/at-func2.c (at_func2): Likewise.
79962         * lib/linkat.c (linkat): Likewise.
79963         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79964         * lib/openat-priv.h (at_func2): Add declaration.
79965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79966         * modules/unistd (Makefile.am): Substitute them.
79967         * lib/unistd.in.h (linkat): Declare it.
79968         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79969         * doc/posix-functions/linkat.texi (linkat): Likewise.
79970         * doc/posix-functions/link.texi (link): Tweak wording.
79971         * tests/test-link.c (main): Move guts...
79972         * tests/test-link.h (test_link): ...into new file.
79973         * modules/linkat-tests: New test.
79974         * tests/test-linkat.c: Likewise.
79975         * modules/link-tests (Files): Ship new file.
79976         (Depends-on): Add stdbool.
79978         dirname: add library-safe mdir_name
79979         * lib/dirname.h (mdir_name): New prototype.
79980         * lib/dirname.c (dir_name): Move guts...
79981         (mdir_name): ...to new function that avoids xalloc_die.
79983         fchdir: another mingw fix
79984         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79985         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79986         on mingw (where it has not yet been ported), and make it optional
79987         elsewhere.
79988         (_gl_register_fd): Use it.
79990         same-inode: make SAME_INODE tri-state, to port to mingw
79991         * NEWS: Mention this change.
79992         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79993         st_ino always being 0.
79994         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79995         * lib/cycle-check.c (cycle_check): Likewise.
79996         * lib/same.c (same_name): Likewise.
79998         lstat: avoid mingw compilation error
79999         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80000         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80001         lstat ourselves.
80002         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80003         was adequate.
80004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80005         the checks for lstat.
80006         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80008         link: fix test failure on Solaris 9
80009         * lib/link.c (rpl_link): Don't assume link will catch bogus
80010         trailing slash on source.
80012         test-symlinkat: enhance test
80013         * tests/test-readlink.c (main): Move guts...
80014         * tests/test-readlink.h (test_readlink): ...into new file.
80015         * tests/test-symlink.c (main): Move guts...
80016         * tests/test-symlink.h (test_symlink): ...into new file.
80017         * tests/test-symlinkat.c (main): Use new files for further
80018         coverage.
80019         (do_symlink, do_readlink): New helper functions.
80020         * modules/symlink-tests (Files): Ship new file.
80021         (Depends-on): Add stdbool.
80022         * modules/readlink-tests (Files): Ship new file.
80023         (Depends-on): Add stdbool.
80024         * modules/symlinkat-tests (Files): Use new files.
80026 2009-09-23  Eric Blake  <ebb9@byu.net>
80028         readlink: document portability issue with symlink length
80029         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80030         systems have bogus st_size on symlinks, and mention the
80031         areadlink-with-size module.
80032         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80033         * doc/posix-functions/readlink.texi (readlink): Mention the
80034         areadlink module, and ERANGE failure.
80035         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80036         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80038         readlink: fix Solaris 9 bug with trailing slash
80039         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80040         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80041         * doc/posix-functions/readlink.texi (readlink): Document this.
80042         * modules/readlink-tests: New test.
80043         * tests/test-readlink.c: Likewise.
80045         readlink: fix cygwin 1.5.x bug with return type
80046         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80047         * lib/unistd.in.h (readlink): Use ssize_t.
80048         * lib/readlink.c (readlink): Likewise.
80049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80050         * modules/unistd (Makefile.am): Substitute it.
80051         * lib/unistd.in.h (readlink): Declare replacement.
80052         * doc/posix-functions/readlink.texi (readlink): Document this.
80054         symlink: use throughout gnulib
80055         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80056         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80057         symlink is not used.
80058         * modules/symlinkat (Depends-on): Add symlink.
80059         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80060         * modules/canonicalize-tests (Depends-on): Likewise.
80061         * modules/lstat-tests (Depends-on): Likewise.
80062         * modules/openat-tests (Depends-on): Likewise.
80063         * modules/remove-tests (Depends-on): Likewise.
80064         * modules/rmdir-tests (Depends-on): Likewise.
80065         * modules/unlink-tests (Depends-on): Likewise.
80066         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80067         * tests/test-canonicalize.c (symlink): Likewise.
80068         * tests/test-fstatat.c (symlink): Likewise.
80069         * tests/test-lstat.c (symlink): Likewise.
80070         * tests/test-remove.c (symlink): Likewise.
80071         * tests/test-rmdir.c (symlink): Likewise.
80072         * tests/test-unlink.c (symlink): Likewise.
80073         * tests/test-unlinkat.c (symlink): Likewise.
80075         symlink: new module, for Solaris 9 bug
80076         * modules/symlink: New file.
80077         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80078         * lib/symlink.c: Likewise.
80079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80080         * modules/unistd (Makefile.am): Substitute them.
80081         * lib/unistd.in.h (symlink): Declare replacement.
80082         * MODULES.html.sh (File system functions): Mention it.
80083         * doc/posix-functions/symlink.texi (symlink): Likewise.
80084         * modules/symlink-tests: New test.
80085         * tests/test-symlink.c: Likewise.
80087 2009-09-23  Bruno Haible  <bruno@clisp.org>
80089         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80090         when needed.
80091         Test case: gnulib-tool --import --with-tests atexit inttypes.
80092         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80094 2009-09-23  Bruno Haible  <bruno@clisp.org>
80096         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80097         subcommand, not in a subshell.
80099 2009-09-22  Eric Blake  <ebb9@byu.net>
80101         unistd: sort replacement declarations
80102         * lib/unistd.in.h: Sort declarations.
80104         open, openat: minor optimization
80105         * lib/open.c (open): If open succeeded, len is non-zero.
80106         * lib/openat.c (rpl_openat): Likewise.
80108         link-follow: ensure correct result
80109         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80110         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80111         distinguish between possible failures.
80113 2009-09-21  Eric Blake  <ebb9@byu.net>
80115         fts: avoid compiler warning
80116         * lib/fts.c (dirent_inode_sort_may_be_useful)
80117         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80119 2009-09-19  Bruno Haible  <bruno@clisp.org>
80121         * lib/progreloc.c (canonicalize_file_name): New declaration.
80123 2009-09-19  Eric Blake  <ebb9@byu.net>
80125         link: fix quoting
80126         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80128         openat: fix openat bugs on Solaris 9
80129         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80130         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80131         * modules/openat (Depends-on): Add open.
80132         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80133         * modules/fcntl-h (Makefile.am): Substitute it.
80134         * lib/fcntl.in.h (openat): Declare replacement.
80135         * doc/posix-functions/openat.texi (openat): Document this.
80137         openat: move fstatat and unlinkat into correct files
80138         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80139         compiled.
80140         * lib/openat.c (fstatat, unlinkat): Move...
80141         * lib/fstatat.c (fstatat): ...into correct files.
80142         * lib/unlinkat.c (unlinkat): Likewise.
80144         openat: fix unlinkat bugs on Solaris 9
80145         * lib/unlinkat.c (unlinkat): New file.
80146         * modules/openat (Depends-on): Add unlink.
80147         (Files): Distribute it.
80148         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80149         trailing slash behavior is broken.
80150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80151         * modules/unistd (Makefile.am): Substitute it.
80152         * lib/unistd.in.h (unlinkat): Declare replacement.
80153         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80155         openat: fix fstatat bugs on Solaris 9
80156         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80157         stat.
80158         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80160         test-unlinkat: enhance test, to expose Solaris 9 bug
80161         * tests/test-unlink.c (main): Factor guts...
80162         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80163         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80164         * tests/test-rmdir.c (main): Adjust caller.
80165         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80166         (unlinker): New helper function.
80167         (rmdirat): Enhance check.
80168         * modules/rmdir-tests (Depends-on): Add stdbool.
80169         * modules/unlink-tests (Depends-on): Likewise.
80170         (Files): Add test-unlink.h.
80171         * modules/openat-tests (Files): Likewise.
80172         (Depends-on): Add unlinkdir.
80174         test-fstatat: new test, to expose Solaris 9 bugs
80175         * tests/test-stat.c (main): Factor guts...
80176         * tests/test-stat.h (test_stat_func): ...into new file.
80177         * tests/test-lstat.c (main): Factor guts...
80178         * tests/test-lstat.h (test_lstat_func): ...into new file.
80179         * tests/test-fstatat.c: New file.
80180         * modules/stat-tests (Files): Add test-stat.h.
80181         * modules/lstat-tests (Files): Add test-lstat.h.
80182         (Depends-on): Add stdbool.
80183         * modules/openat-tests (Depends-on): Add pathmax.
80184         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80185         (Makefile.am): Run new test.
80187         remove: new module, for mingw and Solaris 9 bugs
80188         * modules/remove: New file.
80189         * lib/remove.c: Likewise.
80190         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80192         * modules/stdio (Makefile.am): Use them.
80193         * lib/stdio.in.h (remove): Declare replacement.
80194         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80195         * doc/posix-functions/remove.texi (remove): Likewise.
80196         * modules/remove-tests: New test.
80197         * tests/test-remove.c: Likewise.
80199         unlink: new module, for Solaris 9 bug
80200         * modules/unlink: New file.
80201         * lib/unlink.c: Likewise.
80202         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80204         * modules/unistd (Makefile.am): Use them.
80205         * lib/unistd.in.h (stat): Declare replacement.
80206         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80207         * doc/posix-functions/unlink.texi (unlink): Likewise.
80208         * modules/unlink-tests: New test.
80209         * tests/test-unlink.c: Likewise.
80211         lstat: fix Solaris 9 bug
80212         * lib/lstat.c (lstat): Also check for trailing slash on
80213         non-symlink, non-directories.  Use stat module to simplify logic.
80214         * doc/posix-functions/lstat.texi (lstat): Document it.
80215         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80216         (configure.ac): Check for symlink.
80217         * tests/test-lstat.c (main): Add more tests.
80219         stat: add as dependency to other modules
80220         * modules/chown (Depends-on): Add stat.
80221         * modules/euidaccess (Depends-on): Likewise.
80222         * modules/fchdir (Depends-on): Likewise.
80223         * modules/isdir (Depends-on): Likewise.
80224         * modules/link (Depends-on): Likewise.
80225         * modules/lstat (Depends-on): Likewise.
80226         * modules/mkdir-p (Depends-on): Likewise.
80227         * modules/modechange (Depends-on): Likewise.
80228         * modules/open (Depends-on): Likewise.
80229         * modules/readlink (Depends-on): Likewise.
80230         * modules/same (Depends-on): Likewise.
80232         stat: fix Solaris 9 bug
80233         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80234         slash.
80235         * lib/stat.c (rpl_stat): Work around it.
80236         * doc/posix-functions/stat.texi (stat): Update documentation.
80238         stat: new module, for mingw bug
80239         * modules/stat: New file.
80240         * lib/stat.c: Likewise.
80241         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80242         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80243         * modules/sys_stat (Makefile.am): Use them.
80244         * lib/sys_stat.in.h (stat): Declare replacement.
80245         * lib/openat.c (fstatat): Deal with lstat and stat being function
80246         macros.
80247         * modules/openat (Depends-on): Add inline.
80248         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80249         * doc/posix-functions/stat.texi (stat): Likewise.
80250         * modules/stat-tests: New test.
80251         * tests/test-stat.c: Likewise.
80253 2009-09-19  Jim Meyering  <meyering@redhat.com>
80255         syntax-check: detect unnecessary inclusion of canonicalize.h
80256         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80258 2009-09-19  Eric Blake  <ebb9@byu.net>
80260         canonicalize-lgpl: adjust clients to use correct header
80261         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80262         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80263         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80264         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80265         * lib/progreloc.c (includes): Likewise.
80267 2009-09-19  Jim Meyering  <meyering@redhat.com>
80269         test-posixtm.c: correct a comment
80270         * tests/test-posixtm.c: Correct first-line comment.
80271         Spotted by Eric Blake.
80273 2009-09-16  Jim Meyering  <meyering@redhat.com>
80275         posixtm-tests: make T const-correct; add a test case
80276         * tests/test-posixtm.c (T): Declare const.
80277         Add a test for -(2^31+1).
80278         Remove useless can-succeed-only-in-2002 test.
80280         posixtm-tests: adjust the sole failing test
80281         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80282         expected output matches what mktime now produces.  Cross-checked via
80283         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80285         posixtm: move #ifdef'd tests into a new module
80286         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80287         * tests/test-posixtm.c: ... this new file.
80288         * modules/posixtm-tests: New module.
80290 2009-09-19  Eric Blake  <ebb9@byu.net>
80292         openat: simplify use of at-func.c
80293         * lib/at-func.c (includes): Include prerequisites here, to
80294         simplify requirements on client files.
80295         * lib/openat-priv.h: Add double-inclusion guard.
80296         * lib/faccessat.c (includes): Simplify.
80297         * lib/fchmodat.c (includes): Likewise.
80298         * lib/fchownat.c (includes): Likewise.
80299         * lib/mkdirat.c (includes): Likewise.
80300         * lib/mkfifoat.c (includes): Likewise.
80301         * lib/symlinkat.c (includes): Likewise.
80303         openat: allow return of fd 0
80304         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80305         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80306         unistd-safer.
80307         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80308         <fcntl.h>; this module does not leak fds.
80309         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80310         must be allowed to return 0, leaving openat_safer to add the
80311         safety.
80312         (openat_permissive): Avoid writing to just-opened fd 2 if
80313         restoring the current directory fails.
80314         * lib/openat-die.c (openat_restore_fail): Add comment.
80315         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80316         (save_cwd): Guarantee safe fd, but without use of open_safer.
80317         * tests/test-openat.c: New test.
80318         * modules/openat-tests (Files, Makefile.am): Distribute and build
80319         new file.
80321         relocatable-prog-wrapper: fix build
80322         * modules/relocatable-prog-wrapper (Files): Update name of
80323         canonicalize m4 file, broken on 2009-09-17.
80324         Reported by emad hajjar <aleppos@hotmail.com>.
80326 2009-09-19  Bruno Haible  <bruno@clisp.org>
80328         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80329         * lib/safe-alloc.c: Likewise.
80330         Reported by Ian Beckwith <ianb@erislabs.net>.
80332 2009-09-18  Bruno Haible  <bruno@clisp.org>
80334         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80335         Reported by <erobles@sensacd.com.mx>.
80337 2009-09-17  Eric Blake  <ebb9@byu.net>
80339         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80340         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80341         slashes when checking if last component is missing.
80342         * tests/test-canonicalize.c (main): Test this.
80344         canonicalize, canonicalize-lgpl: honor // if distinct from /
80345         * modules/canonicalize (Files): Add double-slash-root.m4.
80346         * modules/canonicalize-lgpl (Files): Likewise.
80347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80348         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80349         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80350         fallback definition.
80351         (canonicalize_filename_mode): Use it to protect //.
80352         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80353         (__realpath): Likewise.
80354         * tests/test-canonicalize.c (main): Test this.
80355         * tests/test-canonicalize-lgpl.c (main): Likewise.
80356         * modules/canonicalize-tests (Depends-on): Add same-inode.
80357         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80359         canonicalize-lgpl: fix glibc bug with trailing slash
80360         * m4/canonicalize-lgpl.m4: Move contents...
80361         * m4/canonicalize.m4: ...here.
80362         (gl_CANONICALIZE_LGPL): Factor realpath check...
80363         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80364         glibc 2.3.5 bug, fixed 2005-04-27.
80365         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80366         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80367         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80368         * modules/canonicalize-lgpl (Files): Manage file rename.
80369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80370         * modules/stdlib (Makefile.am): Substitute witness.
80371         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80372         is needed.
80373         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80374         replacement is required.
80375         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80376         * doc/glibc-functions/canonicalize_file_name.texi
80377         (canonicalize_file_name): Document this.
80378         * doc/posix-functions/realpath.texi (realpath): Likewise.
80380         canonicalize-lgpl: reject non-directory with trailing slash
80381         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80382         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80383         catches failures in glibc 2.3.5.
80384         * tests/test-canonicalize.c (main): Likewise.
80386         canonicalize-lgpl: use native realpath if it works
80387         * lib/canonicalize-lgpl.c (realpath): Guard with
80388         FUNC_REALPATH_WORKS.
80389         * lib/stdlib.in.h (realpath): Make declaration optional based on
80390         HAVE_REALPATH.
80391         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80392         native realpath works.
80393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80394         * modules/stdlib (Makefile.am): Substitute witness.
80396         canonicalize, canonicalize-lgpl: use <stdlib.h>
80397         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80398         (Include): Mention <stdlib.h>.
80399         (configure.ac): Mention functions we provide.
80400         * modules/canonicalize (configure.ac): Likewise.
80401         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80402         realpath if canonicalize_file_name is missing.
80403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80404         * modules/stdlib (Makefile.am): Substitute witnesses.
80405         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80406         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80407         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80408         * NEWS: Document this.
80409         * doc/glibc-functions/canonicalize_file_name.texi
80410         (canonicalize_file_name): Likewise.
80411         * doc/posix-functions/realpath.texi (realpath): Likewise.
80412         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80414         test-canonicalize: consolidate into single C program
80415         * tests/test-canonicalize.sh: Delete; move setup into...
80416         * tests/test-canonicalize.c (main): ...the program, making it
80417         easier to run in debugger.  Add some tests.
80418         * modules/canonicalize-tests (Files): Remove unused file.
80419         (Depends-on): Add progname.
80420         (configure.ac, Makefile.am): Simplify.
80422         test-canonicalize-lgpl: consolidate into single C program
80423         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80424         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80425         easier to run in debugger.  Add some tests.
80426         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80427         (configure.ac, Makefile.am): Simplify.
80429         canonicalize: avoid resolvepath
80430         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80431         unnecessary checks.
80432         * lib/canonicalize.c (includes): Simplify.
80433         (canonicalize_file_name): Drop resolvepath implementation.
80434         * modules/canonicalize (Depends-on): Drop filenamecat.
80436         canonicalize: don't lose errno
80437         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80438         over calls to free.
80440         canonicalize: simplify errno handling
80441         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80442         assignment.
80444         canonicalize, canonicalize-lgpl: update module dependencies
80445         * modules/canonicalize (Depends-on): Add extensions, lstat,
80446         pathmax, stdlib.
80447         (Files): Drop pathmax.h.
80448         (configure.ac): Adjust macro name.
80449         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80450         lstat, stdlib, sys_stat.
80451         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80452         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80453         extensions.
80454         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80455         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80456         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80457         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80458         declaration, if available.
80459         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80460         we can rely on the readlink module.
80461         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80462         (includes): Use <unistd.h> unconditionally.
80464 2009-09-17  Eric Blake  <ebb9@byu.net>
80466         maint: make Include sections of modules consistent
80467         * modules/alloca: Use only header name; no need to list #include.
80468         * modules/alloca-opt: Likewise.
80469         * modules/arpa_inet: Likewise.
80470         * modules/canon-host: Likewise.
80471         * modules/configmake: Likewise.
80472         * modules/dirent: Likewise.
80473         * modules/eealloc: Likewise.
80474         * modules/environ: Likewise.
80475         * modules/fchdir: Likewise.
80476         * modules/fcntl: Likewise.
80477         * modules/fcntl-h: Likewise.
80478         * modules/gethrxtime: Likewise.
80479         * modules/gettime: Likewise.
80480         * modules/ignore-value: Likewise.
80481         * modules/inet_ntop: Likewise.
80482         * modules/inet_pton: Likewise.
80483         * modules/inttypes: Likewise.
80484         * modules/isnand-nolibm: Likewise.
80485         * modules/isnanf-nolibm: Likewise.
80486         * modules/mbchar: Likewise.
80487         * modules/mbfile: Likewise.
80488         * modules/mbiter: Likewise.
80489         * modules/mbuiter: Likewise.
80490         * modules/netdb: Likewise.
80491         * modules/netinet_in: Likewise.
80492         * modules/nproc: Likewise.
80493         * modules/pagealign_alloc: Likewise.
80494         * modules/poll: Likewise.
80495         * modules/printf-frexp: Likewise.
80496         * modules/pthread: Likewise.
80497         * modules/putenv: Likewise.
80498         * modules/random_r: Likewise.
80499         * modules/relocatable-prog: Likewise.
80500         * modules/search: Likewise.
80501         * modules/select: Likewise.
80502         * modules/selinux-h: Likewise.
80503         * modules/settime: Likewise.
80504         * modules/signal: Likewise.
80505         * modules/size_max: Likewise.
80506         * modules/socklen: Likewise.
80507         * modules/ssize_t: Likewise.
80508         * modules/stdarg: Likewise.
80509         * modules/stdbool: Likewise.
80510         * modules/stddef: Likewise.
80511         * modules/stdint: Likewise.
80512         * modules/stdio: Likewise.
80513         * modules/stdlib: Likewise.
80514         * modules/string: Likewise.
80515         * modules/strings: Likewise.
80516         * modules/sys_file: Likewise.
80517         * modules/sys_ioctl: Likewise.
80518         * modules/sys_select: Likewise.
80519         * modules/sys_socket: Likewise.
80520         * modules/sys_stat: Likewise.
80521         * modules/sys_time: Likewise.
80522         * modules/sys_times: Likewise.
80523         * modules/sys_utsname: Likewise.
80524         * modules/sys_wait: Likewise.
80525         * modules/sysexits: Likewise.
80526         * modules/time: Likewise.
80527         * modules/times: Likewise.
80528         * modules/tmpfile: Likewise.
80529         * modules/trim: Likewise.
80530         * modules/unistd: Likewise.
80531         * modules/wchar: Likewise.
80532         * modules/wctype: Likewise.
80534 2009-09-17  Bruno Haible  <bruno@clisp.org>
80536         Make getdate.y compile on QNX and NetBSD 5 / i386.
80537         * m4/getdate.m4 (gl_GETDATE): Conditionally define
80538         TIME_T_FITS_IN_LONG_INT.
80539         * lib/getdate.y (long_time_t): New type.
80540         (relative_time): Change type of 'seconds' field to long_time_t.
80541         (get_date): Update types of local variables. Check against overflow
80542         during conversion from long_time_t to time_t.
80543         Reported by Matt Kraai <kraai@ftbfs.org>
80544         and Hasso Tepper <hasso@netbsd.org>.
80546 2009-09-17  Bruno Haible  <bruno@clisp.org>
80548         * modules/COPYING: Update copyright years.
80549         * modules/README: Likeiwse.
80550         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
80551         Reported by Ian Beckwith <ianb@erislabs.net>.
80553 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80555         * users.txt: Update references for gnuit package.
80557 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80559         * m4/getdelim.m4: Fix typo in copyright line.
80561 2009-09-17  Bruno Haible  <bruno@clisp.org>
80563         * lib/atoll.c: Use the standard header with GPL copyright.
80564         * lib/argz.in.h: Likewise.
80565         * lib/glob.c: Likewise.
80566         * lib/glob-libc.h: Likewise.
80567         * lib/random_r.c: Likewise.
80568         * lib/siglist.h: Likewise.
80569         * lib/strsignal.c: Likewise.
80570         Reported by Ian Beckwith <ianb@erislabs.net>.
80572 2009-09-17  Eric Blake  <ebb9@byu.net>
80574         rmdir: ensure correct dependency order
80575         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
80577 2009-09-17  Bruno Haible  <bruno@clisp.org>
80579         Disable assertion that fails on NetBSD 5 / i386.
80580         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
80581         Reported by Sam Steingold <sds@gnu.org>
80582         and Hasso Tepper <hasso@netbsd.org>.
80584 2009-09-16  Eric Blake  <ebb9@byu.net>
80586         unlinkdir: port to mingw
80587         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
80588         on which no one can unlink a directory.
80590         stdlib: sort witness names
80591         * modules/stdlib (Makefile.am): Sort replacements.
80592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80593         * lib/stdlib.in.h: Likewise.
80595         parse-duration-tests: avoid link failure
80596         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80597         LIBINTL.
80598         Reported by Tom G. Christensen.
80600         openat-tests: ensure unlinkat behaves like rmdir
80601         * tests/test-rmdir.c (main): Factor guts...
80602         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80603         * modules/rmdir-tests (Files): Ship new file.
80604         * modules/openat-tests: New test.
80605         * tests/test-unlinkat.c: Likewise.
80607         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80608         * modules/rmdir-errno (Status, Notice): Now obsolete.
80610         rmdir: work around cygwin 1.5.x and mingw bugs
80611         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80612         * lib/rmdir.c (rmdir): Work around it.
80613         * modules/rmdir (Status, Notice): No longer obsolete.
80614         (Files): Add dos.m4.
80615         (Depends-on): Add unistd.
80616         (configure.ac): Set witnesses.
80617         (License): Relax to LGPLv2+.
80618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80619         * modules/unistd (Makefile.am): Substitute witnesses.
80620         * lib/unistd.in.h (rmdir): Declare replacement.
80621         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80622         * modules/rmdir-tests: New tests.
80623         * tests/test-rmdir.c: Likewise.
80625 2009-09-15  Eric Blake  <ebb9@byu.net>
80627         fchdir: improve use of replacement functions
80628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80631         REPLACE_CLOSEDIR.
80632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80633         * modules/sys_stat (Makefile.am): Substitute correct witness.
80634         * modules/dirent (Makefile.am): Likewise.
80635         * modules/unistd (Makefile.am): Likewise.
80636         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80637         * lib/unistd.in.h (dup): Likewise.
80638         * lib/sys_stat.in.h (fstat): Likewise.
80640         maint: ignore gnulib-tool temp files
80641         * .gitignore: Ignore files created during gnulib-tool --test.
80643 2009-09-13  Jim Meyering  <meyering@redhat.com>
80645         posixtm: don't reject a time that specify "60" as the number of seconds
80646         * lib/posixtm.c (posixtime): The code to reject invalid dates
80647         would also reject a time specified with the .60 suffix.
80648         But POSIX allows that, in order to accommodate leap seconds.
80649         So don't reject it.
80650         (main): Adjust tests accordingly.
80651         * modules/posixtm (Depends-on): Add stpcpy.
80653 2009-09-11  Jim Meyering  <meyering@redhat.com>
80655         announce-gen: include [$release_type] in emitted Subject:
80656         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80657         e.g., [stable] in the emitted Subject: line.
80659 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80661         Remove obsolete macros from several modules.
80662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80663         obsolete Autoconf macros with their modern counterparts.
80664         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80665         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80667         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80668         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80671         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80672         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80673         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80674         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80675         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80676         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80677         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80678         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80679         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80680         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80681         * m4/time_r.m4 (gl_TIME_R): Likewise.
80682         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80683         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80684         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80686         Fix copyright header in build-aux scripts.
80687         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80688         recommendation.
80689         * build-aux/ncftpput-ftp: Likewise.
80690         * build-aux/update-copyright: Likewise.
80692 2009-09-09  Eric Blake  <ebb9@byu.net>
80694         test-link: allow Linux choice of errno
80695         * tests/test-link.c (main): Relax test for alternate error.
80697         strndup: fix improper m4 caching
80698         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80699         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80700         (gl_PREREQ_STRNDUP): Delete.
80701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80702         * modules/string (Makefile.am): Substitute it.
80703         * lib/string.in.h (strndup): Modernize prototype.
80705         getcwd: port to mingw
80706         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80707         different from the POSIX assumptions made throughout the getcwd
80708         module; fortunately, the mingw getcwd does not need replacement.
80709         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80710         * modules/getcwd-tests: New test.
80711         * tests/test-getcwd.c: Likewise.
80713         link: fix platform bugs
80714         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80715         * lib/link.c (link): Work around them.  Fix related mingw bug.
80716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80717         * modules/unistd (Makefile.am): Substitute it.
80718         * lib/unistd.in.h (link): Declare replacement.
80719         * doc/posix-functions/link.texi (link): Document this.
80720         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80722         test-link: consolidate into single C program, test more cases
80723         * tests/test-link.sh: Delete.
80724         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80725         at least Cygwin and Solaris.
80726         * modules/link-tests (Files): Remove unused file.
80727         (Depends-on): Add errno, sys_stat.
80728         (Makefile.am): Simplify.
80730 2009-09-08  Bruno Haible  <bruno@clisp.org>
80732         Work around towlower, towupper bug on mingw.
80733         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80734         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80735         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80736         * doc/posix-functions/towupper.texi: Likewise.
80737         Reported by Eric Blake.
80739 2009-09-08  Jim Meyering  <meyering@redhat.com>
80741         build: don't try to run autoheader if we don't use it
80742         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80743         is not used in configure.ac.
80745 2009-09-08  Eric Blake  <ebb9@byu.net>
80747         euidaccess: fix compilation error
80748         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80750         rawmemchr: relax license
80751         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80752         okay.
80753         Reported by Jim Meyering.
80755         mkfifoat: new module
80756         * modules/mkfifoat: New file.
80757         * lib/mkfifoat.c: Likewise.
80758         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80759         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80760         * modules/sys_stat (Makefile.am): Use them.
80761         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80762         * MODULES.html.sh (File system functions): Mention module.
80763         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80764         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80765         * modules/mkfifoat-tests: New test.
80766         * tests/test-mkfifoat.c: Likewise.
80768         strchrnul: relax license
80769         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80770         okay.
80771         Reported by Jim Meyering.
80773 2009-09-08  Eric Blake  <ebb9@byu.net>
80775         fstatat: fix compilation on Solaris
80776         * lib/fstatat.c (includes): Add fcntl.h.
80777         Reported by Pádraig Brady.
80779 2009-09-07  Eric Blake  <ebb9@byu.net>
80781         rename: modernize replacement
80782         * modules/rename (Depends-on): Add stdio.
80783         (configure.ac): Declare witness.
80784         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80785         stdio take care of replacement.
80786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80787         * modules/stdio (Makefile.am): Substitute them.
80788         * lib/stdio.in.h (rename): Declare replacement.
80789         * lib/rename.c (includes): Allow cross-compilation to non-windows
80790         machines.
80791         * doc/posix-functions/rename.texi (rename): Improve
80792         documentation.
80794         stdio: sort witness names
80795         * modules/stdio (Makefile.am): Sort replacements.
80796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80797         * lib/stdio.in.h: Likewise.
80799         getcwd: minor cleanups
80800         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80801         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80803         openat: provide more convenience names
80804         * modules/faccessat (configure.ac): Add C witness.
80805         * lib/unistd.in.h (readlinkat): Fix typo.
80806         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80807         convenience wrappers.
80808         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80809         wrappers in syntax checks.
80811 2009-09-06  Eric Blake  <ebb9@byu.net>
80813         doc: fix comments in recent patches
80814         * lib/faccessat.c: Mention correct function.
80815         * lib/fchmodat.c: Likewise.
80816         * lib/fchownat.c: Likewise.
80817         * lib/symlinkat.c: Likewise.
80818         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80819         constants.
80821         faccessat, symlinkat: continue cleanup of previous patch
80822         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80823         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80824         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80826         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80827         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80828         set.
80830 2009-09-06  Bruno Haible  <bruno@clisp.org>
80832         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80833         (fstatat): Declare if GNULIB_FSTATAT is set.
80834         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80835         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80836         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80837         * modules/fcntl-h (Files): Remove m4/openat.m4.
80838         * modules/sys_stat (Files): Remove m4/openat.m4.
80839         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80840         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80841         * modules/unistd (Files): Remove m4/openat.m4.
80842         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80843         GNULIB_OPENAT.
80844         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80845         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80847         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80848         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80849         gl_OPENAT_DEFAULTS.
80850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80851         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80852         Don't require gl_OPENAT_DEFAULTS.
80853         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80854         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80855         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80856         (gl_OPENAT_DEFAULTS): Remove macro.
80858 2009-09-06  Bruno Haible  <bruno@clisp.org>
80860         * modules/openat (configure.ac): Remove unneeded witness.
80862 2009-09-06  Bruno Haible  <bruno@clisp.org>
80864         Set errno to ENOSYS when a function is entirely unsupported.
80865         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80866         EOPNOTSUPP.
80867         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80868         * modules/chown (Depends-on): Remove errno.
80870 2009-09-06  Bruno Haible  <bruno@clisp.org>
80872         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80874 2009-09-06  Bruno Haible  <bruno@clisp.org>
80876         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80878 2009-09-06  Ben Pfaff  <blp@gnu.org>
80879             Bruno Haible  <bruno@clisp.org>
80881         Work around a glibc bug in strtok_r.
80882         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80883         Undefine if UNDEFINE_STRTOK_R is set.
80884         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80886         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80887         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80888         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80889         UNDEFINE_STRTOK_R.
80890         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80892 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80894         exclude: minor fix
80895         * lib/exclude.c: Include wctype.h
80897 2009-09-06  Akim Demaille  <demaille@gostai.com>
80899         bootstrap: improve error message
80900         * build-aux/bootstrap (find_tool): Upon failure, report the list
80901         of candidates.
80902         Honor the initial value of the envvar.
80904 2009-09-05  Eric Blake  <ebb9@byu.net>
80906         symlinkat: new module
80907         * modules/symlinkat: New file.
80908         * lib/symlinkat.c: Likewise.
80909         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80911         * modules/unistd (Makefile.am): Use them.
80912         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80913         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80914         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80915         * MODULES.html.sh (File system functions): Mention module.
80916         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80917         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80918         * modules/symlinkat-tests: New test.
80919         * tests/test-symlinkat.c: Likewise.
80921         test-openat-safer: add more checks
80922         * tests/test-openat-safer.c (main): Check more code paths.
80924 2009-09-05  Jim Meyering  <meyering@redhat.com>
80926         syntax-check: detect unnecessary inclusion of openat.h
80927         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80929 2009-09-05  Bruno Haible  <bruno@clisp.org>
80931         Support towlower, towupper.
80932         * doc/posix-functions/towlower.texi: Mention module wctype.
80933         * doc/posix-functions/towupper.texi: Likewise.
80934         * lib/wctype.in.h (towlower, towupper): New functions.
80935         * tests/test-wctype.c: Include stdio.h, stdlib.h.
80936         (ASSERT): New macro.
80937         (e): New variable.
80938         (main): Test also towlower, towupper. Test WEOF argument.
80939         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
80941 2009-09-05  Bruno Haible  <bruno@clisp.org>
80943         Fix conversion behaviour when the input is invalid.
80944         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
80945         mark occurring in first pass of indirect conversion.
80946         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80947         input.
80948         Found by clang's static analyzer.
80950 2009-09-05  Bruno Haible  <bruno@clisp.org>
80952         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80953         where direct conversion is possible.
80955 2009-09-04  Eric Blake  <ebb9@byu.net>
80957         openat: fail with ENOENT on empty name
80958         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80959         buffer.
80961         link-follow: fix logic bug in prior patch
80962         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80963         reversed sense of yes and no in prior patch.  Avoid confusing
80964         compilation failure with desired semantics.
80966         link-follow: accommodate mingw and cross-compilation
80967         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80968         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80969         cross-compilation results to -1, to make linkat easier to
80970         implement when cross-compiling.  Trivially support mingw.
80971         * modules/link-follow (configure.ac): Call new name.
80972         * NEWS: Mention this.
80974 2009-09-03  Eric Blake  <ebb9@byu.net>
80976         faccessat: compile replacement
80977         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80978         needed.
80980         fts: fix compilation error
80981         * lib/fts.c (includes): Re-add "openat.h", for
80982         openat_needs_fchdir.
80984         faccessat: new module
80985         * modules/faccessat: New file.
80986         * lib/faccessat.c: Likewise.
80987         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80989         * modules/unistd (Makefile.am): Use it.
80990         * lib/unistd.in.h (faccessat): Declare it.
80991         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80992         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80993         * MODULES.html.sh (File system functions): Mention it.
80994         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80995         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80997         euidaccess: prefer POSIX over non-standard implementation
80998         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80999         * lib/euidaccess.c (euidaccess): Use it if available.
81001         openat: make template easier to use
81002         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81003         AT_FUNC_F2 to be undefined.
81004         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81005         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81006         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81007         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81008         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81009         Likewise.
81010         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81011         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81012         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81013         Likewise.
81015         openat: declare in POSIX headers
81016         * NEWS: Mention this.
81017         * modules/openat (configure.ac): Declare witnesses.
81018         (Depends-on): Add fcntl-h, sys_stat, unistd.
81019         (Include): Mention correct headers.
81020         * modules/fcntl-h (Depends-on): Add link-warning.
81021         (Files): Add openat.m4.
81022         (Makefile.am): Substitute witnesses.
81023         * modules/sys_stat (Files, Makefile.am): Likewise.
81024         * modules/unistd (Files, Makefile.am): Likewise.
81025         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81026         (gl_OPENAT_DEFAULTS): New macro.
81027         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81030         (SYS_STAT_H): Remove unused variable.
81031         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81032         * lib/fcntl--.h (includes): Remove unneeded header.
81033         * lib/openat-safer.c (includes): Likewise.
81034         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81035         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81036         appropriate headers.
81037         (__OPENAT_PREFIX): Delete.
81038         * lib/fcntl.in.h (openat): Provide declaration.
81039         (AT_FDCWD): Fix Solaris bug.
81040         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81041         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81042         * lib/fchmodat.c (includes):  Adjust to find declaration.
81043         * lib/fchownat.c (includes): Likewise.
81044         * lib/mkdirat.c (includes): Likewise.
81045         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81046         still visible.
81048 2009-09-02  Eric Blake  <ebb9@byu.net>
81050         errno: use consistently
81051         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81052         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81053         * lib/canonicalize.c (ELOOP): Likewise.
81054         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81055         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81056         * lib/lchown.c (EOPNOTSUPP): Likewise.
81057         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81058         * lib/savewd.c (ESTALE): Likewise.
81059         * lib/settime.c (ENOSYS): Likewise.
81060         * lib/utimens.c (ENOSYS): Likewise.
81061         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81062         * lib/chdir-safer.c (ELOOP): Likewise.
81063         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81064         * modules/c-stack (Depends-on): Add errno.
81065         * modules/canonicalize (Depends-on): Likewise.
81066         * modules/chdir-safer (Depends-on): Likewise.
81067         * modules/fdopendir (Depends-on): Likewise.
81068         * modules/inet_ntop (Depends-on): Likewise.
81069         * modules/inet_pton (Depends-on): Likewise.
81070         * modules/lchown (Depends-on): Likewise.
81071         * modules/openat (Depends-on): Likewise.
81072         * modules/savewd (Depends-on): Likewise.
81073         * modules/settime (Depends-on): Likewise.
81074         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81076         fts: avoid leaking fds
81077         * modules/fts (Depends-on): Add cloexec.
81078         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81079         flag.
81081         fts: make directory fds more robust
81082         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81083         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81085         backupfile, chdir-long, fts, savedir: make safer
81086         * lib/backupfile.c (includes): Use "dirent--.h", since
81087         numbered_backup can write to stderr during readdir.
81088         * lib/savedir.c (includes): Likewise.
81089         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81090         emulation can write to stderr on failure.
81091         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81092         * lib/getcwd.c: Document why opendir_safer is unused.
81093         * lib/glob.c: Likewise.
81094         * lib/scandir.c: Likewise.
81095         * lib/openat-proc.c: Likewise, for open_safer.
81096         * modules/backupfile (Depends-on): Add dirent-safer.
81097         * modules/savedir (Depends-on): Likewise.
81098         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81099         * modules/chdir-long (Depends-on): Add openat-safer.
81101         openat-safer: new module
81102         * modules/openat-safer: New file.
81103         * lib/openat-safer.c: Likewise.
81104         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81105         * lib/fcntl-safer.h (openat_safer): Declare.
81106         * lib/fcntl--.h (openat): Override.
81107         * MODULES.html.sh (File descriptor based I/O): Mention it.
81108         * lib/openat.h: Add double-inclusion guards.
81109         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81110         "fcntl--.h", so we can implement openat.
81111         * modules/openat-safer-tests: New test.
81112         * tests/test-openat-safer.c: New file.
81114         dirent-safer: new module
81115         * modules/dirent-safer: New file.
81116         * lib/dirent--.h: Likewise.
81117         * lib/dirent-safer.h: Likewise.
81118         * lib/opendir-safer.c: Likewise.
81119         * m4/dirent-safer.m4: Likewise.
81120         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81121         * modules/dirent-safer-tests: New test.
81122         * tests/test-dirent-safer.c: New file.
81123         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81125         fdopendir: optimize on mingw
81126         * lib/unistd.in.h (_gl_directory_name): New prototype.
81127         * lib/fchdir.c (_gl_directory_name): Implement it.
81128         (fchdir): Use it to simplify implementation.
81129         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81130         fchdir, when available, to avoid calling [f]chdir().
81132         fdopendir: split into its own module
81133         * lib/openat.c (fdopendir): Move...
81134         * lib/fdopendir.c: ...into new file.
81135         * modules/fdopendir: New module.
81136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81137         * modules/openat (Depends-on): Add fdopendir.
81138         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81139         fdopendir here.
81140         * modules/savedir (Depends-on): Only need fdopendir, not full
81141         openat.
81142         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81143         * lib/openat.h (fdopendir): Drop prototype.
81144         * lib/dirent.in.h (fdopendir): Provide prototype.
81145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81146         * modules/dirent (Makefile.am): Substitute them.
81147         * MODULES.html.sh (File system functions): Mention it.
81148         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81149         * modules/fdopendir-tests: New file.
81150         * tests/test-fdopendir.c: Likewise.
81152         fchdir: use more consistent macro convention
81153         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81154         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81155         REPLACE_FCHDIR, rather than relying on config.h macros.
81156         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81157         inside a single make-time REPLACE_FCHDIR block, rather than using
81158         the config.h FCHDIR_REPLACEMENT.
81159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81160         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81161         Manage fstat replacement.
81162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81163         REPLACE_FCHDIR.
81164         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81165         (Makefile.am): Substitute REPLACE_FCHDIR.
81166         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81167         FCHDIR_REPLACEMENT.
81168         * lib/dup-safer.c (dup_safer): Likewise.
81169         * lib/dup2.c (rpl_dup2): Likewise.
81170         * lib/dup3.c (rpl_dup3): Likewise.
81171         * lib/open.c (rpl_open): Likewise.
81173         fchdir: simplify error handling, and support dup3
81174         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81175         stdbool, malloc-posix, realloc-posix.
81176         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81177         (ensure_dirs_slot): Return false on allocation failure.
81178         (rpl_dup2): Delete.
81179         (_gl_register_dup): New function.
81180         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81181         (_gl_register_fd): Close fd on allocation failure.
81182         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81183         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81184         prototype.
81185         (rpl_dup2_fchdir): Delete prototype.
81186         * lib/open.c (open): Update caller.
81187         * lib/dup2.c (dup2): Track fchdir metadata.
81188         * lib/dup3.c (dup3): Likewise.
81189         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81192 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81194         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81195         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81196         don't pass arguments to AC_OUTPUT.
81198 2009-09-02  Bruno Haible  <bruno@clisp.org>
81200         * modules/mkdtemp (License): Relicense under LGPLv2+.
81201         Reported by Paolo Bonzini.
81203 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81205         Replace uses of obsolete autoconf macros in Jim's modules.
81206         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81207         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81208         can evoke a warning from autoconf when run with -Wobsolete
81209         enabled.  They were declared obsolete for good reasons (see
81210         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81211         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81212         should not continue using the deprecated macros.
81213         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81214         obsolete Autoconf macros with modern counterparts.
81215         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81216         * m4/dos.m4 (gl_AC_DOS): Likewise.
81217         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81219         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81220         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81221         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81222         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81223         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81224         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81225         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81226         Likewise.
81227         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81228         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81229         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81230         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81231         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81232         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81234 2009-09-01  Eric Blake  <ebb9@byu.net>
81236         fchdir: fix off-by-one bug in previous patch
81237         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81238         (_gl_unregister_fd): Delete useless if.
81240 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81242         maint.mk: sort the list of syntax-check rules
81243         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81244         easier to get a sense of progress when the rules are run sequentially
81245         and take a long time.
81247 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81249         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81250         * modules/netinet_in: Likewise.
81251         * modules/sys_file: Likewise.
81252         * modules/sys_ioctl: Likewise.
81253         * modules/sys_select: Likewise.
81254         * modules/sys_socket: Likewise.
81255         * modules/sys_stat: Likewise.
81256         * modules/sys_time: Likewise.
81257         * modules/sys_times: Likewise.
81258         * modules/sys_utsname: Likewise.
81259         * modules/sys_wait: Likewise.
81261 2009-09-01  Jim Meyering  <meyering@redhat.com>
81263         fts: help ensure that return values are not ignored
81264         * lib/fts_.h (__GNUC_PREREQ): Define.
81265         (__attribute_warn_unused_result__): Define.
81266         (fts_children, fts_close, fts_open, fts_read): Declare with
81267         __attribute_warn_unused_result__.
81269         fts: fts_close now fails also when closing a dir file descriptor fails
81270         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81271         and propagate to caller, along with errno.
81273         announce-gen: correct formatting in --help output
81274         * build-aux/announce-gen (usage): Move the one-line description in
81275         --help output "up", to where it belongs, just after Usage:.
81277 2009-08-31  Eric Blake  <ebb9@byu.net>
81279         fchdir: port to mingw
81280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81281         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81282         opened, then use a substitute.
81283         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81284         replacement.
81285         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81286         (_gl_register_fd): No need to check stat if open already filters
81287         all directories.
81288         (fchdir): Fix error condition to match POSIX.
81289         * modules/fchdir (Depends-on): Add sys_stat.
81290         * doc/posix-functions/open.texi (open): Document the limitation.
81291         * modules/fchdir-tests: New file.
81292         * tests/test-fchdir.c: Likewise.
81294         canonicalize: allow cross-testing from cygwin to mingw
81295         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81296         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81297         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81298         Likewise.
81299         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81300         target does not support symlinks.
81301         * tests/test-canonicalize-lgpl.sh: Likewise.
81303         chown: avoid compilation warning on mingw
81304         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81305         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81306         mingw.
81307         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81308         * modules/chown (Depends-on): Add errno.
81310 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81312         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81313         command.
81315 2009-08-31  Jim Meyering  <meyering@redhat.com>
81317         canonicalize: remove useless initialization
81318         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81319         initialization of local, "end".
81321 2009-08-30  Bruno Haible  <bruno@clisp.org>
81323         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81324         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81325         ENOSYS.
81327 2009-08-30  Bruno Haible  <bruno@clisp.org>
81329         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81330         /usr/xpg4/bin/tr when it exists.
81331         * tests/test-pipe-filter-gi1.sh: Likewise.
81333 2009-08-30  Bruno Haible  <bruno@clisp.org>
81335         Work around deficient /usr/bin/id program on Solaris.
81336         * tests/test-file-has-acl.sh (ID): New variable.
81337         * tests/test-set-mode-acl.sh (ID): Likewise.
81338         * tests/test-copy-acl.sh (ID): Likewise.
81339         * tests/test-copy-file.sh (ID): Likewise.
81341 2009-08-30  Bruno Haible  <bruno@clisp.org>
81343         New module 'xstriconveh'.
81344         * lib/xstriconveh.h: New file.
81345         * lib/xstriconveh.c: New file.
81346         * modules/xstriconveh: New file.
81348 2009-08-30  Bruno Haible  <bruno@clisp.org>
81350         Make it easier to use mem_cd_iconveh.
81351         * lib/striconveh.h (iconveh_t): New type.
81352         (iconveh_open, iconveh_close): New declarations.
81353         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81354         with a single 'const iconveh_t *' argument.
81355         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81356         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81357         with a single 'const iconveh_t *' argument.
81358         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81359         * tests/test-striconveh.c (main): Update.
81360         * NEWS: Mention the change.
81362 2009-08-30  Bruno Haible  <bruno@clisp.org>
81364         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81365         problem.
81367 2009-08-30  Bruno Haible  <bruno@clisp.org>
81369         Work around iconv_open problem on Solaris.
81370         * lib/iconv_open-solaris.gperf: New file.
81371         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81373         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81374         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81375         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81376         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81378 2009-08-29  Jim Meyering  <meyering@redhat.com>
81380         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81381         * top/maint.mk (cvs-check): Remove target; it was just an alias
81382         to the better-named vc-diff-check.
81383         (maintainer-distcheck): Remove rule.  It was used only from
81384         the (alpha/beta/major) target, and all of its commands but one
81385         were coreutils-specific.
81386         (vc-dist): Remove rule.
81387         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81388         Run vc-diff-check, not vc-dist.
81389         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81391 2009-08-27  Bruno Haible  <bruno@clisp.org>
81393         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81394         of 0.
81396 2009-08-27  Bruno Haible  <bruno@clisp.org>
81398         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81399         compilers.
81400         * doc/func.texi: Document the SunPRO C bug.
81402 2009-08-27  Bruno Haible  <bruno@clisp.org>
81404         Fix link error on Solaris.
81405         * tests/test-parse-duration.c (xstrdup): Remove function.
81407 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81409         ignore-value: handle pointer types, too
81410         * lib/ignore-value.h (__attribute__): Remove definition.
81411         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81412         of a more concise and more-often effective "(void) i" statement.
81413         (ignore_ptr): New function to suppress warnings from functions that
81414         return pointers, and to make it explicit that one function doesn't
81415         handle all cases.
81417 2009-08-25  Bruno Haible  <bruno@clisp.org>
81419         dup2: work around a Linux bug.
81420         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81421         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81422         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81423         Reported by Simon Josefsson.
81425 2009-08-25  Jim Meyering  <meyering@redhat.com>
81427         libguestfs uses gnulib
81428         * users.txt: Add libguestfs.
81430 2009-08-24  Eric Blake  <ebb9@byu.net>
81432         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81433         * lib/pipe2.c (includes): Add binary-io.h.
81434         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81436 2009-08-24  Bruno Haible  <bruno@clisp.org>
81438         Tolerate declared but missing accept4 syscall.
81439         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81440         available.
81441         * lib/sys_socket.in.h (accept4): If the function is already present,
81442         override it.
81443         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81444         * modules/accept4 (Makefile.am): Compile accept4.c always.
81445         Reported by Paolo Bonzini and Eric Blake.
81447 2009-08-23  Bruno Haible  <bruno@clisp.org>
81449         New module 'accept4'.
81450         * lib/sys_socket.in.h (accept4): New declaration.
81451         * lib/accept4.c: New file.
81452         * m4/accept4.m4: New file.
81453         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81454         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81455         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81456         HAVE_ACCEPT4.
81457         * modules/accept4: New file.
81458         * doc/glibc-functions/accept4.texi: Mention the new module.
81460 2009-08-24  Jim Meyering  <meyering@redhat.com>
81462         progname: also set global program_invocation_name, when possible
81463         Before this change, a libtool-enabled program that calls glibc's
81464         error function would report the program name as
81465         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81466         * modules/progname (configure.ac): Check for a declaration of
81467         program_invocation_name.
81468         * lib/progname.c:  Include <errno.h>.
81469         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81470         Set program_invocation_name.
81472 2009-08-23  Bruno Haible  <bruno@clisp.org>
81474         * lib/dup3.c: Include <string.h>.
81476 2009-08-23  Bruno Haible  <bruno@clisp.org>
81478         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81479         * lib/pipe2.c (pipe2): Likewise.
81480         Suggested by Eric Blake.
81482 2009-08-23  Bruno Haible  <bruno@clisp.org>
81484         Tolerate declared but missing dup3 syscall.
81485         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81486         * lib/unistd.in.h (dup3): If the function is already present,
81487         override it.
81488         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81489         * modules/dup3 (Makefile.am): Compile dup3.c always.
81490         Reported by Paolo Bonzini.
81492 2009-08-23  Bruno Haible  <bruno@clisp.org>
81494         Tolerate declared but missing pipe2 syscall.
81495         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81496         available.
81497         * lib/unistd.in.h (pipe2): If the function is already present,
81498         override it.
81499         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81500         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81501         Reported by Paolo Bonzini.
81503 2009-08-23  Bruno Haible  <bruno@clisp.org>
81505         * lib/pipe2.c (pipe2): Move #ifs inside function.
81507 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81509         quotearg: document limitations of quote_these_too
81510         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81511         those limitations are created.
81512         * lib/quotearg.h (set_char_quoting): Document that digits and
81513         letters that are special after backslash are not permitted.
81514         (quotearg_char): Cross-reference set_char_quoting documentation.
81516 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
81518         quotearg: implement custom_quoting_style
81519         * lib/quotearg.c: (struct quoting_options): Add left_quote and
81520         right_quote fields.
81521         (set_custom_quoting): New public function.
81522         (quotearg_buffer_restyled): Add left_quote and right_quote
81523         arguments, handle them very much like locale quoting, and update
81524         all uses.
81525         (quotearg_n_custom): New public function.
81526         (quotearg_n_custom_mem): New public function.
81527         (quotearg_custom): New public function.
81528         (quotearg_custom_mem): New public function.
81529         * lib/quotearg.h: Prototype and document new public functions.
81530         (enum quoting_style): For escape_quoting_style and
81531         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
81532         ignored even though they're otherwise like c_quoting_style.
81533         Add custom_quoting_style member and document with comparison to
81534         clocale_quoting_style.
81535         * tests/test-quotearg.c (custom_quotes): New array.
81536         (custom_results): New array.
81537         (main): Extend to test custom quoting.
81539 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81541         quotearg: fix right quote escaping when it's in quote_these_too
81542         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
81543         quote, be sure to prepend only one backslash.
81544         * tests/test-quotearg.c (use_quote_double_quotes): New function.
81545         (main): Test it.
81547 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81549         quotearg-tests: test escaping of embedded locale quotes
81550         * tests/test-quotearg.c (struct result_strings): Add member for
81551         new input.
81552         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
81553         (inputs): Add new input.
81554         (results_g): Add expected results.
81555         (flag_results): Likewise.
81556         (locale_results): Likewise.
81557         (compare_strings): Check those.
81559 2009-08-23  Bruno Haible  <bruno@clisp.org>
81561         Tests for module 'dup3'.
81562         * modules/dup3-tests: New file.
81563         * tests/test-dup3.c: New file.
81565         New module 'dup3'.
81566         * lib/unistd.in.h (dup3): New declaration.
81567         * lib/dup3.c: New file.
81568         * m4/dup3.m4: New file.
81569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
81570         HAVE_DUP3.
81571         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
81572         * modules/dup3: New file.
81573         * doc/glibc-functions/dup3.texi: Mention the new module.
81575 2009-08-23  Bruno Haible  <bruno@clisp.org>
81577         Tweak the dup2 test.
81578         * tests/test-dup2.c (main): Create the test file empty. Verify that an
81579         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
81580         the test file is still empty. Fix argument order of lseek.
81582 2009-08-23  Bruno Haible  <bruno@clisp.org>
81584         Avoid test link errors when the modules getopt-gnu, gettext are used.
81585         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
81586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81588 2009-08-23  Bruno Haible  <bruno@clisp.org>
81590         Fix getdtablesize() on mingw.
81591         * lib/getdtablesize.c (getdtablesize): Implement differently.
81592         * lib/unistd.in.h (getdtablesize): Improve comment.
81594 2009-08-23  Bruno Haible  <bruno@clisp.org>
81596         New module 'mkostemp'.
81597         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81598         * lib/stdlib.in.h (mksotemp): New declaration.
81599         * lib/mkostemp.c: New file, from glibc with modifications.
81600         * lib/tempname.h (GT_FILE): Remove outdated comment.
81601         (gen_tempname): Add flags argument.
81602         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81603         (__GT_FILE): Map to 1.
81604         (small_open, large_open): Remove macros.
81605         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81606         * lib/mkstemp.c (mkstemp): Update.
81607         * lib/mkdtemp.c (mkdtemp): Likewise.
81608         * m4/mkostemp.m4: New file.
81609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
81610         HAVE_MKOSTEMP.
81611         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81612         HAVE_MKOSTEMP.
81613         * modules/mkostemp: New file, based on modules/mkstemp.
81614         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81615         * NEWS: Mention the change.
81617 2009-08-23  Bruno Haible  <bruno@clisp.org>
81619         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81620         Reported by Eric Blake.
81622 2009-08-23  Bruno Haible  <bruno@clisp.org>
81624         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81625         Reported by Eric Blake.
81627 2009-08-23  Bruno Haible  <bruno@clisp.org>
81629         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81630         * modules/pipe2 (Depends-on): Likewise.
81632 2009-08-23  Eric Blake  <ebb9@byu.net>
81634         fcntl-h: add O_TTY_INIT support
81635         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81636         * tests/test-fcntl-h.c (o): Test it.
81637         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81639         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81640         * modules/fcntl: Move <fcntl.h> header replacement...
81641         * modules/fcntl-h: ...to new name, so as not to collide with
81642         like-named function.
81643         * tests/test-fcntl.c: Rename...
81644         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81645         * modules/fcntl-tests: Rename...
81646         * modules/fcntl-h-tests: ...to this.  Update test file name.
81647         * modules/chdir-long (Depends-on): Update clients.
81648         * modules/chdir-safer (Depends-on): Likewise.
81649         * modules/fcntl-safer (Depends-on): Likewise.
81650         * modules/fts (Depends-on): Likewise.
81651         * modules/mkancesdirs (Depends-on): Likewise.
81652         * modules/mkdir-p (Depends-on): Likewise.
81653         * modules/open (Depends-on): Likewise.
81654         * modules/savewd (Depends-on): Likewise.
81655         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81656         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81658 2009-08-22  Bruno Haible  <bruno@clisp.org>
81660         * modules/binary-io (License): Relicense under LGPL.
81661         * modules/pipe2 (License): Likewise.
81663 2009-08-22  Bruno Haible  <bruno@clisp.org>
81665         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81666         return value.
81667         * lib/pipe-filter-gi.c (filter_init): Likewise.
81668         Reported by Eric Blake.
81670 2009-08-22  Bruno Haible  <bruno@clisp.org>
81672         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81673         * modules/pipe (Depends-on): Add pipe2.
81675 2009-08-22  Bruno Haible  <bruno@clisp.org>
81677         Tests for module 'pipe2'.
81678         * modules/pipe2-tests: New file.
81679         * tests/test-pipe2.c: New file.
81681         New module 'pipe2'.
81682         * lib/unistd.in.h (pipe2): New declaration.
81683         * lib/pipe2.c: New file.
81684         * m4/pipe2.m4: New file.
81685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81686         HAVE_PIPE2.
81687         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81688         * modules/pipe2: New file.
81689         * doc/glibc-functions/pipe2.texi: Mention the new module.
81691 2009-08-22  Bruno Haible  <bruno@clisp.org>
81693         Reference some new glibc functions.
81694         * doc/glibc-functions/accept4.texi: New file.
81695         * doc/glibc-functions/dup3.texi: New file.
81696         * doc/glibc-functions/mkostemp.texi: New file.
81697         * doc/glibc-functions/pipe2.texi: New file.
81698         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81699         (Glibc sys/socket.h): Refer to accept4.
81700         (Glibc unistd.h): Refer to dup3, pipe2.
81701         Reported by Eric Blake.
81703 2009-08-22  Jim Meyering  <meyering@redhat.com>
81704             Bruno Haible  <bruno@clisp.org>
81706         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81707         This makes it so packages using automake-1.11's silent-rules option
81708         can print e.g., a single "GEN    configmake.h" line, rather than
81709         the 30+ statements that perform the job.  If you want to see the
81710         actual commands, you can still run "make V=1".
81711         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81712         so that make output is abbreviated when those variables are defined
81713         appropriately.
81714         * modules/argz: Likewise.
81715         * modules/arpa_inet: Likewise.
81716         * modules/byteswap: Likewise.
81717         * modules/configmake: Likewise.
81718         * modules/dirent: Likewise.
81719         * modules/errno: Likewise.
81720         * modules/fcntl: Likewise.
81721         * modules/float: Likewise.
81722         * modules/fnmatch: Likewise.
81723         * modules/getopt-posix: Likewise.
81724         * modules/glob: Likewise.
81725         * modules/iconv_open: Likewise.
81726         * modules/inttypes: Likewise.
81727         * modules/localcharset: Likewise.
81728         * modules/locale: Likewise.
81729         * modules/math: Likewise.
81730         * modules/netdb: Likewise.
81731         * modules/netinet_in: Likewise.
81732         * modules/poll: Likewise.
81733         * modules/posix_spawnp-tests: Likewise.
81734         * modules/sched: Likewise.
81735         * modules/search: Likewise.
81736         * modules/selinux-h: Likewise.
81737         * modules/signal: Likewise.
81738         * modules/spawn: Likewise.
81739         * modules/stdarg: Likewise.
81740         * modules/stdbool: Likewise.
81741         * modules/stddef: Likewise.
81742         * modules/stdint: Likewise.
81743         * modules/stdio: Likewise.
81744         * modules/stdlib: Likewise.
81745         * modules/string: Likewise.
81746         * modules/strings: Likewise.
81747         * modules/sys_file: Likewise.
81748         * modules/sys_ioctl: Likewise.
81749         * modules/sys_select: Likewise.
81750         * modules/sys_socket: Likewise.
81751         * modules/sys_stat: Likewise.
81752         * modules/sys_time: Likewise.
81753         * modules/sys_times: Likewise.
81754         * modules/sys_utsname: Likewise.
81755         * modules/sys_wait: Likewise.
81756         * modules/sysexits: Likewise.
81757         * modules/time: Likewise.
81758         * modules/unistd: Likewise.
81759         * modules/wchar: Likewise.
81760         * modules/wctype: Likewise.
81762 2009-08-22  Jim Meyering  <meyering@redhat.com>
81764         announce-gen: detect write failure
81765         * build-aux/announce-gen: Add Coda at end.
81766         Remove equivalent-but-more-verbose block at top.
81768 2009-08-19  Akim Demaille  <demaille@gostai.com>
81770         bootstrap: --help to stdout.
81771         * bootstrap (usage): Don't send --help to stderr.
81772         Use a here doc instead of a long string.
81774 2009-08-21  Eric Blake  <ebb9@byu.net>
81776         test-popen-safer: split from test-popen
81777         * tests/test-popen.c (main): Move...
81778         * tests/test-popen.h: ...into new file.
81779         * tests/test-popen-safer2.c: New file.
81780         * modules/popen-tests (Files): Add test-popen.h.
81781         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81782         Suggested by Bruno Haible.
81784         test-fcntl-safer: split from test-open
81785         * tests/test-open.c (main): Move...
81786         * tests/test-open.h: ...into new file.
81787         * tests/test-fcntl-safer.c: New file.
81788         * modules/open-tests (Files): Add test-open.h.
81789         * modules/fcntl-safer-tests: New file.
81790         Suggested by Bruno Haible.
81792         test-fopen-safer: split from test-fopen
81793         * tests/test-fopen.c (main): Move...
81794         * tests/test-fopen.h: ...into new file.
81795         * tests/test-fopen-safer.c: New file.
81796         * modules/fopen-tests (Files): Add test-fopen.h.
81797         * modules/fopen-safer-tests: New file.
81798         Suggested by Bruno Haible.
81800 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81802         popen-safer: test O_CLOEXEC at run-time.
81803         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81805 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81807         fcntl: move more flags to the header
81808         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81809         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81810         * lib/fcntl.in.h: Do both things here.
81812 2009-08-21  Jim Meyering  <meyering@redhat.com>
81814         consistently remove $@-t before redirecting to it
81815         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81816         * modules/alloca-opt: Likewise.
81817         * modules/byteswap: Likewise.
81818         * modules/fnmatch: Likewise.
81819         * modules/getopt-posix: Likewise.
81820         * modules/glob: Likewise.
81821         * modules/poll: Likewise.
81822         * modules/posix_spawnp-tests: Likewise.
81823         * modules/sys_socket: Likewise.
81824         * modules/sysexits: Likewise.
81826 2009-08-21  Eric Blake  <ebb9@byu.net>
81828         popen: simplify access to original popen
81829         * lib/popen.c (rpl_popen): No need to worry about popen being a
81830         macro.
81831         Reported by Bruno Haible.
81833 2009-08-20  Eric Blake  <ebb9@byu.net>
81835         build: avoid some compiler warnings
81836         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81837         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81838         type.
81839         (new_exclude_segment, excluded_file_pattern_p)
81840         (excluded_file_name_p): Reduce scope.
81841         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81842         old-style declaration.
81844 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81846         * tests/test-exclude1.sh: Handle Windows EOL.
81847         * tests/test-exclude2.sh: Likewise.
81848         * tests/test-exclude3.sh: Likewise.
81849         * tests/test-exclude4.sh: Likewise.
81850         * tests/test-exclude5.sh: Likewise.
81851         * tests/test-exclude6.sh: Likewise.
81852         * tests/test-exclude7.sh: Likewise.
81854 2009-08-19  Akim Demaille  <demaille@gostai.com>
81856         bootstrap: find sha1sum when named gsha1sum.
81857         * bootstrap (find_tool): New.
81858         ($SHA1SUM): New.
81859         Use it.
81861 2009-08-20  Jim Meyering  <meyering@redhat.com>
81863         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81864         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81865         expression that converts "." in a file name to "\." in the resulting
81866         regexp.  Start with a dummy statement, so that prior shell variable
81867         definitions are expanded portably.  Reported by Simon Josefsson.
81869 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81871         Fix polling for writeability of a screen buffer.
81872         * lib/poll.c: Distinguish input and screen buffers for the
81873         Win32 implementation.
81874         * lib/select.c: Likewise.
81876 2009-08-19  Eric Blake  <ebb9@byu.net>
81878         popen-safer: prevent popen from clobbering std descriptors
81879         * modules/popen-safer: New file.
81880         * lib/popen-safer.c: Likewise.
81881         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81882         * lib/stdio--.h (popen): Provide override.
81883         * lib/stdio-safer.h (popen_safer): Provide declaration.
81884         * tests/test-popen.c (includes): Partially test this.
81885         * modules/popen-safer-tests: New file, for more tests.
81886         * tests/test-popen-safer.c: Likewise.
81887         * MODULES.html.sh (file stream based Input/Output): Mention it.
81889         tests: test some of the *-safer modules
81890         * modules/fopen-safer (Depends-on): Add fopen.
81891         * modules/fcntl-safer (Depends-on): Add fcntl.
81892         * modules/stdlib-safer (Depends-on): Add stdlib.
81893         (configure.ac): Set indicator.
81894         * modules/unistd-safer (configure.ac): Likewise.
81895         * modules/tmpfile-safer (configure.ac): Likewise.
81896         (Depends-on): Add tmpfile.
81897         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81898         active.
81899         * tests/test-fopen.c (includes): Test safer versions when they are
81900         in use.
81901         * tests/test-open.c (includes): Likewise.
81903         popen: fix cygwin 1.5 bug when stdin closed
81904         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81905         * modules/popen: New file.
81906         * modules/popen-tests: Likewise.
81907         * tests/test-popen.c: Likewise.
81908         * m4/popen.m4: Likewise.
81909         * lib/popen.c: Likewise.
81910         * lib/stdio.in.h (popen): New declaration.
81911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81912         * modules/stdio (Makefile.am): Likewise.
81913         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81915 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81917         maint.mk: give full control over update-copyright exclusions
81918         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81919         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81920         (update-copyright): Don't force inclusion of top-level
81921         ChangeLog.  Don't force exclusion of all COPYING files, but make
81922         them the default exclusion instead.
81924 2009-08-16  Bruno Haible  <bruno@clisp.org>
81926         Fix test failures on Solaris 10.
81927         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81928         tests when Solaris iconv() is used.
81929         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81930         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81931         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81932         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81933         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81935 2009-08-16  Bruno Haible  <bruno@clisp.org>
81937         Fix test failures on Solaris 10.
81938         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
81939         'tr' program and pass it as first argument.
81940         * tests/test-pipe-filter-gi1.sh: Likewise.
81941         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
81942         program as first argument.
81943         * tests/test-pipe-filter-gi1.c (main): Likewise.
81945 2009-08-16  Eric Blake  <ebb9@byu.net>
81947         fpurge: fix previous commits
81948         * modules/fpurge (Makefile.am): Make replacement conditional,
81949         partially reverting 2007-04-29 change; missed in previous
81950         attempt.
81951         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81952         is missing.
81954 2009-08-16  Bruno Haible  <bruno@clisp.org>
81956         Clarify fpurge's effect on the file position.
81957         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81958         * tests/test-fpurge.c (main): Make a second pass for checking the file
81959         position.
81961 2009-08-16  Bruno Haible  <bruno@clisp.org>
81963         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81964         declaration of fpurge is missing.
81965         * tests/test-fpurge.c (main): Check that the file has not more contents
81966         than expected. Close the file before removing it.
81968 2009-08-15  Eric Blake  <ebb9@byu.net>
81970         fpurge: don't wrap working cygwin implementation
81971         * lib/fpurge.c (fpurge): Fix comment typo.
81972         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81973         1.7 to avoid replacement.
81974         * tests/test-fpurge.c (main): Enhance test.
81976 2009-08-15  Eric Blake  <ebb9@byu.net>
81977         and Jim Meyering  <meyering@redhat.com>
81979         test-update-copyright: skip if perl is insufficient
81980         * tests/test-update-copyright.sh: Failure to run maintainer tool
81981         should not cause testsuite failure on cygwin 1.5.
81983 2009-08-14  Eric Blake  <ebb9@byu.net>
81985         doc: mention more functions added in cygwin 1.7.0
81986         * doc/posix-headers/limits.texi (limits.h): Update for recent
81987         cygwin additions.
81988         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81989         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81990         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81991         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81992         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81994 2009-08-14  Eric Blake  <ebb9@byu.net>
81996         maint.mk: simplify update-copyright rule
81997         * top/maint.mk (update-copyright-local): Delete, and document how
81998         to do it in cfg.mk instead.
81999         (update-copyright-exclude-regexp): Delete, and document how to do
82000         it in .x-update-copyright instead.
82001         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82002         exclude ChangeLog.
82004 2009-08-14  Bruno Haible  <bruno@clisp.org>
82006         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82008 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82010         maint.mk: support update-copyright-env
82011         * top/maint.mk (update-copyright-env): Define place-holder.
82012         (update-copyright): Expand $(update-copyright-env) before
82013         invoking update-copyright.
82015 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82017         update-copyright: implement forced reformatting
82018         * build-aux/update-copyright: Implement and document
82019         UPDATE_COPYRIGHT_FORCE.
82020         * tests/test-update-copyright.sh: Test it.
82022 2009-08-14  Eric Blake  <ebb9@byu.net>
82023         and Bruno Haible  <bruno@clisp.org>
82025         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82026         * tests/test-locale.c: Revert previous patch related to NULL.
82027         * tests/test-stdio.c: Likewise.
82028         * tests/test-stdlib.c: Likewise.
82029         * tests/test-string.c: Likewise.
82030         * tests/test-unistd.c: Likewise.
82031         * modules/time-tests (Depends-on): Add verify.
82032         * modules/wchar-tests (Depends-on): Likewise.
82033         * tests/test-time.c: Test for NULL compliance.
82034         * tests/test-wchar.c: Likewise.
82035         * modules/locale (Depends-on): Add stddef.
82036         * modules/stdio (Depends-on): Likewise.
82037         * modules/stdlib (Depends-on): Likewise.
82038         * modules/string (Depends-on): Likewise.
82039         * modules/time (Depends-on): Likewise.
82040         * modules/unistd (Depends-on): Likewise.
82041         * modules/wchar (Depends-on): Likewise.
82042         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82043         * lib/stdlib.in.h (includes): Likewise.
82044         * lib/string.in.h (includes): Likewise.
82045         * lib/time.in.h (includes): Likewise.
82046         * lib/unistd.in.h (includes): Likewise.
82047         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82048         replaced.
82049         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82050         * m4/stddef_h.m4: New file.
82051         * modules/stddef: Likewise.
82052         * lib/stddef.in.h: Likewise.
82053         * modules/stddef-tests: Likewise.
82054         * tests/test-stddef.c: Likewise.
82055         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82056         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82057         * doc/posix-headers/locale.texi (locale.h): Likewise.
82058         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82059         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82060         * doc/posix-headers/string.texi (string.h): Likewise.
82061         * doc/posix-headers/time.texi (time.h): Likewise.
82062         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82063         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82065 2009-08-14  Eric Blake  <ebb9@byu.net>
82067         doc: improve git diff of texinfo files
82068         * .gitattributes: Add rule for *.texi files, with hint on how to
82069         use it.
82070         Copied from m4, and based on a report by Bruno Haible.
82072 2009-08-14  Bruno Haible  <bruno@clisp.org>
82074         Disable multithread support by default on Cygwin 1.5.x for real.
82075         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82077 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82079         update-copyright: much ado about intervals
82080         * build-aux/update-copyright: Implement and document
82081         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82082         of copyright year intervals.
82083         Also, document UPDATE_COPYRIGHT_YEAR.
82084         * tests/test-update-copyright.sh: Test it.
82086         update-copyright: convert 2-digit to 4-digit years
82087         * build-aux/update-copyright: Implement and document.
82088         * tests/test-update-copyright.sh: Update.
82090 2009-08-14  Jim Meyering  <meyering@redhat.com>
82092         test-exclude: avoid coreutils "make check" failure
82093         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82094         just as in test-argmatch.c.
82096 2009-08-13  Eric Blake  <ebb9@byu.net>
82098         test-dup2: fix bad assumption
82099         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82100         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82102         test-version-etc: fix CRLF portability issue
82103         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82104         recognize \r.
82105         * tests/test-argp-version-etc-1.sh: Likewise.
82107         getopt: update client modules
82108         * modules/argp (Depends-on): Use getopt-gnu.
82109         * modules/git-merge-changelog (Depends-on): Likewise.
82110         * modules/long-options (Depends-on): Likewise.
82111         * modules/xstrtol (Depends-on): Likewise.
82113 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82115         * tests/test-version-etc.sh: Don't fail on different
82116         project/version.  Don't fail on CRLF differences.  Rewrite to use
82117         multiple -e instead of multiple sed forks, suggested by Eric Blake
82118         <ebb9@byu.net>.
82119         * tests/test-argp-version-etc-1.sh: Likewise.
82121 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82123         * tests/test-version-etc.sh: Don't fail on different
82124         project/version.
82126 2009-08-12  Bruno Haible  <bruno@clisp.org>
82128         Tests for modules 'getopt-posix', 'getopt-gnu'.
82129         * modules/getopt-posix-tests: New file.
82130         * tests/test-getopt.c: New file.
82131         * tests/test-getopt.h: New file.
82132         * tests/test-getopt_long.h: New file.
82134         New modules 'getopt-posix', 'getopt-gnu'.
82135         * modules/getopt-gnu: New file, renamed from modules/getopt.
82136         * modules/getopt-posix: New file.
82137         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82138         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82139         (gl_GETOPT): Remove macro.
82140         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82141         Disable the test against BSD systems that declare optreset. Test
82142         against mingw bug. Test against lack of support of optional arguments
82143         on many platforms.
82144         * doc/glibc-headers/getopt.texi: Update module name and list of
82145         relevant platforms.
82146         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82147         'getopt-gnu' and more portability problems.
82148         * NEWS: Mention the changes.
82150 2009-08-12  Bruno Haible  <bruno@clisp.org>
82152         Ensure that optarg etc. get declared by <unistd.h>.
82153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82154         AC_USE_SYSTEM_EXTENSIONS.
82155         * modules/getopt (Depends-on): Add 'extensions'.
82157 2009-08-12  Bruno Haible  <bruno@clisp.org>
82159         Avoid test link errors.
82160         * modules/pipe-filter-ii-tests (Makefile.am): Define
82161         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82162         * modules/pipe-filter-gi-tests (Makefile.am): Define
82163         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82166 2009-08-12  Bruno Haible  <bruno@clisp.org>
82168         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82169         gl_GETOPT_SUBSTITUTE before.
82170         (gl_GETOPT): Use it.
82171         * m4/argp.m4 (gl_ARGP): Update.
82172         Reported by Sergey Poznyakoff.
82174         * m4/getopt.m4: Reorder macros.
82175         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82176         (gl_GETOPT_SUBSTITUTE): Remove macro.
82178 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82180         Minor improvement in gitlog-to-changelog
82182         * build-aux/gitlog-to-changelog: New option `--format' makes
82183         output format string configurable.
82185 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82187         Optimize exclude: use hash tables for non-wildcard patterns.
82189         * lib/exclude.c: Include hash.h and mbuiter.h
82190         (struct exclude_pattern, exclude_segment): New data types.
82191         (struct exclude): Rewrite.
82192         (fnmatch_pattern_has_wildcards): New function.
82193         (new_exclude_segment, free_exclude_segment): New functions.
82194         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82195         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82196         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82197         * modules/exclude: Depend on hash and mbuiter.
82199         * modules/exclude-tests: New file.
82200         * tests/test-exclude.c: New file.
82201         * tests/test-exclude1.sh: New file.
82202         * tests/test-exclude2.sh: New file.
82203         * tests/test-exclude3.sh: New file.
82204         * tests/test-exclude4.sh: New file.
82205         * tests/test-exclude5.sh: New file.
82206         * tests/test-exclude6.sh: New file.
82207         * tests/test-exclude7.sh: New file.
82209 2009-08-12  Bruno Haible  <bruno@clisp.org>
82211         Ensure that getopt() gets declared by <unistd.h>.
82212         * lib/unistd.in.h: Conditionally include getopt.h.
82213         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82214         Set GNULIB_UNISTD_H_GETOPT.
82215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82216         GNULIB_UNISTD_H_GETOPT.
82217         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82219 2009-08-12  Bruno Haible  <bruno@clisp.org>
82221         Clarify logic.
82222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82223         gl_replace_getopt instead of GETOPT_H.
82225 2009-08-12  Bruno Haible  <bruno@clisp.org>
82227         * m4/getopt.m4: Add comments.
82229 2009-08-12  Bruno Haible  <bruno@clisp.org>
82231         Disable multithread support by default on Cygwin 1.5.x.
82232         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82233         set gl_use_threads=no if not specified otherwise.
82235 2009-08-11  Bruno Haible  <bruno@clisp.org>
82237         Avoid compilation error on NetBSD 5.0.
82238         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82239         * tests/test-stdio.c: Likewise.
82240         * tests/test-stdlib.c: Likewise.
82241         * tests/test-string.c: Likewise.
82242         * tests/test-unistd.c: Likewise.
82243         Reported by Greg Troxel <gdt@ir.bbn.com>
82244         at <https://savannah.gnu.org/support/?106973>.
82246 2009-08-11  Bruno Haible  <bruno@clisp.org>
82248         * modules/dup2-tests (Depends-on): Remove close.
82250         Undo 2009-07-19 commit.
82251         * modules/acl-tests (Depends-on): Remove close.
82252         * modules/binary-io-tests (Depends-on): Likewise.
82253         * modules/closein-tests (Depends-on): Likewise.
82254         * modules/flock-tests (Depends-on): Likewise.
82255         * modules/fsync-tests (Depends-on): Likewise.
82256         * modules/lseek-tests (Depends-on): Likewise.
82257         * modules/pipe-tests (Depends-on): Likewise.
82258         * modules/posix_spawn-tests (Depends-on): Likewise.
82259         * modules/posix_spawnp-tests (Depends-on): Likewise.
82260         * modules/stat-time-tests (Depends-on): Likewise.
82261         * modules/yesno-tests (Depends-on): Likewise.
82263 2009-08-10  Bruno Haible  <bruno@clisp.org>
82265         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82267 2009-08-10  Bruno Haible  <bruno@clisp.org>
82269         Fix a gcc warning.
82270         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82272 2009-08-10  Bruno Haible  <bruno@clisp.org>
82274         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82275         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82276         not only the first time.
82277         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82278         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82279         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82280         is 1, not only the first time.
82282 2009-08-10  Bruno Haible  <bruno@clisp.org>
82284         Make it possible to use module 'gethostname' without module 'close'.
82285         * lib/unistd.in.h (close): Evoke a link error only if
82286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82288         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82289         * modules/unistd (Makefile.am): Substitute
82290         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82291         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82294         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82295         * modules/sys_ioctl (Makefile.am): Substitute
82296         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82297         * modules/socket (configure.ac): On native Windows, set
82298         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82299         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82300         Reported by Sam Steingold <sds@gnu.org>.
82302 2009-08-10  Bruno Haible  <bruno@clisp.org>
82304         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82305         * modules/ioctl (configure.ac): Likewise.
82307 2009-08-10  Bruno Haible  <bruno@clisp.org>
82309         Avoid collision between gnulib wrapper and libintl wrapper.
82310         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82311         already defined in intl/printf.c.
82312         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82313         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82315 2009-08-09  Bruno Haible  <bruno@clisp.org>
82317         Make <sys/select.h> really self-contained, also on Solaris 10.
82318         * lib/sys_select.in.h: Include <string.h>.
82319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82320         Solaris 10 problem.
82321         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82322         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82323         Reported by Jim Meyering.
82325 2009-08-09  Bruno Haible  <bruno@clisp.org>
82327         Avoid warnings from 'aclocal' that are due to a use of macro name
82328         AM_XGETTEXT_OPTION that is not defined in automake.
82329         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82330         automake.
82331         * modules/error (configure.ac): Likewise.
82332         * modules/propername (configure.ac): Likewise.
82333         * modules/vasprintf (configure.ac): Likewise.
82334         * modules/verror (configure.ac): Likewise.
82335         * modules/xprintf (configure.ac): Likewise.
82336         * modules/xvasprintf (configure.ac): Likewise.
82338 2009-08-08  Bruno Haible  <bruno@clisp.org>
82340         Avoid compilation error in C++ mode.
82341         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82342         Reported by Sam Steingold <sds@gnu.org>.
82344 2009-08-08  Bruno Haible  <bruno@clisp.org>
82346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82347         for the various Unix platforms.
82348         * doc/posix-headers/limits.texi: Update platforms list regarding
82349         HOST_NAME_MAX.
82350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82352 2009-08-07  Jim Meyering  <meyering@redhat.com>
82354         selinux-at: fix typo in a comment
82355         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82356         Spotted by Paolo Bonzini.
82358         selinux-at: remove redundant m4 code, add documentation
82359         * modules/selinux-at (configure.ac): Remove redundant code.
82360         LIB_SELINUX is already set via the dependent module, selinux-h.
82361         (Include): Add quotes around selinux-at.h.
82362         * lib/selinux-at.h: Add documentation.
82363         Reported by Bruno Haible in
82364         http://marc.info/?l=gnulib-bug&m=124958988300749
82366 2009-08-07  Bruno Haible  <bruno@clisp.org>
82368         Avoid link error on MacOS X 10.3 and 10.4.
82369         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82370         on non-ELF systems.
82371         * lib/argp-pv.c (argp_program_version): Likewise.
82372         Reported by Simon Josefsson.
82374 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82376         * tests/test-version-etc.sh: Use $EXEEXT.
82378 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82380         update-copyright: update documentation to point to maint.mk
82381         * build-aux/update-copyright: Here.
82383 2009-08-06  Jim Meyering  <meyering@redhat.com>
82385         maint.mk: support update-copyright-local
82386         * top/maint.mk (update-copyright-local): Define place-holder.
82387         (update-copyright): Depend on $(update-copyright-local).
82389 2009-08-06  Jim Meyering  <meyering@redhat.com>
82391         selinux-at: new module
82392         Initially written for coreutils, this module will soon be
82393         used by findutils, too.
82394         * MODULES.html.sh [Misc]: Add selinux-at.
82395         * lib/selinux-at.h: New file, from coreutils.
82396         * lib/selinux-at.c: Likewise.
82397         * modules/selinux-at: Likewise.
82398         (License): Change from LGPL to GPL, since it depends
82399         on the GPL'd openat module.
82401         doc: update README
82402         * README: Remove references to cogito.
82403         Remove cvs-repo-updating instructions from 2007.
82404         Don't imply that CVS is better if you have limited disk space.
82406 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82408         update-copyright: support C-style comments
82409         * build-aux/update-copyright: Implement and document.
82410         * tests/test-update-copyright.sh: Test.
82412 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82414         update-copyright: support omitted "(C)"
82415         * build-aux/update-copyright: Implement and document.  Also,
82416         allow variable whitespace before "(C)".
82417         * tests/test-update-copyright.sh: Test.
82419 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82421         update-copyright: don't trip on non-FSF copyright statements
82422         * build-aux/update-copyright: Fix so that the first correctly
82423         formatted FSF copyright statement is recognized no matter what
82424         appears before it.  Update documentation.
82425         * tests/test-update-copyright.sh: Test that.
82427 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82429         update-copyright: clean up code a little
82430         * build-aux/update-copyright: Append "_re" to the name of any
82431         variable holding a regular expression.
82432         Replace "old" and "new" with "stmt" in variable names.
82433         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82434         handled correctly.
82435         Format code more consistently.
82437 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82439         update-copyright-tests: improve portability
82440         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82441         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82443 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82445         update-copyright: support @copyright{} and &copy;
82446         * build-aux/update-copyright: Implement and document.
82447         * tests/test-update-copyright.sh: Test.
82449 2009-08-04  Jim Meyering  <meyering@redhat.com>
82451         update-copyright-tests: correctly test EOL=\r\n handling
82452         * tests/test-update-copyright.sh: Put \r at the end of some lines
82453         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82455         maint.mk: make update-copyright exclusion list more configurable
82456         * top/maint.mk (update-copyright): Default to excluding COPYING,
82457         but allow an override, in case someone does want to update that file.
82459         maint.mk: don't update copyright date in COPYING
82460         * top/maint.mk (update-copyright): Exclude COPYING.
82462         maint.mk: add a copyright-updating rule
82463         * top/maint.mk (update-copyright): New rule.
82464         Derived from coreutils/Makefile.am.
82466         update-copyright: rename some variables
82467         * build-aux/update-copyright: Rename a few variables for clarity.
82468         Tweak syntax.  List Joel E. Denny as coauthor.
82470 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82472         update-copyright: fix bug for 2-digit last year and add tests
82473         * build-aux/update-copyright: Fix bug.
82474         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82475         specified.
82476         * modules/update-copyright-tests: New
82477         * tests/test-update-copyright.sh: New.
82479 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82481         update-copyright: handle leading tabs in line prefix
82482         * build-aux/update-copyright: Count leading tabs as 8 spaces
82483         when computing margin.  This helps with the formatting of
82484         ChangeLogs, for example.
82485         Fix documentation a little.
82487 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82489         update-copyright: support EOL=\r\n
82490         * build-aux/update-copyright: Implement that.
82492 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82494         update-copyright: automatically format copyright statements
82495         * build-aux/update-copyright: Implement that.
82496         Also, be a little more predictable and safer by always failing
82497         when the full copyright format is not perfectly recognized as an
82498         unbroken whole.  Discussed at
82499         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82500         Rewrite documentation.
82502 2009-08-03  Bruno Haible  <bruno@clisp.org>
82504         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82506 2009-08-02  Bruno Haible  <bruno@clisp.org>
82508         Tests for module 'uname'.
82509         * modules/uname-tests: New file.
82510         * tests/test-uname.c: New file.
82512         New module 'uname'.
82513         * lib/uname.c: New file.
82514         * m4/uname.m4: New file.
82515         * modules/uname: New file.
82516         * doc/posix-functions/uname.texi: Mention the new module.
82518 2009-08-02  Bruno Haible  <bruno@clisp.org>
82520         Tests for module 'sys_utsname'.
82521         * modules/sys_utsname-tests: New file.
82522         * tests/test-sys_utsname.c: New file.
82524         New module 'sys_utsname'.
82525         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
82526         * m4/sys_utsname_h.m4: New file.
82527         * modules/sys_utsname: New file.
82528         * doc/posix-headers/sys_utsname.texi: Mention the new module.
82530 2009-08-02  Bruno Haible  <bruno@clisp.org>
82532         Implicitly initialize the sockets library.
82533         * lib/gethostname.c: Include sockets.h.
82534         (rpl_gethostname): Invoke gl_sockets_startup.
82535         * lib/socket.c: Include sockets.h.
82536         (rpl_socket): Invoke gl_sockets_startup.
82537         * modules/gethostname (Depends-on): Add sockets.
82538         * modules/socket (Depends-on): Likewise.
82539         * tests/test-poll.c: Don't include sockets.h.
82540         (main): Don't invoke gl_sockets_startup.
82541         * tests/test-select.c: Don't include sockets.h.
82542         (main): Don't invoke gl_sockets_startup.
82544 2009-08-02  Bruno Haible  <bruno@clisp.org>
82546         Allow multiple calls to gl_sockets_startup.
82547         * lib/sockets.c (initialized_sockets_version): New variable.
82548         (gl_sockets_startup): Do nothing if already called for this or a higher
82549         version.
82550         (gl_sockets_cleanup): Reset initialized_sockets_version.
82552 2009-08-03  Simon Josefsson  <simon@josefsson.org>
82554         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
82555         different project/version.
82557 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
82558             Bruno Haible  <bruno@clisp.org>
82560         Tests for module 'pipe-filter-gi'.
82561         * modules/pipe-filter-gi-tests: New file.
82562         * tests/test-pipe-filter-gi1.sh: New file.
82563         * tests/test-pipe-filter-gi1.c: New file.
82564         * tests/test-pipe-filter-gi2.sh: New file.
82565         * tests/test-pipe-filter-gi2-main.c: New file.
82566         * tests/test-pipe-filter-gi2-child.c: New file.
82568         New module 'pipe-filter-gi'.
82569         * lib/pipe-filter-gi.c: New file.
82570         * modules/pipe-filter-gi: New file.
82572 2009-08-02  Bruno Haible  <bruno@clisp.org>
82573             Paolo Bonzini  <bonzini@gnu.org>
82575         Tests for module 'pipe-filter-ii'.
82576         * modules/pipe-filter-ii-tests: New file.
82577         * tests/test-pipe-filter-ii1.sh: New file.
82578         * tests/test-pipe-filter-ii1.c: New file.
82579         * tests/test-pipe-filter-ii2.sh: New file.
82580         * tests/test-pipe-filter-ii2-main.c: New file.
82581         * tests/test-pipe-filter-ii2-child.c: New file.
82583         New module 'pipe-filter-ii'.
82584         * lib/pipe-filter.h: New file.
82585         * lib/pipe-filter-ii.c: New file.
82586         * lib/pipe-filter-aux.h: New file.
82587         * modules/pipe-filter-ii: New file.
82589 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82591         * lib/gc-libgcrypt.c: Change copyright to FSF.
82592         * lib/gc-gnulib.c: Likewise.
82594 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82596         * lib/gethostname.c: Include limits.h.
82598 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82599             Bruno Haible  <bruno@clisp.org>
82601         Ensure HOST_NAME_MAX as part of the gethostname module.
82602         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82603         define also HOST_NAME_MAX.
82604         * tests/test-gethostname.c: Include <limits.h>.
82605         (main): Check also HOST_NAME_MAX.
82606         * doc/posix-headers/limits.texi: Document the mingw problem.
82608 2009-08-02  Bruno Haible  <bruno@clisp.org>
82610         * lib/gethostname.c (gethostname): Fix handling of large len argument.
82611         Add comments.
82613 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82615         * lib/gethostname.c: Add Windows wrapper.
82616         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82617         * modules/gethostname: Depend on sys_socket & errno, for also
82618         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82619         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82621 2009-07-31  Jim Meyering  <meyering@redhat.com>
82623         getloadavg: fix symbol name in comment
82624         * lib/getloadavg.c: Correct a typo I introduced when adding
82625         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82626         Matt Kraai spotted the problem.
82628 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82630         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82631         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82632         code also if ! defined N_NAME_POINTER.
82633         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82634         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82635         but the n_name member is a 12-byte array.
82637 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82639         update-copyright: generalize comment handling
82640         * build-aux/update-copyright: Handle copyright statements
82641         within more comment styles.
82642         Document usage.
82643         Report any file with an external copyright holder or parse failure.
82645 2009-07-29  Jim Meyering  <meyering@redhat.com>
82647         mktime: correct setting of REPLACE_MKTIME
82648         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82650         update-copyright: new module
82651         * modules/update-copyright: New file.
82652         * build-aux/update-copyright: New file.
82653         * MODULES.html.sh (maint+release support): Add update-copyright.
82655 2009-07-27  Bruno Haible  <bruno@clisp.org>
82657         Fix compilation error when <ctime> is used and mktime is replaced.
82658         * lib/time.in.h (mktime): New declaration.
82659         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82660         REPLACE_MKTIME instead of defining mktime in config.h.
82661         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82662         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82663         Reported by Ross McFarland <rwmcfa1@neces.com>.
82665 2009-07-27  Bruno Haible  <bruno@clisp.org>
82667         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82668         Reported by Matt Kraai <mkraai@beckman.com>.
82670 2009-07-25  Jim Meyering  <meyering@redhat.com>
82672         maint.mk: avoid warnings about missing files
82673         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82674         diagnostic when .prev-version does not exist.
82675         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82676         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82677         nonexistent cfg.mk.
82678         Suggestions from Simon Josefsson.
82680 2009-07-25  Bruno Haible  <bruno@clisp.org>
82682         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82683         defined as macros. Needed on QNX 6.4.1.
82684         Reported by Matt Kraai <mkraai@beckman.com>.
82686 2009-07-23  Jim Meyering  <meyering@redhat.com>
82688         maint.mk: invoke "make dist" with a working value of XZ_OPT
82689         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82691 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82693         Make fseeko.c compile on QNX.
82694         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82696 2009-07-22  Peter Simons  <simons@cryp.to>
82698         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82699         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82700         * lib/md4.h: Likewise.
82701         * lib/md5.h: Likewise.
82702         * lib/sha1.h: Likewise.
82703         * lib/sha256.h: Likewise.
82704         * lib/sha512.h: Likewise.
82706         tests-sha1: don't assign literal string to 'char *' variable
82707         * tests/test-sha1.c (main): Declare locals with "const" to match
82708         attributes of the right hand side.
82710 2009-07-21  Eric Blake  <ebb9@byu.net>
82712         dup2: fix more mingw problems
82713         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82714         fd to itself.
82715         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82716         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82717         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82718         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82719         care of mingw bugs.
82721 2009-07-21  Jim Meyering  <meyering@redhat.com>
82723         vc-list-files: avoid failure when /bin/sh is dash
82724         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82725         On some Debian based systems, /bin/sh is a symlink to dash, and running
82726         this command would omit the "/" following each 'tests' prefix:
82727           dash -x build-aux/vc-list-files -C . tests
82728         That is because bash and dash work differently:
82729           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82730           bash ok
82731           dash odd
82733 2009-07-21  Eric Blake  <ebb9@byu.net>
82735         dup2-tests: test previous patch
82736         * modules/dup2-tests: New file.
82737         * tests/test-dup2.c: Likewise.
82738         * tests/test-open.c (main): Avoid unspecified behavior.
82739         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82740         test.
82742         dup2: work around mingw and cygwin 1.5 bug
82743         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82745         * modules/unistd (Makefile.am): Substitute it.
82746         * lib/unistd.in.h (dup2): Declare the replacement.
82747         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82748         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82749         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82750         * modules/execute (Depends-on): Add dup2.
82751         * modules/fseterr (Depends-on): Likewise.
82752         * modules/pipe (Depends-on): Likewise.
82753         * modules/posix_spawn-internal (Depends-on): Likewise.
82755 2009-07-21  Bruno Haible  <bruno@clisp.org>
82757         * modules/.gitattributes: New file.
82759 2009-07-20  Bruno Haible  <bruno@clisp.org>
82761         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82762         (main): Use it.
82764 2009-07-20  Eric Blake  <ebb9@byu.net>
82766         test-pipe: make a bit more robust.
82767         * tests/test-pipe.c (myerr): Allow error messages regardless of
82768         what we do to stderr.
82769         (test_pipe): Rearrange to avoid deadlock.
82770         (child_main): Try a larger read, to ensure we avoided deadlock.
82771         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82772         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82773         if misused.
82775 2009-07-19  Jim Meyering  <meyering@redhat.com>
82777         fts: avoid false-positive cycle-detection
82778         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82779         for each new command line argument.
82781 2009-07-19  Bruno Haible  <bruno@clisp.org>
82783         Fix build error on mingw with the modules sys_select and unistd.
82784         * modules/acl-tests (Depends-on): Add close.
82785         * modules/binary-io-tests (Depends-on): Likewise.
82786         * modules/closein-tests (Depends-on): Likewise.
82787         * modules/flock-tests (Depends-on): Likewise.
82788         * modules/fsync-tests (Depends-on): Likewise.
82789         * modules/lseek-tests (Depends-on): Likewise.
82790         * modules/pipe-tests (Depends-on): Likewise.
82791         * modules/posix_spawn-tests (Depends-on): Likewise.
82792         * modules/posix_spawnp-tests (Depends-on): Likewise.
82793         * modules/stat-time-tests (Depends-on): Likewise.
82794         * modules/yesno-tests (Depends-on): Likewise.
82796 2009-07-19  Bruno Haible  <bruno@clisp.org>
82798         Unify conditionals.
82799         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82800         macros, not at the compiler macros.
82801         * lib/pipe.c: Likewise.
82802         * lib/execute.c: Likewise.
82803         * lib/spawni.c: Likewise.
82805 2009-07-19  Bruno Haible  <bruno@clisp.org>
82807         Fix handling of closed stdin/stdout/stderr on mingw.
82808         * lib/w32spawn.h: Include unistd.h.
82809         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82810         file descriptor with O_NOINHERIT flag.
82811         (fd_safer_noinherit): New function, based on fd-safer.c.
82812         (dup_safer_noinherit): New function, based on dup-safer.c.
82813         (undup_safer_noinherit): New function.
82814         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82815         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82816         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82817         instead of fd_safer.
82818         * tests/test-pipe.c: Include <windows.h>.
82819         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82820         result.
82822         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82823         from main.
82824         (test_pipe): Pass an extra argument for disambiguation.
82825         (main): Invoke parent_main or child_main.
82827         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82828         consistently.
82830 2009-07-18  Eric Blake  <ebb9@byu.net>
82832         test-pipe: fix mingw build
82833         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82835 2009-07-18  Bruno Haible  <bruno@clisp.org>
82837         * modules/pipe-tests (Makefile.am): Fix typo.
82839 2009-07-18  Eric Blake  <ebb9@byu.net>
82841         error: fix mingw build
82842         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82843         Reported by Bruno Haible.
82845         error: avoid undefined use of stdout
82846         * lib/error.c (error, error_at_line): Check that fd 1 is open
82847         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82848         is handling faults and the close_stdout module wants to report the
82849         detection of closed stdout as an error.
82851 2009-07-17  Eric Blake  <ebb9@byu.net>
82853         pipe: be robust in face of closed fds
82854         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82855         should cause child to misbehave.
82856         * modules/pipe-tests: New module.
82857         * tests/test-pipe.c: New file.
82858         * tests/test-pipe.sh: New file.
82859         Reported by Akim Demaille.
82861 2009-07-14  Bruno Haible  <bruno@clisp.org>
82863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82864         Reported by anonymous kc.
82866 2009-07-07  Jim Meyering  <meyering@redhat.com>
82868         maint.mk: don't look for translatable strings in *.m4 or *.mk
82869         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82870         when searching for translatable strings.
82872 2009-07-05  Jim Meyering  <meyering@redhat.com>
82874         remove superfluous parentheses in STREQ definition
82875         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82876         * lib/getugroups.c (STREQ): Likewise.
82877         * lib/fnmatch.c (STREQ): Likewise.
82878         Spotted by Bruno Haible.
82880 2009-07-04  Jim Meyering  <meyering@redhat.com>
82882         argv-iter: new module
82883         * MODULES.html.sh: Add argv-iter.
82884         * lib/argv-iter.c, lib/argv-iter.h: New files.
82885         * modules/argv-iter: New file.
82886         * modules/argv-iter-tests: New file.
82887         * tests/test-argv-iter.c: Test it.
82889 2009-07-04  Bruno Haible  <bruno@clisp.org>
82891         Fix assertion.
82892         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82893         contains more exact copies of a given entry than file2, leave the extra
82894         copies unpaired rather than aborting.
82895         Reported by Eric Blake.
82897 2009-07-02  Bruno Haible  <bruno@clisp.org>
82899         Speedup git-merge-changelog for git cherry-pick.
82900         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82901         (entries_mapping_get): New function, extracted from compute_mapping.
82902         (entries_mapping_reverse_get): New function.
82903         (compute_mapping): Add a 'full' argument. Return the result in a
82904         'struct entries_mapping'.
82905         (main): Update. Access the mappings through entries_mapping_get.
82906         Reported by Eric Blake.
82908 2009-07-02  Bruno Haible  <bruno@clisp.org>
82910         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82911         best_i.
82913 2009-07-02  Bruno Haible  <bruno@clisp.org>
82915         Speed up approximate search for matching ChangeLog entries.
82916         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82917         argument. Call fstrcmp_bounded instead of fstrcmp.
82918         (compute_mapping, try_split_merged_entry, main): Update callers.
82920 2009-07-02  Bruno Haible  <bruno@clisp.org>
82922         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82924 2009-06-30  Bruno Haible  <bruno@clisp.org>
82926         Reduce the number of uc_is_cased calls.
82927         * lib/unicase.h (casing_suffix_context_t): Add
82928         'first_char_except_ignorable' field.
82929         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82930         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82931         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82932         Update initializer.
82933         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82934         case-ignorable characters.
82935         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
82936         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
82937         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
82938         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
82939         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
82941 2009-06-30  Bruno Haible  <bruno@clisp.org>
82943         Tests for module 'unicase/ignorable'.
82944         * modules/unicase/ignorable-tests: New file.
82945         * tests/unicase/test-ignorable.c: New file, generated by
82946         gen-uni-tables.
82948         Tests for module 'unicase/cased'.
82949         * modules/unicase/cased-tests: New file.
82950         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82951         * tests/unicase/test-predicate-part1.h: New file, derived from
82952         tests/unictype/test-predicate-part1.h.
82953         * tests/unicase/test-predicate-part2.h: New file, same as
82954         tests/unictype/test-predicate-part2.h.
82956         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82957         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82958         (output_casing_properties): New function.
82959         (main): Call it.
82960         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82961         * lib/unicase/cased.c: Include unictype/bitmap.h.
82962         (uc_is_cased): Define through a bitmap lookup.
82963         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82964         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82965         (uc_is_case_ignorable): Define through a bitmap lookup.
82966         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82967         lib/unictype/bitmap.h.
82968         (Depends-on): Add inline. Clean up.
82969         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82970         lib/unictype/bitmap.h.
82971         (Depends-on): Add inline. Clean up.
82972         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82973         recognition.
82974         * tests/unicase/test-u16-tolower.c (main): Likewise.
82975         * tests/unicase/test-u32-tolower.c (main): Likewise.
82977 2009-06-30  Bruno Haible  <bruno@clisp.org>
82979         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82980         * lib/unicase/u16-casemap.c: Likewise.
82981         * lib/unicase/u32-casemap.c: Likewise.
82983 2009-06-29  Bruno Haible  <bruno@clisp.org>
82985         Define u32_casefold as a wrapper around u32_ct_casefold.
82986         * lib/unicase/u32-casefold.c: Update.
82987         * modules/unicase/u32-casefold (Depends-on): Add
82988         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82989         unicase/empty-suffix-context. Clean up.
82991         Define u16_casefold as a wrapper around u16_ct_casefold.
82992         * lib/unicase/u16-casefold.c: Update.
82993         * modules/unicase/u16-casefold (Depends-on): Add
82994         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82995         unicase/empty-suffix-context. Clean up.
82997         Define u8_casefold as a wrapper around u8_ct_casefold.
82998         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82999         * lib/unicase/u8-casefold.c: Update.
83000         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83001         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83003         Define u32_totitle as a wrapper around u32_ct_totitle.
83004         * lib/unicase/u32-totitle.c: Update.
83005         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83006         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83008         Define u16_totitle as a wrapper around u16_ct_totitle.
83009         * lib/unicase/u16-totitle.c: Update.
83010         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83011         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83013         Define u8_totitle as a wrapper around u8_ct_totitle.
83014         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83015         functions.
83016         (FUNC): Delegate to U_CT_TOTITLE.
83017         * lib/unicase/u8-totitle.c: Update.
83018         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83019         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83021         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83022         invocation.
83023         * modules/unicase/u32-tolower (Depends-on): Add
83024         unicase/empty-prefix-context, unicase/empty-suffix-context.
83026         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83027         invocation.
83028         * modules/unicase/u16-tolower (Depends-on): Add
83029         unicase/empty-prefix-context, unicase/empty-suffix-context.
83031         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83032         * modules/unicase/u8-tolower (Depends-on): Add
83033         unicase/empty-prefix-context, unicase/empty-suffix-context.
83035         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83036         invocation.
83037         * modules/unicase/u32-toupper (Depends-on): Add
83038         unicase/empty-prefix-context, unicase/empty-suffix-context.
83040         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83041         invocation.
83042         * modules/unicase/u16-toupper (Depends-on): Add
83043         unicase/empty-prefix-context, unicase/empty-suffix-context.
83045         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83046         * modules/unicase/u8-toupper (Depends-on): Add
83047         unicase/empty-prefix-context, unicase/empty-suffix-context.
83049         New module 'unicase/u32-ct-casefold'.
83050         * lib/unicase/u32-ct-casefold.c: New file.
83051         * modules/unicase/u32-ct-casefold: New file.
83053         New module 'unicase/u16-ct-casefold'.
83054         * lib/unicase/u16-ct-casefold.c: New file.
83055         * modules/unicase/u16-ct-casefold: New file.
83057         New module 'unicase/u8-ct-casefold'.
83058         * lib/unicase/u8-ct-casefold.c: New file.
83059         * lib/unicase/u-ct-casefold.h: New file, derived from
83060         lib/unicase/u-casefold.h.
83061         * modules/unicase/u8-ct-casefold: New file.
83063         New module 'unicase/u32-ct-totitle'.
83064         * lib/unicase/u32-ct-totitle.c: New file.
83065         * modules/unicase/u32-ct-totitle: New file.
83067         New module 'unicase/u16-ct-totitle'.
83068         * lib/unicase/u16-ct-totitle.c: New file.
83069         * modules/unicase/u16-ct-totitle: New file.
83071         New module 'unicase/u8-ct-totitle'.
83072         * lib/unicase/u8-ct-totitle.c: New file.
83073         * lib/unicase/u-ct-totitle.h: New file, derived from
83074         lib/unicase/u-totitle.h.
83075         * modules/unicase/u8-ct-totitle: New file.
83077         New module 'unicase/u32-ct-tolower'.
83078         * lib/unicase/u32-ct-tolower.c: New file.
83079         * modules/unicase/u32-ct-tolower: New file.
83081         New module 'unicase/u16-ct-tolower'.
83082         * lib/unicase/u16-ct-tolower.c: New file.
83083         * modules/unicase/u16-ct-tolower: New file.
83085         New module 'unicase/u8-ct-tolower'.
83086         * lib/unicase/u8-ct-tolower.c: New file.
83087         * modules/unicase/u8-ct-tolower: New file.
83089         New module 'unicase/u32-ct-toupper'.
83090         * lib/unicase/u32-ct-toupper.c: New file.
83091         * modules/unicase/u32-ct-toupper: New file.
83093         New module 'unicase/u16-ct-toupper'.
83094         * lib/unicase/u16-ct-toupper.c: New file.
83095         * modules/unicase/u16-ct-toupper: New file.
83097         New module 'unicase/u8-ct-toupper'.
83098         * lib/unicase/u8-ct-toupper.c: New file.
83099         * modules/unicase/u8-ct-toupper: New file.
83101         Add context arguments to u*_casemap functions.
83102         * lib/unicase/unicasemap.h: Include unicase.h.
83103         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83104         suffix_context arguments.
83105         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83106         functions.
83107         (FUNC): Add prefix_context and suffix_context arguments. Use
83108         uc_is_cased and uc_is_case_ignorable.
83109         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83110         * lib/unicase/u16-casemap.c: Likewise.
83111         * lib/unicase/u32-casemap.c: Likewise.
83112         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83114         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83115         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83116         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83117         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83119         New module 'unicase/u32-suffix-context'.
83120         * lib/unicase/u32-suffix-context.c: New file.
83121         * modules/unicase/u32-suffix-context: New file.
83123         New module 'unicase/u16-suffix-context'.
83124         * lib/unicase/u16-suffix-context.c: New file.
83125         * modules/unicase/u16-suffix-context: New file.
83127         New module 'unicase/u8-suffix-context'.
83128         * lib/unicase/u8-suffix-context.c: New file.
83129         * lib/unicase/u-suffix-context.h: New file.
83130         * modules/unicase/u8-suffix-context: New file.
83132         New module 'unicase/empty-suffix-context'.
83133         * lib/unicase/empty-suffix-context.c: New file.
83134         * modules/unicase/empty-suffix-context: New file.
83136         New module 'unicase/u32-prefix-context'.
83137         * lib/unicase/u32-prefix-context.c: New file.
83138         * modules/unicase/u32-prefix-context: New file.
83140         New module 'unicase/u16-prefix-context'.
83141         * lib/unicase/u16-prefix-context.c: New file.
83142         * modules/unicase/u16-prefix-context: New file.
83144         New module 'unicase/u8-prefix-context'.
83145         * lib/unicase/u8-prefix-context.c: New file.
83146         * lib/unicase/u-prefix-context.h: New file.
83147         * lib/unicase/context.h: New file.
83148         * modules/unicase/u8-prefix-context: New file.
83150         New module 'unicase/empty-prefix-context'.
83151         * lib/unicase/empty-prefix-context.c: New file.
83152         * modules/unicase/empty-prefix-context: New file.
83154         New module 'unicase/ignorable'.
83155         * lib/unicase/ignorable.c: New file.
83156         * modules/unicase/ignorable: New file.
83158         New module 'unicase/cased'.
83159         * lib/unicase/caseprop.h: New file.
83160         * lib/unicase/cased.c: New file.
83161         * modules/unicase/cased: New file.
83163         New functions for case mapping of substrings.
83164         * lib/unicase.h (casing_prefix_context_t): New type.
83165         (unicase_empty_prefix_context): New variable.
83166         (u8_casing_prefix_context, u16_casing_prefix_context,
83167         u32_casing_prefix_context, u8_casing_prefixes_context,
83168         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83169         declarations.
83170         (casing_suffix_context_t): New type.
83171         (unicase_empty_suffix_context): New variable.
83172         (u8_casing_suffix_context, u16_casing_suffix_context,
83173         u32_casing_suffix_context, u8_casing_suffixes_context,
83174         u16_casing_suffixes_context, u32_casing_suffixes_context,
83175         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83176         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83177         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83178         declarations.
83180 2009-06-28  Jim Meyering  <meyering@redhat.com>
83182         boostrap: indent only with spaces
83183         * build-aux/bootstrap: Indent only with spaces, never TABs.
83185         bootstrap: split long lines
83186         * build-aux/bootstrap: Keep line length < 80.
83188         bootstrap: sync from coreutils
83189         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83190         just as autoreconf does.  Verify a list of prerequisite
83191         package-name,version-number pairs if defined in bootstrap.conf.
83192         Refer to README-prereq, if prerequisites are not satisfied.
83194 2009-06-27  Eric Blake  <ebb9@byu.net>
83196         tests: add test for bogus NULL definition
83197         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83198         * tests/test-stdlib.c: Likewise.
83199         * tests/test-string.c: Likewise.
83200         * tests/test-locale.c: Likewise.
83201         * tests/test-unistd.c: Likewise.
83202         * modules/stdio-tests (Depends-on): Add verify.
83203         * modules/stdlib-tests (Depends-on): Likewise.
83204         * modules/string-tests (Depends-on): Likewise.
83205         * modules/locale-tests (Depends-on): Likewise.
83206         * modules/unistd-tests (Depends-on): Likewise.
83208 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83210         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83211         self-explaining comment.
83212         * m4/selinux-selinux-h: Update serial.
83213         (gl_LIBSELINUX): New macro, adding a warning for missing development
83214         packages to code extracted from...
83215         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83216         Add warning for missing development packages here, too.
83218 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83220         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83222 2009-06-25  Eric Blake  <ebb9@byu.net>
83224         version-etc: fix regression
83225         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83226         gcc.
83227         (version_etc): Use it, to catch bugs with trailing NULL.
83228         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83229         (version_etc_va): Fix logic bug.
83230         * modules/version-etc-tests: Add test.
83231         * tests/test-version-etc.c: New file.
83232         * tests/test-version-etc.sh: Likewise.
83234 2009-06-25  Sam Steingold  <sds@gnu.org>
83236         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83237         mbtowc declaration.
83239 2009-06-25  Eric Blake  <ebb9@byu.net>
83241         fpurge: migrate into <stdio.h>
83242         * lib/fpurge.h: Delete...
83243         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83244         * lib/fpurge.c (fpurge): Change declaring header.
83245         * modules/fpurge (Files): Drop deleted file.
83246         (Depends-on): Add stdio.
83247         (configure.ac): Set witness.
83248         * modules/stdio (Makefile.am): Support fpurge macros.
83249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83250         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83251         * lib/fflush.c: Update client.
83252         * tests/test-fpurge.c: Likewise.
83253         * NEWS: Mention the change.
83255 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83257         * lib/argp-version-etc.c (program_authors): Add const
83258         qualifier.
83259         * lib/version-etc.c: Fix typos in the comments.
83260         * modules/argp-version-etc: Depends on version-etc.
83262 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83264         argp-version-etc: new module.
83266         * lib/argp-version-etc.c: New file.
83267         * lib/argp-version-etc.h: New file.
83268         * modules/argp-version-etc: New file.
83269         * modules/argp-version-etc-tests: New file.
83270         * tests/test-argp-version-etc.c: New test.
83271         * tests/test-argp-version-etc-1.sh: New test.
83273 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83275         Provide additional interfaces and documentation for version-etc
83276         module.
83278         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83279         interfaces.
83280         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83281         prototypes.
83283 2009-06-24  Bruno Haible  <bruno@clisp.org>
83285         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83286         HAVE_LIB${NAME} macro.
83287         Reported by Sam Steingold <sds@gnu.org>.
83289 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83291         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83292         needed.
83294 2009-06-21  Bruno Haible  <bruno@clisp.org>
83296         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83297         work.
83298         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83299         together with LIB${NAME}, LTLIB${NAME}.
83300         Reported by Sam Steingold <sds@gnu.org>.
83302 2009-06-20  Jim Meyering  <meyering@redhat.com>
83304         tests: make sc_require_test_exit_idiom more generic
83305         * top/maint.mk (Exit_witness_file): New overridable variable.
83306         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83307         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83309 2009-06-19  Jim Meyering  <meyering@redhat.com>
83311         hash: reverse order of src/dst parameters in an internal interface
83312         * lib/hash.c (transfer_entries): Reverse order of parameters to
83313         put DST before SRC.  Adjust callers.
83315         tests: test-hash: avoid wholesale duplication
83316         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83317         Instead, use a loop and add a single conditional.
83319         tests: test-hash: allow seed selection via a command line argument
83320         * tests/test-hash.c (get_seed): New function.
83321         (main): Use it.
83323 2009-06-19  Eric Blake  <ebb9@byu.net>
83325         hash: avoid memory leak on allocation failure
83326         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83327         failure.  Factor repeated algorithm...
83328         (transfer_entries): ...into new helper routine.
83329         (hash_delete): React to hash_rehash return value.
83331         hash: reduce memory pressure in hash_rehash no-op case
83332         * lib/hash.c (next_prime): Avoid overflow.
83333         (hash_initialize): Factor bucket size computation...
83334         (compute_bucket_size): ...into new helper function.
83335         (hash_rehash): Use new function and open coding to reduce memory
83336         pressure, and avoid a memory leak in USE_OBSTACK code.
83337         Reported by Jim Meyering.
83339 2009-06-18  Eric Blake  <ebb9@byu.net>
83341         hash: make rotation more obvious
83342         * modules/hash (Depends-on): Add bitrotate and stdint.
83343         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83344         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83345         (SIZE_MAX): Rely on headers for definition.
83346         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83347         (raw_hasher): Use rotr_sz.
83348         Suggested by Jim Meyering.
83350         hash: fix memory leak in last patch
83351         * lib/hash.c (hash_rehash): Avoid memory leak.
83353         hash: avoid no-op rehashing
83354         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83356         hash: provide default callback functions
83357         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83358         (hash_initialize): Use them as defaults.
83359         * tests/test-hash.c (main): Test this.
83361         hash: minor optimization
83362         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83363         when possible.
83364         (hash_initialize): Document this promise.
83365         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83366         * tests/test-hash.c (hash_compare_strings): Test this.
83368 2009-06-18  Bruno Haible  <bruno@clisp.org>
83370         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83371         going to be replaced anyway.
83373 2009-06-18  Bruno Haible  <bruno@clisp.org>
83375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83376         in one place.
83377         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83378         be replaced anyway.
83380 2009-06-18  Eric Blake  <ebb9@byu.net>
83382         hash: check for resize before insertion
83383         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83384         threshold before insertion, so that a pathological hash_rehash
83385         that fills every bucket can still trigger another rehash.
83387 2009-06-18  Jim Meyering  <meyering@redhat.com>
83389         hash-tests: add a loop around the small tests
83390         * tests/test-hash.c (main): Repeat small tests with selected
83391         small initial table sizes.
83393 2009-06-17  Eric Blake  <ebb9@byu.net>
83395         hash: minor cleanups
83396         * lib/hash.h (hash_entry): Make opaque, by moving...
83397         * lib/hash.c (hash_entry): ...here.
83398         (hash_insert): Clarify restrictions on what can be inserted.
83399         (hash_get_next): Clarify when it is safe to remove an element
83400         during traversal.
83401         (check_tuning): Skip verification when tuning is known safe.
83402         (hash_initialize): Clarify restrictions on tuning.
83404 2009-06-17  Jim Meyering  <jim@meyering.net>
83405         and Eric Blake  <ebb9@byu.net>
83407         hash-tests: new module
83408         * modules/hash-tests: New file.
83409         * tests/test-hash.c: New file.
83411 2009-06-17  Eric Blake  <ebb9@byu.net>
83413         strstr-simple: document new module
83414         * MODULES.html.sh: Document new module.
83416         strstr, strcasestr: replace on platforms with broken memchr
83417         * modules/strstr: Split into...
83418         * modules/strstr-simple: ...new module that does not care about
83419         performance, but does care about glibc bug.
83420         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83421         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83422         if platform memchr is broken, per Debian bug 521737.
83423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83424         memchr.
83425         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83426         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83427         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83428         * modules/mountlist (Depends-on): Add strstr-simple.
83429         * modules/gen-uni-tables (Depends-on): Likewise.
83430         * modules/argz (Depends-on): Add strstr.
83432 2009-06-17  Bruno Haible  <bruno@clisp.org>
83434         * modules/posix_spawn-internal (Depends-on): Add errno.
83436 2009-06-17  Bruno Haible  <bruno@clisp.org>
83438         Define missing ESTALE on Interix 3.5.
83439         * lib/errno.in.h (ESTALE): Assign a value if missing.
83440         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83442         missing.
83443         * doc/posix-headers/errno.texi: Mention the Interix bug.
83444         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83446 2009-06-15  Eric Blake  <ebb9@byu.net>
83448         memchr, memchr2: add valgrind exception
83449         * lib/memchr.valgrind: New file.
83450         * lib/memchr2.valgrind: New file.
83451         * modules/memchr (Files): Distribute valgrind file.
83452         * modules/memchr2 (Files): Likewise.
83454         docs: memchr is no longer obsolete
83455         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83456         * lib/string.in.h (memchr): Simplify logic.
83458 2009-06-14  Jim Meyering  <meyering@redhat.com>
83460         link-follow: fix the "checking..." message to not mention trailing slash
83461         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83462         never considered trailing slashes.
83464 2009-06-14  Bruno Haible  <bruno@clisp.org>
83466         * m4/memchr.m4: Mention also the bug on IA-64.
83467         * doc/posix-functions/memchr.texi: Likewise.
83469 2009-06-12  Eric Blake  <ebb9@byu.net>
83471         memchr: detect broken x86_64 and alpha implementations
83472         * modules/memchr-tests (Depends-on): Move mmap detection...
83473         * modules/memchr (Depends-on): ...here.
83474         (configure.ac): Set indicator.
83475         * lib/string.in.h (memchr): Declare replacement.
83476         * modules/string (Makefile.am): Trigger replacement.
83477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83478         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83479         bugs.
83480         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83481         * modules/getpagesize (License): Relax license.
83483 2009-06-11  Bruno Haible  <bruno@clisp.org>
83485         * lib/idpriv.h: Add more references.
83487 2009-06-08  Bruno Haible  <bruno@clisp.org>
83489         Tests for module 'idpriv-droptemp'.
83490         * modules/idpriv-droptemp-tests: New file.
83491         * tests/test-idpriv-droptemp.sh: New file.
83492         * tests/test-idpriv-droptemp.su.sh: New file.
83493         * tests/test-idpriv-droptemp.c: New file.
83495         New module 'idpriv-droptemp'.
83496         * lib/idpriv-droptemp.c: New file.
83497         * modules/idpriv-droptemp: New file.
83499 2009-06-08  Bruno Haible  <bruno@clisp.org>
83501         Tests for module 'idpriv-drop'.
83502         * modules/idpriv-drop-tests: New file.
83503         * tests/test-idpriv-drop.sh: New file.
83504         * tests/test-idpriv-drop.su.sh: New file.
83505         * tests/test-idpriv-drop.c: New file.
83507         New module 'idpriv-drop'.
83508         * lib/idpriv.h: New file.
83509         * lib-idpriv-drop.c: New file.
83510         * m4/idpriv.m4: New file.
83511         * modules/idpriv-drop: New file.
83513 2009-06-08  Bruno Haible  <bruno@clisp.org>
83515         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
83516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83520         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83521         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83523 2009-06-08  Eric Blake  <ebb9@byu.net>
83525         test-strstr: use memory fence, when possible
83526         * tests/test-strstr.c (main): Use memory fence, in order to be
83527         more likely to trigger Debian bug 521737.
83528         * modules/strstr-tests (Files): Pull in additional files.
83530         memchr: no longer obsolete, for wider field testing
83531         * modules/memchr (Status, Notice): Delete, this module is no
83532         longer obsolete.
83533         * modules/vasnprintf (Depends-on): Add memchr.
83535 2009-06-07  Jim Meyering  <meyering@redhat.com>
83537         hash: declare some functions with the warn_unused_result attribute
83538         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
83540 2009-06-07  Bruno Haible  <bruno@clisp.org>
83542         * tests/test-alignof.c: Don't test int64_t if it does not exist.
83543         Reported by Eric Blake.
83545 2009-06-06  Eric Blake  <ebb9@byu.net>
83547         test-alignof: fix typo with long double
83548         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
83549         compiler error.
83551 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
83553         Escape non-texinfo { and }s.
83554         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
83555         markup error.
83557 2009-06-04  Jim Meyering  <meyering@redhat.com>
83559         gitlog-to-changelog: don't infloop on an empty commit log
83560         * build-aux/gitlog-to-changelog: Warn about an empty log message.
83561         Reported by Boris Petersen <transacid@centerim.org>.
83563 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
83565         version-etc: extend for packagers
83566         Add three new configure options, intended for packagers:
83567           --with-packager="packager name"
83568           --with-packager-version="packager-specific version"
83569           --with-packager-bug-reports="packager bug reporting"
83570         An example with coreutils:
83571           $ ./configure \
83572             --with-packager=Gentoo \
83573             --with-packager-bug-report=http://bugs.gentoo.org/ \
83574             --with-packager-version="patchset 1.6"
83575           $ ./src/ls --version | head -n2
83576           ls (GNU coreutils) 7.1-dirty
83577           Packaged by Gentoo (patchset 1.6)
83578         Note that the bug reporting info via --help doesn't show up because
83579         coreutils uses its own custom emit_bug_reporting_address() implementation
83580         in src/system.h.  If it didn't, it'd look like:
83581           $ ./src/ls --help | tail -n4
83582           Report bugs to <bug-coreutils@gnu.org>.
83583           Report Gentoo bugs to <http://bugs.gentoo.org/>.
83584           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
83585           General help using GNU software: <http://www.gnu.org/gethelp/>.
83586         * lib/version-etc.c: Print new information, if provided.
83587         * m4/version-etc.m4: New file.
83588         * modules/version-etc (Files): Add m4/version-etc.m4.
83589         (configure.ac): Add gl_VERSION_ETC.
83591 2009-05-31  Bruno Haible  <bruno@clisp.org>
83593         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83594         and 'int64_t'.
83595         * modules/alignof-tests (Dependencies): Add stdint.
83596         Reported by Eric Blake.
83598 2009-05-31  Bruno Haible  <bruno@clisp.org>
83600         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83601         restriction due to compiler bugs.
83602         Reported by Eric Blake.
83604 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83605             Bruno Haible  <bruno@clisp.org>
83607         Fix test-alignof failure.
83608         * lib/alignof.h (alignof_slot): New macro.
83609         (alignof_type): New macro, with the same semantics as the previous
83610         'alignof'.
83611         (alignof): Alias to alignof_slot.
83612         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83613         check that the results are usable as constant expressions.
83615 2009-05-31  Bruno Haible  <bruno@clisp.org>
83617         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83618         * tests/test-memchr.c (main): Check that memchr does not read past the
83619         first occurrence of the byte.
83620         * tests/test-strstr.c (main): Update comment.
83621         Suggested by Eric Blake.
83623 2009-05-30  Bruno Haible  <bruno@clisp.org>
83625         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83626         detail how to use dumpbin.
83627         Reported by David Byron <dbyron@dbyron.com>.
83629 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83631         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83633 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83635         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83637 2009-05-28  Bruno Haible  <bruno@clisp.org>
83639         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83640         build-aux/ files.
83642 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83644         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83646 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83648         * gnulib-tool (sed_transform_main_lib_file)
83649         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83650         regexps.
83652 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83654         * tests/test-strstr.c: Add another self-test.
83655         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83656         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83658 2009-05-23  Bruno Haible  <bruno@clisp.org>
83660         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83661         change.
83663 2009-05-21  Bruno Haible  <bruno@clisp.org>
83665         Simplify use of mode_t varargs.
83666         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83667         uses 'mode_t' or 'int'.
83668         * lib/openat.c (openat): Likewise.
83669         * lib/open-safer.c (open_safer): Likewise.
83670         * m4/mode_t.m4: New file.
83671         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83672         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83673         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83674         * modules/open (Files): Add m4/mode_t.m4.
83675         * modules/openat (Files): Likewise.
83676         * modules/fcntl-safer (Files): Likewise.
83677         Suggested by Eric Blake.
83679 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83681         * doc/glibc-functions/fallocate.texi: New file.
83682         * doc/gnulib.texi: Include it.
83684 2009-05-21  Eric Blake  <ebb9@byu.net>
83685             Bruno Haible  <bruno@clisp.org>
83687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83688         invocations.
83689         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83691 2009-05-21  Eric Blake  <ebb9@byu.net>
83692             Bruno Haible  <bruno@clisp.org>
83694         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83695         include_next. Fix of 2008-11-20 commit.
83696         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83697         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83698         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83699         NEXT_MATH_H.
83700         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83701         instead of NEXT_MATH_H.
83703 2009-05-21  Bruno Haible  <bruno@clisp.org>
83705         Avoid redefinition warnings for SIZE_MAX.
83706         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83707         Reported by Simon Josefsson.
83709 2009-05-21  Bruno Haible  <bruno@clisp.org>
83711         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83712         AC_CACHE_VAL.
83714 2009-05-20  Bruno Haible  <bruno@clisp.org>
83716         Make zeroptr.h work on mingw.
83717         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83718         mprotect.
83719         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83720         * modules/memchr2-tests (configure.ac): Likewise.
83721         * modules/memcmp-tests (configure.ac): Likewise.
83722         * modules/memmem-tests (configure.ac): Likewise.
83723         * modules/memrchr-tests (configure.ac): Likewise.
83724         Reported by Simon Josefsson.
83726 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83728         * tests/test-glob.c: Include string.h for strcmp prototype.
83730 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83732         * modules/getdelim (Depends-on): Add explicit stdint, although it
83733         was implicitly already pulled in via realloc-posix.
83734         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83736 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83738         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83739         G. Christensen" <tgc@jupiterrise.com>.
83740         * m4/sys_socket_h.m4: Check for sa_family_t.
83741         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83742         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83743         * tests/test-sys_socket.c: Check that sa_family_t works.
83745 2009-05-18  Eric Blake  <ebb9@byu.net>
83747         maint.mk: allow gnulib_dir in VPATH build
83748         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83750 2009-05-15  Jim Meyering  <meyering@redhat.com>
83752         maint.mk: Give gnulib_dir a default definition.
83753         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83754         Thus, most packages no longer need to specify this variable in cfg.mk
83756 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83758         rename.m4: fix typos that would make non-mingw cross-configure fail
83759         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83761 2009-05-13  Eric Blake  <ebb9@byu.net>
83763         mmap-anon: avoid out-of-order autoconf expansion
83764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83765         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83766         * modules/memchr-tests (Depends-on): Add extensions.
83767         * modules/memchr2-tests (Depends-on): Add extensions.
83768         * modules/memcmp-tests (Depends-on): Add extensions.
83769         * modules/memmem-tests (Depends-on): Add extensions.
83770         * modules/memrchr-tests (Depends-on): Add extensions.
83772 2009-05-13  Bruno Haible  <bruno@clisp.org>
83774         Make some tests ISO C 99 compliant.
83775         * tests/zerosize-ptr.h: New file.
83776         * tests/test-memchr.c: Include zerosize-ptr.h.
83777         (main): Use a zero-size object pointer instead of NULL.
83778         * tests/test-memchr2.c: Include zerosize-ptr.h.
83779         (main): Use a zero-size object pointer instead of NULL.
83780         * tests/test-memcmp.c: Include zerosize-ptr.h.
83781         (main): Use a zero-size object pointer instead of NULL.
83782         * tests/test-memmem.c: Include zerosize-ptr.h.
83783         (main): Use a zero-size object pointer instead of NULL.
83784         * tests/test-memrchr.c: Include zerosize-ptr.h.
83785         (main): Use a zero-size object pointer instead of NULL.
83786         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83787         m4/mmap-anon.m4.
83788         (Depends-on): Add getpagesize.
83789         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83790         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83791         m4/mmap-anon.m4.
83792         (Depends-on): Add getpagesize.
83793         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83794         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83795         m4/mmap-anon.m4.
83796         (Depends-on): Add getpagesize.
83797         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83798         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83799         m4/mmap-anon.m4.
83800         (Depends-on): Add getpagesize.
83801         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83802         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83803         m4/mmap-anon.m4.
83804         (Depends-on): Add getpagesize.
83805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83807 2009-05-12  Bruno Haible  <bruno@clisp.org>
83809         Tests for module 'alignof'.
83810         * modules/alignof-tests: New file.
83811         * tests/test-alignof.c: New file.
83813 2009-05-12  Bruno Haible  <bruno@clisp.org>
83815         Fix alignof macro.
83816         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83817         vendor compilers that are always correct.
83819 2009-05-12  Bruno Haible  <bruno@clisp.org>
83821         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83823         not whether its fully works.
83825 2009-05-12  Bruno Haible  <bruno@clisp.org>
83827         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83829 2009-05-12  Jim Meyering  <meyering@redhat.com>
83831         * top/maint.mk: Adjust backslash alignment.
83833 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83835         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83837 2009-05-11  Eric Blake  <ebb9@byu.net>
83839         argp: avoid undefined behavior
83840         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83841         macros.
83843 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83845         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83846         user.name to prevent git commit from complaining.
83848 2009-05-10  Bruno Haible  <bruno@clisp.org>
83850         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83851         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83852         it rewrites every file name only once.
83853         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83855 2009-05-08  Bruno Haible  <bruno@clisp.org>
83857         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83858         instead of 'max'.
83860 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83862         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83863         sockaddr_storage test.
83865 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83867         * modules/sys_socket (Makefile.am): Substitute
83868         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83869         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83870         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83871         * tests/test-sys_socket.c: Check sockaddr_storage.
83873 2009-05-08  Bruno Haible  <bruno@clisp.org>
83875         New module 'alignof'.
83876         * lib/alignof.h: New file.
83877         * modules/alignof: New file.
83879 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83880             Bruno Haible  <bruno@clisp.org>
83882         Fix test-file-has-acl on FreeBSD.
83883         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83884         mask is implicitly added.
83885         * tests/test-file-has-acl.c: Include <signal.h>.
83886         (main): Terminate the test after 5 seconds.
83887         * modules/acl-tests (configure.ac): Check for alarm function.
83889 2009-05-04  Bruno Haible  <bruno@clisp.org>
83891         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83893         * modules/errno (configure.ac): Drop AC_REQUIRE.
83894         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83895         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83897 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83899         * modules/glob-tests: New module.
83900         * tests/test-glob.c: Add.
83902 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83904         * modules/fnmatch-tests: New module.
83905         * tests/test-fnmatch.c: Add.
83907 2009-05-04  Eric Blake  <ebb9@byu.net>
83909         maint: make the new no-submodule-changes rule VPATH-safe
83910         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83912 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83913             Bruno Haible  <bruno@clisp.org>
83915         acl: Fix infinite loop on FreeBSD.
83916         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83917         of return value from acl_get_entry.
83918         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83919         Likewise.
83921 2009-05-03  Bruno Haible  <bruno@clisp.org>
83923         * lib/acl-internal.h (acl_entries): Clarify return value.
83924         * lib/acl_entries.c (acl_entries): Likewise.
83926 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83928         Bug fix in acl module.
83929         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83931 2009-05-03  Bruno Haible  <bruno@clisp.org>
83933         Create gperf-generated file in the source dir, not in the build dir.
83934         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83935         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
83936         * modules/unicase/locale-language (unicase/locale-languages.h):
83937         Likewise.
83938         * modules/unicase/special-casing (unicase/special-casing-table.h):
83939         Likewise.
83940         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
83941         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
83942         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
83943         Reported by Ralf Wildenhues.
83945 2009-05-03  Bruno Haible  <bruno@clisp.org>
83947         * modules/fnmatch (Description, configure.ac): Taken from
83948         fnmatch-posix.
83949         * modules/fnmatch-posix: Turn into a symbolic reference to the
83950         'fnmatch' module, and deprecate.
83951         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83953 2009-05-03  Bruno Haible  <bruno@clisp.org>
83955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83956         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83957         Reported by Ralf Wildenhues.
83959 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83961         * m4/fnmatch.m4: Fix fnmatch re-define.
83963 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83965         priv-set: new module and tests; adapt write-any-file
83966         * lib/priv-set.c: New file.
83967         * lib/priv-set.h: New file.
83968         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83969         * lib/write-any-file.c: Simplify by using priv-set module.
83970         * m4/priv-set.m4: New file.
83971         * modules/priv-set: New file.
83972         * modules/unlinkdir: Add dependency on priv-set module.
83973         * modules/write-any-file: Likewise.
83975         Tests for module 'priv-set'.
83976         * modules/priv-set-tests: New file.
83977         * tests/test-priv-set.c: New file.
83979 2009-05-03  Jim Meyering  <meyering@redhat.com>
83980             Bruno Haible  <bruno@clisp.org>
83982         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83983         use the converted UTF-8 variant of the name instead.
83985 2009-05-03  Jim Meyering  <meyering@redhat.com>
83987         tests: tighten some getdate tests
83988         * tests/test-getdate.c (main): Tighten tests: require equality,
83989         not just greater than.  Set TZ envvar to UTC0.
83991 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83993         getdate: correctly interpret "next monday" when run on a Monday
83994         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83995         that e.g., "next tues" (when run on a tuesday) results in a date
83996         that is one week in the future, and not today's date.
83997         I.e., add a week when the wday is the same as the current one.
83998         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83999         and earlier by Martin Bernreuther and Jan Minář.
84000         * tests/test-getdate.c (main): Check that "next DAY" is always in
84001         the future and that "last DAY" is always in the past.
84003 2009-05-02  Jim Meyering  <meyering@redhat.com>
84005         build: ensure that a release build fails when a submodule is unclean
84006         * top/maint.mk (no-submodule-changes): New rule.
84007         (alpha beta major): Depend on it.
84009 2009-05-02  Bruno Haible  <bruno@clisp.org>
84011         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84012         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84013         shell variable gl_fnmatch_required to detect which variant is
84014         requested.
84015         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84016         gl_FUNC_FNMATCH_POSIX.
84017         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84018         exclude fnmatch-posix.
84020 2009-05-02  Bruno Haible  <bruno@clisp.org>
84022         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84023         * modules/mbsrtowcs (License): Change to LGPLv2+.
84024         * modules/strnlen1 (License): Likewise.
84025         Reported by Simon Josefsson.
84027 2009-05-02  Bruno Haible  <bruno@clisp.org>
84029         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84030         "cross".
84031         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84032         gnulib-tool was called with option --source-base=lib.
84034 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84036         Use automake *-local hooks without commands, for extensibility.
84037         * modules/localcharset (Makefile.am): Rename install-exec-local
84038         rule to install-exec-localcharset, and make it a prerequisite of
84039         install-exec-local.  Likewise, rename the uninstall-local rule to
84040         uninstall-localcharset, and make it a prerequisite of the former.
84042 2009-05-01  Bruno Haible  <bruno@clisp.org>
84044         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84045         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84046         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84047         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84048         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84049         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84050         m4/locale-zh.m4, m4/codeset.m4.
84052         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84053         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84054         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84055         m4/locale-zh.m4.
84057         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84058         REPLACE_WCRTOMB if mbstate_t must be replaced.
84059         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84060         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84062 2009-05-01  Bruno Haible  <bruno@clisp.org>
84064         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84065         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84066         dngettext, dcngettext, textdomain, bindtextdomain,
84067         bind_textdomain_codeset): Undefine before redefining.
84069 2009-04-30  Bruno Haible  <bruno@clisp.org>
84071         Fix bug introduced on 2009-04-25.
84072         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84073         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84074         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84075         is defined.
84076         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84077         is defined.
84078         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84079         is defined.
84080         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84082 2009-04-28  Bruno Haible  <bruno@clisp.org>
84084         Comment tweaks.
84085         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84086         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84087         * lib/unicase.h (u*_casexfrm): Likewise.
84088         Reported by Paolo Bonzini.
84090 2009-04-28  Bruno Haible  <bruno@clisp.org>
84092         Fix a compilation error.
84093         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84094         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84095         Reported by Jim Meyering.
84097 2009-04-27  Bruno Haible  <bruno@clisp.org>
84099         New module 'libunistring'.
84100         * modules/libunistring: New file.
84101         * m4/libunistring.m4: New file.
84102         * MODULES.html.sh (Unicode string functions): Add it.
84104 2009-04-27  Eric Blake  <ebb9@byu.net>
84106         maint.mk: allow package-specific header to provide <config.h>
84107         * top/maint.mk (sc_require_config_h): New variable.
84108         (sc_require_config_h, sc_require_config_h_first): Use it.
84110 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84112         * top/maint.mk (sc_avoid_if_before_free): Except
84113         useless-if-before-free script.
84115 2009-04-27  Eric Blake  <ebb9@byu.net>
84117         maintainer-makefile: depend on all required helper scripts
84118         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84119         useless-if-before-free.
84120         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84121         version, rather than assuming gnulib checkout is available.
84122         Reported by Simen Josefsson.
84124 2009-04-26  Bruno Haible  <bruno@clisp.org>
84126         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84127         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84128         "../" or "..".
84130 2009-04-26  Bruno Haible  <bruno@clisp.org>
84132         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84133         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84134         AC_LIB_HAVE_LINKFLAGS.
84136 2009-04-26  Bruno Haible  <bruno@clisp.org>
84138         Simplify calling convention of u*_conv_from_encoding.
84139         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84140         u32_conv_from_encoding): Expect a resultbuf argument and return the
84141         result directly as a pointer.
84142         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84143         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84144         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84145         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84146         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84147         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84148         Update.
84149         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84150         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84151         * lib/vasnprintf.c (VASNPRINTF): Update.
84152         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84153         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84154         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84155         * NEWS: Mention the change.
84157 2009-04-26  Bruno Haible  <bruno@clisp.org>
84159         Simplify calling convention of u*_conv_to_encoding.
84160         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84161         u32_conv_to_encoding): Expect a resultbuf argument and return the
84162         result directly as a pointer.
84163         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84164         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84165         freeing scaled_offsets if mem_iconveha failed.
84166         * lib/unicase/u-casexfrm.h (FUNC): Update.
84167         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84168         * lib/vasnprintf.c (VASNPRINTF): Update.
84169         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84170         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84171         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84172         * NEWS: Mention the change.
84174 2009-04-26  Bruno Haible  <bruno@clisp.org>
84176         Avoid test failures on AIX and OSF/1.
84177         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84178         malloc(0).
84179         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84180         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84181         Likewise.
84182         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84183         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84184         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84185         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84186         * doc/posix-functions/malloc.texi: Document the portability problem
84187         related to malloc(0).
84189 2009-04-26  Bruno Haible  <bruno@clisp.org>
84191         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84192         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84193         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84195 2009-04-25  Bruno Haible  <bruno@clisp.org>
84197         Avoid link error when creating a namespace clean library.
84198         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84199         as macro with arguments if already defined as an alias.
84200         * lib/signbitf.c (gl_signbitf): Don't undefine.
84201         * lib/signbitd.c (gl_signbitd): Don't undefine.
84202         * lib/signbitl.c (gl_signbitl): Don't undefine.
84204 2009-04-25  Jim Meyering  <meyering@redhat.com>
84206         vc-list-files: fix another quoting bug
84207         * build-aux/vc-list-files: Avoid sed backslash expansion
84208         of pathological directory names.
84210 2009-04-25  Eric Blake  <ebb9@byu.net>
84212         vc-list-files: fix shell quoting error
84213         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84214         timestamp.
84216 2009-04-25  Jim Meyering  <meyering@redhat.com>
84218         vc-list-files: restore lost functionality with subdir argument
84219         * build-aux/vc-list-files: When given a non-"." sub-directory
84220         argument, substitute the $dir/ prefix back onto each resulting name.
84221         Otherwise, coreutils' root_tests check would fail.
84223 2009-04-24  Eric Blake  <ebb9@byu.net>
84225         vc-list-files: ignore git symlinks
84226         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84227         than ls-files, to ignore git symlinks.
84229         maint.mk: import improvements from m4
84230         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84231         (move_if_change): Delete unused macro.
84232         (news-date-check, vc-diff-check): Support VPATH builds.
84233         (announcement): Likewise.  Split --bootstrap-tools list...
84234         (boostrap-tools): ...into separate list, which can be overridden
84235         in cfg.mk.
84236         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84237         requiring dependency on useless-if-before-free module.
84238         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84239         Support VPATH builds.
84241 2009-04-24  Jim Meyering  <meyering@redhat.com>
84243         maint.mk: remove coreutils-specific rules and variables
84244         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84245         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84246         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84248         maint.mk: remove obsolete rule
84249         * top/maint.mk (rel-check): Remove rule.
84250         (WGET, WGETFLAGS): Remove now-unused variables.
84252 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84254         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84255         consistency.
84257         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84258         '$(PATH_SEPARATOR)' instead of ':'.
84260 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84262         * lib/getopt1.c (main): Use 'const' for static array.
84264 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84266         * top/maint.mk: Sync with coreutils.
84267         * NEWS: Explain incompatibilities.
84269 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84270             Bruno Haible  <bruno@clisp.org>
84272         Fix cross-compilation results.
84273         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84274         statement, as third argument of AC_TRY_RUN.
84275         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84276         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84277         Likewise.
84278         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84279         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84280         Likewise.
84281         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84282         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84283         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84285 2009-04-20  Bruno Haible  <bruno@clisp.org>
84287         Avoid test failure on mingw.
84288         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84290 2009-04-20  Bruno Haible  <bruno@clisp.org>
84292         Avoid compilation error on mingw.
84293         * modules/localename-tests (Depends-on): Add locale.
84295 2009-04-19  Bruno Haible  <bruno@clisp.org>
84297         Support for building a shared library on Windows platforms.
84298         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84299         (main): Test the presence of UNINORM_NFC here.
84300         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84301         (main): Test the presence of UNINORM_NFD here.
84302         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84303         (main): Test the presence of UNINORM_NFKC here.
84304         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84305         (main): Test the presence of UNINORM_NFKD here.
84307 2009-04-19  Bruno Haible  <bruno@clisp.org>
84309         Avoid a compiler warning.
84310         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84311         Change type of variable 'sequence'.
84313 2009-04-19  Bruno Haible  <bruno@clisp.org>
84315         * modules/configmake (Makefile.am): When the contents of configmake.h
84316         does not change, arrange to preserve its modification time.
84318 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84320         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84321         gettext domain.
84323 2009-04-16  Jim Meyering  <meyering@redhat.com>
84325         useless-if-before-free: improve conversion code
84326         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84327         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84329 2009-04-14  Bruno Haible  <bruno@clisp.org>
84331         * modules/fcntl (Depends-on): Add extensions.
84332         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84334 2009-04-12  Ben Pfaff  <blp@gnu.org>
84336         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84337         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84339 2009-03-20  Ben Pfaff  <blp@gnu.org>
84341         Make rename replace existing destinations on Windows.
84342         * m4/rename.m4: Add test for Mingw.
84343         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84344         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84345         * doc/posix-functions/rename.texi: Document.
84347 2009-04-10  Bruno Haible  <bruno@clisp.org>
84349         New include file "iconveh.h".
84350         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84351         * lib/striconveh.h: Include it.
84352         (enum iconv_ilseq_handler): Remove definition.
84353         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84354         striconveh.h.
84355         * lib/striconveha.c: Include striconveh.h.
84356         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84357         * modules/striconveh (Files): Add lib/iconveh.h.
84358         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84359         lib/striconveh.h.
84361 2009-04-10  Bruno Haible  <bruno@clisp.org>
84363         * lib/uniconv.h: Update comment.
84365 2009-04-10  Bruno Haible  <bruno@clisp.org>
84367         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84368         always.
84369         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84370         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84371         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84372         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84373         "unistring-notinline.h", so that the function gets defined always.
84374         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84375         * lib/unistr/u8-uctomb.c: Likewise.
84376         * lib/unistr/u16-mbtouc.c: Likewise.
84377         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84378         * lib/unistr/u16-uctomb.c: Likewise.
84379         * lib/unistr/u32-mbtouc.c: Likewise.
84380         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84381         * lib/unistr/u32-uctomb.c: Likewise.
84383 2009-04-10  Bruno Haible  <bruno@clisp.org>
84385         Mark 'utime' obsolete.
84386         * modules/utime (Status, Notice): New sections.
84387         Suggested by Jim Meyering.
84389         Fix cross-compile guess for utime test.
84390         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84391         autoconf.
84392         * doc/posix-functions/utime.texi: Give more precisions.
84393         Reported by Jan <ipif@ymail.com>.
84395 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84397         filevercmp: correct today's change
84398         * lib/filevercmp.c: Also handle coreutils' test inputs.
84399         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84401         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84402         for reporting it.
84403         * lib/filevercmp.c: Special handle for "", "." and "..".
84404         * tests/test-filevercmp.c: Enlarge the set suite.
84406 2009-04-07  Jim Meyering  <meyering@redhat.com>
84408         useless-if-before-free: show how to remove braced useless free, too
84409         * build-aux/useless-if-before-free: still only in a comment, though.
84411 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84413         maint.mk: import changes to syntax-check macros from coreutils
84414         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84415         Use them in the relevant macros.
84417 2009-04-06  Bruno Haible  <bruno@clisp.org>
84419         Fix unportable use of bit-fields.
84420         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84421         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84422         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84424 2009-04-06  Bruno Haible  <bruno@clisp.org>
84426         Avoid test failures on AIX and OSF/1.
84427         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84428         that malloc(0) = NULL.
84429         * tests/unicase/test-u8-tolower.c (check): Likewise.
84430         * tests/unicase/test-u8-totitle.c (check): Likewise.
84431         * tests/unicase/test-u8-toupper.c (check): Likewise.
84432         * tests/unicase/test-u16-casefold.c (check): Likewise.
84433         * tests/unicase/test-u16-tolower.c (check): Likewise.
84434         * tests/unicase/test-u16-totitle.c (check): Likewise.
84435         * tests/unicase/test-u16-toupper.c (check): Likewise.
84436         * tests/unicase/test-u32-casefold.c (check): Likewise.
84437         * tests/unicase/test-u32-tolower.c (check): Likewise.
84438         * tests/unicase/test-u32-totitle.c (check): Likewise.
84439         * tests/unicase/test-u32-toupper.c (check): Likewise.
84440         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84441         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84442         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84443         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84444         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84445         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84446         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84447         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84448         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84449         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84450         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84451         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84453 2009-04-05  Bruno Haible  <bruno@clisp.org>
84455         Work around an autoconf limitation.
84456         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84457         comment line if it would be longer than 3 KB.
84459 2009-04-05  Bruno Haible  <bruno@clisp.org>
84461         Avoid test failure with libiconv-1.13.
84462         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84463         of the expected test results.
84465 2009-04-05  Bruno Haible  <bruno@clisp.org>
84467         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84468         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84469         that it should be installed.
84471 2009-04-05  Bruno Haible  <bruno@clisp.org>
84473         * gnulib-tool: New option --copy-file.
84474         (func_usage): Document it.
84475         (func_dest_tmpfilename): Moved out of func_import.
84476         (func_add_file, func_update_file): New functions, extracted from
84477         func_import.
84478         (func_import): Update.
84480 2009-04-05  Karl Berry  <karl@gnu.org>
84482         * README: prominently mention gnulib-tool.
84483         Rearrange sections so getting the code is near the top.
84485 2009-04-05  Bruno Haible  <bruno@clisp.org>
84487         * lib/unicase.h: Mention u*_cmp2.
84488         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84489         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84490         * lib/unicase/ulc-casecmp.c: Likewise.
84491         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84492         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84493         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84494         unistr/u8-cmp.
84495         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84496         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84497         unistr/u16-cmp.
84498         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84499         unistr/u32-cmp.
84501         * lib/uninorm.h: Mention u*_cmp2.
84502         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84503         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84504         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84505         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84506         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84507         unistr/u8-cmp.
84508         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84509         unistr/u16-cmp.
84510         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84511         unistr/u32-cmp.
84513         New module 'unistr/u32-cmp2'.
84514         * lib/unistr/u32-cmp2.c: New file.
84515         * modules/unistr/u32-cmp2: New file.
84517         New module 'unistr/u16-cmp2'.
84518         * lib/unistr/u16-cmp2.c: New file.
84519         * modules/unistr/u16-cmp2: New file.
84521         New module 'unistr/u8-cmp2'.
84522         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
84523         * lib/unistr/u8-cmp2.c: New file.
84524         * lib/unistr/u-cmp2.h: New file.
84525         * modules/unistr/u8-cmp2: New file.
84527 2009-04-05  Bruno Haible  <bruno@clisp.org>
84529         * lib/unictype.h (uc_property_is_valid): New macro.
84530         * tests/unictype/test-pr_byname.c (main): Use it.
84532         * lib/unistr.h: Doc fixes.
84533         * lib/uniconv.h: Doc fixes.
84534         * lib/unictype.h: Doc fixes.
84536 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
84538         Port coreutils 7.2 to Solaris 8.
84540         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
84541         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
84542         for Solaris 8.  This is a bit of a hack, as it means it's the
84543         caller's responsibility to add -lnsl if needed, but most likely it
84544         won't be needed since only getaddrinfo uses this and getaddrinfo
84545         isn't needed on Solaris 8.
84547         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
84548         problem to Solaris 8 encountered with coreutils 7.2, which
84549         resulted in a message "fnmatch.c:292: warning: passing argument 4
84550         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
84551         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
84553 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84555         * m4/ld-version-script.m4: Add FIXME comment.
84557 2009-04-02  Simon Josefsson  <simon@josefsson.org>
84559         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
84560         SOVERSION variable.
84562 2009-04-02  Bruno Haible  <bruno@clisp.org>
84564         * Makefile (info, html, dvi, pdf): Combine the rules.
84565         Suggested by Jim Meyering.
84567 2009-04-01  Bruno Haible  <bruno@clisp.org>
84569         * Makefile (info, html, dvi, pdf): New targets.
84570         Reported by Reuben Thomas <rrt@sc3d.org>.
84572 2009-04-01  Bruno Haible  <bruno@clisp.org>
84574         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
84575         can be put into PATH.
84576         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
84578 2009-04-01  Bruno Haible  <bruno@clisp.org>
84580         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
84582 2009-04-01  Bruno Haible  <bruno@clisp.org>
84584         Rename module 'visibility'.
84585         * modules/lib-symbol-visibility: Renamed from modules/visibility.
84586         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
84587         * doc/gnulib.texi: Update.
84588         * MODULES.html.sh (Misc): Update.
84589         * NEWS: Mention the change.
84591 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84593         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84594         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84595         Eric Blake <ebb9@byu.net> for review.
84596         * MODULES.html.sh: Add lib-msvc-compat.
84597         * doc/gnulib.texi: Link to new section.
84598         * m4/ld-output-def.m4: New file.
84599         * doc/ld-output-def.texi: New file.
84601 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84603         Rename ld-version-script to lib-symbol-versions.  Suggested by
84604         Bruno Haible <bruno@clisp.org>.
84605         * modules/ld-version-script: Renamed to lib-symbol-versions.
84606         * doc/ld-version-script.texi: Fix module name.
84607         * MODULES.html.sh: Add lib-symbol-versions.
84609 2009-03-31  Simon Josefsson  <simon@josefsson.org>
84611         * modules/u64-tests: New file.
84612         * tests/test-u64.c: New file.
84614 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84616         * MODULES.html.sh: Mention u64.
84617         * modules/u64: New module.
84618         * modules/crypto/sha512: Depend on u64 module instead of providing
84619         u64.h.
84621 2009-03-27  Eric Blake  <ebb9@byu.net>
84623         test-strerror: make debugging EAI_SYSTEM easier
84624         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84625         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84626         failure was EAI_SYSTEM.
84628 2009-03-25  Bruno Haible  <bruno@clisp.org>
84630         Fix a problem with --enable-relocatable on Solaris 7.
84631         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84632         since 2008-02-24.
84634 2009-03-25  Eric Blake  <ebb9@byu.net>
84636         test-sockets: avoid gcc warning
84637         * tests/test-sockets.c (main): Silence compiler warning.
84639 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84641         New modules nproc, pthread, contributed by Glen Lenker.
84643         * MODULES.html.sh: Add pthread, nproc.
84644         * lib/nproc.c: New file.
84645         * lib/nproc.h: New file.
84646         * lib/pthread.in.h: New file.
84647         * m4/pthread.m4: New file.
84648         * modules/nproc: New file.
84649         * modules/pthread: New file.
84651 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84653         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84654         New variable.
84656 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84658         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84659         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84660         * tests/test-filevercmp.c: Add tests for backup suffixes.
84662 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84664         * modules/stdlib (Depends-on): Add stdint, needed when defining
84665         struct random_data on, for example, HP-UX 10.20.  Reported by
84666         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84668 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84670         * lib/readline.c (readline): Call fflush on stdout after printing
84671         prompt.
84673 2009-03-20  Bruno Haible  <bruno@clisp.org>
84675         Remove dependency from 'close' module to -lws2_32 on native Windows.
84676         * lib/close-hook.h: New file.
84677         * lib/close-hook.c: New file.
84678         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84679         w32sock.h.
84680         (_gl_close_fd_maybe_socket): Remove function.
84681         (rpl_close): Invoke execute_all_close_hooks instead of
84682         _gl_close_fd_maybe_socket.
84683         * lib/sockets.c: Include close-hook.h, w32sock.h.
84684         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84685         (close_sockets_hook): New variable.
84686         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84687         (gl_sockets_cleanup): Unregister it.
84688         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84689         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84690         * modules/close-hook: New file.
84691         * modules/close (Files): Remove lib/w32sock.h.
84692         (Depends-on): Add close-hook.
84693         (Link): Remove section.
84694         * modules/sockets (Files): Add lib/w32sock.h.
84695         (Depends-on): Add close-hook.
84696         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84697         invocation.
84698         * NEWS: Mention that LIB_CLOSE is gone.
84700 2009-03-23  Eric Blake  <ebb9@byu.net>
84702         signal-tests: test previous patch
84703         * tests/test-signal.c: New file.
84704         * modules/signal-tests: Likewise.
84706         signal.h: always support 'volatile sig_atomic_t'
84707         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84708         (gl_SIGNAL_H_DEFAULTS): Add a default.
84709         * modules/signal (Makefile.am): Substitute if needed.
84710         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84711         users can blindly add volatile.
84712         * doc/posix-headers/signal.texi (signal.h): Document it.
84713         Reported by Matthew Woehlke.
84715 2009-03-23  Jim Meyering  <meyering@redhat.com>
84717         pathmax: PATH_MAX: use pathconf only when available
84718         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84719         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84720         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84721         This avoids a link failure in a PSP cross-compilation environment
84722         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84724         * lib/vasnprintf.c (divide): Fix typo in comment.
84726 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84728         * gnulib-tool (func_filter_filelist): Fix comment.
84730 2009-03-20  Bruno Haible  <bruno@clisp.org>
84732         Make sockets.h self-contained.
84733         * lib/sockets.c: Include sockets.h first.
84734         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84736 2009-03-19  Eric Blake  <ebb9@byu.net>
84738         doc: mention more functions added in cygwin 1.7.0
84739         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84740         addition.
84741         * doc/posix-functions/log2f.texi: Likewise.
84743 2009-03-19  Jim Meyering  <meyering@redhat.com>
84745         fsusage: avoid syntax error due to statement-before-declaration
84746         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84747         after all declarations.  Reported by Matthew Woehlke in
84748         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84750 2009-03-18  Eric Blake  <ebb9@byu.net>
84752         build-aux/compile: sync from automake
84753         * build-aux/compile: New file, from automake.
84754         * config/srclist.txt: Mention build-aux/compile.
84756 2009-03-17  Bruno Haible  <bruno@clisp.org>
84758         * lib/git-merge-changelog.c: Fix typo in comment.
84759         Reported by Reuben Thomas <rrt@sc3d.org>.
84761 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84763         * m4/regex.m4: update and improve help for
84764         --without-included-regex.
84766 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84768         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84769         failure on missing include files.
84771 2009-03-17  Eric Blake  <ebb9@byu.net>
84773         doc: mention more functions added in cygwin 1.7.0
84774         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84775         addition.
84776         * doc/posix-functions/fwscanf.texi: Likewise.
84777         * doc/posix-functions/swprintf.texi: Likewise.
84778         * doc/posix-functions/swscanf.texi: Likewise.
84779         * doc/posix-functions/vfwprintf.texi: Likewise.
84780         * doc/posix-functions/vfwscanf.texi: Likewise.
84781         * doc/posix-functions/vswprintf.texi: Likewise.
84782         * doc/posix-functions/vswscanf.texi: Likewise.
84783         * doc/posix-functions/vwprintf.texi: Likewise.
84784         * doc/posix-functions/vwscanf.texi: Likewise.
84785         * doc/posix-functions/wcscasecmp.texi: Likewise.
84786         * doc/posix-functions/wcsdup.texi: Likewise.
84787         * doc/posix-functions/wcsftime.texi: Likewise.
84788         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84789         * doc/posix-functions/wprintf.texi: Likewise.
84790         * doc/posix-functions/wscanf.texi: Likewise.
84791         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84793 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84795         maint.mk: really add $(AM_MAKEFLAGS)
84796         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84797         was inadvertently omitted in the last commit.
84798         Spotted by Bruno Haible.
84800         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84801         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84802         $(AM_MAKEFLAGS)' rather than plain `make'.
84804         gnulib-tool: execute $MAKE not make
84805         * gnulib-tool: Default $MAKE to 'make'.
84806         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84807         than make.  Initialize $MAKE in the do-autobuild script.
84809         gnulib-tool: use $MAKE not make in generated files
84810         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84811         make, in generated files.  Initialize $MAKE in the do-autobuild
84812         script.
84814         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84816         GNUmakefile: disable parallelism only for multiple, recursive targets
84817         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84818         additions in the Makefile.
84819         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84820         by Automake.
84821         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84822         are listed on the command line and at least one of them is
84823         listed in $(ALL_RECURSIVE_TARGETS).
84825 2009-03-14  Bruno Haible  <bruno@clisp.org>
84827         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84828         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84829         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84830         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84831         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84832         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84833         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84834         unistr/u8-uctomb.
84835         * modules/unistr/u8-strchr (Depends-on): Likewise.
84836         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84837         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84838         unistr/u16-uctomb.
84839         * modules/unistr/u16-strchr (Depends-on): Likewise.
84840         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84842 2009-03-12  Bruno Haible  <bruno@clisp.org>
84844         Work around select() bug on Interix 3.5.
84845         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84846         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84847         * m4/select.m4: New file.
84848         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84849         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84850         * modules/select (Files): Add m4/select.m4.
84851         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84852         * modules/nanosleep (Depends-on): Add select.
84853         * modules/poll (Depends-on): Likewise.
84854         * doc/posix-functions/select.texi: Mention the Interix bug.
84855         Reported by Markus Duft <mduft@gentoo.org>.
84857         * lib/select.c: Renamed from lib/winsock-select.c.
84858         * modules/select (Files): Add lib/select.c, remove
84859         lib/winsock-select.c.
84860         (configure.ac): Update.
84862 2009-03-12  Jim Meyering  <meyering@redhat.com>
84864         avoid gcc warnings about unused macro definitions
84865         * lib/readtokens.c (STREQ): Remove unused definition.
84866         * lib/xmalloc.c (SIZE_MAX): Likewise.
84867         * lib/openat-die.c (N_): Likewise.
84868         * lib/mountlist.c (SIZE_MAX): Remove definition.
84869         Instead, include <stdint.h>.
84870         * lib/readutmp.c: Likewise.
84871         * modules/readutmp (Depends-on): Add stdint.
84872         * modules/mountlist (Depends-on): Add stdint.
84873         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84875 2009-03-10  Bruno Haible  <bruno@clisp.org>
84877         Tests for module 'mbmemcasecoll'.
84878         * modules/mbmemcasecoll-tests: New file.
84879         * tests/test-mbmemcasecoll1.sh: New file.
84880         * tests/test-mbmemcasecoll2.sh: New file.
84881         * tests/test-mbmemcasecoll3.sh: New file.
84882         * tests/test-mbmemcasecoll.c: New file.
84884         New module 'mbmemcasecoll'.
84885         * lib/mbmemcasecoll.h: New file.
84886         * lib/mbmemcasecoll.c: New file.
84887         * modules/mbmemcasecoll: New file.
84889         * tests/test-mbmemcasecmp.h: New file, extracted from
84890         tests/test-mbmemcasecmp.c.
84891         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84892         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84893         (main): Update.
84894         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84896 2009-03-09  Bruno Haible  <bruno@clisp.org>
84898         Tests for module 'mbmemcasecmp'.
84899         * modules/mbmemcasecmp-tests: New file.
84900         * tests/test-mbmemcasecmp1.sh: New file.
84901         * tests/test-mbmemcasecmp2.sh: New file.
84902         * tests/test-mbmemcasecmp3.sh: New file.
84903         * tests/test-mbmemcasecmp.c: New file.
84905         New module 'mbmemcasecmp'.
84906         * lib/mbmemcasecmp.h: New file.
84907         * lib/mbmemcasecmp.c: New file.
84908         * modules/mbmemcasecmp: New file.
84910 2009-03-09  Bruno Haible  <bruno@clisp.org>
84912         Tests for module 'unicase/ulc-casecoll'.
84913         * modules/unicase/ulc-casecoll-tests: New file.
84914         * tests/unicase/test-ulc-casecoll1.sh: New file.
84915         * tests/unicase/test-ulc-casecoll2.sh: New file.
84916         * tests/unicase/test-ulc-casecoll.c: New file.
84918         New module 'unicase/ulc-casecoll'.
84919         * lib/unicase.h (ulc_casecoll): New declaration.
84920         * lib/unicase/ulc-casecoll.c: New file.
84921         * modules/unicase/ulc-casecoll: New file.
84923         New module 'unicase/ulc-casexfrm'.
84924         * lib/unicase.h (ulc_casexfrm): New declaration.
84925         * lib/unicase/ulc-casexfrm.c: New file.
84926         * modules/unicase/ulc-casexfrm: New file.
84928 2009-03-09  Bruno Haible  <bruno@clisp.org>
84930         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84931         invocations.
84933         * m4/mbscasecmp.m4: Remove file.
84934         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84935         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
84937         * m4/mbscasestr.m4: Remove file.
84938         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
84939         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
84941         * m4/mbschr.m4: Remove file.
84942         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
84943         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
84945         * m4/mbscspn.m4: Remove file.
84946         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84947         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84949         * m4/mbslen.m4: Remove file.
84950         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84951         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84953         * m4/mbsncasecmp.m4: Remove file.
84954         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84955         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84957         * m4/mbsnlen.m4: Remove file.
84958         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84959         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84961         * m4/mbspbrk.m4: Remove file.
84962         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84963         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84965         * m4/mbspcasecmp.m4: Remove file.
84966         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84967         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84969         * m4/mbsrchr.m4: Remove file.
84970         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84971         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84973         * m4/mbssep.m4: Remove file.
84974         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84975         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84977         * m4/mbsspn.m4: Remove file.
84978         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84979         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84981         * m4/mbsstr.m4: Remove file.
84982         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84983         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84985         * m4/mbstok_r.m4: Remove file.
84986         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84987         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84989         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84991         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84992         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84994         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84996 2009-03-08  Bruno Haible  <bruno@clisp.org>
84998         Tests for module 'unicase/ulc-casecmp'.
84999         * modules/unicase/ulc-casecmp-tests: New file.
85000         * tests/unicase/test-ulc-casecmp1.sh: New file.
85001         * tests/unicase/test-ulc-casecmp2.sh: New file.
85002         * tests/unicase/test-ulc-casecmp.c: New file.
85004         New module 'unicase/ulc-casecmp'.
85005         * lib/unicase.h (ulc_casecmp): New declaration.
85006         * lib/unicase/ulc-casecmp.c: New file.
85007         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85008         'const SRC_UNIT *'.
85009         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85010         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85011         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85012         * modules/unicase/ulc-casecmp: New file.
85014         Tests for module 'unicase/u32-is-cased'.
85015         * modules/unicase/u32-is-cased-tests: New file.
85016         * tests/unicase/test-u32-is-cased.c: New file.
85018         Tests for module 'unicase/u16-is-cased'.
85019         * modules/unicase/u16-is-cased-tests: New file.
85020         * tests/unicase/test-u16-is-cased.c: New file.
85022         Tests for module 'unicase/u8-is-cased'.
85023         * modules/unicase/u8-is-cased-tests: New file.
85024         * tests/unicase/test-u8-is-cased.c: New file.
85025         * tests/unicase/test-is-cased.h: New file.
85027         New module 'unicase/u32-is-cased'.
85028         * lib/unicase/u32-is-cased.c: New file.
85029         * modules/unicase/u32-is-cased: New file.
85031         New module 'unicase/u16-is-cased'.
85032         * lib/unicase/u16-is-cased.c: New file.
85033         * modules/unicase/u16-is-cased: New file.
85035         New module 'unicase/u8-is-cased'.
85036         * lib/unicase/u8-is-cased.c: New file.
85037         * lib/unicase/u-is-cased.h: New file.
85038         * modules/unicase/u8-is-cased: New file.
85040         Tests for module 'unicase/u32-is-casefolded'.
85041         * modules/unicase/u32-is-casefolded-tests: New file.
85042         * tests/unicase/test-u32-is-casefolded.c: New file.
85044         Tests for module 'unicase/u16-is-casefolded'.
85045         * modules/unicase/u16-is-casefolded-tests: New file.
85046         * tests/unicase/test-u16-is-casefolded.c: New file.
85048         Tests for module 'unicase/u8-is-casefolded'.
85049         * modules/unicase/u8-is-casefolded-tests: New file.
85050         * tests/unicase/test-u8-is-casefolded.c: New file.
85051         * tests/unicase/test-is-casefolded.h: New file.
85053         New module 'unicase/u32-is-casefolded'.
85054         * lib/unicase/u32-is-casefolded.c: New file.
85055         * modules/unicase/u32-is-casefolded: New file.
85057         New module 'unicase/u16-is-casefolded'.
85058         * lib/unicase/u16-is-casefolded.c: New file.
85059         * modules/unicase/u16-is-casefolded: New file.
85061         New module 'unicase/u8-is-casefolded'.
85062         * lib/unicase/u8-is-casefolded.c: New file.
85063         * modules/unicase/u8-is-casefolded: New file.
85065         Tests for module 'unicase/u32-is-titlecase'.
85066         * modules/unicase/u32-is-titlecase-tests: New file.
85067         * tests/unicase/test-u32-is-titlecase.c: New file.
85069         Tests for module 'unicase/u16-is-titlecase'.
85070         * modules/unicase/u16-is-titlecase-tests: New file.
85071         * tests/unicase/test-u16-is-titlecase.c: New file.
85073         Tests for module 'unicase/u8-is-titlecase'.
85074         * modules/unicase/u8-is-titlecase-tests: New file.
85075         * tests/unicase/test-u8-is-titlecase.c: New file.
85076         * tests/unicase/test-is-titlecase.h: New file.
85078         New module 'unicase/u32-is-titlecase'.
85079         * lib/unicase/u32-is-titlecase.c: New file.
85080         * modules/unicase/u32-is-titlecase: New file.
85082         New module 'unicase/u16-is-titlecase'.
85083         * lib/unicase/u16-is-titlecase.c: New file.
85084         * modules/unicase/u16-is-titlecase: New file.
85086         New module 'unicase/u8-is-titlecase'.
85087         * lib/unicase/u8-is-titlecase.c: New file.
85088         * modules/unicase/u8-is-titlecase: New file.
85090         Tests for module 'unicase/u32-is-lowercase'.
85091         * modules/unicase/u32-is-lowercase-tests: New file.
85092         * tests/unicase/test-u32-is-lowercase.c: New file.
85094         Tests for module 'unicase/u16-is-lowercase'.
85095         * modules/unicase/u16-is-lowercase-tests: New file.
85096         * tests/unicase/test-u16-is-lowercase.c: New file.
85098         Tests for module 'unicase/u8-is-lowercase'.
85099         * modules/unicase/u8-is-lowercase-tests: New file.
85100         * tests/unicase/test-u8-is-lowercase.c: New file.
85101         * tests/unicase/test-is-lowercase.h: New file.
85103         New module 'unicase/u32-is-lowercase'.
85104         * lib/unicase/u32-is-lowercase.c: New file.
85105         * modules/unicase/u32-is-lowercase: New file.
85107         New module 'unicase/u16-is-lowercase'.
85108         * lib/unicase/u16-is-lowercase.c: New file.
85109         * modules/unicase/u16-is-lowercase: New file.
85111         New module 'unicase/u8-is-lowercase'.
85112         * lib/unicase/u8-is-lowercase.c: New file.
85113         * modules/unicase/u8-is-lowercase: New file.
85115         Tests for module 'unicase/u32-is-uppercase'.
85116         * modules/unicase/u32-is-uppercase-tests: New file.
85117         * tests/unicase/test-u32-is-uppercase.c: New file.
85119         Tests for module 'unicase/u16-is-uppercase'.
85120         * modules/unicase/u16-is-uppercase-tests: New file.
85121         * tests/unicase/test-u16-is-uppercase.c: New file.
85123         Tests for module 'unicase/u8-is-uppercase'.
85124         * modules/unicase/u8-is-uppercase-tests: New file.
85125         * tests/unicase/test-u8-is-uppercase.c: New file.
85126         * tests/unicase/test-is-uppercase.h: New file.
85128         New module 'unicase/u32-is-uppercase'.
85129         * lib/unicase/u32-is-uppercase.c: New file.
85130         * modules/unicase/u32-is-uppercase: New file.
85132         New module 'unicase/u16-is-uppercase'.
85133         * lib/unicase/u16-is-uppercase.c: New file.
85134         * modules/unicase/u16-is-uppercase: New file.
85136         New module 'unicase/u8-is-uppercase'.
85137         * lib/unicase/u8-is-uppercase.c: New file.
85138         * modules/unicase/u8-is-uppercase: New file.
85140         New module 'unicase/u32-is-invariant'.
85141         * lib/unicase/u32-is-invariant.c: New file.
85142         * modules/unicase/u32-is-invariant: New file.
85144         New module 'unicase/u16-is-invariant'.
85145         * lib/unicase/u16-is-invariant.c: New file.
85146         * modules/unicase/u16-is-invariant: New file.
85148         New module 'unicase/u8-is-invariant'.
85149         * lib/unicase/u8-is-invariant.c: New file.
85150         * lib/unicase/invariant.h: New file.
85151         * lib/unicase/u-is-invariant.h: New file.
85152         * modules/unicase/u8-is-invariant: New file.
85154         Tests for module 'unicase/u32-casecoll'.
85155         * modules/unicase/u32-casecoll-tests: New file.
85156         * tests/unicase/test-u32-casecoll.c: New file.
85158         Tests for module 'unicase/u16-casecoll'.
85159         * modules/unicase/u16-casecoll-tests: New file.
85160         * tests/unicase/test-u16-casecoll.c: New file.
85162         Tests for module 'unicase/u8-casecoll'.
85163         * modules/unicase/u8-casecoll-tests: New file.
85164         * tests/unicase/test-u8-casecoll.c: New file.
85166         New module 'unicase/u32-casecoll'.
85167         * lib/unicase/u32-casecoll.c: New file.
85168         * modules/unicase/u32-casecoll: New file.
85170         New module 'unicase/u16-casecoll'.
85171         * lib/unicase/u16-casecoll.c: New file.
85172         * modules/unicase/u16-casecoll: New file.
85174         New module 'unicase/u8-casecoll'.
85175         * lib/unicase/u8-casecoll.c: New file.
85176         * lib/unicase/u-casecoll.h: New file.
85177         * modules/unicase/u8-casecoll: New file.
85179         New module 'unicase/u32-casexfrm'.
85180         * lib/unicase/u32-casexfrm.c: New file.
85181         * modules/unicase/u32-casexfrm: New file.
85183         New module 'unicase/u16-casexfrm'.
85184         * lib/unicase/u16-casexfrm.c: New file.
85185         * modules/unicase/u16-casexfrm: New file.
85187         New module 'unicase/u8-casexfrm'.
85188         * lib/unicase/u8-casexfrm.c: New file.
85189         * lib/unicase/u-casexfrm.h: New file.
85190         * modules/unicase/u8-casexfrm: New file.
85192         Tests for module 'unicase/u32-casecmp'.
85193         * modules/unicase/u32-casecmp-tests: New file.
85194         * tests/unicase/test-u32-casecmp.c: New file.
85196         Tests for module 'unicase/u16-casecmp'.
85197         * modules/unicase/u16-casecmp-tests: New file.
85198         * tests/unicase/test-u16-casecmp.c: New file.
85200         Tests for module 'unicase/u8-casecmp'.
85201         * modules/unicase/u8-casecmp-tests: New file.
85202         * tests/unicase/test-u8-casecmp.c: New file.
85203         * tests/unicase/test-casecmp.h: New file.
85205         New module 'unicase/u32-casecmp'.
85206         * lib/unicase/u32-casecmp.c: New file.
85207         * modules/unicase/u32-casecmp: New file.
85209         New module 'unicase/u16-casecmp'.
85210         * lib/unicase/u16-casecmp.c: New file.
85211         * modules/unicase/u16-casecmp: New file.
85213         New module 'unicase/u8-casecmp'.
85214         * lib/unicase/u8-casecmp.c: New file.
85215         * lib/unicase/u-casecmp.h: New file.
85216         * modules/unicase/u8-casecmp: New file.
85218         Tests for module 'unicase/u32-casefold'.
85219         * modules/unicase/u32-casefold-tests: New file.
85220         * tests/unicase/test-u32-casefold.c: New file.
85222         Tests for module 'unicase/u16-casefold'.
85223         * modules/unicase/u16-casefold-tests: New file.
85224         * tests/unicase/test-u16-casefold.c: New file.
85226         Tests for module 'unicase/u8-casefold'.
85227         * modules/unicase/u8-casefold-tests: New file.
85228         * tests/unicase/test-u8-casefold.c: New file.
85230         New module 'unicase/u32-casefold'.
85231         * lib/unicase/u32-casefold.c: New file.
85232         * modules/unicase/u32-casefold: New file.
85234         New module 'unicase/u16-casefold'.
85235         * lib/unicase/u16-casefold.c: New file.
85236         * modules/unicase/u16-casefold: New file.
85238         New module 'unicase/u8-casefold'.
85239         * lib/unicase/u8-casefold.c: New file.
85240         * lib/unicase/u-casefold.h: New file.
85241         * modules/unicase/u8-casefold: New file.
85243         New module 'unicase/tocasefold'.
85244         * lib/unicase/casefold.h: New file.
85245         * lib/unicase/tocasefold.c: New file.
85246         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85247         * modules/unicase/tocasefold: New file.
85249         Tests for module 'unicase/u32-totitle'.
85250         * modules/unicase/u32-totitle-tests: New file.
85251         * tests/unicase/test-u32-totitle.c: New file.
85253         Tests for module 'unicase/u16-totitle'.
85254         * modules/unicase/u16-totitle-tests: New file.
85255         * tests/unicase/test-u16-totitle.c: New file.
85257         Tests for module 'unicase/u8-totitle'.
85258         * modules/unicase/u8-totitle-tests: New file.
85259         * tests/unicase/test-u8-totitle.c: New file.
85261         New module 'unicase/u32-totitle'.
85262         * lib/unicase/u32-totitle.c: New file.
85263         * modules/unicase/u32-totitle: New file.
85265         New module 'unicase/u16-totitle'.
85266         * lib/unicase/u16-totitle.c: New file.
85267         * modules/unicase/u16-totitle: New file.
85269         New module 'unicase/u8-totitle'.
85270         * lib/unicase/u8-totitle.c: New file.
85271         * lib/unicase/u-totitle.h: New file.
85272         * modules/unicase/u8-totitle: New file.
85274         Tests for module 'unicase/u32-tolower'.
85275         * modules/unicase/u32-tolower-tests: New file.
85276         * tests/unicase/test-u32-tolower.c: New file.
85278         Tests for module 'unicase/u16-tolower'.
85279         * modules/unicase/u16-tolower-tests: New file.
85280         * tests/unicase/test-u16-tolower.c: New file.
85282         Tests for module 'unicase/u8-tolower'.
85283         * modules/unicase/u8-tolower-tests: New file.
85284         * tests/unicase/test-u8-tolower.c: New file.
85286         New module 'unicase/u32-tolower'.
85287         * lib/unicase/u32-tolower.c: New file.
85288         * modules/unicase/u32-tolower: New file.
85290         New module 'unicase/u16-tolower'.
85291         * lib/unicase/u16-tolower.c: New file.
85292         * modules/unicase/u16-tolower: New file.
85294         New module 'unicase/u8-tolower'.
85295         * lib/unicase/u8-tolower.c: New file.
85296         * modules/unicase/u8-tolower: New file.
85298         Tests for module 'unicase/u32-toupper'.
85299         * modules/unicase/u32-toupper-tests: New file.
85300         * tests/unicase/test-u32-toupper.c: New file.
85302         Tests for module 'unicase/u16-toupper'.
85303         * modules/unicase/u16-toupper-tests: New file.
85304         * tests/unicase/test-u16-toupper.c: New file.
85306         Tests for module 'unicase/u8-toupper'.
85307         * modules/unicase/u8-toupper-tests: New file.
85308         * tests/unicase/test-u8-toupper.c: New file.
85310         New module 'unicase/u32-toupper'.
85311         * lib/unicase/u32-toupper.c: New file.
85312         * modules/unicase/u32-toupper: New file.
85314         New module 'unicase/u16-toupper'.
85315         * lib/unicase/u16-toupper.c: New file.
85316         * modules/unicase/u16-toupper: New file.
85318         New module 'unicase/u8-toupper'.
85319         * lib/unicase/u8-toupper.c: New file.
85320         * modules/unicase/u8-toupper: New file.
85322         New module 'unicase/u32-casemap'.
85323         * lib/unicase/u32-casemap.c: New file.
85324         * modules/unicase/u32-casemap: New file.
85326         New module 'unicase/u16-casemap'.
85327         * lib/unicase/u16-casemap.c: New file.
85328         * modules/unicase/u16-casemap: New file.
85330         New module 'unicase/u8-casemap'.
85331         * lib/unicase/unicasemap.h: New file.
85332         * lib/unicase/u8-casemap.c: New file.
85333         * lib/unicase/u-casemap.h: New file.
85334         * modules/unicase/u8-casemap: New file.
85336         New module 'unicase/special-casing'.
85337         * lib/unicase/special-casing.h: New file.
85338         * lib/unicase/special-casing.c: New file.
85339         * lib/unicase/special-casing-table.gperf: New file, generated by
85340         gen-uni-tables.c.
85341         * modules/unicase/special-casing: New file.
85343         Tests for module 'unicase/locale-language'.
85344         * modules/unicase/locale-language-tests: New file.
85345         * tests/unicase/test-locale-language.sh: New file.
85346         * tests/unicase/test-locale-language.c: New file.
85348         New module 'unicase/locale-language'.
85349         * lib/unicase/locale-language.c: New file.
85350         * lib/unicase/locale-languages.gperf: New file.
85351         * modules/unicase/locale-language: New file.
85353         Generate more tables for case conversion and case folding.
85354         * lib/gen-uni-tables.c (SCC_*): New enum items.
85355         (struct special_casing_rule): New type.
85356         (casing_rules, num_casing_rules, allocated_casing_rules): New
85357         variables.
85358         (add_casing_rule, fill_casing_rules): New functions.
85359         (struct casefold_rule): New type.
85360         (casefolding_rules, num_casefolding_rules,
85361         allocated_casefolding_rules): New variables.
85362         (fill_casefolding_rules): New function.
85363         (unicode_casefold): New variable.
85364         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85365         sort_casing_rules, output_casing_rules): New functions.
85366         (main): Accept to more arguments: SpecialCasing.txt and
85367         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85368         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85369         Output mapping for casefolding.
85371         * lib/unicase.h: Include stdbool.h, uninorm.h.
85372         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85373         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85374         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85375         arguments.
85376         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85377         resultp arguments.
85378         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85379         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85380         resultp arguments.
85381         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85382         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85383         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85384         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85385         declarations.
85386         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85388 2009-03-08  Bruno Haible  <bruno@clisp.org>
85390         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85391         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85392         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85393         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85395 2009-03-07  Bruno Haible  <bruno@clisp.org>
85397         Adjust u*_normcmp, u*_normcoll API.
85398         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85399         u16_normcoll, u32_normcoll): Change failure conventions.
85400         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85401         errno and return -1.
85402         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85404 2009-03-07  Bruno Haible  <bruno@clisp.org>
85406         Tests for module 'uninorm/u32-normcoll'.
85407         * modules/uninorm/u32-normcoll-tests: New file.
85408         * tests/uninorm/test-u32-normcoll.c: New file.
85410         Tests for module 'uninorm/u16-normcoll'.
85411         * modules/uninorm/u16-normcoll-tests: New file.
85412         * tests/uninorm/test-u16-normcoll.c: New file.
85414         Tests for module 'uninorm/u8-normcoll'.
85415         * modules/uninorm/u8-normcoll-tests: New file.
85416         * tests/uninorm/test-u8-normcoll.c: New file.
85418 2009-03-07  Bruno Haible  <bruno@clisp.org>
85420         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85421         tests/uninorm/test-u32-normcmp.c.
85422         * tests/uninorm/test-u32-normcmp.c: Include it.
85423         (test_nonascii): New function, extracted from main. Add some more
85424         tests.
85425         (main): Invoke test_ascii and test_nonascii.
85426         * modules/uninorm/u32-normcmp-tests (Files): Add
85427         tests/uninorm/test-u32-normcmp.h.
85428         (Depends-on): Remove uninorm/u32-normcmp.
85430         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85431         tests/uninorm/test-u16-normcmp.c.
85432         * tests/uninorm/test-u16-normcmp.c: Include it.
85433         (test_nonascii): New function, extracted from main. Add some more
85434         tests.
85435         (main): Invoke test_ascii and test_nonascii.
85436         * modules/uninorm/u16-normcmp-tests (Files): Add
85437         tests/uninorm/test-u16-normcmp.h.
85438         (Depends-on): Remove uninorm/u16-normcmp.
85440         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85441         tests/uninorm/test-u8-normcmp.c.
85442         * tests/uninorm/test-u8-normcmp.c: Include it.
85443         (test_nonascii): New function, extracted from main. Add some more
85444         tests.
85445         (main): Invoke test_ascii and test_nonascii.
85446         * modules/uninorm/u8-normcmp-tests (Files): Add
85447         tests/uninorm/test-u8-normcmp.h.
85448         (Depends-on): Remove uninorm/u8-normcmp.
85450 2009-03-07  Bruno Haible  <bruno@clisp.org>
85452         New module 'uninorm/u32-normcoll'.
85453         * lib/uninorm/u32-normcoll.c: New file.
85454         * modules/uninorm/u32-normcoll: New file.
85456         New module 'uninorm/u16-normcoll'.
85457         * lib/uninorm/u16-normcoll.c: New file.
85458         * modules/uninorm/u16-normcoll: New file.
85460         New module 'uninorm/u8-normcoll'.
85461         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85462         declarations.
85463         * lib/uninorm/u8-normcoll.c: New file.
85464         * lib/uninorm/u-normcoll.h: New file.
85465         * modules/uninorm/u8-normcoll: New file.
85467         New module 'uninorm/u32-normxfrm'.
85468         * lib/uninorm/u32-normxfrm.c: New file.
85469         * modules/uninorm/u32-normxfrm: New file.
85471         New module 'uninorm/u16-normxfrm'.
85472         * lib/uninorm/u16-normxfrm.c: New file.
85473         * modules/uninorm/u16-normxfrm: New file.
85475         New module 'uninorm/u8-normxfrm'.
85476         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85477         declarations.
85478         * lib/uninorm/u8-normxfrm.c: New file.
85479         * lib/uninorm/u-normxfrm.h: New file.
85480         * modules/uninorm/u8-normxfrm: New file.
85482 2009-03-07  Bruno Haible  <bruno@clisp.org>
85484         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85485         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85486         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85488 2009-03-07  Bruno Haible  <bruno@clisp.org>
85490         New module 'memxfrm'.
85491         * lib/memxfrm.h: New file.
85492         * lib/memxfrm.c: New file.
85493         * modules/memxfrm: New file.
85495 2009-03-07  Bruno Haible  <bruno@clisp.org>
85497         New module 'memcmp2'.
85498         * lib/memcmp2.h: New file.
85499         * lib/memcmp2.c: New file.
85500         * modules/memcmp2: New file.
85502 2009-03-07  Bruno Haible  <bruno@clisp.org>
85504         Tests for module 'uninorm/decomposing-form'.
85505         * modules/uninorm/decomposing-form-tests: New file.
85506         * tests/uninorm/test-decomposing-form.c: New file.
85508         New module 'uninorm/decomposing-form'.
85509         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85510         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85511         Add 'decomposing_variant' field.
85512         * lib/uninorm/decomposing-form.c: New file.
85513         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85514         * lib/uninorm/nfd.c (uninorm_nfd): Update.
85515         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
85516         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
85517         * modules/uninorm/decomposing-form: New file.
85518         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
85519         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
85521 2009-03-07  Bruno Haible  <bruno@clisp.org>
85523         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
85524         strings.
85526 2009-03-06  Bruno Haible  <bruno@clisp.org>
85528         Tests for module 'uninorm/u32-normcmp'.
85529         * tests/uninorm/test-u32-normcmp.c: New file.
85530         * modules/uninorm/u32-normcmp-tests: New file.
85532         Tests for module 'uninorm/u16-normcmp'.
85533         * tests/uninorm/test-u16-normcmp.c: New file.
85534         * modules/uninorm/u16-normcmp-tests: New file.
85536         Tests for module 'uninorm/u8-normcmp'.
85537         * tests/uninorm/test-u8-normcmp.c: New file.
85538         * modules/uninorm/u8-normcmp-tests: New file.
85540         New module 'uninorm/u32-normcmp'.
85541         * lib/uninorm/u32-normcmp.c: New file.
85542         * modules/uninorm/u32-normcmp: New file.
85544         New module 'uninorm/u16-normcmp'.
85545         * lib/uninorm/u16-normcmp.c: New file.
85546         * modules/uninorm/u16-normcmp: New file.
85548         New module 'uninorm/u8-normcmp'.
85549         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
85550         declarations.
85551         * lib/uninorm/u8-normcmp.c: New file.
85552         * lib/uninorm/u-normcmp.h: New file.
85553         * modules/uninorm/u8-normcmp: New file.
85555 2009-03-06  Bruno Haible  <bruno@clisp.org>
85557         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
85558         Reported by Eric Blake.
85560 2009-03-06  Eric Blake  <ebb9@byu.net>
85561             Bruno Haible  <bruno@clisp.org>
85563         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
85564         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
85565         condition.
85566         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85567         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
85568         condition.
85569         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85571 2009-03-06  Eric Blake  <ebb9@byu.net>
85573         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
85574         to avoid compiler warnings.
85575         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
85577 2009-03-05  Bruno Haible  <bruno@clisp.org>
85579         * tests/test-ftell.c (main): Disable test beyond end of file on
85580         FreeMiNT.
85581         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85583 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
85585         * lib/filevercmp.c: Move hidden files up in ordering.
85586         * tests/test-filevercmp.c: Add tests for hidden files.
85588 2009-03-04  Bruno Haible  <bruno@clisp.org>
85590         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
85591         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85592         AM_CFLAGS.
85593         Reported by Simon Josefsson.
85595 2009-03-03  Bruno Haible  <bruno@clisp.org>
85597         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85598         Reported by Simon Josefsson.
85600         * doc/ld-version-script.texi: Update node reference.
85602 2009-03-03  Bruno Haible  <bruno@clisp.org>
85604         * modules/visibility (License): Change to 'unlimited'.
85605         Suggested by Simon Josefsson.
85607 2009-03-03  Jim Meyering  <meyering@redhat.com>
85609         unlinkdir: cannot_unlink_dir may modify process state
85610         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
85611         it's neither thread-safe nor appropriate for use in a library.
85613 2009-03-03  Eric Blake  <ebb9@byu.net>
85615         test-closein: silence test under Darwin
85616         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85617         care if it dies from EPIPE or EBADF.
85619 2009-03-03  Bruno Haible  <bruno@clisp.org>
85621         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85622         earlier.
85623         * doc/visibility.texi: Fix @node and @section.
85625 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85627         * doc/gnulib.texi: Link to sections for ld version script and
85628         visibility.
85629         * doc/visibility.texi: Add @node and @section.
85630         * modules/ld-version-script: New module.
85631         * m4/ld-version-script.m4: New file.
85632         * doc/ld-version-script.texi: New file.
85634 2009-03-02  David Lutterkort  <lutter@redhat.com>
85636         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85639 2009-03-02  Bruno Haible  <bruno@clisp.org>
85641         * doc/visibility.texi: Mention libtool's -export-symbols option.
85643 2009-03-02  Jim Meyering  <meyering@redhat.com>
85645         announce-gen: new option: --no-print-checksums
85646         * build-aux/announce-gen (usage): Describe it.
85647         (print_checksums): Print a newline here, not in the [*] footnote.
85648         (main): Honor it.
85650 2009-03-01  Bruno Haible  <bruno@clisp.org>
85652         Use socklen_t in the native Windows replacements prototypes.
85653         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85654         instead of 'int'.
85655         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85656         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85657         * modules/getsockopt (Depends-on): Add socklen.
85658         * modules/setsockopt (Depends-on): Add socklen.
85660 2009-03-01  Bruno Haible  <bruno@clisp.org>
85662         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85663         least 4.2.
85665 2009-03-01  Eric Blake  <ebb9@byu.net>
85666             Bruno Haible  <bruno@clisp.org>
85668         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85669         error messages.
85670         * lib/wait-process.c (wait_subprocess): Omit error message about
85671         deadly signal sent to the child of termsigp != NULL.
85673 2009-03-01  Eric Blake  <ebb9@byu.net>
85675         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85677 2009-03-01  Bruno Haible  <bruno@clisp.org>
85679         Avoid a gcc warning.
85680         * tests/test-sched.c (b): Make global.
85681         Reported by Eric Blake.
85683 2009-01-19  Martin Lambers  <marlam@marlam.de>
85685         Provide POSIX semantics for socket timeout options on W32.
85686         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85687         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85688         * modules/setsockopt: Depend on sys_time module for struct timeval.
85689         * modules/getsockopt: Depend on sys_time module for struct timeval.
85691 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85693         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85694         __USE_GNU, for consistency with netdb.in.h.
85695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85697 2009-03-01  Bruno Haible  <bruno@clisp.org>
85699         More support for FreeMiNT.
85700         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85701         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85703 2009-03-01  Bruno Haible  <bruno@clisp.org>
85705         More support for FreeMiNT.
85706         * lib/fpurge.c (fpurge): Correct last commit.
85707         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85709 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85711         Fix unportable awk script in vc-list-files.
85712         * build-aux/vc-list-files: In the replacement awk script, use
85713         substr with a second argument of 1, not zero.
85714         Report by Simon Josefsson.
85716 2009-02-28  Bruno Haible  <bruno@clisp.org>
85718         More support for FreeMiNT.
85719         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85720         to FreeMiNT today.
85721         * lib/fwriting.c (fwriting): Likewise.
85722         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85724 2009-02-28  Bruno Haible  <bruno@clisp.org>
85726         * tests/test-freadseek.c (main): Disable test beyond end of file on
85727         FreeMiNT.
85728         * tests/test-ftello.c (main): Likewise.
85729         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85731 2009-02-28  Bruno Haible  <bruno@clisp.org>
85733         Add tentative support for FreeMiNT.
85734         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85735         * lib/fpurge.c (fpurge): Likewise.
85736         * lib/freadable.c (freadable): Likewise.
85737         * lib/freading.c (freading): Likewise.
85738         * lib/freadptr.c (freadptr): Likewise.
85739         * lib/freadseek.c (freadptrinc): Likewise.
85740         * lib/fseeko.c (rpl_fseeko): Likewise.
85741         * lib/fseterr.c (fseterr): Likewise.
85742         * lib/fwritable.c (fwritable): Likewise.
85743         * lib/fwriting.c (fwriting): Likewise.
85744         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85745         Hourihane.
85746         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85748 2009-02-28  Bruno Haible  <bruno@clisp.org>
85750         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85751         SIGCHLD.
85752         Reported by Jim Meyering.
85754 2009-02-28  Bruno Haible  <bruno@clisp.org>
85756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85757         Mention the results of these tests on various platforms.
85758         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85759         order.
85760         * doc/posix-functions/printf.texi: Likewise.
85761         * doc/posix-functions/snprintf.texi: Likewise.
85762         * doc/posix-functions/sprintf.texi: Likewise.
85763         * doc/posix-functions/vfprintf.texi: Likewise.
85764         * doc/posix-functions/vprintf.texi: Likewise.
85765         * doc/posix-functions/vsnprintf.texi: Likewise.
85766         * doc/posix-functions/vsprintf.texi: Likewise.
85767         * doc/glibc-functions/obstack_printf.texi: Likewise.
85768         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85770 2009-02-28  Bruno Haible  <bruno@clisp.org>
85772         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85773         Reported by Loïc Minier <lool@dooz.org>.
85775 2009-02-27  Bruno Haible  <bruno@clisp.org>
85777         * gnulib-tool (func_import): Make the sed expression used to create the
85778         sed script for updating the .gitignore file POSIX compliant.
85779         Reported by Eric Blake.
85781 2009-02-27  Bruno Haible  <bruno@clisp.org>
85783         * gnulib-tool (sed): Don't alias as "sed --posix".
85784         Reported by Eric Blake.
85786 2009-02-27  Bruno Haible  <bruno@clisp.org>
85788         Avoid test link errors.
85789         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85790         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85791         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85792         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85795 2009-02-27  Bruno Haible  <bruno@clisp.org>
85797         Avoid spurious "(cached)" in configure output.
85798         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85799         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85800         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85801         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85802         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85803         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85804         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85805         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85806         Reported by Eric Blake.
85808 2009-02-27  Eric Blake  <ebb9@byu.net>
85810         printf: fix regression in previous patch
85811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85813 2009-02-27  Bruno Haible  <bruno@clisp.org>
85815         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85816         value.
85817         * lib/stdint.in.h: Likewise.
85818         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85820 2009-02-27  Eric Blake  <ebb9@byu.net>
85822         doc: mention more functions added in cygwin 1.7.0
85823         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85824         addition.
85825         * doc/posix-functions/open_wmemstream.texi: Likewise.
85826         * doc/posix-functions/wcsnlen.texi: Likewise.
85827         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85828         * doc/posix-functions/wcstod.texi: Likewise.
85829         * doc/posix-functions/wcstof.texi: Likewise.
85830         * doc/posix-functions/wcstoimax.texi: Likewise.
85831         * doc/posix-functions/wcstok.texi: Likewise.
85832         * doc/posix-functions/wcstoumax.texi: Likewise.
85834         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85836         * doc/posix-functions/fprintf.texi: Update.
85837         * doc/posix-functions/printf.texi: Update.
85838         * doc/posix-functions/snprintf.texi: Update.
85839         * doc/posix-functions/sprintf.texi: Update.
85840         * doc/posix-functions/vfprintf.texi: Update.
85841         * doc/posix-functions/vprintf.texi: Update.
85842         * doc/posix-functions/vsnprintf.texi: Update.
85843         * doc/posix-functions/vsprintf.texi: Update.
85844         * doc/glibc-functions/obstack_printf.texi: Update.
85845         * doc/glibc-functions/obstack_vprintf.texi: Update.
85847 2009-02-26  Eric Blake  <ebb9@byu.net>
85849         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85850         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85851         compilation bug by using runtime conversion.
85852         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85853         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85854         * modules/ceill-tests (Files): Use nan.h.
85855         * modules/floorl-tests (Files): Likewise.
85856         * modules/frexpl-tests (Files): Likewise.
85857         * modules/isnanl-tests (Files): Likewise.
85858         * modules/ldexpl-tests (Files): Likewise.
85859         * modules/roundl-tests (Files): Likewise.
85860         * modules/truncl-tests (Files): Likewise.
85861         * tests/test-ceill.c (main): Use a working NaN.
85862         * tests/test-floorl.c (main): Likewise.
85863         * tests/test-frexpl.c (main): Likewise.
85864         * tests/test-isnan.c (test_long_double): Likewise.
85865         * tests/test-isnanl.h (main): Likewise.
85866         * tests/test-ldexpl.h (main): Likewise.
85867         * tests/test-roundl.h (main): Likewise.
85868         * tests/test-truncl.h (main): Likewise.
85869         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85871 2009-02-26  Eric Blake  <ebb9@byu.net>
85872             Bruno Haible  <bruno@clisp.org>
85874         Work around a *printf bug with %ls on Solaris.
85875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85876         precision is specified, sprintf stops converting the wide string
85877         argument when the number of bytes that have been produced by this
85878         conversion equals or exceeds the precision.
85879         * doc/posix-functions/fprintf.texi: Update.
85880         * doc/posix-functions/printf.texi: Update.
85881         * doc/posix-functions/snprintf.texi: Update.
85882         * doc/posix-functions/sprintf.texi: Update.
85883         * doc/posix-functions/vfprintf.texi: Update.
85884         * doc/posix-functions/vprintf.texi: Update.
85885         * doc/posix-functions/vsnprintf.texi: Update.
85886         * doc/posix-functions/vsprintf.texi: Update.
85887         * doc/glibc-functions/obstack_printf.texi: Update.
85888         * doc/glibc-functions/obstack_vprintf.texi: Update.
85890 2009-02-26  Eric Blake  <ebb9@byu.net>
85892         stdlib: favor compiler check of random.h
85893         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85894         to avoid an ObjC random.h installed by Swarm.
85896 2009-02-26  Bruno Haible  <bruno@clisp.org>
85898         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85899         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85900         Reported by Gary V. Vaughan <gary@gnu.org>.
85902 2009-02-26  Bruno Haible  <bruno@clisp.org>
85904         Fix *printf behaviour regarding the %ls directive.
85905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85906         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85907         NEED_PRINTF_DIRECTIVE_LS.
85908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85909         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85911         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85912         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85913         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85914         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85919         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85923         * doc/posix-functions/fprintf.texi: Update.
85924         * doc/posix-functions/printf.texi: Update.
85925         * doc/posix-functions/snprintf.texi: Update.
85926         * doc/posix-functions/sprintf.texi: Update.
85927         * doc/posix-functions/vfprintf.texi: Update.
85928         * doc/posix-functions/vprintf.texi: Update.
85929         * doc/posix-functions/vsnprintf.texi: Update.
85930         * doc/posix-functions/vsprintf.texi: Update.
85931         * doc/glibc-functions/obstack_printf.texi: Update.
85932         * doc/glibc-functions/obstack_vprintf.texi: Update.
85933         Reported by Eric Blake.
85935 2009-02-25  Bruno Haible  <bruno@clisp.org>
85937         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
85938         with known value.
85939         Reported by Gary V. Vaughan <gary@gnu.org>.
85941 2009-02-25  Bruno Haible  <bruno@clisp.org>
85943         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
85944         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
85945         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
85946         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85947         Reported by Gary V. Vaughan <gary@gnu.org>.
85949 2009-02-25  Bruno Haible  <bruno@clisp.org>
85951         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85952         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85953         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85954         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85955         Reported by Gary V. Vaughan <gary@gnu.org>.
85957 2009-02-25  Eric Blake  <ebb9@byu.net>
85959         tests: skip fseek/ftell tests if ungetc is broken
85960         * m4/ungetc.m4: New file.
85961         * modules/fseek-tests: Split test, so ungetc dependency is
85962         separate from rest of test.
85963         * modules/fseeko-tests: Likewise.
85964         * modules/ftell-tests: Likewise.
85965         * modules/ftello-tests: Likewise.
85966         * tests/test-fseek.c (main): Isolate ungetc dependency.
85967         * tests/test-fseeko.c (main): Likewise.
85968         * tests/test-ftell.c (main): Likewise.
85969         * tests/test-ftello.c (main): Likewise.
85970         * tests/test-fseek2.sh: New file.
85971         * tests/test-fseeko2.sh: Likewise.
85972         * tests/test-ftell2.sh: Likewise.
85973         * tests/test-ftello2.sh: Likewise.
85975 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85977         test-getaddrinfo: fix usage of skip return code 77
85978         * tests/test-gettaddrinfo.c: Return skip code 77 only
85979         for first occurrence of skip (4x77 is not 77)
85981 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85983         strtod: avoid C99 decl-after-statement
85984         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85986 2009-02-24  Eric Blake  <ebb9@byu.net>
85988         strtod: detect HP-UX 11.31 bug
85989         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85990         Reported by Gary V. Vaughan.
85992 2009-02-23  Bruno Haible  <bruno@clisp.org>
85994         Fix invalid read past end of memory block.
85995         * lib/vasnprintf.c (DCHAR_SET): Define.
85996         (local_wcslen): Define only when needed.
85997         (local_strnlen, local_wcsnlen): New functions.
85998         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85999         directives that involve a conversion ourselves.
86000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86001         wcsnlen, mbrtowc, wcrtomb.
86002         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86003         * tests/test-vasprintf-posix.c (test_function): Likewise.
86004         * tests/test-snprintf-posix.h (test_function): Likewise.
86005         * tests/test-sprintf-posix.h (test_function): Likewise.
86006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86008 2009-02-22  Bruno Haible  <bruno@clisp.org>
86010         Implement new clarified decomposition of Hangul syllables.
86011         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86012         of type LTV, return only a pairwise decomposition.
86013         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86014         Likewise.
86015         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86016         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86017         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86019 2009-02-22  Bruno Haible  <bruno@clisp.org>
86021         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86022         zero-length results and shrink excess allocated memory.
86023         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86024         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86025         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86026         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86027         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86028         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86029         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86030         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86031         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86032         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86033         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86034         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86036 2009-02-21  Bruno Haible  <bruno@clisp.org>
86038         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86039         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86040         spaces after a period. Put a space between a macro name and its
86041         argument list. Trivial rewordings.
86042         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86043         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86044         (main): Return 0 explicitly.
86046 2009-02-21  Bruno Haible  <bruno@clisp.org>
86048         Tests for module 'uninorm/filter'.
86049         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86050         * modules/uninorm/filter-tests: New file.
86052         New module 'uninorm/filter'.
86053         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86054         uninorm_filter_flush, uninorm_filter_free): New declarations.
86055         * lib/uninorm/uninorm-filter.c: New file.
86056         * modules/uninorm/filter: New file.
86058 2009-02-21  Bruno Haible  <bruno@clisp.org>
86060         Tests for module 'uninorm/nfkc'.
86061         * tests/uninorm/test-nfkc.c: New file.
86062         * tests/uninorm/test-u8-nfkc.c: New file.
86063         * tests/uninorm/test-u16-nfkc.c: New file.
86064         * tests/uninorm/test-u32-nfkc.c: New file.
86065         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86066         * tests/uninorm/test-u32-nfkc-big.c: New file.
86067         * modules/uninorm/nfkc-tests: New file.
86069         New module 'uninorm/nfkc'.
86070         * lib/uninorm/nfkc.c: New file.
86071         * modules/uninorm/nfkc: New file.
86073         Tests for module 'uninorm/nfkd'.
86074         * tests/uninorm/test-nfkd.c: New file.
86075         * tests/uninorm/test-u8-nfkd.c: New file.
86076         * tests/uninorm/test-u16-nfkd.c: New file.
86077         * tests/uninorm/test-u32-nfkd.c: New file.
86078         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86079         * tests/uninorm/test-u32-nfkd-big.c: New file.
86080         * modules/uninorm/nfkd-tests: New file.
86082         New module 'uninorm/nfkd'.
86083         * lib/uninorm/nfkd.c: New file.
86084         * modules/uninorm/nfkd: New file.
86086         Tests for module 'uninorm/nfc'.
86087         * tests/uninorm/test-nfc.c: New file.
86088         * tests/uninorm/test-u8-nfc.c: New file.
86089         * tests/uninorm/test-u16-nfc.c: New file.
86090         * tests/uninorm/test-u32-nfc.c: New file.
86091         * tests/uninorm/test-u32-nfc-big.sh: New file.
86092         * tests/uninorm/test-u32-nfc-big.c: New file.
86093         * modules/uninorm/nfc-tests: New file.
86095         New module 'uninorm/nfc'.
86096         * lib/uninorm/nfc.c: New file.
86097         * modules/uninorm/nfc: New file.
86099         Tests for module 'uninorm/nfd'.
86100         * tests/uninorm/test-nfd.c: New file.
86101         * tests/uninorm/test-u8-nfd.c: New file.
86102         * tests/uninorm/test-u16-nfd.c: New file.
86103         * tests/uninorm/test-u32-nfd.c: New file.
86104         * tests/uninorm/test-u32-nfd-big.sh: New file.
86105         * tests/uninorm/test-u32-nfd-big.c: New file.
86106         * tests/uninorm/test-u32-normalize-big.h: New file.
86107         * tests/uninorm/test-u32-normalize-big.c: New file.
86108         * tests/uninorm/NormalizationTest.txt: New file, created from
86109         Unicode 5.1.0 NormalizationTest.txt.
86110         * modules/uninorm/nfd-tests: New file.
86112         New module 'uninorm/nfd'.
86113         * lib/uninorm/nfd.c: New file.
86114         * modules/uninorm/nfd: New file.
86116         New module 'uninorm/u32-normalize'.
86117         * lib/uninorm/u32-normalize.c: New file.
86118         * modules/uninorm/u32-normalize: New file.
86120         New module 'uninorm/u16-normalize'.
86121         * lib/uninorm/u16-normalize.c: New file.
86122         * modules/uninorm/u16-normalize: New file.
86124         New module 'uninorm/u8-normalize'.
86125         * lib/uninorm/u8-normalize.c: New file.
86126         * lib/uninorm/normalize-internal.h: New file.
86127         * lib/uninorm/u-normalize-internal.h: New file.
86128         * modules/uninorm/u8-normalize: New file.
86130         New module 'uninorm/decompose-internal'.
86131         * lib/uninorm/decompose-internal.c: New file.
86132         * modules/uninorm/decompose-internal: New file.
86134         Tests for module 'uninorm/composition'.
86135         * tests/uninorm/test-composition.c: New file.
86136         * modules/uninorm/composition-tests: New file.
86138         New module 'uninorm/composition'.
86139         * lib/uninorm/composition.c: New file.
86140         * lib/uninorm/composition-table.gperf: New file, generated by
86141         gen-uni-tables.
86142         * modules/uninorm/composition: New file.
86144         Tests for module 'uninorm/compat-decomposition'.
86145         * tests/uninorm/test-compat-decomposition.c: New file.
86146         * modules/uninorm/compat-decomposition-tests: New file.
86148         New module 'uninorm/compat-decomposition'.
86149         * lib/uninorm/decompose-internal.h: New file.
86150         * lib/uninorm/compat-decomposition.c: New file.
86151         * modules/uninorm/compat-decomposition: New file.
86153         Tests for module 'uninorm/canonical-decomposition'.
86154         * tests/uninorm/test-canonical-decomposition.c: New file.
86155         * modules/uninorm/canonical-decomposition-tests: New file.
86157         New module 'uninorm/canonical-decomposition'.
86158         * lib/uninorm/canonical-decomposition.c: New file.
86159         * modules/uninorm/canonical-decomposition: New file.
86161         Tests for module 'uninorm/decomposition'.
86162         * tests/uninorm/test-decomposition.c: New file.
86163         * modules/uninorm/decomposition-tests: New file.
86165         New module 'uninorm/decomposition'.
86166         * lib/uninorm/decomposition.c: New file.
86167         * modules/uninorm/decomposition: New file.
86169         New module 'uninorm/decomposition-table'.
86170         * lib/uninorm/decomposition-table.h: New file.
86171         * lib/uninorm/decomposition-table.c: New file.
86172         * lib/uninorm/decomposition-table1.h: New file, generated by
86173         gen-uni-tables.
86174         * lib/uninorm/decomposition-table2.h: New file, generated by
86175         gen-uni-tables.
86176         * modules/uninorm/decomposition-table: New file.
86178         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86179         (UC_DECOMP_*): New enumeration items.
86180         (get_decomposition): New function.
86181         (struct decomp_table): New type.
86182         (output_decomposition, output_decomposition_tables): New functions.
86183         (unicode_composition_exclusions): New variable.
86184         (fill_composition_exclusions, debug_output_composition_tables): New
86185         functions.
86186         (main): Accept one more argument. Invoke fill_composition_exclusions.
86187         Output decomposition and composition tables.
86189         New module 'uninorm/base'.
86190         * lib/uninorm.h: New file.
86191         * lib/unictype.h: Update comment.
86192         * modules/uninorm/base: New file.
86194 2009-02-21  David Lutterkort  <lutter@redhat.com>
86196         Tests for module 'safe-alloc'.
86197         * tests/test-safe-alloc.c: New file.
86198         * modules/safe-alloc-tests: New file.
86200         New module 'safe-alloc'.
86201         * lib/safe-alloc.h: New file.
86202         * lib/safe-alloc.c: New file.
86203         * m4/safe-alloc.m4: New file.
86204         * modules/safe-alloc: New file.
86205         * doc/safe-alloc.texi: New file.
86206         * doc/gnulib.texi: Include it.
86207         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86208         safe-alloc.
86210 2009-02-18  Bruno Haible  <bruno@clisp.org>
86212         Fix link error on non-glibc systems.
86213         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86214         variable.
86215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86217 2009-02-18  Jim Meyering  <meyering@redhat.com>
86219         fts: avoid used-uninitialized error due to recent change
86220         * lib/fts.c (fts_read): Guard uses of the new member,
86221         parent->fts_n_dirs_remaining, since it's not relevant for
86222         the parent of a directory specified on the command-line.
86224 2009-02-17  James Youngman  <jay@gnu.org>
86225             Bruno Haible  <bruno@clisp.org>
86227         * m4/include_next.m4: Reformulate comment.
86229 2009-02-16  Jim Meyering  <meyering@redhat.com>
86231         fts: add #if guards so that the fts_lgpl module still builds
86232         * lib/fts.c: Guard just-added hash-table-using parts with
86233         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86234         Reported by Simon Josefsson.
86236 2009-02-15  Bruno Haible  <bruno@clisp.org>
86238         * modules/array-mergesort-tests: New file.
86239         * tests/test-array-mergesort.c: New file.
86241         New module 'array-mergesort'.
86242         * modules/array-mergesort: New file.
86243         * lib/array-mergesort.h: New file.
86245 2009-02-15  Bruno Haible  <bruno@clisp.org>
86247         Fix 2009-02-07 commit.
86248         * lib/gen-uni-tables.c (output_predicate, output_category,
86249         output_combclass, output_bidi_category, output_decimal_digit,
86250         output_digit, output_numeric, output_mirror, output_scripts,
86251         output_ident_category, output_simple_mapping): Fix format directives.
86252         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86254 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86256         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86257         fixes are available from IBM.
86259 2009-02-13  Jim Meyering  <meyering@redhat.com>
86261         fts: arrange not to stat non-directories in more cases
86262         This makes GNU find (when it doesn't need to stat each file)
86263         *much* more efficient at traversing reiserfs file systems.
86264         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86265         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86266         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86267         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86268         (leaf_optimization_applies): New function.
86269         (LCO_hash, LCO_compare): New helper functions.
86270         (link_count_optimize_ok): New function.
86271         (fts_stat): Initialize new member (if dir).
86272         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86273         we've just stat'ed a directory.  Skip the stat call when possible.
86274         ---
86275         Note this AFS-related exchange:
86276         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86277         and note find's pioctl call in find/fstype.c.
86278         But that is necessary only if you want to enable the
86279         optimization for AFS, and for now, I don't.
86281         fts: move a function definition "up" (no semantic change)
86282         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86283         "up" to precede upcoming use of a related function.
86285 2009-02-11  Jim Meyering  <meyering@redhat.com>
86287         fts: correct internal computation of nlinks (optimization-related)
86288         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86289         whether the current entry is a directory, so don't test it.
86291 2009-02-10  Bruno Haible  <bruno@clisp.org>
86293         Tests for module 'uniwbrk/ulc-wordbreaks'.
86294         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86295         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86296         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86298         Tests for module 'uniwbrk/u32-wordbreaks'.
86299         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86300         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86302         Tests for module 'uniwbrk/u16-wordbreaks'.
86303         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86304         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86306         Tests for module 'uniwbrk/u8-wordbreaks'.
86307         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86308         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86310 2009-02-10  Bruno Haible  <bruno@clisp.org>
86312         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86313         property.
86314         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86315         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86316         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86318 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86320         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86321         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86323 2009-02-10  Bruno Haible  <bruno@clisp.org>
86325         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86326         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86327         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86328         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86329         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86330         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86332 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86334         * lib/sockets.h (gl_fd_to_handle): New function.
86336         * tests/test-sockets.c: Call gl_fd_to_handle.
86338 2009-02-09  Bruno Haible  <bruno@clisp.org>
86340         * doc/havelib.texi: Document the conventions on bi-arch systems.
86342 2009-02-08  Bruno Haible  <bruno@clisp.org>
86344         Document the AC_LIB_LINKFLAGS macro.
86345         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86346         * doc/gnulib.texi: Include it.
86348 2009-02-08  Bruno Haible  <bruno@clisp.org>
86350         Fix wrong order of sections, compared to TOC.
86351         * doc/gnulib.texi: Include relocatable-maint.texi after the
86352         "Regular expressions" node, not before.
86354 2009-02-08  Bruno Haible  <bruno@clisp.org>
86356         Tests for module 'unicase/totitle'.
86357         * modules/unicase/totitle-tests: New file.
86359         Tests for module 'unicase/tolower'.
86360         * modules/unicase/tolower-tests: New file.
86362         Tests for module 'unicase/toupper'.
86363         * modules/unicase/toupper-tests: New file.
86364         * tests/unicase/test-mapping-part1.h: New file.
86365         * tests/unicase/test-mapping-part2.h: New file.
86367         New module 'unicase/totitle'.
86368         * modules/unicase/totitle: New file.
86369         * lib/unicase/totitle.c: New file.
86371         New module 'unicase/tolower'.
86372         * modules/unicase/tolower: New file.
86373         * lib/unicase/tolower.c: New file.
86375         New module 'unicase/toupper'.
86376         * modules/unicase/toupper: New file.
86377         * lib/unicase/toupper.c: New file.
86378         * lib/unicase/simple-mapping.h: New file.
86380         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86381         (mapping_table): New structure.
86382         (output_simple_mapping): New function.
86383         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86384         * modules/gen-uni-tables (Description): Update.
86385         * lib/unicase/toupper.h: New file, automatically generated by
86386         gen-uni-tables.
86387         * lib/unicase/tolower.h: New file, automatically generated by
86388         gen-uni-tables.
86389         * lib/unicase/totitle.h: New file, automatically generated by
86390         gen-uni-tables.
86391         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86392         gen-uni-tables.
86393         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86394         gen-uni-tables.
86395         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86396         gen-uni-tables.
86398         New module 'unicase/base'.
86399         * modules/unicase/base: New file.
86400         * lib/unicase.h: New file.
86402 2009-02-08  Bruno Haible  <bruno@clisp.org>
86404         New module 'uniwbrk/ulc-wordbreaks'.
86405         * modules/uniwbrk/ulc-wordbreaks: New file.
86406         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86408         New module 'uniwbrk/u32-wordbreaks'.
86409         * modules/uniwbrk/u32-wordbreaks: New file.
86410         * lib/uniwbrk/u32-wordbreaks.c: New file.
86412         New module 'uniwbrk/u16-wordbreaks'.
86413         * modules/uniwbrk/u16-wordbreaks: New file.
86414         * lib/uniwbrk/u16-wordbreaks.c: New file.
86416         New module 'uniwbrk/u8-wordbreaks'.
86417         * modules/uniwbrk/u8-wordbreaks: New file.
86418         * lib/uniwbrk/u8-wordbreaks.c: New file.
86419         * lib/uniwbrk/u-wordbreaks.h: New file.
86421         New module 'uniwbrk/table'.
86422         * modules/uniwbrk/table: New file.
86423         * lib/uniwbrk/wbrktable.h: New file.
86424         * lib/uniwbrk/wbrktable.c: New file.
86426         New module 'uniwbrk/wordbreak-property'.
86427         * modules/uniwbrk/wordbreak-property: New file.
86428         * lib/uniwbrk/wordbreak-property.c: New file.
86430         * lib/gen-uni-tables.c (WBP_*): New enum items.
86431         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86432         (unicode_org_wbp): New variable.
86433         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86434         New functions.
86435         (wbp_table): New structure.
86436         (output_wbp, output_wbrk_tables): New functions.
86437         (main): Accept additional argument. Invoke fill_org_wbp,
86438         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86439         output_wbrk_tables.
86440         * modules/gen-uni-tables (Description): Update.
86441         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86442         gen-uni-tables.
86444         New module 'uniwbrk/base'.
86445         * modules/uniwbrk/base: New file.
86446         * lib/uniwbrk.h: New file.
86448 2009-02-08  Bruno Haible  <bruno@clisp.org>
86450         Update to Unicode 5.1.0.
86451         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86452         U+2185..U+2188.
86453         (is_property_default_ignorable_code_point): Don't include characters
86454         of category Cc or Cs and not-a-characters.
86455         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86456         U+0D79, U+109E, U+109F, U+A60C.
86457         * lib/unictype/bidi_of.h: Regenerated.
86458         * lib/unictype/blocks.h: Regenerated.
86459         * lib/unictype/categ_C.h: Regenerated.
86460         * lib/unictype/categ_Cf.h: Regenerated.
86461         * lib/unictype/categ_Cn.h: Regenerated.
86462         * lib/unictype/categ_L.h: Regenerated.
86463         * lib/unictype/categ_Ll.h: Regenerated.
86464         * lib/unictype/categ_Lm.h: Regenerated.
86465         * lib/unictype/categ_Lo.h: Regenerated.
86466         * lib/unictype/categ_Lu.h: Regenerated.
86467         * lib/unictype/categ_M.h: Regenerated.
86468         * lib/unictype/categ_Mc.h: Regenerated.
86469         * lib/unictype/categ_Me.h: Regenerated.
86470         * lib/unictype/categ_Mn.h: Regenerated.
86471         * lib/unictype/categ_N.h: Regenerated.
86472         * lib/unictype/categ_Nd.h: Regenerated.
86473         * lib/unictype/categ_Nl.h: Regenerated.
86474         * lib/unictype/categ_No.h: Regenerated.
86475         * lib/unictype/categ_P.h: Regenerated.
86476         * lib/unictype/categ_Pd.h: Regenerated.
86477         * lib/unictype/categ_Pe.h: Regenerated.
86478         * lib/unictype/categ_Pf.h: Regenerated.
86479         * lib/unictype/categ_Pi.h: Regenerated.
86480         * lib/unictype/categ_Po.h: Regenerated.
86481         * lib/unictype/categ_Ps.h: Regenerated.
86482         * lib/unictype/categ_S.h: Regenerated.
86483         * lib/unictype/categ_Sk.h: Regenerated.
86484         * lib/unictype/categ_Sm.h: Regenerated.
86485         * lib/unictype/categ_So.h: Regenerated.
86486         * lib/unictype/categ_of.h: Regenerated.
86487         * lib/unictype/combining.h: Regenerated.
86488         * lib/unictype/ctype_alnum.h: Regenerated.
86489         * lib/unictype/ctype_alpha.h: Regenerated.
86490         * lib/unictype/ctype_graph.h: Regenerated.
86491         * lib/unictype/ctype_lower.h: Regenerated.
86492         * lib/unictype/ctype_print.h: Regenerated.
86493         * lib/unictype/ctype_punct.h: Regenerated.
86494         * lib/unictype/ctype_upper.h: Regenerated.
86495         * lib/unictype/decdigit.h: Regenerated.
86496         * lib/unictype/digit.h: Regenerated.
86497         * lib/unictype/mirror.h: Regenerated.
86498         * lib/unictype/numeric.h: Regenerated.
86499         * lib/unictype/pr_alphabetic.h: Regenerated.
86500         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86501         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86502         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86503         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86504         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86505         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86506         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86507         * lib/unictype/pr_combining.h: Regenerated.
86508         * lib/unictype/pr_dash.h: Regenerated.
86509         * lib/unictype/pr_decimal_digit.h: Regenerated.
86510         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86511         * lib/unictype/pr_deprecated.h: Regenerated.
86512         * lib/unictype/pr_diacritic.h: Regenerated.
86513         * lib/unictype/pr_extender.h: Regenerated.
86514         * lib/unictype/pr_format_control.h: Regenerated.
86515         * lib/unictype/pr_grapheme_base.h: Regenerated.
86516         * lib/unictype/pr_grapheme_extend.h: Regenerated.
86517         * lib/unictype/pr_grapheme_link.h: Regenerated.
86518         * lib/unictype/pr_id_continue.h: Regenerated.
86519         * lib/unictype/pr_id_start.h: Regenerated.
86520         * lib/unictype/pr_ideographic.h: Regenerated.
86521         * lib/unictype/pr_ignorable_control.h: Regenerated.
86522         * lib/unictype/pr_lowercase.h: Regenerated.
86523         * lib/unictype/pr_math.h: Regenerated.
86524         * lib/unictype/pr_numeric.h: Regenerated.
86525         * lib/unictype/pr_other_alphabetic.h: Regenerated.
86526         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
86527         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
86528         * lib/unictype/pr_other_id_continue.h: Regenerated.
86529         * lib/unictype/pr_other_lowercase.h: Regenerated.
86530         * lib/unictype/pr_other_math.h: Regenerated.
86531         * lib/unictype/pr_punctuation.h: Regenerated.
86532         * lib/unictype/pr_sentence_terminal.h: Regenerated.
86533         * lib/unictype/pr_soft_dotted.h: Regenerated.
86534         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
86535         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
86536         * lib/unictype/pr_unified_ideograph.h: Regenerated.
86537         * lib/unictype/pr_uppercase.h: Regenerated.
86538         * lib/unictype/pr_xid_continue.h: Regenerated.
86539         * lib/unictype/pr_xid_start.h: Regenerated.
86540         * lib/unictype/pr_zero_width.h: Regenerated.
86541         * lib/unictype/scripts.h: Regenerated.
86542         * lib/unictype/scripts_byname.gperf: Regenerated.
86543         * lib/unictype/sy_java_ident.h: Regenerated.
86544         * lib/unilbrk/lbrkprop1.h: Regenerated.
86545         * lib/unilbrk/lbrkprop2.h: Regenerated.
86546         * tests/unictype/test-categ_C.c: Regenerated.
86547         * tests/unictype/test-categ_Cf.c: Regenerated.
86548         * tests/unictype/test-categ_Cn.c: Regenerated.
86549         * tests/unictype/test-categ_L.c: Regenerated.
86550         * tests/unictype/test-categ_Ll.c: Regenerated.
86551         * tests/unictype/test-categ_Lm.c: Regenerated.
86552         * tests/unictype/test-categ_Lo.c: Regenerated.
86553         * tests/unictype/test-categ_Lu.c: Regenerated.
86554         * tests/unictype/test-categ_M.c: Regenerated.
86555         * tests/unictype/test-categ_Mc.c: Regenerated.
86556         * tests/unictype/test-categ_Me.c: Regenerated.
86557         * tests/unictype/test-categ_Mn.c: Regenerated.
86558         * tests/unictype/test-categ_N.c: Regenerated.
86559         * tests/unictype/test-categ_Nd.c: Regenerated.
86560         * tests/unictype/test-categ_Nl.c: Regenerated.
86561         * tests/unictype/test-categ_No.c: Regenerated.
86562         * tests/unictype/test-categ_P.c: Regenerated.
86563         * tests/unictype/test-categ_Pd.c: Regenerated.
86564         * tests/unictype/test-categ_Pe.c: Regenerated.
86565         * tests/unictype/test-categ_Pf.c: Regenerated.
86566         * tests/unictype/test-categ_Pi.c: Regenerated.
86567         * tests/unictype/test-categ_Po.c: Regenerated.
86568         * tests/unictype/test-categ_Ps.c: Regenerated.
86569         * tests/unictype/test-categ_S.c: Regenerated.
86570         * tests/unictype/test-categ_Sk.c: Regenerated.
86571         * tests/unictype/test-categ_Sm.c: Regenerated.
86572         * tests/unictype/test-categ_So.c: Regenerated.
86573         * tests/unictype/test-ctype_alnum.c: Regenerated.
86574         * tests/unictype/test-ctype_alpha.c: Regenerated.
86575         * tests/unictype/test-ctype_graph.c: Regenerated.
86576         * tests/unictype/test-ctype_lower.c: Regenerated.
86577         * tests/unictype/test-ctype_print.c: Regenerated.
86578         * tests/unictype/test-ctype_punct.c: Regenerated.
86579         * tests/unictype/test-ctype_upper.c: Regenerated.
86580         * tests/unictype/test-decdigit.h: Regenerated.
86581         * tests/unictype/test-digit.h: Regenerated.
86582         * tests/unictype/test-numeric.h: Regenerated.
86583         * tests/unictype/test-pr_alphabetic.c: Regenerated.
86584         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
86585         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
86586         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
86587         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
86588         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
86589         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
86590         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
86591         * tests/unictype/test-pr_combining.c: Regenerated.
86592         * tests/unictype/test-pr_dash.c: Regenerated.
86593         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86594         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86595         * tests/unictype/test-pr_deprecated.c: Regenerated.
86596         * tests/unictype/test-pr_diacritic.c: Regenerated.
86597         * tests/unictype/test-pr_extender.c: Regenerated.
86598         * tests/unictype/test-pr_format_control.c: Regenerated.
86599         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86600         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86601         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86602         * tests/unictype/test-pr_id_continue.c: Regenerated.
86603         * tests/unictype/test-pr_id_start.c: Regenerated.
86604         * tests/unictype/test-pr_ideographic.c: Regenerated.
86605         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86606         * tests/unictype/test-pr_lowercase.c: Regenerated.
86607         * tests/unictype/test-pr_math.c: Regenerated.
86608         * tests/unictype/test-pr_numeric.c: Regenerated.
86609         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
86610         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
86611         Regenerated.
86612         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86613         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86614         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86615         * tests/unictype/test-pr_other_math.c: Regenerated.
86616         * tests/unictype/test-pr_punctuation.c: Regenerated.
86617         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86618         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86619         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86620         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86621         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86622         * tests/unictype/test-pr_uppercase.c: Regenerated.
86623         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86624         * tests/unictype/test-pr_xid_start.c: Regenerated.
86625         * tests/unictype/test-pr_zero_width.c: Regenerated.
86627         Update to Unicode 5.1.0.
86628         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86629         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86630         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86631         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86632         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86633         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86634         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86635         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86636         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86637         (nonspacing_table_ind): Update.
86638         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86640         Update to Unicode 5.1.0.
86641         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86642         code transform.
86643         * lib/uniname/uniname.c (unicode_character_name,
86644         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86645         * lib/uniname/uninames.h: Regenerated.
86646         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86648 2009-02-07  Bruno Haible  <bruno@clisp.org>
86650         Merge gen-ctype and gen-lbrk into a single program.
86651         * lib/gen-uni-tables.c: New file, incorporating
86652         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86653         Add directory prefixes to the names of the generated files.
86654         * lib/unictype/gen-ctype.c: Remove file.
86655         * lib/unilbrk/gen-lbrk.c: Remove file.
86656         * modules/gen-uni-tables: New file.
86657         * modules/unictype/gen-ctype: Remove file.
86658         * modules/unilbrk/gen-lbrk: Remove file.
86660 2009-02-07  Bruno Haible  <bruno@clisp.org>
86662         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86664         New module 'unistr/u32-strcoll'.
86665         * modules/unistr/u32-strcoll: New file.
86666         * lib/unistr/u32-strcoll.c: New file.
86668         New module 'unistr/u16-strcoll'.
86669         * modules/unistr/u16-strcoll: New file.
86670         * lib/unistr/u16-strcoll.c: New file.
86672         New module 'unistr/u8-strcoll'.
86673         * modules/unistr/u8-strcoll: New file.
86674         * lib/unistr/u8-strcoll.c: New file.
86675         * lib/unistr/u-strcoll.h: New file.
86677 2009-02-07  Bruno Haible  <bruno@clisp.org>
86679         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86680         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86681         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86682         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86683         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86684         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86686 2009-02-07  Bruno Haible  <bruno@clisp.org>
86688         Make 64-bit clean.
86689         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86690         output_combclass, output_bidi_category, output_decimal_digit,
86691         output_digit, output_numeric, output_mirror, output_scripts,
86692         output_ident_category): Use proper width specifier in format strings.
86694 2009-02-07  Bruno Haible  <bruno@clisp.org>
86696         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86697         failure behaviour.
86699 2009-02-07  Jim Meyering  <meyering@redhat.com>
86701         regex: avoid compilation failure with upcoming gcc-4.4
86702         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86703         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86704         "... error: integer overflow in preprocessor expression".
86706 2009-02-05  Ben Pfaff  <blp@gnu.org>
86708         Fix link errors on Windows when close module is used.
86709         * modules/close: Add $(LIB_CLOSE) to Link section.
86710         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86711         $(LIB_CLOSE) on Windows.
86713 2009-02-05  Jim Meyering  <meyering@redhat.com>
86715         still avoid unused-parameter warnings, but do it cleanly
86716         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86717         (get_fs_usage): Cast to void instead.
86718         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86719         (dev_from_mount_options, read_file_system_list): Cast to void.
86720         Prompted by Bruno Haible.
86722 2009-02-04  Jim Meyering  <meyering@redhat.com>
86724         fsusage.c: correct copyright year
86725         * lib/fsusage.c: Reflect year in which the change is pushed into
86727         avoid misc. warnings
86728         * lib/fsusage.c (UNUSED_PARAM): Define.
86729         (get_fs_usage): Mark parameter "disk" as unused.
86730         * lib/getugroups.c (getgrent): Use "void" in prototype.
86731         * lib/mountlist.c: Mark unused parameters.
86732         (read_file_system_list): Declare a local with "const".
86733         * lib/nanosleep.c (getnow): Declare static.
86734         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86736         dirfd: set errno upon failure
86737         * lib/dirfd.c: Include <errno.h>.
86738         Set errno to ENOTSUP when returning -1.
86739         * modules/dirfd (Depends-on): Add errno.
86740         Suggested by John Kodis <kodis@comcast.net>.
86742 2009-02-01  Bruno Haible  <bruno@clisp.org>
86744         Don't assume sizeof (long) >= sizeof (void *).
86745         * lib/memcmp.c: Include stdint.h.
86746         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86747         srcp2 to 'const byte *'.
86748         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86749         types to uintptr_t.
86750         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86751         * modules/memcmp (Depends-on): Add stdint.
86752         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86754 2009-01-30  Eric Blake  <ebb9@byu.net>
86756         fix more require-before-expand issues
86757         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86758         expand, AC_PROG_AWK.
86759         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86761 2009-01-28  Eric Blake  <ebb9@byu.net>
86763         version-etc: use consistent URL formatting
86764         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86765         Improve formatting.  Use fputs for string without %.
86767 2009-01-28  Jim Meyering  <meyering@redhat.com>
86769         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86770         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86771         "underquoted definition of NAME" from autoconf-2.59.
86773 2009-01-28  Bruno Haible  <bruno@clisp.org>
86775         * doc/gnulib.texi: Add "Obsolete modules" to index.
86777 2009-01-28  Jim Meyering  <meyering@redhat.com>
86779         useless-if-before-free: recognize more variants
86780         * build-aux/useless-if-before-free: Also recognize e.g.,
86781         if (NULL != p) free (p);
86783 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86785         test-getaddrinfo: skip (don't fail) this test when there's no network
86786         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86787         on the presumption that it means you lack network access.
86789 2009-01-26  Jim Meyering  <meyering@redhat.com>
86791         fflush: avoid warnings on modern systems
86792         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86793         pos and result, into scopes where they're used.
86795 2009-01-26  Eric Blake  <ebb9@byu.net>
86797         Silence warning reintroduced by recent extensions patch.
86798         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86799         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86800         autoconf.
86802         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86803         * m4/00gnulib.m4: New file.
86804         * gnulib-tool (func_get_filelist): Always use it.
86805         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86806         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86808 2009-01-25  Bruno Haible  <bruno@clisp.org>
86810         Make test-quotearg work on MacOS X and AIX.
86811         * tests/test-quotearg.sh: New file.
86812         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86813         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86814         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86815         include <libintl.h>.
86816         (fake_locale): Remove variable.
86817         (gettext, dgettext, dcgettext): Remove functions.
86818         (main): Instead of setting a fake locale, set a real locale. Call
86819         textdomain and bindtextdomain.
86820         * modules/quotearg-tests (Files): Add the new files.
86821         (Depends-on): Add gettext, setenv, unsetenv.
86822         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86823         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86824         Augment TESTS_ENVIRONMENT.
86826 2009-01-25  Bruno Haible  <bruno@clisp.org>
86828         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86829         fr_FR.ISO8859-1 locale on MacOS X.
86830         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86831         ja_JP.eucJP locale on MacOS X.
86832         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86833         zh_CN.GB18030 locale on MacOS X.
86835 2009-01-25  Bruno Haible  <bruno@clisp.org>
86837         Avoid link errors on MacOS X 10.3.
86838         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86839         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86841 2009-01-25  Bruno Haible  <bruno@clisp.org>
86843         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86844         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86845         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86846         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86847         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86848         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86849         posix_spawnattr_init, posix_spawnattr_setsigmask,
86850         posix_spawnattr_setflags, posix_spawnattr_destroy.
86852         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86853         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86854         * modules/execute (Files): Remove m4/posix_spawn.m4.
86855         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86856         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86857         posix_spawnattr_init, posix_spawnattr_setsigmask,
86858         posix_spawnattr_setflags, posix_spawnattr_destroy.
86860 2009-01-25  Bruno Haible  <bruno@clisp.org>
86862         * lib/glthread/threadlib.c: Include <stdlib.h>.
86864 2009-01-25  Bruno Haible  <bruno@clisp.org>
86866         * lib/glthread/threadlib.c (dummy): New declaration.
86868 2009-01-25  Bruno Haible  <bruno@clisp.org>
86870         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86871         multibyte characters also for the GB18030 encoding. Don't crash when
86872         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86874 2009-01-25  Bruno Haible  <bruno@clisp.org>
86876         Avoid redefining 'struct random_data' on OSF/1 5.1.
86877         * lib/stdlib.in.h: Include <random.h> if it exists.
86878         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86879         HAVE_RANDOM_H. Include <random.h> when testing whether
86880         'struct random_data' exists.
86881         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86883 2009-01-25  Bruno Haible  <bruno@clisp.org>
86885         Don't install charset.alias on MacOS X >= 10.3.
86886         * lib/localcharset.c (DARWIN7): New macro.
86887         (get_charset_aliases): Hardcode the result for Darwin7.
86888         * modules/localcharset (install-exec-local): Don't install
86889         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86891 2009-01-25  Bruno Haible  <bruno@clisp.org>
86893         Don't install charset.alias on mingw and Cygwin.
86894         * modules/localcharset (install-exec-local): Don't install
86895         charset.alias on mingw and Cygwin, if the file does not yet exist.
86896         The result for these platforms is hardcoded in localcharset.c.
86898 2009-01-25  Bruno Haible  <bruno@clisp.org>
86900         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86902         before requiring AC_USE_SYSTEM_EXTENSIONS.
86904 2009-01-25  Jim Meyering  <meyering@redhat.com>
86906         c-strtod: avoid warnings
86907         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86908         "assignment discards qualifiers from pointer target type" warnings.
86910 2009-01-24  Bruno Haible  <bruno@clisp.org>
86912         Add support for non-UTF-8 locales on MacOS X.
86913         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86914         canonical encodings. For Darwin 7 and newer, don't map traditional
86915         encodings to UTF-8.
86916         Reported by Vincent Lefevre <vincent@vinc17.org>
86917         at <http://savannah.gnu.org/bugs/?25235>.
86919 2009-01-24  Bruno Haible  <bruno@clisp.org>
86921         * doc/gnulib.texi (Obsolete modules): New section.
86922         Reported by Mike Frysinger <vapier@gentoo.org>.
86924 2009-01-24  Bruno Haible  <bruno@clisp.org>
86926         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86927         (%.dvi): New rule.
86929 2009-01-24  Bruno Haible  <bruno@clisp.org>
86931         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86932         Reported by Eric Blake.
86934 2009-01-24  Bruno Haible  <bruno@clisp.org>
86936         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
86937         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
86938         Reported by Gary V. Vaughan <gary@gnu.org>.
86940 2009-01-24  Bruno Haible  <bruno@clisp.org>
86942         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
86944 2009-01-23  Bruno Haible  <bruno@clisp.org>
86946         Make c-strtod, c-strtold usable in libraries.
86947         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86948         (C_STRTOD): Call strdup instead of xstrdup.
86949         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86950         * modules/c-strtold (Depends-on): Likewise.
86951         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86952         * NEWS: Mention the change.
86953         Reported by Michael Gold <mgold@ncf.ca>.
86955 2009-01-23  Jim Meyering  <meyering@redhat.com>
86957         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86958         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86959         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86961 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86963         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86964         GNU CoreUtils.
86965         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86966         * modules/version-etc (Description): Update.
86968 2009-01-22  Bruno Haible  <bruno@clisp.org>
86970         Cache the C locale object.
86971         * lib/c-strtod.c (c_locale_cache): New variable.
86972         (c_locale): New function.
86973         (C_STRTOD): Use it, and don't call freelocale.
86974         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86975         Suggested by Paolo Bonzini.
86977 2009-01-21  Bruno Haible  <bruno@clisp.org>
86979         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86980         conditions other than overflow.
86982 2009-01-21  Bruno Haible  <bruno@clisp.org>
86984         * lib/c-strtod.c: Include errno.h.
86985         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86986         value from STRTOD_L and STRTOD.
86988 2009-01-21  Bruno Haible  <bruno@clisp.org>
86989         and Jim Meyering  <meyering@redhat.com>
86991         nanosleep: skip configure test (fail it) for apple universal builds
86992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86993         universal builds, assume that nanosleep does not work.
86994         * modules/nanosleep (Depends-on): Add multiarch.
86996         mktime: skip configure test (fail it) for apple universal builds
86997         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86998         universal builds, assume that mktime does not work.
86999         * modules/mktime (Depends-on): Add multiarch.
87001 2009-01-21  Eric Blake  <ebb9@byu.net>
87003         multiarch: avoid expand-before-require warning
87004         * modules/multiarch (configure.ac): Require, rather than expand,
87005         gl_MULTIARCH.
87006         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87007         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87008         enforce that all clients require it.  Partial reversion of
87009         2008-12-29 patch.
87011         error: avoid expand-before-require warning
87012         * modules/errno (configure.ac): Require, rather than expand,
87013         gl_HEADER_ERRNO_H.
87014         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87015         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87016         enforce that all clients require it.
87018         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87019         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87020         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87021         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87023 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87025         Revert:
87026         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87028         regex: do not depend on obsolete modules.
87029         * modules/regex: Remove memcmp and memmove.
87031 2009-01-20  Bruno Haible  <bruno@clisp.org>
87033         Make the 'link' module link on Windows NT 4.
87034         * lib/link.c (_WIN32_WINNT): Don't define.
87035         (CreateHardLinkFuncType): New type.
87036         (CreateHardLinkFunc, initialized): New variables.
87037         (initialize): New function.
87038         (link): Invoke CreateHardLink indirectly through the function pointer.
87040 2009-01-20  Bruno Haible  <bruno@clisp.org>
87042         Fix compilation failure on mingw.
87043         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87045 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87047         * doc/c-strtod.texi: Mention a couple of restrictions.
87049 2009-01-20  Jim Meyering  <meyering@redhat.com>
87051         gettimeofday: move more declarations out of functions
87052         * lib/gettimeofday.c: Move extern declarations of tzset and
87053         gmtime out of containing functions.  Prompted by Bruno Haible.
87055 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87057         regex: do not depend on obsolete modules.
87058         * modules/regex: Remove memcmp and memmove.
87060 2009-01-19  Bruno Haible  <bruno@clisp.org>
87062         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87063         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87064         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87065         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87066         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87068 2009-01-19  Bruno Haible  <bruno@clisp.org>
87070         * tests/test-link.c: Include <errno.h>.
87071         (main): Exit with code 77 when a hard link cannot be created due to
87072         the file system.
87073         * tests/test-link.sh: Skip test when a hard link cannot be created due
87074         to the file system.
87075         Suggested by Eric Blake.
87077 2009-01-19  Martin Lambers  <marlam@marlam.de>
87079         * modules/link-tests: New file.
87080         * tests/test-link.sh: New file.
87081         * tests/test-link.c: New file.
87083 2009-01-19  Eric Blake  <ebb9@byu.net>
87085         doc: mention another function added in cygwin 1.7.0
87086         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87087         Another new function in cygwin 1.7.
87089 2009-01-19  Bruno Haible  <bruno@clisp.org>
87091         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87092         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87093         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87094         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87095         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87096         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87097         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87098         * m4/md4.m4 (gl_MD4): Likewise.
87099         * m4/md5.m4 (gl_MD5): Likewise.
87100         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87101         * m4/sha1.m4 (gl_SHA1): Likewise.
87102         * m4/sha256.m4 (gl_SHA256): Likewise.
87103         * m4/sha512.m4 (gl_SHA512): Likewise.
87105 2009-01-19  Bruno Haible  <bruno@clisp.org>
87107         * modules/uniname/uniname-tests (Depends-on): Add progname.
87108         * tests/uniname/test-uninames.c: Include progname.h.
87109         (main): Call set_program_name.
87111         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87112         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87113         (main): Call set_program_name.
87115         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87116         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87117         (main): Call set_program_name.
87119         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87120         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87121         (main): Call set_program_name.
87123         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87124         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87125         (main): Call set_program_name.
87127         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87128         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87129         (main): Call set_program_name.
87131         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87132         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87133         (main): Call set_program_name.
87135         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87136         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87137         (main): Call set_program_name.
87139         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87140         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87141         (main): Call set_program_name.
87143 2009-01-19  Eric Blake  <ebb9@byu.net>
87145         test-unistd: test previous patch
87146         * tests/test-unistd.c: Test *_FILENO macros.
87148         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87149         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87150         Guarantee a definition.
87151         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87152         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87153         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87154         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87155         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87156         Likewise.
87157         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87158         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87159         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87160         Likewise.
87161         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87162         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87163         (STDERR_FILENO): Likewise.
87164         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87165         (STDERR_FILENO): Likewise.
87166         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87167         (STDERR_FILENO): Likewise.
87168         Reported by Elbert Pol.
87170 2009-01-19  Eric Blake  <ebb9@byu.net>
87172         doc: mention more functions added in cygwin 1.7.0
87173         * doc/posix-functions/abort.texi (abort): Update wording related
87174         to cygwin.
87175         * doc/posix-functions/daylight.texi (daylight): Likewise.
87176         * doc/posix-functions/optarg.texi (optarg): Likewise.
87177         * doc/posix-functions/optarg.texi (opterr): Likewise.
87178         * doc/posix-functions/optarg.texi (optind): Likewise.
87179         * doc/posix-functions/optarg.texi (optopt): Likewise.
87180         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87181         worked in 1.5.x, and was withdrawn in 1.7.
87182         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87183         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87184         cygwin versions.
87185         * doc/posix-functions/perror.texi (perror): Likewise.
87186         * doc/posix-functions/printf.texi (printf): Likewise.
87187         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87188         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87189         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87190         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87191         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87192         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87193         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87194         Likewise.
87195         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87196         Likewise.
87197         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87198         this function.
87199         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87200         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87201         Likewise.
87202         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87203         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87204         * doc/posix-functions/confstr.texi (confstr): Likewise.
87205         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87206         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87207         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87208         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87209         * doc/posix-functions/fputws.texi (fputws): Likewise.
87210         * doc/posix-functions/fwide.texi (fwide): Likewise.
87211         * doc/posix-functions/getwc.texi (getwc): Likewise.
87212         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87213         * doc/posix-functions/putwc.texi (putwc): Likewise.
87214         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87215         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87216         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87217         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87218         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87219         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87220         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87221         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87222         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87223         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87224         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87226 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87228         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87229         * lib/ioctl.c: Include <sys/ioctl.h>.
87231 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87233         * modules/getdate-tests (Depends-on): Add progname.
87234         * tests/test-getdate.c: Use progname module, to avoid link errors
87235         on non-glibc systems.
87237 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87239         * modules/filenamecat-tests (Depends-on): Add progname.
87240         * modules/fstrcmp-tests (Depends-on): Likewise.
87242         * tests/test-filenamecat.c: Use progname module, to avoid link
87243         errors on non-glibc systems.
87244         * tests/test-fstrcmp.c: Likewise.
87246 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87248         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87249         * lib/gettimeofday.c: Move extern declaration out of function.
87251 2009-01-18  Bruno Haible  <bruno@clisp.org>
87253         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87254         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87255         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87257 2009-01-18  Bruno Haible  <bruno@clisp.org>
87259         * lib/strftime.c (MEMPCPY): Remove unused macro.
87260         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87262 2009-01-18  Martin Lambers  <marlam@marlam.de>
87264         New module 'link'.
87265         * lib/unistd.in.h (link): New declaration.
87266         * lib/link.c: New file.
87267         * m4/link.m4: New file.
87268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87269         HAVE_LINK.
87270         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87271         * modules/link: New file.
87272         * doc/posix-functions/link.texi: Mention the new module.
87274 2009-01-18  Bruno Haible  <bruno@clisp.org>
87276         * tests/test-avltree_list.c (main): Call set_program_name.
87277         * tests/test-avltree_oset.c (main): Likewise.
87278         * tests/test-obstack-printf.c: Include progname.h.
87279         (main): Call set_program_name.
87280         * tests/test-quotearg.c: Include progname.h.
87281         (main): Call set_program_name.
87282         * tests/test-xmemdup0.c: Include progname.h.
87283         (main): Call set_program_name.
87285 2009-01-18  Bruno Haible  <bruno@clisp.org>
87287         New module 'alphasort'.
87288         * lib/dirent.in.h (alphasort): New declaration.
87289         * lib/alphasort.c: New file, from glibc with modifications.
87290         * m4/alphasort.m4: New file.
87291         * modules/alphasort: New file.
87292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87293         HAVE_ALPHASORT.
87294         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87295         HAVE_ALPHASORT.
87296         * doc/posix-functions/alphasort.texi: Mention the new module and the
87297         portability problems.
87299 2009-01-18  Bruno Haible  <bruno@clisp.org>
87301         New module 'scandir'.
87302         * lib/dirent.in.h (scandir): New declaration.
87303         * lib/scandir.c: New file, from glibc with modifications.
87304         * m4/scandir.m4: New file.
87305         * modules/scandir: New file.
87306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87307         HAVE_SCANDIR.
87308         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87309         HAVE_SCANDIR.
87310         * doc/posix-functions/scandir.texi: Mention the new module and the
87311         portability problems.
87313 2009-01-17  Bruno Haible  <bruno@clisp.org>
87315         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87316         Update documentation.
87317         (func_remove_suffix): Escape all dots in the suffix. Update
87318         documentation.
87319         (func_filter_filelist): Update documentation.
87320         Reported by Ralf Wildenhues.
87322 2009-01-17  Bruno Haible  <bruno@clisp.org>
87324         * modules/dprintf-posix-tests: New file.
87325         * tests/test-dprintf-posix.sh: New file.
87326         * tests/test-dprintf-posix.c: New file.
87328         New modules 'dprintf', 'dprintf-posix'.
87329         * lib/stdio.in.h (dprintf): New declaration.
87330         * lib/dprintf.c: New file.
87331         * m4/dprintf.m4: New file.
87332         * m4/dprintf-posix.m4: New file.
87333         * modules/dprintf: New file.
87334         * modules/dprintf-posix: New file.
87335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87336         HAVE_DPRINTF, REPLACE_DPRINTF.
87337         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87338         HAVE_DPRINTF, REPLACE_DPRINTF.
87339         * doc/posix-functions/dprintf.texi: Mention the new modules.
87341 2009-01-17  Bruno Haible  <bruno@clisp.org>
87343         * modules/vdprintf-posix-tests: New file.
87344         * tests/test-vdprintf-posix.sh: New file.
87345         * tests/test-vdprintf-posix.c: New file.
87347         New modules 'vdprintf', 'vdprintf-posix'.
87348         * lib/stdio.in.h (vdprintf): New declaration.
87349         * lib/vdprintf.c: New file.
87350         * m4/vdprintf.m4: New file.
87351         * m4/vdprintf-posix.m4: New file.
87352         * modules/vdprintf: New file.
87353         * modules/vdprintf-posix: New file.
87354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87355         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87356         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87357         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87358         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87360 2009-01-17  Bruno Haible  <bruno@clisp.org>
87362         Fix replacement of fopen on mingw.
87363         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87364         mingw.
87366 2009-01-17  Bruno Haible  <bruno@clisp.org>
87368         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87369         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87371 2009-01-17  Bruno Haible  <bruno@clisp.org>
87373         Avoid test-fflush2.sh failure on mingw.
87374         * tests/test-fflush2.c: Include binary-io.h.
87375         (main): Put standard input into binary mode.
87376         * modules/fflush-tests (Depends-on): Add binary-io.
87378 2009-01-17  Bruno Haible  <bruno@clisp.org>
87380         * lib/wchar.in.h: In another particular situation, include only the
87381         system's <wchar.h> file.
87382         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87383         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87384         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87386 2009-01-17  Bruno Haible  <bruno@clisp.org>
87388         Support for stripping executables in --enable-relocatable.
87389         * build-aux/install-reloc: Expect one more argument, or an environment
87390         variable RELOC_STRIP_PROG. If set, strip the destination program and
87391         its wrapper.
87392         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87393         RELOC_STRIP_PROG.
87394         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87395         to set RELOCATABLE_STRIP.
87396         * NEWS: Mention the new Makefile requirement.
87398 2009-01-17  Bruno Haible  <bruno@clisp.org>
87400         * build-aux/install-reloc: Remove debugging information left over by
87401         C compiler on MacOS X.
87403 2009-01-17  Bruno Haible  <bruno@clisp.org>
87405         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87406         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87407         _NSGetExecutablePath.
87409 2009-01-16  Jim Meyering  <meyering@redhat.com>
87411         strerror: avoid warnings about discarding "const"
87412         * lib/strerror.c (rpl_strerror): Instead of returning a const
87413         string from each and every "case", use a variable, and add a single
87414         cast after the switch.
87416 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87418         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87420 2009-01-16  Bruno Haible  <bruno@clisp.org>
87422         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87423         array initializer syntax that also works in C++ mode.
87424         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87426 2009-01-16  Jim Meyering  <meyering@redhat.com>
87428         poll: suppress a warning
87429         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87430         to ignore "...unsigned expression < 0 is always false" warnings.
87432 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87434         poll: remove declarations of unused variables
87435         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87436         sockbuf and optlen.
87438 2009-01-15  Bruno Haible  <bruno@clisp.org>
87440         Make fflush-after-ungetc POSIX compliant on BSD systems.
87441         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87442         (clear_ungetc_buffer): Implement also for other systems.
87443         (rpl_fflush): On glibc systems, invoke
87444         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87445         clear_ungetc_buffer after fetching the stream's position, not before.
87447 2009-01-15  Bruno Haible  <bruno@clisp.org>
87449         Make fflush-after-ungetc POSIX compliant on glibc systems.
87450         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87451         after ungetc.
87452         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87453         (rpl_fflush): On glibc systems, simply call the system's fflush
87454         function after clearing the ungetc buffer.
87455         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87456         Instead, lseek only to the end of file, then use the system's fseeko
87457         for the rest. On glibc systems, reset the EOF indicator bit.
87459 2009-01-15  Jim Meyering  <meyering@redhat.com>
87461         openmp.m4: revert quote-adding change, for portability to older autoconf
87462         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87463         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87464         Simon Josefsson noticed the problem when using autoconf-2.61.
87466 2009-01-15  Bruno Haible  <bruno@clisp.org>
87468         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87469         * tests/test-fflush2.c (ASSERT): Always fail.
87470         (main): Add two tests for fflush() after ungetc(), taking into account
87471         the Austin Group's clarification.
87472         Suggested by Eric Blake.
87474 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87476         mktime.m4: remove K&R-style function prototypes
87477         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87478         for the Sun C++ compiler.
87480 2009-01-14  Bruno Haible  <bruno@clisp.org>
87482         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87483         while including <wchar.h>.
87484         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87485         the system's <wchar.h> file.
87486         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87488 2009-01-14  Bruno Haible  <bruno@clisp.org>
87490         * m4/csharp.m4: Don't mention gettext on the serial number line.
87491         * m4/csharpexec.m4: Likewise.
87492         * m4/eaccess.m4: Likewise.
87493         * m4/javaexec.m4: Likewise.
87494         * m4/sig_atomic_t.m4: Likewise.
87495         * m4/tmpdir.m4: Likewise.
87496         * m4/intldir.m4: Bump gettext version.
87497         * m4/lib-ld.m4: Likewise.
87499 2009-01-14  Bruno Haible  <bruno@clisp.org>
87501         * lib/progname.c (set_program_name): Add more comments.
87502         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87504 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87506         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87507         were sys/stat.h does not define it.
87509 2009-01-14  Jim Meyering  <meyering@redhat.com>
87511         many *.m4 files: improve m4 quoting
87512         99% of this change was performed by running the following commands:
87513         git ls-files | grep '\.m4$' | xargs perl -pi \
87514           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
87515           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87516           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87517           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
87518         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
87519         The remainder were to add Copyright dates, increment serial numbers,
87520         undo some changes in comments, exclude m4/intl.m4, and add quotes
87521         around the "1" in ",1" where the unusual spacing prohibited the
87522         above regexps from doing the job.  For more details, see
87523         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
87524         * m4/acl.m4: Modified.
87525         * m4/afs.m4: Likewise.
87526         * m4/alloca.m4: Likewise.
87527         * m4/argp.m4: Likewise.
87528         * m4/argz.m4: Likewise.
87529         * m4/atexit.m4: Likewise.
87530         * m4/bison-i18n.m4: Likewise.
87531         * m4/bison.m4: Likewise.
87532         * m4/byteswap.m4: Likewise.
87533         * m4/c-stack.m4: Likewise.
87534         * m4/c-strtod.m4: Likewise.
87535         * m4/calloc.m4: Likewise.
87536         * m4/canonicalize-lgpl.m4: Likewise.
87537         * m4/chown.m4: Likewise.
87538         * m4/clock_time.m4: Likewise.
87539         * m4/codeset.m4: Likewise.
87540         * m4/copy-file.m4: Likewise.
87541         * m4/csharp.m4: Likewise.
87542         * m4/csharpcomp.m4: Likewise.
87543         * m4/csharpexec.m4: Likewise.
87544         * m4/d-ino.m4: Likewise.
87545         * m4/d-type.m4: Likewise.
87546         * m4/dirfd.m4: Likewise.
87547         * m4/double-slash-root.m4: Likewise.
87548         * m4/eaccess.m4: Likewise.
87549         * m4/eealloc.m4: Likewise.
87550         * m4/environ.m4: Likewise.
87551         * m4/errno_h.m4: Likewise.
87552         * m4/euidaccess.m4: Likewise.
87553         * m4/execute.m4: Likewise.
87554         * m4/fatal-signal.m4: Likewise.
87555         * m4/fchdir.m4: Likewise.
87556         * m4/fcntl_h.m4: Likewise.
87557         * m4/fileblocks.m4: Likewise.
87558         * m4/filenamecat.m4: Likewise.
87559         * m4/findprog.m4: Likewise.
87560         * m4/flexmember.m4: Likewise.
87561         * m4/fnmatch.m4: Likewise.
87562         * m4/fopen.m4: Likewise.
87563         * m4/fpending.m4: Likewise.
87564         * m4/fprintf-posix.m4: Likewise.
87565         * m4/free.m4: Likewise.
87566         * m4/frexp.m4: Likewise.
87567         * m4/frexpl.m4: Likewise.
87568         * m4/fsusage.m4: Likewise.
87569         * m4/ftruncate.m4: Likewise.
87570         * m4/gc-camellia.m4: Likewise.
87571         * m4/gc-random.m4: Likewise.
87572         * m4/gc.m4: Likewise.
87573         * m4/getaddrinfo.m4: Likewise.
87574         * m4/getcwd-abort-bug.m4: Likewise.
87575         * m4/getcwd-path-max.m4: Likewise.
87576         * m4/getdate.m4: Likewise.
87577         * m4/getdomainname.m4: Likewise.
87578         * m4/getgroups.m4: Likewise.
87579         * m4/gethostname.m4: Likewise.
87580         * m4/gethrxtime.m4: Likewise.
87581         * m4/getline.m4: Likewise.
87582         * m4/getloadavg.m4: Likewise.
87583         * m4/getndelim2.m4: Likewise.
87584         * m4/getpass.m4: Likewise.
87585         * m4/gettext.m4: Likewise.
87586         * m4/gettime.m4: Likewise.
87587         * m4/gettimeofday.m4: Likewise.
87588         * m4/gnulib-common.m4: Likewise.
87589         * m4/group-member.m4: Likewise.
87590         * m4/host-os.m4: Likewise.
87591         * m4/iconv.m4: Likewise.
87592         * m4/iconv_open.m4: Likewise.
87593         * m4/inet_ntop.m4: Likewise.
87594         * m4/inet_pton.m4: Likewise.
87595         * m4/inline.m4: Likewise.
87596         * m4/intldir.m4: Likewise.
87597         * m4/intlmacosx.m4: Likewise.
87598         * m4/intmax.m4: Likewise.
87599         * m4/intmax_t.m4: Likewise.
87600         * m4/inttypes.m4: Likewise.
87601         * m4/inttypes_h.m4: Likewise.
87602         * m4/inttypes-pri.m4: Likewise.
87603         * m4/isapipe.m4: Likewise.
87604         * m4/isnand.m4: Likewise.
87605         * m4/isnanf.m4: Likewise.
87606         * m4/isnanl.m4: Likewise.
87607         * m4/javacomp.m4: Likewise.
87608         * m4/javaexec.m4: Likewise.
87609         * m4/jm-winsz1.m4: Likewise.
87610         * m4/jm-winsz2.m4: Likewise.
87611         * m4/lchown.m4: Likewise.
87612         * m4/lcmessage.m4: Likewise.
87613         * m4/ldexpl.m4: Likewise.
87614         * m4/lib-ld.m4: Likewise.
87615         * m4/lib-link.m4: Likewise.
87616         * m4/libsigsegv.m4: Likewise.
87617         * m4/link-follow.m4: Likewise.
87618         * m4/localcharset.m4: Likewise.
87619         * m4/locale-fr.m4: Likewise.
87620         * m4/locale-ja.m4: Likewise.
87621         * m4/locale-tr.m4: Likewise.
87622         * m4/locale-zh.m4: Likewise.
87623         * m4/lock.m4: Likewise.
87624         * m4/longlong.m4: Likewise.
87625         * m4/ls-mntd-fs.m4: Likewise.
87626         * m4/lstat.m4: Likewise.
87627         * m4/malloc.m4: Likewise.
87628         * m4/mathl.m4: Likewise.
87629         * m4/mbrtowc.m4: Likewise.
87630         * m4/mbstate_t.m4: Likewise.
87631         * m4/mbswidth.m4: Likewise.
87632         * m4/memchr.m4: Likewise.
87633         * m4/memcmp.m4: Likewise.
87634         * m4/memcpy.m4: Likewise.
87635         * m4/memmem.m4: Likewise.
87636         * m4/memmove.m4: Likewise.
87637         * m4/mempcpy.m4: Likewise.
87638         * m4/memrchr.m4: Likewise.
87639         * m4/memset.m4: Likewise.
87640         * m4/minmax.m4: Likewise.
87641         * m4/mkdir-slash.m4: Likewise.
87642         * m4/mkdtemp.m4: Likewise.
87643         * m4/mktime.m4: Likewise.
87644         * m4/mmap-anon.m4: Likewise.
87645         * m4/mountlist.m4: Likewise.
87646         * m4/nanosleep.m4: Likewise.
87647         * m4/nls.m4: Likewise.
87648         * m4/nocrash.m4: Likewise.
87649         * m4/open.m4: Likewise.
87650         * m4/openat.m4: Likewise.
87651         * m4/openmp.m4: Likewise.
87652         * m4/pathmax.m4: Likewise.
87653         * m4/perl.m4: Likewise.
87654         * m4/physmem.m4: Likewise.
87655         * m4/pipe.m4: Likewise.
87656         * m4/po.m4: Likewise.
87657         * m4/poll.m4: Likewise.
87658         * m4/posixtm.m4: Likewise.
87659         * m4/posixver.m4: Likewise.
87660         * m4/printf-frexp.m4: Likewise.
87661         * m4/printf-frexpl.m4: Likewise.
87662         * m4/printf-posix.m4: Likewise.
87663         * m4/printf-posix-rpl.m4: Likewise.
87664         * m4/printf.m4: Likewise.
87665         * m4/progtest.m4: Likewise.
87666         * m4/putenv.m4: Likewise.
87667         * m4/readline.m4: Likewise.
87668         * m4/readlink.m4: Likewise.
87669         * m4/readutmp.m4: Likewise.
87670         * m4/realloc.m4: Likewise.
87671         * m4/regex.m4: Likewise.
87672         * m4/relocatable.m4: Likewise.
87673         * m4/relocatable-lib.m4: Likewise.
87674         * m4/rename-dest-slash.m4: Likewise.
87675         * m4/rename.m4: Likewise.
87676         * m4/rmdir-errno.m4: Likewise.
87677         * m4/rmdir.m4: Likewise.
87678         * m4/roundf.m4: Likewise.
87679         * m4/roundl.m4: Likewise.
87680         * m4/rpmatch.m4: Likewise.
87681         * m4/save-cwd.m4: Likewise.
87682         * m4/selinux-selinux-h.m4: Likewise.
87683         * m4/setenv.m4: Likewise.
87684         * m4/settime.m4: Likewise.
87685         * m4/sig2str.m4: Likewise.
87686         * m4/sig_atomic_t.m4: Likewise.
87687         * m4/signalblocking.m4: Likewise.
87688         * m4/signbit.m4: Likewise.
87689         * m4/sigpipe.m4: Likewise.
87690         * m4/sockets.m4: Likewise.
87691         * m4/sockpfaf.m4: Likewise.
87692         * m4/st_dm_mode.m4: Likewise.
87693         * m4/stat-time.m4: Likewise.
87694         * m4/stdbool.m4: Likewise.
87695         * m4/stdint.m4: Likewise.
87696         * m4/stdint_h.m4: Likewise.
87697         * m4/stpcpy.m4: Likewise.
87698         * m4/stpncpy.m4: Likewise.
87699         * m4/strcase.m4: Likewise.
87700         * m4/strchrnul.m4: Likewise.
87701         * m4/strcspn.m4: Likewise.
87702         * m4/strdup.m4: Likewise.
87703         * m4/strftime.m4: Likewise.
87704         * m4/strndup.m4: Likewise.
87705         * m4/strnlen.m4: Likewise.
87706         * m4/strpbrk.m4: Likewise.
87707         * m4/strptime.m4: Likewise.
87708         * m4/strsep.m4: Likewise.
87709         * m4/strtod.m4: Likewise.
87710         * m4/strtoimax.m4: Likewise.
87711         * m4/strtok_r.m4: Likewise.
87712         * m4/strtol.m4: Likewise.
87713         * m4/strtoll.m4: Likewise.
87714         * m4/strtoul.m4: Likewise.
87715         * m4/strtoull.m4: Likewise.
87716         * m4/strtoumax.m4: Likewise.
87717         * m4/strverscmp.m4: Likewise.
87718         * m4/threadlib.m4: Likewise.
87719         * m4/timegm.m4: Likewise.
87720         * m4/tm_gmtoff.m4: Likewise.
87721         * m4/tmpdir.m4: Likewise.
87722         * m4/tmpfile.m4: Likewise.
87723         * m4/tzset.m4: Likewise.
87724         * m4/uintmax_t.m4: Likewise.
87725         * m4/unlinkdir.m4: Likewise.
87726         * m4/unlocked-io.m4: Likewise.
87727         * m4/uptime.m4: Likewise.
87728         * m4/userspec.m4: Likewise.
87729         * m4/utimbuf.m4: Likewise.
87730         * m4/utime.m4: Likewise.
87731         * m4/utimes-null.m4: Likewise.
87732         * m4/utimes.m4: Likewise.
87733         * m4/vararrays.m4: Likewise.
87734         * m4/vasnprintf.m4: Likewise.
87735         * m4/vfprintf-posix.m4: Likewise.
87736         * m4/vprintf-posix.m4: Likewise.
87737         * m4/wait-process.m4: Likewise.
87738         * m4/wchar_t.m4: Likewise.
87739         * m4/wint_t.m4: Likewise.
87740         * m4/write-any-file.m4: Likewise.
87741         * m4/yield.m4: Likewise.
87743 2009-01-13  Bruno Haible  <bruno@clisp.org>
87745         Avoid test-copy-file.sh failures when ACL support insufficient.
87746         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87747         TESTS_ENVIRONMENT.
87748         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87749         Reported by Jim Meyering.
87751 2009-01-13  Bruno Haible  <bruno@clisp.org>
87753         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87754         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87755         * modules/unistdio/u8-printf-parse (Files): Likewise.
87756         * modules/unistdio/u32-printf-parse (Files): Likewise.
87757         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87759 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87761         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87762         and m4/inttypes_h.m4 too.
87764 2009-01-12  Eric Blake  <ebb9@byu.net>
87766         tests: IRIX 6.2 cc can't compile -0.0 into .data
87767         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87768         rather than at compile-time.
87769         * tests/test-floorl.c (minus_zero): Likewise.
87770         * tests/test-frexpl.c (minus_zero): Likewise.
87771         * tests/test-isnan.c (minus_zerol): Likewise.
87772         * tests/test-isnanl.h (minus_zero): Likewise.
87773         * tests/test-ldexpl.c (minus_zero): Likewise.
87774         * tests/test-roundl.c (minus_zero): Likewise.
87775         * tests/test-signbit.c (minus_zerol): Likewise.
87776         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87777         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87778         * tests/test-truncl.c (minus_zero): Likewise.
87779         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87780         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87781         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87783 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87785         regex: fix glibc bug 9697
87786         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87787         handling.
87789 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87791         regex: fix glibc bug 697
87792         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87793         being NULL also if there are no backreferences.
87795 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87797         regex: merge glibc changes
87798         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87799         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87800         re_string_skip_chars, re_string_reconstruct): Likewise.
87801         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87803 2009-01-07  Jim Meyering  <meyering@redhat.com>
87805         poll: filter through cppi
87806         * lib/poll.c: Indent cpp directives to reflect nesting.
87808 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87810         poll: don't return uninitialized
87811         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87813 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87815         avoid compile failure on AIX 6.1
87816         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87817         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87819 2009-01-04  Jim Meyering  <meyering@redhat.com>
87821         remove duplicate inclusion of <stdio.h>
87822         * tests/test-fprintf-posix.c: Likewise.
87823         * tests/test-printf-posix.c: Likewise.
87824         * tests/test-snprintf-posix.c: Likewise.
87825         * tests/test-sprintf-posix.c: Likewise.
87826         * tests/test-vasprintf-posix.c: Likewise.
87827         * tests/test-vfprintf-posix.c: Likewise.
87828         * tests/test-vprintf-posix.c: Likewise.
87829         * tests/test-vsnprintf-posix.c: Likewise.
87830         * tests/test-vsprintf-posix.c: Likewise.
87832 2009-01-03  Jim Meyering  <meyering@redhat.com>
87834         gnulib-tool: fix sed-based filtering
87835         * gnulib-tool (func_filter_filelist): Remove extra backslash
87836         in sed_fff_filter definition.
87838 2009-01-02  Jim Meyering  <meyering@redhat.com>
87840         strftime: avoid compilation failure on Solaris 2.6
87841         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87842         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87843         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87844         be available.  Reported by Tom G. Christensen.  Details in
87845         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87847 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87848             Bruno Haible  <bruno@clisp.org>
87850         Speed up gnulib-tool by doing more string processing through shell
87851         built-ins.
87852         * gnulib-tool (fast_func_append): New variable.
87853         (func_remove_prefix, func_remove_suffix): New functions.
87854         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87855         (func_filter_filelist): New function.
87856         (func_get_dependencies): Use func_remove_suffix instead of sed.
87857         (func_get_automake_snippet): Use func_filter_filelist instead of a
87858         subshell and sed invocation.
87860 2009-01-01  Bruno Haible  <bruno@clisp.org>
87862         Fix a security bug.
87863         * gnulib-tool (func_import, import, update): Don't allow the characters
87864         '"', '$', '`', '\' in macro arguments that become part of commands that
87865         are evaluated.
87867 2009-01-01  Bruno Haible  <bruno@clisp.org>
87869         * gnulib-tool (func_reset_sigpipe): Add more comments.
87871 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87873         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87874         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87875         already know the answer.
87877 2009-01-01  Jim Meyering  <meyering@redhat.com>
87879         * lib/version-etc.c (version_etc_va): Update copyright year.
87881 2008-12-30  Bruno Haible  <bruno@clisp.org>
87883         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87884         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87885         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87887 2008-12-29  Eric Blake  <ebb9@byu.net>
87889         multiarch: avoid autoconf AC_REQUIRE bug
87890         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87891         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87892         2.63 and older.
87893         Reported by Bruno Haible, and analyzed in
87894         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87896 2008-12-29  Bruno Haible  <bruno@clisp.org>
87898         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87899         files in subdirectories correctly.
87900         Reported by Ralf Wildenhues.
87902 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87904         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87905         rather than 'join FILE -', for Solaris join.
87907 2008-12-29  Bruno Haible  <bruno@clisp.org>
87909         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87910         quoting.
87911         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87912         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87913         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87914         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87915         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87916         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87917         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87918         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87919         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87920         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87921         * m4/nls.m4 (AM_NLS): Likewise.
87922         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87923         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87924         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87925         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87926         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87927         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87928         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87929         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87930         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87931         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87932         * m4/xsize.m4 (gl_XSIZE): Likewise.
87933         Suggested by Jim Meyering.
87935 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87937         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
87938         * lib/parse-duration.c: use a switch instead of cascading if's.
87940 2008-12-29  Eric Blake  <ebb9@byu.net>
87942         wchar.h: supply WEOF on Irix 5.3
87943         * lib/wchar.in.h (wint_t): Also supply WEOF.
87944         * lib/wctype.in.h (wint_t): Likewise.
87945         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
87946         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87947         Reported by Tom G. Christensen.
87949 2008-12-26  Bruno Haible  <bruno@clisp.org>
87951         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87952         i486, i586, i686.
87954 2008-12-26  Bruno Haible  <bruno@clisp.org>
87956         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87958 2008-12-26  Bruno Haible  <bruno@clisp.org>
87960         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87961         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87962         not __STDC_CONSTANT_MACROS.
87963         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87965 2008-12-25  Bruno Haible  <bruno@clisp.org>
87967         Add support for universal builds to vasnprintf.
87968         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87969         universal builds, guess no.
87970         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87971         * modules/vasprintf-posix (Depends-on): Likewise.
87972         * modules/fprintf-posix (Depends-on): Likewise.
87973         * modules/vfprintf-posix (Depends-on): Likewise.
87974         * modules/snprintf-posix (Depends-on): Likewise.
87975         * modules/vsnprintf-posix (Depends-on): Likewise.
87976         * modules/sprintf-posix (Depends-on): Likewise.
87977         * modules/vsprintf-posix (Depends-on): Likewise.
87978         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87979         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87980         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87981         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87982         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87983         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87984         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87986         Add support for universal builds to <inttypes.h>.
87987         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87988         _SCNu64_PREFIX): In Apple
87989         universal builds, define directly, using _LP64.
87990         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87991         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87992         * modules/inttypes (Depends-on): Add multiarch.
87993         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87995         Add support for universal builds to <stdint.h>.
87996         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87997         universal builds, define directly, using _LP64.
87998         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87999         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88000         and size_t.
88001         * modules/stdint (Depends-on): Add multiarch.
88002         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88004         New module 'multiarch'.
88005         * modules/multiarch: New file.
88006         * m4/multiarch.m4: New file.
88008 2008-12-25  Bruno Haible  <bruno@clisp.org>
88010         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88012 2008-12-25  Bruno Haible  <bruno@clisp.org>
88014         * modules/btowc (License): Relicense under LGPLv2+.
88015         * modules/mbsinit (License): Likewise.
88016         * modules/mbrtowc (License): Likewise.
88017         * modules/wcrtomb (License): Likewise.
88018         * modules/streq (License): Likewise.
88019         Reported by David Lutterkort <lutter@redhat.com>.
88021 2008-12-23  Bruno Haible  <bruno@clisp.org>
88023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88025 2008-12-23  Bruno Haible  <bruno@clisp.org>
88027         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88029         GETADDRINFO_LIB, not in LIBS.
88030         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88031         * modules/canon-host (Link): Likewise.
88032         * NEWS: Mention the change.
88033         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88034         GETADDRINFO_LIB.
88036 2008-12-22  Bruno Haible  <bruno@clisp.org>
88038         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88039         * doc/posix-functions/iswalpha_l.texi: Likewise.
88040         * doc/posix-functions/iswblank_l.texi: Likewise.
88041         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88042         * doc/posix-functions/iswctype_l.texi: Likewise.
88043         * doc/posix-functions/iswdigit_l.texi: Likewise.
88044         * doc/posix-functions/iswgraph_l.texi: Likewise.
88045         * doc/posix-functions/iswlower_l.texi: Likewise.
88046         * doc/posix-functions/iswprint_l.texi: Likewise.
88047         * doc/posix-functions/iswpunct_l.texi: Likewise.
88048         * doc/posix-functions/iswspace_l.texi: Likewise.
88049         * doc/posix-functions/iswupper_l.texi: Likewise.
88050         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88051         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88052         * doc/posix-functions/open_wmemstream.texi: Likewise.
88053         * doc/posix-functions/swscanf.texi: Likewise.
88054         * doc/posix-functions/towctrans_l.texi: Likewise.
88055         * doc/posix-functions/towlower.texi: Likewise.
88056         * doc/posix-functions/towlower_l.texi: Likewise.
88057         * doc/posix-functions/towupper.texi: Likewise.
88058         * doc/posix-functions/towupper_l.texi: Likewise.
88059         * doc/posix-functions/vfwprintf.texi: Likewise.
88060         * doc/posix-functions/vfwscanf.texi: Likewise.
88061         * doc/posix-functions/vswscanf.texi: Likewise.
88062         * doc/posix-functions/vwprintf.texi: Likewise.
88063         * doc/posix-functions/vwscanf.texi: Likewise.
88064         * doc/posix-functions/wcpcpy.texi: Likewise.
88065         * doc/posix-functions/wcpncpy.texi: Likewise.
88066         * doc/posix-functions/wcscasecmp.texi: Likewise.
88067         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88068         * doc/posix-functions/wcscoll_l.texi: Likewise.
88069         * doc/posix-functions/wcsdup.texi: Likewise.
88070         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88071         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88072         * doc/posix-functions/wcsnlen.texi: Likewise.
88073         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88074         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88075         * doc/posix-functions/wctrans_l.texi: Likewise.
88076         * doc/posix-functions/wctype_l.texi: Likewise.
88077         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88078         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88079         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88080         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88081         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88082         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88083         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88084         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88085         * doc/glibc-functions/wcschrnul.texi: Likewise.
88086         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88087         * doc/glibc-functions/wcstod_l.texi: Likewise.
88088         * doc/glibc-functions/wcstof_l.texi: Likewise.
88089         * doc/glibc-functions/wcstol_l.texi: Likewise.
88090         * doc/glibc-functions/wcstold_l.texi: Likewise.
88091         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88092         * doc/glibc-functions/wcstoq.texi: Likewise.
88093         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88094         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88095         * doc/glibc-functions/wcstouq.texi: Likewise.
88096         * doc/glibc-functions/wmempcpy.texi: Likewise.
88098 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88099             Eric Blake  <ebb9@byu.net>
88100             Paolo Bonzini  <bonzini@gnu.org>
88101             Bruno Haible  <bruno@clisp.org>
88103         Make c-stack work on Haiku.
88104         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88105         (c_stack_action): Use SA_ONSTACK flag.
88107 2008-12-22  Bruno Haible  <bruno@clisp.org>
88109         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88111 2008-12-22  Bruno Haible  <bruno@clisp.org>
88113         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88114         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88115         being overridden.
88116         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88117         New macros.
88118         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88120         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88121         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88123 2008-12-22  Bruno Haible  <bruno@clisp.org>
88125         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88126         from test code.
88128 2008-12-22  Eric Blake  <ebb9@byu.net>
88130         Avoid gcc warnings on cygwin.
88131         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88132         Avoid unused variable.
88133         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88134         Likewise.
88136 2008-12-22  Bruno Haible  <bruno@clisp.org>
88138         Remove HAVE_MBRTOWC conditionals.
88139         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88140         (mbscasecmp): Assume mbrtowc function.
88141         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88142         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88143         * lib/mbschr.c: Include mbuiter.h unconditionally.
88144         (mbschr): Assume mbrtowc function.
88145         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88146         (mbscspn): Assume mbrtowc function.
88147         * lib/mbslen.c: Include mbuiter.h unconditionally.
88148         (mbslen): Assume mbrtowc function.
88149         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88150         (mbsncasecmp): Assume mbrtowc function.
88151         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88152         (mbsnlen): Assume mbrtowc function.
88153         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88154         (mbspbrk): Assume mbrtowc function.
88155         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88156         (mbspcasecmp): Assume mbrtowc function.
88157         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88158         (mbsrchr): Assume mbrtowc function.
88159         * lib/mbssep.c: Include mbuiter.h unconditionally.
88160         (mbssep): Assume mbrtowc function.
88161         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88162         (mbsspn): Assume mbrtowc function.
88163         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88164         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88165         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88166         (mbstok_r): Assume mbrtowc function.
88167         * lib/propername.c: Include mbuiter.h unconditionally.
88168         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88169         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88170         (trim2): Assume mbrtowc function.
88171         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88172         (mbsnwidth): Assume mbrtowc function.
88173         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88174         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88175         fallback definitions.
88176         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88178 2008-12-22  Bruno Haible  <bruno@clisp.org>
88180         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88182 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88184         * modules/regex: Request emulations for the mb*/wc* functions we need.
88185         * m4/regex.m4: Don't look for those functions here.
88186         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88188 2008-12-22  Bruno Haible  <bruno@clisp.org>
88190         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88192 2008-12-21  Bruno Haible  <bruno@clisp.org>
88194         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88195         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88196         (Include): Remove conditionalization.
88197         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88198         (Include): Remove conditionalization.
88199         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88200         (Include): Remove conditionalization.
88201         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88202         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88203         * NEWS: Mention the change.
88204         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88205         via Sergey Poznyakoff <gray@gnu.org.ua>.
88207 2008-12-21  Bruno Haible  <bruno@clisp.org>
88209         * MODULES.html.sh (Extended multibyte and wide character utilities
88210         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88211         wcrtomb, wcsrtombs.
88212         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88213         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88214         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88215         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88217 2008-12-21  Bruno Haible  <bruno@clisp.org>
88219         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88221 2008-12-21  Bruno Haible  <bruno@clisp.org>
88223         * modules/wcsnrtombs-tests: New file.
88224         * tests/test-wcsnrtombs1.sh: New file.
88225         * tests/test-wcsnrtombs2.sh: New file.
88226         * tests/test-wcsnrtombs3.sh: New file.
88227         * tests/test-wcsnrtombs4.sh: New file.
88228         * tests/test-wcsnrtombs.c: New file.
88230         New module 'wcsnrtombs'.
88231         * lib/wchar.in.h (wcsnrtombs): New declaration.
88232         * lib/wcsnrtombs.c: New file.
88233         * lib/wcsrtombs-state.c: New file.
88234         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88235         (internal_state): Remove variable.
88236         * m4/wcsnrtombs.m4: New file.
88237         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88238         compilation units.
88239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88240         HAVE_WCSNRTOMBS.
88241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88242         HAVE_WCSNRTOMBS.
88243         * modules/wcsnrtombs: New file.
88244         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88245         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88247 2008-12-21  Bruno Haible  <bruno@clisp.org>
88249         * modules/wcsrtombs-tests: New file.
88250         * tests/test-wcsrtombs1.sh: New file.
88251         * tests/test-wcsrtombs2.sh: New file.
88252         * tests/test-wcsrtombs3.sh: New file.
88253         * tests/test-wcsrtombs4.sh: New file.
88254         * tests/test-wcsrtombs.c: New file.
88256         New module 'wcsrtombs'.
88257         * lib/wchar.in.h (wcsrtombs): New declaration.
88258         * lib/wcsrtombs.c: New file.
88259         * m4/wcsrtombs.m4: New file.
88260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88261         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88263         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88264         * modules/wcsrtombs: New file.
88265         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88266         bugs.
88268 2008-12-21  Bruno Haible  <bruno@clisp.org>
88270         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88271         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88272         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88273         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88274         if not correct.
88275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88276         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88277         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88278         m4/locale-zh.m4, m4/codeset.m4.
88279         * doc/posix-functions/wcrtomb.texi: Document the bug.
88281 2008-12-21  Bruno Haible  <bruno@clisp.org>
88283         Work around a btowc() bug on IRIX 6.5.
88284         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88285         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88286         REPLACE_WTOBC if not.
88287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88288         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88289         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88291 2008-12-21  Bruno Haible  <bruno@clisp.org>
88293         * modules/wcrtomb-tests: New file.
88294         * tests/test-wcrtomb.sh: New file.
88295         * tests/test-wcrtomb.c: New file.
88297         New module 'wcrtomb'.
88298         * lib/wchar.in.h (wcrtomb): New declaration.
88299         * lib/wcrtomb.c: New file.
88300         * m4/wcrtomb.m4: New file.
88301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88302         HAVE_WCRTOMB.
88303         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88304         HAVE_WCRTOMB.
88305         * modules/wcrtomb: New file.
88306         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88308 2008-12-21  Bruno Haible  <bruno@clisp.org>
88310         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88311         * modules/mbsrtowcs (Files): Likewise.
88312         * modules/wctob (Files): Likewise.
88313         * modules/c-strcase-tests (Files): Likewise.
88314         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88315         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88316         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88317         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88318         * modules/vasnprintf-posix-tests (Files): Likewise.
88320 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88322         gitlog-to-changelog: pass all command-line arguments to git-log
88323         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88324         it is sometimes convenient to filter the commits in various ways.
88325         gitlog-to-changelog only allows --since to specify a start date,
88326         but git-log itself supports many other filtering mechanisms.
88327         At the moment, I want to filter by branch name.  Rather than
88328         adding a --branch option to gitlog-to-changelog, it seems more
88329         flexible to simply pass all options directly to git-log and let
88330         git do the work.  Notice that this effectively makes --since a
88331         redundant option for gitlog-to-changelog, but removing it would
88332         require current usage to change since calls would then require
88333         an additional '--'.
88335 2008-12-21  Bruno Haible  <bruno@clisp.org>
88337         * modules/mbsnrtowcs-tests: New file.
88338         * tests/test-mbsnrtowcs1.sh: New file.
88339         * tests/test-mbsnrtowcs2.sh: New file.
88340         * tests/test-mbsnrtowcs3.sh: New file.
88341         * tests/test-mbsnrtowcs4.sh: New file.
88342         * tests/test-mbsnrtowcs.c: New file.
88344         New module 'mbsnrtowcs'.
88345         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88346         * lib/mbsnrtowcs.c: New file.
88347         * lib/mbsrtowcs-state.c: New file.
88348         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88349         (internal_state): Remove variable.
88350         * m4/mbsnrtowcs.m4: New file.
88351         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88352         compilation units.
88353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88354         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88355         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88356         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88357         * modules/mbsnrtowcs: New file.
88358         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88359         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88360         portability problem.
88362 2008-12-21  Bruno Haible  <bruno@clisp.org>
88364         Work around mbsrtowcs bug.
88365         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88366         (gl_FUNC_MBSRTOWCS): Invoke it.
88367         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88368         m4/locale-zh.m4.
88369         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88371 2008-12-21  Bruno Haible  <bruno@clisp.org>
88373         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88375 2008-12-21  Bruno Haible  <bruno@clisp.org>
88377         Update doc for AIX.
88378         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88379         16-bit wchar_t type.
88380         * doc/posix-functions/btowc.texi: Likewise.
88381         * doc/posix-functions/fgetwc.texi: Likewise.
88382         * doc/posix-functions/fgetws.texi: Likewise.
88383         * doc/posix-functions/fputwc.texi: Likewise.
88384         * doc/posix-functions/fputws.texi: Likewise.
88385         * doc/posix-functions/fwide.texi: Likewise.
88386         * doc/posix-functions/fwprintf.texi: Likewise.
88387         * doc/posix-functions/fwscanf.texi: Likewise.
88388         * doc/posix-functions/getwchar.texi: Likewise.
88389         * doc/posix-functions/getwc.texi: Likewise.
88390         * doc/posix-functions/iswalnum.texi: Likewise.
88391         * doc/posix-functions/iswalpha.texi: Likewise.
88392         * doc/posix-functions/iswblank.texi: Likewise.
88393         * doc/posix-functions/iswcntrl.texi: Likewise.
88394         * doc/posix-functions/iswctype.texi: Likewise.
88395         * doc/posix-functions/iswdigit.texi: Likewise.
88396         * doc/posix-functions/iswgraph.texi: Likewise.
88397         * doc/posix-functions/iswlower.texi: Likewise.
88398         * doc/posix-functions/iswprint.texi: Likewise.
88399         * doc/posix-functions/iswpunct.texi: Likewise.
88400         * doc/posix-functions/iswspace.texi: Likewise.
88401         * doc/posix-functions/iswupper.texi: Likewise.
88402         * doc/posix-functions/iswxdigit.texi: Likewise.
88403         * doc/posix-functions/mbrtowc.texi: Likewise.
88404         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88405         * doc/posix-functions/mbstowcs.texi: Likewise.
88406         * doc/posix-functions/mbtowc.texi: Likewise.
88407         * doc/posix-functions/putwchar.texi: Likewise.
88408         * doc/posix-functions/putwc.texi: Likewise.
88409         * doc/posix-functions/swprintf.texi: Likewise.
88410         * doc/posix-functions/tolower.texi: Likewise.
88411         * doc/posix-functions/toupper.texi: Likewise.
88412         * doc/posix-functions/towctrans.texi: Likewise.
88413         * doc/posix-functions/ungetwc.texi: Likewise.
88414         * doc/posix-functions/vswprintf.texi: Likewise.
88415         * doc/posix-functions/wcrtomb.texi: Likewise.
88416         * doc/posix-functions/wcscat.texi: Likewise.
88417         * doc/posix-functions/wcschr.texi: Likewise.
88418         * doc/posix-functions/wcscmp.texi: Likewise.
88419         * doc/posix-functions/wcscoll.texi: Likewise.
88420         * doc/posix-functions/wcscpy.texi: Likewise.
88421         * doc/posix-functions/wcscspn.texi: Likewise.
88422         * doc/posix-functions/wcsftime.texi: Likewise.
88423         * doc/posix-functions/wcslen.texi: Likewise.
88424         * doc/posix-functions/wcsncat.texi: Likewise.
88425         * doc/posix-functions/wcsncmp.texi: Likewise.
88426         * doc/posix-functions/wcsncpy.texi: Likewise.
88427         * doc/posix-functions/wcspbrk.texi: Likewise.
88428         * doc/posix-functions/wcsrchr.texi: Likewise.
88429         * doc/posix-functions/wcsrtombs.texi: Likewise.
88430         * doc/posix-functions/wcsspn.texi: Likewise.
88431         * doc/posix-functions/wcsstr.texi: Likewise.
88432         * doc/posix-functions/wcstod.texi: Likewise.
88433         * doc/posix-functions/wcstof.texi: Likewise.
88434         * doc/posix-functions/wcstoimax.texi: Likewise.
88435         * doc/posix-functions/wcstok.texi: Likewise.
88436         * doc/posix-functions/wcstold.texi: Likewise.
88437         * doc/posix-functions/wcstoll.texi: Likewise.
88438         * doc/posix-functions/wcstol.texi: Likewise.
88439         * doc/posix-functions/wcstombs.texi: Likewise.
88440         * doc/posix-functions/wcstoull.texi: Likewise.
88441         * doc/posix-functions/wcstoul.texi: Likewise.
88442         * doc/posix-functions/wcstoumax.texi: Likewise.
88443         * doc/posix-functions/wcswidth.texi: Likewise.
88444         * doc/posix-functions/wcsxfrm.texi: Likewise.
88445         * doc/posix-functions/wctob.texi: Likewise.
88446         * doc/posix-functions/wctomb.texi: Likewise.
88447         * doc/posix-functions/wctrans.texi: Likewise.
88448         * doc/posix-functions/wctype.texi: Likewise.
88449         * doc/posix-functions/wcwidth.texi: Likewise.
88450         * doc/posix-functions/wmemchr.texi: Likewise.
88451         * doc/posix-functions/wmemcmp.texi: Likewise.
88452         * doc/posix-functions/wmemcpy.texi: Likewise.
88453         * doc/posix-functions/wmemmove.texi: Likewise.
88454         * doc/posix-functions/wmemset.texi: Likewise.
88455         * doc/posix-functions/wprintf.texi: Likewise.
88456         * doc/posix-functions/wscanf.texi: Likewise.
88458 2008-12-21  Bruno Haible  <bruno@clisp.org>
88460         Update doc for HP-UX 11.11.
88461         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88462         in HP-UX version 11.00, not in all versions of HP-UX 11.
88463         * doc/posix-functions/fwide.texi: Likewise.
88464         * doc/posix-functions/fwprintf.texi: Likewise.
88465         * doc/posix-functions/fwscanf.texi: Likewise.
88466         * doc/posix-functions/inet_ntop.texi: Likewise.
88467         * doc/posix-functions/inet_pton.texi: Likewise.
88468         * doc/posix-functions/mbrlen.texi: Likewise.
88469         * doc/posix-functions/mbrtowc.texi: Likewise.
88470         * doc/posix-functions/mbsinit.texi: Likewise.
88471         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88472         * doc/posix-functions/swprintf.texi: Likewise.
88473         * doc/posix-functions/swscanf.texi: Likewise.
88474         * doc/posix-functions/towctrans.texi: Likewise.
88475         * doc/posix-functions/vfwprintf.texi: Likewise.
88476         * doc/posix-functions/vswprintf.texi: Likewise.
88477         * doc/posix-functions/vwprintf.texi: Likewise.
88478         * doc/posix-functions/wcrtomb.texi: Likewise.
88479         * doc/posix-functions/wcsrtombs.texi: Likewise.
88480         * doc/posix-functions/wcsstr.texi: Likewise.
88481         * doc/posix-functions/wctob.texi: Likewise.
88482         * doc/posix-functions/wctrans.texi: Likewise.
88483         * doc/posix-functions/wmemchr.texi: Likewise.
88484         * doc/posix-functions/wmemcmp.texi: Likewise.
88485         * doc/posix-functions/wmemcpy.texi: Likewise.
88486         * doc/posix-functions/wmemmove.texi: Likewise.
88487         * doc/posix-functions/wmemset.texi: Likewise.
88488         * doc/posix-functions/wprintf.texi: Likewise.
88489         * doc/posix-functions/wscanf.texi: Likewise.
88491 2008-12-21  Bruno Haible  <bruno@clisp.org>
88493         Work around a portability problem.
88494         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88495         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88497 2008-12-20  Bruno Haible  <bruno@clisp.org>
88499         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88500         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88501         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88503         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88505         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88506         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88507         set.
88508         (GNULIB_defined_mbstate_t): New macro.
88509         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88510         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88511         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88512         reuses the system's mbrtowc function but works around the bugs.
88513         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88514         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
88515         macros.
88516         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
88517         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
88518         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
88519         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
88520         REPLACE_MBSINIT if mbsinit needs to be overridden.
88521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
88522         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88523         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
88524         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88525         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88526         m4/locale-zh.m4.
88527         (Depends): Add mbsinit.
88528         * modules/mbsinit (Depends): Add mbrtowc.
88529         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
88531 2008-12-20  Bruno Haible  <bruno@clisp.org>
88533         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
88534         so that there are no conversion errors on AIX.
88535         * tests/test-mbsrtowcs.c (main): LIkewise.
88537 2008-12-20  Bruno Haible  <bruno@clisp.org>
88539         Work around wctob bug on Solaris <= 9.
88540         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
88541         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
88542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
88543         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
88544         * modules/wctob (Files): Add m4/locale-fr.m4.
88545         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
88547 2008-12-20  Bruno Haible  <bruno@clisp.org>
88549         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
88550         /dev/null.
88551         * tests/test-select-in.sh: Likewise.
88552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88554 2008-12-20  Bruno Haible  <bruno@clisp.org>
88556         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
88557         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
88558         Cygwin 1.5.x.
88560 2008-12-20  Bruno Haible  <bruno@clisp.org>
88562         Ensure mbstate_t is defined on HP-UX 11.11.
88563         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
88564         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
88565         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
88566         AC_USE_SYSTEM_EXTENSIONS.
88567         * modules/fnmatch (Depends-on): Add extensions.
88568         * modules/mbrlen (Depends-on): Likewise.
88569         * modules/mbrtowc (Depends-on): Likewise.
88570         * modules/mbsinit (Depends-on): Likewise.
88571         * modules/mbsrtowcs (Depends-on): Likewise.
88572         * modules/mbswidth (Depends-on): Likewise.
88573         * modules/quotearg (Depends-on): Likewise.
88574         * modules/strftime (Depends-on): Likewise.
88576 2008-12-20  Bruno Haible  <bruno@clisp.org>
88578         Ensure wctob is declared on IRIX 6.5.
88579         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
88580         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
88581         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
88582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
88583         of HAVE_WCTOB.
88584         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
88585         HAVE_WCTOB.
88586         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
88588 2008-12-19  Bruno Haible  <bruno@clisp.org>
88590         * modules/mbsrtowcs-tests: New file.
88591         * tests/test-mbsrtowcs1.sh: New file.
88592         * tests/test-mbsrtowcs2.sh: New file.
88593         * tests/test-mbsrtowcs3.sh: New file.
88594         * tests/test-mbsrtowcs4.sh: New file.
88595         * tests/test-mbsrtowcs.c: New file.
88597         New module 'mbsrtowcs'.
88598         * lib/wchar.in.h (mbsrtowcs): New declaration.
88599         * lib/mbsrtowcs.c: New file.
88600         * m4/mbsrtowcs.m4: New file.
88601         * modules/mbsrtowcs: New file.
88602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88603         HAVE_MBSRTOWCS.
88604         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88605         HAVE_MBSRTOWCS.
88606         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88608 2008-12-19  Bruno Haible  <bruno@clisp.org>
88610         New module 'mbrlen'.
88611         * lib/wchar.in.h (mbrlen): New declaration.
88612         * lib/mbrlen.c: New file.
88613         * m4/mbrlen.m4: New file.
88614         * modules/mbrlen: New file.
88615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88616         HAVE_MBRLEN.
88617         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88618         HAVE_MBRLEN.
88619         * doc/posix-functions/mbrlen.texi: Document the new module.
88621 2008-12-19  Bruno Haible  <bruno@clisp.org>
88623         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88624         * modules/mbrtowc (Depends-on): Add verify.
88625         Suggested by Paul Eggert.
88627 2008-12-18  Bruno Haible  <bruno@clisp.org>
88629         * modules/mbsinit-tests: New file.
88630         * tests/test-mbsinit.sh: New file.
88631         * tests/test-mbsinit.c: New file.
88633 2008-12-18  Bruno Haible  <bruno@clisp.org>
88635         * modules/mbrtowc-tests: New file.
88636         * tests/test-mbrtowc1.sh: New file.
88637         * tests/test-mbrtowc2.sh: New file.
88638         * tests/test-mbrtowc3.sh: New file.
88639         * tests/test-mbrtowc4.sh: New file.
88640         * tests/test-mbrtowc.c: New file.
88642         New module 'mbrtowc'.
88643         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88644         mbsinit and mbrtowc.
88645         (mbrtowc): New declaration.
88646         * lib/mbrtowc.c: New file.
88647         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88648         * modules/mbrtowc: New file.
88649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88650         HAVE_MBRTOWC.
88651         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88652         HAVE_MBRTOWC.
88653         * doc/posix-functions/mbrtowc.texi: Document the new module.
88655 2008-12-18  Bruno Haible  <bruno@clisp.org>
88657         New module 'wctob'.
88658         * lib/wchar.in.h (wctob): New declaration.
88659         * lib/wctob.c: New file.
88660         * m4/wctob.m4: New file.
88661         * modules/wctob: New file.
88662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88663         HAVE_WCTOB.
88664         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88665         * doc/posix-functions/wctob.texi: Document the new module.
88667 2008-12-18  Bruno Haible  <bruno@clisp.org>
88669         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88670         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88672 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88674         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88675         G. Christensen" <tgc@jupiterrise.com>.
88677         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88678         G. Christensen" <tgc@jupiterrise.com>.
88680         * lib/flock.c: Need to include string.h.  Reported by "Tom
88681         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88682         <ebb9@byu.net>.
88684 2008-12-18  Bruno Haible  <bruno@clisp.org>
88686         * m4/locale-ja.m4: New file, from GNU gettext.
88688 2008-12-17  Bruno Haible  <bruno@clisp.org>
88690         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88691         Suggested by Eric Blake.
88693 2008-12-17  Bruno Haible  <bruno@clisp.org>
88695         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88697 2008-12-17  Bruno Haible  <bruno@clisp.org>
88699         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88700         * modules/mbsinit (Depends-on): Add verify.
88701         Suggested by Paul Eggert.
88703 2008-12-17  Bruno Haible  <bruno@clisp.org>
88705         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88706         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88707         gl_FUNC_MBRTOWC.
88708         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88709         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88710         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88711         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88712         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88713         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88714         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88715         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88716         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88717         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88718         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88719         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88720         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88721         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88722         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88723         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88724         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88725         * modules/trim (configure.ac): Likewise.
88727 2008-12-17  Bruno Haible  <bruno@clisp.org>
88729         * modules/btowc-tests: New file.
88730         * tests/test-btowc1.sh: New file.
88731         * tests/test-btowc2.sh: New file.
88732         * tests/test-btowc.c: New file.
88734         New module 'btowc'.
88735         * lib/wchar.in.h (btowc): New declaration.
88736         * lib/btowc.c: New file.
88737         * m4/btowc.m4: New file.
88738         * modules/btowc: New file.
88739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88740         HAVE_BTOWC.
88741         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88742         * doc/posix-functions/btowc.texi: Document the new module.
88744 2008-12-17  Bruno Haible  <bruno@clisp.org>
88746         New module 'mbsinit'.
88747         * lib/wchar.in.h (mbsinit): New declaration.
88748         * lib/mbsinit.c: New file.
88749         * m4/mbsinit.m4: New file.
88750         * modules/mbsinit: New file.
88751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88752         HAVE_MBSINIT.
88753         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88754         HAVE_MBSINIT.
88755         * doc/posix-functions/mbsinit.texi: Document the new module.
88757 2008-12-16  Bruno Haible  <bruno@clisp.org>
88759         * lib/unistd.in.h: Add comment.
88760         * tests/test-environ.c: Don't include <stdlib.h>.
88762 2008-12-16  Bruno Haible  <bruno@clisp.org>
88764         * lib/parse-duration.h (parse_duration): Document return value
88765         convention.
88766         * lib/parse-duration.c: Include specification header first. Add
88767         comments.
88768         (_): Remove macro.
88769         (parse_year_month_day, parse_hour_minute_second): Move side effects
88770         outside of strchr call.
88771         (parse_non_iso8601): Move side effects outside of isspace call.
88772         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88773         call.
88775 2008-12-16  Bruno Haible  <bruno@clisp.org>
88777         * tests/test-parse-duration.sh: Produce no output when the test
88778         succeeds.
88780 2008-12-16  Bruno Haible  <bruno@clisp.org>
88782         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88783         expressions.
88785 2008-12-15  Bruno Haible  <bruno@clisp.org>
88787         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88788         * doc/glibc-functions/flistxattr.texi: Likewise.
88789         * doc/glibc-functions/fopencookie.texi: Likewise.
88790         * doc/glibc-functions/fremovexattr.texi: Likewise.
88791         * doc/glibc-functions/fsetxattr.texi: Likewise.
88792         * doc/glibc-functions/getxattr.texi: Likewise.
88793         * doc/glibc-functions/lgetxattr.texi: Likewise.
88794         * doc/glibc-functions/listxattr.texi: Likewise.
88795         * doc/glibc-functions/llistxattr.texi: Likewise.
88796         * doc/glibc-functions/lremovexattr.texi: Likewise.
88797         * doc/glibc-functions/lsetxattr.texi: Likewise.
88798         * doc/glibc-functions/removexattr.texi: Likewise.
88799         * doc/glibc-functions/setxattr.texi: Likewise.
88800         * doc/posix-functions/open_memstream.texi: Likewise.
88802 2008-12-15  Eric Blake  <ebb9@byu.net>
88804         Update doc for cygwin 1.7.
88805         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88806         functions.
88807         * doc/posix-functions/fchmodat.texi: Likewise.
88808         * doc/posix-functions/fchownat.texi: Likewise.
88809         * doc/posix-functions/fdopendir.texi: Likewise.
88810         * doc/posix-functions/fmemopen.texi: Likewise.
88811         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88812         * doc/posix-functions/fstatat.texi: Likewise.
88813         * doc/posix-functions/futimens.texi: Likewise.
88814         * doc/posix-functions/gai_strerror.texi: Likewise.
88815         * doc/posix-functions/getaddrinfo.texi: Likewise.
88816         * doc/posix-functions/getnameinfo.texi: Likewise.
88817         * doc/posix-functions/if_freenameindex.texi: Likewise.
88818         * doc/posix-functions/if_indextoname.texi: Likewise.
88819         * doc/posix-functions/if_nameindex.texi: Likewise.
88820         * doc/posix-functions/if_nametoindex.texi: Likewise.
88821         * doc/posix-functions/insque.texi: Likewise.
88822         * doc/posix-functions/linkat.texi: Likewise.
88823         * doc/posix-functions/llrint.texi: Likewise.
88824         * doc/posix-functions/llrintf.texi: Likewise.
88825         * doc/posix-functions/llrintl.texi: Likewise.
88826         * doc/posix-functions/lockf.texi: Likewise.
88827         * doc/posix-functions/lrintl.texi: Likewise.
88828         * doc/posix-functions/mkdirat.texi: Likewise.
88829         * doc/posix-functions/mkfifoat.texi: Likewise.
88830         * doc/posix-functions/mknodat.texi: Likewise.
88831         * doc/posix-functions/mq_close.texi: Likewise.
88832         * doc/posix-functions/mq_getattr.texi: Likewise.
88833         * doc/posix-functions/mq_notify.texi: Likewise.
88834         * doc/posix-functions/mq_open.texi: Likewise.
88835         * doc/posix-functions/mq_receive.texi: Likewise.
88836         * doc/posix-functions/mq_send.texi: Likewise.
88837         * doc/posix-functions/mq_setattr.texi: Likewise.
88838         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88839         * doc/posix-functions/mq_timedsend.texi: Likewise.
88840         * doc/posix-functions/mq_unlink.texi: Likewise.
88841         * doc/posix-functions/open_memstream.texi: Likewise.
88842         * doc/posix-functions/openat.texi: Likewise.
88843         * doc/posix-functions/posix_fadvise.texi: Likewise.
88844         * doc/posix-functions/posix_fallocate.texi: Likewise.
88845         * doc/posix-functions/posix_madvise.texi: Likewise.
88846         * doc/posix-functions/posix_memalign.texi: Likewise.
88847         * doc/posix-functions/posix_openpt.texi: Likewise.
88848         * doc/posix-functions/readlinkat.texi: Likewise.
88849         * doc/posix-functions/remque.texi: Likewise.
88850         * doc/posix-functions/renameat.texi: Likewise.
88851         * doc/posix-functions/rintl.texi: Likewise.
88852         * doc/posix-functions/sem_unlink.texi: Likewise.
88853         * doc/posix-functions/shm_open.texi: Likewise.
88854         * doc/posix-functions/shm_unlink.texi: Likewise.
88855         * doc/posix-functions/signgam.texi: Likewise.
88856         * doc/posix-functions/sigset.texi: Likewise.
88857         * doc/posix-functions/stpcpy.texi: Likewise.
88858         * doc/posix-functions/stpncpy.texi: Likewise.
88859         * doc/posix-functions/strerror.texi: Likewise.
88860         * doc/posix-functions/strtod.texi: Likewise.
88861         * doc/posix-functions/symlinkat.texi: Likewise.
88862         * doc/posix-functions/unlinkat.texi: Likewise.
88863         * doc/posix-functions/utimensat.texi: Likewise.
88864         * doc/glibc-functions/bindresvport.texi: Likewise.
88865         * doc/glibc-functions/dn_expand.texi: Likewise.
88866         * doc/glibc-functions/exp10.texi: Likewise.
88867         * doc/glibc-functions/exp10f.texi: Likewise.
88868         * doc/glibc-functions/fgetxattr.texi: Likewise.
88869         * doc/glibc-functions/flistxattr.texi: Likewise.
88870         * doc/glibc-functions/fopencookie.texi: Likewise.
88871         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88872         * doc/glibc-functions/fremovexattr.texi: Likewise.
88873         * doc/glibc-functions/fsetxattr.texi: Likewise.
88874         * doc/glibc-functions/getifaddrs.texi: Likewise.
88875         * doc/glibc-functions/getxattr.texi: Likewise.
88876         * doc/glibc-functions/lgetxattr.texi: Likewise.
88877         * doc/glibc-functions/listxattr.texi: Likewise.
88878         * doc/glibc-functions/llistxattr.texi: Likewise.
88879         * doc/glibc-functions/lremovexattr.texi: Likewise.
88880         * doc/glibc-functions/lsetxattr.texi: Likewise.
88881         * doc/glibc-functions/pow10.texi: Likewise.
88882         * doc/glibc-functions/pow10f.texi: Likewise.
88883         * doc/glibc-functions/rcmd_af.texi: Likewise.
88884         * doc/glibc-functions/removexattr.texi: Likewise.
88885         * doc/glibc-functions/res_init.texi: Likewise.
88886         * doc/glibc-functions/res_mkquery.texi: Likewise.
88887         * doc/glibc-functions/res_query.texi: Likewise.
88888         * doc/glibc-functions/res_querydomain.texi: Likewise.
88889         * doc/glibc-functions/res_send.texi: Likewise.
88890         * doc/glibc-functions/rresvport_af.texi: Likewise.
88891         * doc/glibc-functions/setxattr.texi: Likewise.
88892         * doc/glibc-functions/strcasestr.texi: Likewise.
88894 2008-12-15  Bruno Haible  <bruno@clisp.org>
88896         Fix compilation error on OSF/1 4.0.
88897         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88898         <sys/time.h>, simply delegate to the system header.
88899         Reported by Daniel Richard G. <oss@teragram.com>.
88901 2008-12-15  Bruno Haible  <bruno@clisp.org>
88903         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88904         * doc/posix-functions/fchmodat.texi: Likewise.
88905         * doc/posix-functions/fchownat.texi: Likewise.
88906         * doc/posix-functions/fdopendir.texi: Likewise.
88907         * doc/posix-functions/fstatat.texi: Likewise.
88908         * doc/posix-functions/mkdirat.texi: Likewise.
88909         * doc/posix-functions/unlinkat.texi: Likewise.
88911 2008-12-14  Bruno Haible  <bruno@clisp.org>
88913         Update doc for POSIX:2008.
88914         * doc/posix-functions/faccessat.texi: New file.
88915         * doc/posix-functions/fchmodat.texi: New file.
88916         * doc/posix-functions/fchownat.texi: New file.
88917         * doc/posix-functions/fdopendir.texi: New file.
88918         * doc/posix-functions/fstatat.texi: New file.
88919         * doc/posix-functions/futimens.texi: New file.
88920         * doc/posix-functions/linkat.texi: New file.
88921         * doc/posix-functions/mkdirat.texi: New file.
88922         * doc/posix-functions/mkfifoat.texi: New file.
88923         * doc/posix-functions/mknodat.texi: New file.
88924         * doc/posix-functions/open_wmemstream.texi: New file.
88925         * doc/posix-functions/openat.texi: New file.
88926         * doc/posix-functions/psiginfo.texi: New file.
88927         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88928         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88929         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88930         * doc/posix-functions/readlinkat.texi: New file.
88931         * doc/posix-functions/renameat.texi: New file.
88932         * doc/posix-functions/strerror_l.texi: New file.
88933         * doc/posix-functions/symlinkat.texi: New file.
88934         * doc/posix-functions/unlinkat.texi: New file.
88935         * doc/posix-functions/utimensat.texi: New file.
88936         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88938 2008-12-14  Bruno Haible  <bruno@clisp.org>
88940         Update doc for POSIX:2008.
88941         * doc/posix-functions/alphasort.texi: Renamed from
88942         doc/glibc-functions/alphasort.texi.
88943         * doc/posix-functions/dirfd.texi: Renamed from
88944         doc/glibc-functions/dirfd.texi.
88945         * doc/posix-functions/dprintf.texi: Renamed from
88946         doc/glibc-functions/dprintf.texi.
88947         * doc/posix-functions/duplocale.texi: Renamed from
88948         doc/glibc-functions/duplocale.texi.
88949         * doc/posix-functions/fexecve.texi: Renamed from
88950         doc/glibc-functions/fexecve.texi.
88951         * doc/posix-functions/fmemopen.texi: Renamed from
88952         doc/glibc-functions/fmemopen.texi.
88953         * doc/posix-functions/freelocale.texi: Renamed from
88954         doc/glibc-functions/freelocale.texi.
88955         * doc/posix-functions/getdate_err.texi: Renamed from
88956         doc/glibc-functions/getdate_err.texi.
88957         * doc/posix-functions/isalnum_l.texi: Renamed from
88958         doc/glibc-functions/isalnum_l.texi.
88959         * doc/posix-functions/isalpha_l.texi: Renamed from
88960         doc/glibc-functions/isalpha_l.texi.
88961         * doc/posix-functions/isblank_l.texi: Renamed from
88962         doc/glibc-functions/isblank_l.texi.
88963         * doc/posix-functions/iscntrl_l.texi: Renamed from
88964         doc/glibc-functions/iscntrl_l.texi.
88965         * doc/posix-functions/isdigit_l.texi: Renamed from
88966         doc/glibc-functions/isdigit_l.texi.
88967         * doc/posix-functions/isgraph_l.texi: Renamed from
88968         doc/glibc-functions/isgraph_l.texi.
88969         * doc/posix-functions/islower_l.texi: Renamed from
88970         doc/glibc-functions/islower_l.texi.
88971         * doc/posix-functions/isprint_l.texi: Renamed from
88972         doc/glibc-functions/isprint_l.texi.
88973         * doc/posix-functions/ispunct_l.texi: Renamed from
88974         doc/glibc-functions/ispunct_l.texi.
88975         * doc/posix-functions/isspace_l.texi: Renamed from
88976         doc/glibc-functions/isspace_l.texi.
88977         * doc/posix-functions/isupper_l.texi: Renamed from
88978         doc/glibc-functions/isupper_l.texi.
88979         * doc/posix-functions/iswalnum_l.texi: Renamed from
88980         doc/glibc-functions/iswalnum_l.texi.
88981         * doc/posix-functions/iswalpha_l.texi: Renamed from
88982         doc/glibc-functions/iswalpha_l.texi.
88983         * doc/posix-functions/iswblank_l.texi: Renamed from
88984         doc/glibc-functions/iswblank_l.texi.
88985         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88986         doc/glibc-functions/iswcntrl_l.texi.
88987         * doc/posix-functions/iswctype_l.texi: Renamed from
88988         doc/glibc-functions/iswctype_l.texi.
88989         * doc/posix-functions/iswdigit_l.texi: Renamed from
88990         doc/glibc-functions/iswdigit_l.texi.
88991         * doc/posix-functions/iswgraph_l.texi: Renamed from
88992         doc/glibc-functions/iswgraph_l.texi.
88993         * doc/posix-functions/iswlower_l.texi: Renamed from
88994         doc/glibc-functions/iswlower_l.texi.
88995         * doc/posix-functions/iswprint_l.texi: Renamed from
88996         doc/glibc-functions/iswprint_l.texi.
88997         * doc/posix-functions/iswpunct_l.texi: Renamed from
88998         doc/glibc-functions/iswpunct_l.texi.
88999         * doc/posix-functions/iswspace_l.texi: Renamed from
89000         doc/glibc-functions/iswspace_l.texi.
89001         * doc/posix-functions/iswupper_l.texi: Renamed from
89002         doc/glibc-functions/iswupper_l.texi.
89003         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89004         doc/glibc-functions/iswxdigit_l.texi.
89005         * doc/posix-functions/isxdigit_l.texi: Renamed from
89006         doc/glibc-functions/isxdigit_l.texi.
89007         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89008         doc/glibc-functions/mbsnrtowcs.texi.
89009         * doc/posix-functions/mkdtemp.texi: Renamed from
89010         doc/glibc-functions/mkdtemp.texi.
89011         * doc/posix-functions/newlocale.texi: Renamed from
89012         doc/glibc-functions/newlocale.texi.
89013         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89014         doc/glibc-functions/nl_langinfo_l.texi.
89015         * doc/posix-functions/open_memstream.texi: Renamed from
89016         doc/glibc-functions/open_memstream.texi.
89017         * doc/posix-functions/opterr.texi: Renamed from
89018         doc/glibc-functions/opterr.texi.
89019         * doc/posix-functions/optind.texi: Renamed from
89020         doc/glibc-functions/optind.texi.
89021         * doc/posix-functions/optopt.texi: Renamed from
89022         doc/glibc-functions/optopt.texi.
89023         * doc/posix-functions/psignal.texi: Renamed from
89024         doc/glibc-functions/psignal.texi.
89025         * doc/posix-functions/scandir.texi: Renamed from
89026         doc/glibc-functions/scandir.texi.
89027         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89028         doc/glibc-functions/sched_get_priority_min.texi.
89029         * doc/posix-functions/signgam.texi: Renamed from
89030         doc/glibc-functions/signgam.texi.
89031         * doc/posix-functions/stpcpy.texi: Renamed from
89032         doc/glibc-functions/stpcpy.texi.
89033         * doc/posix-functions/stpncpy.texi: Renamed from
89034         doc/glibc-functions/stpncpy.texi.
89035         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89036         doc/glibc-functions/strcasecmp_l.texi.
89037         * doc/posix-functions/strcoll_l.texi: Renamed from
89038         doc/glibc-functions/strcoll_l.texi.
89039         * doc/posix-functions/strfmon_l.texi: Renamed from
89040         doc/glibc-functions/strfmon_l.texi.
89041         * doc/posix-functions/strftime_l.texi: Renamed from
89042         doc/glibc-functions/strftime_l.texi.
89043         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89044         doc/glibc-functions/strncasecmp_l.texi.
89045         * doc/posix-functions/strndup.texi: Renamed from
89046         doc/glibc-functions/strndup.texi.
89047         * doc/posix-functions/strnlen.texi: Renamed from
89048         doc/glibc-functions/strnlen.texi.
89049         * doc/posix-functions/strsignal.texi: Renamed from
89050         doc/glibc-functions/strsignal.texi.
89051         * doc/posix-functions/strxfrm_l.texi: Renamed from
89052         doc/glibc-functions/strxfrm_l.texi.
89053         * doc/posix-functions/timer_gettime.texi: Renamed from
89054         doc/glibc-functions/timer_gettime.texi.
89055         * doc/posix-functions/tolower_l.texi: Renamed from
89056         doc/glibc-functions/tolower_l.texi.
89057         * doc/posix-functions/toupper_l.texi: Renamed from
89058         doc/glibc-functions/toupper_l.texi.
89059         * doc/posix-functions/towctrans_l.texi: Renamed from
89060         doc/glibc-functions/towctrans_l.texi.
89061         * doc/posix-functions/towlower_l.texi: Renamed from
89062         doc/glibc-functions/towlower_l.texi.
89063         * doc/posix-functions/towupper_l.texi: Renamed from
89064         doc/glibc-functions/towupper_l.texi.
89065         * doc/posix-functions/uselocale.texi: Renamed from
89066         doc/glibc-functions/uselocale.texi.
89067         * doc/posix-functions/vdprintf.texi: Renamed from
89068         doc/glibc-functions/vdprintf.texi.
89069         * doc/posix-functions/wcpcpy.texi:
89070         Renamed from doc/glibc-functions/wcpcpy.texi.
89071         * doc/posix-functions/wcpncpy.texi: Renamed from
89072         doc/glibc-functions/wcpncpy.texi.
89073         * doc/posix-functions/wcscasecmp.texi: Renamed from
89074         doc/glibc-functions/wcscasecmp.texi.
89075         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89076         doc/glibc-functions/wcscasecmp_l.texi.
89077         * doc/posix-functions/wcscoll_l.texi: Renamed from
89078         doc/glibc-functions/wcscoll_l.texi.
89079         * doc/posix-functions/wcsdup.texi: Renamed from
89080         doc/glibc-functions/wcsdup.texi.
89081         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89082         doc/glibc-functions/wcsncasecmp.texi.
89083         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89084         doc/glibc-functions/wcsncasecmp_l.texi.
89085         * doc/posix-functions/wcsnlen.texi: Renamed from
89086         doc/glibc-functions/wcsnlen.texi.
89087         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89088         doc/glibc-functions/wcsnrtombs.texi.
89089         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89090         doc/glibc-functions/wcsxfrm_l.texi.
89091         * doc/posix-functions/wctrans_l.texi: Renamed from
89092         doc/glibc-functions/wctrans_l.texi.
89093         * doc/posix-functions/wctype_l.texi: Renamed from
89094         doc/glibc-functions/wctype_l.texi.
89095         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89096         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89097         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89098         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89099         these subsections.
89100         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89101         Remove sections.
89103 2008-12-14  Bruno Haible  <bruno@clisp.org>
89105         Update doc for POSIX:2008.
89106         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89108 2008-12-14  Bruno Haible  <bruno@clisp.org>
89110         Update doc for POSIX:2008.
89111         * doc/pastposix-functions/bcmp.texi: Renamed from
89112         doc/posix-functions/bcmp.texi.
89113         * doc/pastposix-functions/bcopy.texi: Renamed from
89114         doc/posix-functions/bcopy.texi.
89115         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89116         doc/posix-functions/bsd_signal.texi.
89117         * doc/pastposix-functions/bzero.texi: Renamed from
89118         doc/posix-functions/bzero.texi.
89119         * doc/pastposix-functions/ecvt.texi: Renamed from
89120         doc/posix-functions/ecvt.texi.
89121         * doc/pastposix-functions/fcvt.texi: Renamed from
89122         doc/posix-functions/fcvt.texi.
89123         * doc/pastposix-functions/ftime.texi: Renamed from
89124         doc/posix-functions/ftime.texi.
89125         * doc/pastposix-functions/gcvt.texi: Renamed from
89126         doc/posix-functions/gcvt.texi.
89127         * doc/pastposix-functions/getcontext.texi: Renamed from
89128         doc/posix-functions/getcontext.texi.
89129         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89130         doc/posix-functions/gethostbyaddr.texi.
89131         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89132         doc/posix-functions/gethostbyname.texi.
89133         * doc/pastposix-functions/getwd.texi: Renamed from
89134         doc/posix-functions/getwd.texi.
89135         * doc/pastposix-functions/h_errno.texi: Renamed from
89136         doc/posix-functions/h_errno.texi.
89137         * doc/pastposix-functions/index.texi: Renamed from
89138         doc/posix-functions/index.texi.
89139         * doc/pastposix-functions/makecontext.texi: Renamed from
89140         doc/posix-functions/makecontext.texi.
89141         * doc/pastposix-functions/mktemp.texi: Renamed from
89142         doc/posix-functions/mktemp.texi.
89143         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89144         doc/posix-functions/pthread_attr_getstackaddr.texi.
89145         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89146         doc/posix-functions/pthread_attr_setstackaddr.texi.
89147         * doc/pastposix-functions/rindex.texi: Renamed from
89148         doc/posix-functions/rindex.texi.
89149         * doc/pastposix-functions/scalb.texi: Renamed from
89150         doc/posix-functions/scalb.texi.
89151         * doc/pastposix-functions/setcontext.texi: Renamed from
89152         doc/posix-functions/setcontext.texi.
89153         * doc/pastposix-functions/swapcontext.texi: Renamed from
89154         doc/posix-functions/swapcontext.texi.
89155         * doc/pastposix-functions/ualarm.texi: Renamed from
89156         doc/posix-functions/ualarm.texi.
89157         * doc/pastposix-functions/usleep.texi: Renamed from
89158         doc/posix-functions/usleep.texi.
89159         * doc/pastposix-functions/vfork.texi: Renamed from
89160         doc/posix-functions/vfork.texi.
89161         * doc/pastposix-functions/wcswcs.texi: Renamed from
89162         doc/posix-functions/wcswcs.texi.
89163         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89164         (Function Substitutes): Update.
89166 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89168         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89169         m4/strerror.m4.
89171 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89172             Bruno Haible  <bruno@clisp.org>
89174         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89176 2008-12-13  Bruno Haible  <bruno@clisp.org>
89178         * modules/strtoull (Depends-on): Remove unistd.
89180 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89182         * modules/strtoull (Depends-on): Add stdlib.
89184 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89186         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89188 2008-12-10  Jim Meyering  <meyering@redhat.com>
89190         gl_ASSERT: don't say assertions are disabled when they're not
89191         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89192         "checking whether to enable assertions... no", when they are in
89193         fact enabled.  This is solely a bug in the output of configure.
89194         In spite of saying "no", NDEBUG was not defined in that case.
89195         Also, as noted by Eric Blake, leave assertions enabled upon
89196         --enable-assert=INVALID.
89198 2008-12-10  Bruno Haible  <bruno@clisp.org>
89200         Change MODULES.html to refer to POSIX:2008 where possible.
89201         * MODULES.html.sh (POSIX2008_URL): New variable.
89202         (posix_headers): Remove sys/timeb, ucontext.
89203         (posix2001_headers): New variable.
89204         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89205         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89206         index, makecontext, mktemp, pthread_attr_getstackaddr,
89207         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89208         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89209         (posix2001_functions): New variable.
89210         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89211         otherwise.
89213 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89215         add missing include to parse-duration.c
89216         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89217         * modules/parse-duration (Depends-on): Add xalloc.
89219         fix sed script reading maint.mk
89220         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89221         (syntax-check-rules): Use it.
89223 2008-12-09  Bruno Haible  <bruno@clisp.org>
89225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89226         MacOS X 10.4/PowerPC.
89227         Reported by Simon Josefsson.
89229 2008-12-08  Jim Meyering  <meyering@redhat.com>
89231         work around mingw's lack of some S_IF definitions
89232         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89233         Reported by Simon Josefsson.
89235 2008-12-08  Bruno Haible  <bruno@clisp.org>
89237         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89238         applied to variables. Needed on MacOS X 10.4/PowerPC.
89239         Reported by Simon Josefsson.
89241 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89242         and Eric Blake  <ebb9@byu.net>
89244         assert: honor --enable-assert
89245         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89246         order to honor --enable-assert, rather than treating it as a
89247         synonym for --disable-assert.
89249 2008-12-08  Jim Meyering  <meyering@redhat.com>
89251         * lib/posixtm.c: Remove now-useless declaration of mktime.
89253         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89255 2008-12-07  Bruno Haible  <bruno@clisp.org>
89257         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89258         test_once): Mark functions as static.
89259         * tests/test-tls.c (test_tls): Likewise.
89261 2008-12-07  Bruno Haible  <bruno@clisp.org>
89263         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89264         iconv_register_autodetect.
89266 2008-12-07  Jim Meyering  <meyering@redhat.com>
89268         posixtm.c: avoid a warning
89269         * lib/posixtm.c (posixtime): Don't initialize tm0.
89270         It's no longer needed to placate gcc4's -Wuninitialized,
89271         and the attempt to placate would elicit a new warning.
89273         unicodeio.c: mark unused parameters
89274         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89275         (fallback_failure_callback): Likewise.
89277 2008-12-07  Bruno Haible  <bruno@clisp.org>
89279         * gnulib-tool (func_create_testdir): When building the tests
89280         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89281         Reported by Simon Josefsson.
89283 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89285         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89287 2008-12-06  Bruno Haible  <bruno@clisp.org>
89289         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89290         Suggested by Eric Blake.
89292 2008-12-06  Bruno Haible  <bruno@clisp.org>
89294         Fix a c-stack test failure on MacOS X.
89295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89296         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89297         handler for SIGBUS as well.
89298         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89299         install a signal handler for SIGBUS as well.
89300         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89302 2008-12-06  Bruno Haible  <bruno@clisp.org>
89304         Advocacy documentation.
89305         * doc/gnulib-intro.texi (Benefits): New section.
89306         * doc/gnulib.texi: Update.
89308 2008-12-06  Bruno Haible  <bruno@clisp.org>
89310         Document the 'manywarnings' module.
89311         * doc/manywarnings.texi: New file.
89312         * doc/gnulib.texi: Include it.
89314 2008-12-05  Eric Blake  <ebb9@byu.net>
89316         tests: silence some gcc warnings
89317         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89318         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89319         type mismatches.
89321 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89322             Bruno Haible  <bruno@clisp.org>
89324         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89326 2008-11-29  Jim Meyering  <meyering@redhat.com>
89328         unicodeio.c: mark unused parameters
89329         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89330         (fallback_failure_callback): Likewise.
89332         fts: fix a thinko
89333         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89334         (set_stat_type): Return S_IF*-valued "type" directly.
89335         Prompted by James Youngman's spotting a related bug.
89336         Confirmed by further testing through find.
89338         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89339         * lib/fts.c (D_TYPE): Define.
89340         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89341         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89342         (s_ifmt_shift_bits): New function.
89343         (set_stat_type): New function.
89344         (fts_build): When not calling fts_stat, call set_stat_type
89345         to propagate dirent.d_type info to fts_read caller.
89346         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89347         fts_statp->st_mode type information may be valid.
89349 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89351         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89352         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89353         <sds@gnu.org>.
89355 2008-11-20  Bruno Haible  <bruno@clisp.org>
89357         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89358         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89359         INCLUDE_NEXT.
89360         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89361         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89362         * modules/math (Makefile.am): Substitute
89363         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89364         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89366 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89367             Bruno Haible  <bruno@clisp.org>
89369         * lib/stdint.in.h: Define all type macros so that their expansion is
89370         a single typedef'ed token. Fixes a compilation failure in Boost which
89371         does "using ::int8_t;".
89373 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89375         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89376         gl_MANYWARN_ALL_GCC.
89377         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89378         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89379         * modules/manywarnings: New file.
89380         * MODULES.html.sh: Mention manywarnings module.
89382 2008-11-18  Bruno Haible  <bruno@clisp.org>
89384         * doc/gnulib-tool.texi (Unit tests): New section.
89386 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89388         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89389         paths like 'lib/po/foo.po'.
89391 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89393         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89394         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89396 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89398         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89399         parameter works.
89401 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89403         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89405 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89407         * modules/parse-duration-tests: New file.
89408         * tests/test-parse-duration.sh: New file.
89409         * tests/test-parse-duration.c: New file.
89411         New module 'parse-duration'.
89412         * lib/parse-duration.h: New file.
89413         * lib/parse-duration.c: New file.
89414         * modules/parse-duration: New file.
89416 2008-11-17  Bruno Haible  <bruno@clisp.org>
89418         * tests/test-select-out.sh: Comment out the first pipe test.
89419         Reported by Simon Josefsson.
89421 2008-11-17  Bruno Haible  <bruno@clisp.org>
89423         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89425         gl_HOSTENT.
89427 2008-11-17  Bruno Haible  <bruno@clisp.org>
89429         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89430         -lnetwork and -lnet. Needed for Haiku and BeOS.
89432 2008-11-16  Bruno Haible  <bruno@clisp.org>
89434         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89436 2008-11-16  Bruno Haible  <bruno@clisp.org>
89438         Avoid test failure on Haiku.
89439         * tests/test-fsync.c: Include <errno.h>.
89440         (main): Don't require that fsync (0) fails.
89442 2008-11-15  Bruno Haible  <bruno@clisp.org>
89444         New module 'hostent'.
89445         * modules/hostent: New file.
89446         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89448 2008-11-15  Bruno Haible  <bruno@clisp.org>
89450         New module 'servent'.
89451         * modules/servent: New file.
89452         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89454 2008-11-15  Bruno Haible  <bruno@clisp.org>
89456         Avoid generating same test program with two different rules.
89457         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89458         test-frexp to test-frexp-nolibm.
89459         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89460         test-frexpl to test-frexpl-nolibm.
89462 2008-11-15  Bruno Haible  <bruno@clisp.org>
89464         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89465         $(FREXPL_LIBM).
89467 2008-11-15  Bruno Haible  <bruno@clisp.org>
89469         * lib/netdb.in.h: Activate the definitions also when the system's
89470         <netdb.h> has 'struct addrinfo'.
89471         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89472         EAI_OVERFLOW or AI_NUMERICSERV.
89473         * doc/posix-headers/netdb.texi: Document the problem.
89475 2008-11-15  Bruno Haible  <bruno@clisp.org>
89477         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89479         Make the 'sched' module work on platforms where <sched.h> exists but
89480         is incomplete (such as Haiku).
89481         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89482         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89483         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89484         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89485         HAVE_STRUCT_SCHED_PARAM.
89486         * modules/sched (Depends-on): Add include_next.
89487         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89488         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89489         * doc/posix-headers/sched.texi: Document the issue.
89491 2008-11-13  Jim Meyering  <meyering@redhat.com>
89493         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89494         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89495         test would fail due to the difference in the Report bugs to ...
89496         line.  The expected address is empty, "<>", while the actual
89497         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89499 2008-11-12  Bruno Haible  <bruno@clisp.org>
89501         lstat: don't compile lstat.c on systems lacking lstat
89502         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89503         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89504         Reported by Daniel P. Berrange via Jim Meyering.
89506 2008-11-12  Jim Meyering  <meyering@redhat.com>
89508         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89510 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89512         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89513         instead.
89515 2008-11-12  Bruno Haible  <bruno@clisp.org>
89517         * lib/unicodeio.c: Include unistr.h.
89518         (utf8_wctomb): Remove function.
89519         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89521 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89523         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
89524         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
89525         <bruno@clisp.org>.
89526         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
89528 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89530         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
89531         * doc/gnulib.texi: Add section for warnings.
89533 2008-11-11  Bruno Haible  <bruno@clisp.org>
89535         * lib/sockets.h: Add a comment.
89537 2008-11-11  Karl Berry  <karl@gnu.org>
89539         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
89541 2008-11-11  Eric Blake  <ebb9@byu.net>
89543         fdl.texi: avoid git symlinks
89544         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
89546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89548         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
89550 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89552         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
89553         (gl_WARN_ADD): Substitute $2 if literal.
89555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89557         * m4/warning.m4: Remove.
89559 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89561         * m4/warnings.m4: Almost complete rewrite. :-)
89563 2008-11-10  Simon Josefsson  <simon@josefsson.org>
89565         * modules/warnings: New module.
89566         * m4/warnings.m4: New file.
89567         * MODULES.html.sh: Mention warnings module.
89568         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
89569         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89571 2008-11-10  Eric Blake  <ebb9@byu.net>
89573         fdl.texi: make a symlink to the latest version
89574         * doc/standards.texi: Revert today's earlier change.
89575         * doc/fdl-1.2.texi: Rename from old fdl.texi...
89576         * doc/fdl.texi: ...and replace this with a symlink to the newer
89577         fdl-1.3.texi.
89579 2008-11-10  Bruno Haible  <bruno@clisp.org>
89581         * tests/test-select-fd.c (main): Accept the result file name as fourth
89582         argument.
89583         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
89584         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
89586 2008-11-10  Bruno Haible  <bruno@clisp.org>
89588         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
89589         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
89590         as autoconf-substituted macros.
89591         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89593         gl_NETDB_H_DEFAULTS. Set these variables.
89594         * modules/netdb (Makefile.am): Substitute these variables.
89596 2008-11-10  Eric Blake  <ebb9@byu.net>
89598         standards.texi: include correct file for FDL 1.3
89599         * doc/standards.texi (GNU Free Documentation License): Change
89600         include file to pull in FDL 1.3, not 1.2.
89602         fdl.texi: revert accidental change to license
89603         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89605 2008-11-10  Bruno Haible  <bruno@clisp.org>
89607         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89608         cross-compiling guesses also when the native compile gives no result.
89610 2008-11-10  Bruno Haible  <bruno@clisp.org>
89612         * lib/spawni.c (__spawni): Force variable into the stack.
89614 2008-11-10  Bruno Haible  <bruno@clisp.org>
89616         Add support for Haiku.
89617         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89618         glibc and BeOS, but also on Haiku.
89619         * lib/fpurge.c (fpurge): Likewise.
89620         * lib/freadable.c (freadable): Likewise.
89621         * lib/freadahead.c (freadahead): Likewise.
89622         * lib/freading.c (freading): Likewise.
89623         * lib/freadptr.c (freadptr): Likewise.
89624         * lib/freadseek.c (freadptrinc): Likewise.
89625         * lib/fseeko.c (rpl_fseeko): Likewise.
89626         * lib/fseterr.c (fseterr): Likewise.
89627         * lib/fwritable.c (fwritable): Likewise.
89628         * lib/fwriting.c (fwriting): Likewise.
89629         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89631 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89633         * lib/config.charset: Treat Haiku like BeOS.
89635 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89637         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89638         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89640 2008-11-08  Bruno Haible  <bruno@clisp.org>
89642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89643         AC_CACHE_CHECK.
89645 2008-11-08  Bruno Haible  <bruno@clisp.org>
89647         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89649 2008-11-08  Bruno Haible  <bruno@clisp.org>
89651         * tests/test-select-fd.c: New file.
89652         * tests/test-select-in.sh: New file.
89653         * tests/test-select-out.sh: New file.
89654         * tests/test-select-stdin.c: New file.
89655         * modules/select-tests (Files): Add the new files.
89656         (Depends-on): Add gettimeofday.
89657         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89658         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89659         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89661 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89662             Bruno Haible  <bruno@clisp.org>
89664         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89666 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89668         * build-aux/pmccabe2html: Added support for C++ source files.
89670 2008-11-05  Ben Pfaff  <blp@gnu.org>
89672         Fix lib/close.c build on Windows.
89673         * modules/close (Files): Add lib/w32sock.h.
89675 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89677         Accept Bison's NEWS format.
89678         * build-aux/announce-gen (print_news_deltas): Tweak
89679         $re_prefix.
89681 2008-11-04  Bruno Haible  <bruno@clisp.org>
89683         * modules/random_r (Maintainer): Add glibc.
89685 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89687         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89688         by karl@freefriends.org (Karl Berry).
89689         * doc/alloca.texi: Likewise.
89690         * doc/c-ctype.texi: Likewise.
89691         * doc/c-strcase.texi: Likewise.
89692         * doc/c-strcaseeq.texi: Likewise.
89693         * doc/c-strcasestr.texi: Likewise.
89694         * doc/c-strstr.texi: Likewise.
89695         * doc/c-strtod.texi: Likewise.
89696         * doc/c-strtold.texi: Likewise.
89697         * doc/ctime.texi: Likewise.
89698         * doc/error.texi: Likewise.
89699         * doc/fdl.texi: Likewise.
89700         * doc/gcd.texi: Likewise.
89701         * doc/getdate.texi: Likewise.
89702         * doc/gnulib-intro.texi: Likewise.
89703         * doc/gnulib-tool.texi: Likewise.
89704         * doc/gnulib.texi: Likewise.
89705         * doc/inet_ntoa.texi: Likewise.
89706         * doc/maintain.texi: Likewise.
89707         * doc/make-stds.texi: Likewise.
89708         * doc/quote.texi: Likewise.
89709         * doc/regexprops-generic.texi: Likewise.
89710         * doc/standards.texi: Likewise.
89711         * doc/verify.texi: Likewise.
89712         * doc/visibility.texi: Likewise.
89713         * doc/gnulib.texi (GNU Free Documentation License): Include
89714         fdl-1.3.texi instead of fdl.texi.
89716 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89718         * doc/fdl-1.3.texi: New file, from
89719         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89720         * modules/fdl-1.3: Add.
89721         * MODULES.html.sh: Add fdl-1.3.
89723 2008-11-03  Bruno Haible  <bruno@clisp.org>
89725         Make determination of absolute name of header file work with AIX xlc.
89726         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89727         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89728         preprocessing.
89729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89730         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89732 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89734         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89735         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89736         <ludo@gnu.org>.
89738 2008-11-02  Bruno Haible  <bruno@clisp.org>
89740         Mark 'strpbrk' obsolete.
89741         * modules/strpbrk (Status, Notice): New sections.
89742         * modules/strtok_r (Depends-on): Add strpbrk.
89744 2008-11-02  Bruno Haible  <bruno@clisp.org>
89746         Mark 'strdup' obsolete.
89747         * modules/strdup (Status, Notice): New sections.
89748         * modules/findprog (Depends-on): Add strdup.
89749         * modules/getaddrinfo (Depends-on): Likewise.
89750         * modules/localename (Depends-on): Likewise.
89751         * modules/relocatable-lib (Depends-on): Likewise.
89752         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89753         * modules/relocatable-prog (Depends-on): Likewise.
89754         * modules/trim (Depends-on): Likewise.
89755         * modules/unictype/gen-ctype (Depends-on): Likewise.
89756         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89758 2008-11-02  Bruno Haible  <bruno@clisp.org>
89760         Mark 'strcspn' obsolete.
89761         * modules/strcspn (Status, Notice): New sections.
89763 2008-11-02  Bruno Haible  <bruno@clisp.org>
89765         Mark 'rmdir' obsolete.
89766         * modules/rmdir (Status, Notice): New sections.
89767         * modules/clean-temp (Depends-on): Add rmdir.
89768         * modules/openat (Depends-on): Likewise.
89770 2008-11-02  Bruno Haible  <bruno@clisp.org>
89772         Mark 'raise' obsolete.
89773         * modules/raise (Status, Notice): New sections.
89774         (Include): Specify <signal.h>.
89775         * modules/stdio (Depends-on): Add raise.
89776         * modules/write (Depends-on): Likewise.
89778 2008-11-02  Bruno Haible  <bruno@clisp.org>
89780         Mark 'memset' obsolete.
89781         * modules/memset (Status, Notice): New sections.
89783 2008-11-02  Bruno Haible  <bruno@clisp.org>
89785         Mark 'memmove' obsolete.
89786         * modules/memmove (Status, Notice): New sections.
89787         * modules/argp (Depends-on): Add memmove.
89788         * modules/argz (Depends-on): Likewise.
89789         * modules/canonicalize (Depends-on): Likewise.
89790         * modules/canonicalize-lgpl (Depends-on): Likewise.
89791         * modules/fts (Depends-on): Likewise.
89792         * modules/getcwd (Depends-on): Likewise.
89793         * modules/human (Depends-on): Likewise.
89794         * modules/regex (Depends-on): Likewise.
89795         * modules/striconveh (Depends-on): Likewise.
89796         * modules/trim (Depends-on): Likewise.
89797         * modules/unistr/u8-move (Depends-on): Likewise.
89798         * modules/unistr/u16-move (Depends-on): Likewise.
89799         * modules/unistr/u32-move (Depends-on): Likewise.
89801 2008-11-02  Bruno Haible  <bruno@clisp.org>
89803         Mark 'memcpy' obsolete.
89804         * modules/memcpy (Status, Notice): New sections.
89806 2008-11-02  Bruno Haible  <bruno@clisp.org>
89808         Mark 'memcmp' obsolete.
89809         * modules/memcmp (Status, Notice): New sections.
89810         * modules/argmatch (Depends-on): Add memchr.
89811         * modules/backupfile (Depends-on): Likewise.
89812         * modules/c-strcasestr (Depends-on): Likewise.
89813         * modules/crypto/des (Depends-on): Likewise.
89814         * modules/csharpcomp (Depends-on): Likewise.
89815         * modules/fnmatch (Depends-on): Likewise.
89816         * modules/git-merge-changelog (Depends-on): Likewise.
89817         * modules/isnand (Depends-on): Likewise.
89818         * modules/isnand-nolibm (Depends-on): Likewise.
89819         * modules/isnanf (Depends-on): Likewise.
89820         * modules/isnanf-nolibm (Depends-on): Likewise.
89821         * modules/isnanl (Depends-on): Likewise.
89822         * modules/isnanl-nolibm (Depends-on): Likewise.
89823         * modules/mbchar (Depends-on): Likewise.
89824         * modules/memcoll (Depends-on): Likewise.
89825         * modules/quotearg (Depends-on): Likewise.
89826         * modules/regex (Depends-on): Likewise.
89827         * modules/relocatable-prog (Depends-on): Likewise.
89828         * modules/same (Depends-on): Likewise.
89829         * modules/signbit (Depends-on): Likewise.
89830         * modules/strcasestr-simple (Depends-on): Likewise.
89831         * modules/unictype/gen-ctype (Depends-on): Likewise.
89832         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89833         * modules/uniname/uniname (Depends-on): Likewise.
89834         * modules/unistr/u8-cmp (Depends-on): Likewise.
89836 2008-11-02  Bruno Haible  <bruno@clisp.org>
89838         Mark 'memchr' obsolete.
89839         * modules/memchr (Status, Notice): New sections.
89840         * modules/argp (Depends-on): Add memchr.
89841         * modules/base64 (Depends-on): Likewise.
89842         * modules/c-strcasestr (Depends-on): Likewise.
89843         * modules/chdir-long (Depends-on): Likewise.
89844         * modules/fnmatch (Depends-on): Likewise.
89845         * modules/getsubopt (Depends-on): Likewise.
89846         * modules/git-merge-changelog (Depends-on): Likewise.
89847         * modules/glob (Depends-on): Likewise.
89848         * modules/strcasestr-simple (Depends-on): Likewise.
89849         * modules/strnlen (Depends-on): Likewise.
89851 2008-11-02  Bruno Haible  <bruno@clisp.org>
89853         Mark 'atexit' obsolete.
89854         * modules/atexit (Status, Notice): New sections.
89855         * modules/chdir-long (Depends-on): Add atexit.
89856         * modules/wait-process (Depends-on): Likewise.
89858 2008-11-02  Bruno Haible  <bruno@clisp.org>
89860         * gnulib-tool: New option --with-obsolete.
89861         (func_usage): Document it.
89862         (func_modules_transitive_closure): Drop obsolete dependencies if
89863         incobsolete is not true.
89864         (func_import): Read and save the incobsolete variable to the cache.
89866 2008-11-02  Bruno Haible  <bruno@clisp.org>
89868         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89869         * gnulib-tool: New option --extract-status.
89870         (func_usage): Document it.
89871         (sed_extract_prog): Recognize it.
89872         (func_get_status): New function.
89874 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89876         * modules/sockets (License): Change from LGPL to LGPLv2+.
89878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89880         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89882 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89884         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89885         Mention times and sys_times.
89886         * modules/sys_times, modules/sys_times-tests: New modules.
89887         * modules/times, modules/times-tests: Likewise
89888         * m4/sys_times_h.m4: New file.
89889         * lib/sys_times.in.h: Likewise
89890         * lib/times.c: Likewise.
89891         * tests/test-sys_times.c: Likewise.
89892         * tests/test-times.c: Likewise.
89893         * doc/posix-headers/sys_times.texi: Update.
89894         * doc/posix-functions/times.texi: Update.
89896 2008-10-28  Jim Meyering  <meyering@redhat.com>
89898         * modules/tempname (Depends-on): Add lstat.
89900         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89902 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89904         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89905         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89906         using idiom used elsewhere in gnulib.
89908 2008-10-27  Jim Meyering  <meyering@redhat.com>
89910         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89912 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89914         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89915         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89916         programs.
89917         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89919 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89921         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89923 2008-10-27  Bruno Haible  <bruno@clisp.org>
89925         * tests/test-lstat.c: Include <stdio.h>.
89927 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89929         * modules/lstat-tests: New module.
89930         * tests/test-lstat.c: New file.
89932 2008-10-26  Jim Meyering  <meyering@redhat.com>
89934         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
89936 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89937             Bruno Haible  <bruno@clisp.org>
89939         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
89940         * modules/configmake (Include): Add a note that the include must come
89941         after all system headers.
89942         * lib/javaversion.c: Include configmake.h after all other includes.
89944 2008-10-26  Bruno Haible  <bruno@clisp.org>
89946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89947         HAVE_STRUCT_RANDOM_DATA to 1.
89948         (gl_STDLIB_H): Simplify.
89950 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89952         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89953         substitute HAVE_STRUCT_RANDOM_DATA.
89954         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89955         random_data.
89956         * modules/stdlib (Makefile.am): Substitute
89957         HAVE_STRUCT_RANDOM_DATA.
89959 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89961         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89962         * doc/gnulib-intro.texi (Copyright): Likewise.
89964 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89966         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89967         findings.
89969 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89970             Bruno Haible  <bruno@clisp.org>
89972         * lib/unistd.in.h: Include <winsock2.h>.
89973         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89974         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89975         Provide dummy declarations.
89976         (gethostname): Override.
89977         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89978         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89979         gl_PREREQ_SYS_H_WINSOCK2.
89980         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89981         * doc/posix-functions/gethostname.texi: More details.
89983 2008-10-25  Bruno Haible  <bruno@clisp.org>
89985         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89986         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89987         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89989         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89990         here ...
89991         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89992         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89993         gl_UNISTD_H_DEFAULTS.
89995 2008-10-25  Eric Blake  <ebb9@byu.net>
89997         signbit: avoid spurious compiler failure
89998         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89999         declarations inside function.
90001 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90002             Bruno Haible  <bruno@clisp.org>
90004         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90005         * modules/random_r (Depends-on): Add stdint.
90007 2008-10-24  Bruno Haible  <bruno@clisp.org>
90009         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90010         Eggert.
90011         * modules/strerror (License): Likewise.
90013 2008-10-24  Jim Meyering  <meyering@redhat.com>
90015         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90016         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90018 2008-10-24  Eric Blake  <ebb9@byu.net>
90020         getgroups: fix compilation when getgroups is available
90021         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90022         but with <config.h> override of getgroups disabled.
90024 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90026         * doc/gnulib.texi (Header files): Add note about C++ problems.
90027         Explained by Bruno Haible <bruno@clisp.org>.
90029 2008-10-23  Bruno Haible  <bruno@clisp.org>
90031         Define a dummy SA_NODEFER macro on Interix.
90032         * lib/signal.in.h (SA_NODEFER): Define fallback.
90033         Reported by Aleksey Cheusov <cheusov@tut.by> via
90034         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90036 2008-10-23  Bruno Haible  <bruno@clisp.org>
90038         * modules/freadahead (License): Change to LGPLv2+.
90039         Suggested by Simon Josefsson.
90041 2008-10-23  Jim Meyering  <meyering@redhat.com>
90043         random_r: new module
90044         * modules/random_r: New file.
90045         * m4/random_r.m4: New file.
90046         * lib/random_r.c: New file, from glibc.
90047         * modules/random_r-tests: New file.
90048         * tests/test-random_r.c: New file.
90049         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90050          Declare.
90051         (RAND_MAX): Define.
90052         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90053         * modules/stdlib: Substitute them, too.
90054         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90055         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90056         * doc/glibc-functions/random_r.texi: Likewise.
90057         * doc/glibc-functions/setstate_r.texi: Likewise.
90058         * doc/glibc-functions/srandom_r.texi: Likewise.
90059         * config/srclist.txt: Mention it.
90061 2008-10-23  David Lutterkort  <lutter@redhat.com>
90063         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90064         link requirement
90066 2008-10-23  Jim Meyering  <meyering@redhat.com>
90068         selinux-h: mark parameters of stub functions as intentionally unused
90069         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90070         * lib/se-context.in.h: Likewise.
90072 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90074         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90076 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90078         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90080 2008-10-22  Eric Blake  <ebb9@byu.net>
90082         glthread/thread: avoid compiler warning
90083         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90084         Add unreachable abort to silence compiler.
90086 2008-10-22  Eric Blake  <ebb9@byu.net>
90088         netdb: also supply struct addrinfo for cygwin 1.5.x
90089         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90090         older cygwin.
90091         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90092         cygwin.
90093         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90095 2008-10-22  Bruno Haible  <bruno@clisp.org>
90097         * users.txt: Update entry about pspp.
90099 2008-10-21  Bruno Haible  <bruno@clisp.org>
90101         Simplification.
90102         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90103         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90105         Simplification.
90106         * lib/ioctl.c (ioctl): Don't undefine.
90107         * lib/socket.c (socket): Don't undefine.
90109         Remove unused module indicator macros.
90110         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90111         GNULIB_$1 as a C macro.
90113         * doc/posix-functions/close.texi: Undo last change.
90114         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90115         Windows platforms.
90117 2008-10-21  Bruno Haible  <bruno@clisp.org>
90119         Add gethostname() declaration to <unistd.h>.
90120         * lib/unistd.in.h (gethostname): New declaration.
90121         * lib/gethostname.c: Include <unistd.h>.
90122         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90123         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90125         and HAVE_GETHOSTNAME.
90126         * modules/gethostname (Depends-on): Add unistd.
90127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90128         (Include): Specify <unistd.h>.
90129         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90130         HAVE_GETHOSTNAME.
90131         * tests/test-gethostname.c: Include <unistd.h> first.
90133 2008-10-21  Bruno Haible  <bruno@clisp.org>
90135         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90136         * modules/select-tests (Depends-on): Likewise.
90137         Reported by Simon Josefsson.
90139 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90141         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90142         * lib/accept.c: New file, based on winsock.c.
90143         * lib/bind.c: New file, based on winsock.c.
90144         * lib/connect.c: New file, based on winsock.c.
90145         * lib/getpeername.c: New file, based on winsock.c.
90146         * lib/getsockname.c: New file, based on winsock.c.
90147         * lib/getsockopt.c: New file, based on winsock.c.
90148         * lib/ioctl.c: New file, based on winsock.c.
90149         * lib/listen.c: New file, based on winsock.c.
90150         * lib/recv.c: New file, based on winsock.c.
90151         * lib/recvfrom.c: New file, based on winsock.c.
90152         * lib/send.c: New file, based on winsock.c.
90153         * lib/sendto.c: New file, based on winsock.c.
90154         * lib/setsockopt.c: New file, based on winsock.c.
90155         * lib/shutdown.c: New file, based on winsock.c.
90156         * lib/socket.c: New file, based on winsock.c.
90157         * lib/w32sock.h: New file, based on winsock.c.
90158         * lib/winsock.c: Remove file.
90159         * modules/accept: Likewise.
90160         * modules/bind: Likewise.
90161         * modules/connect: Likewise.
90162         * modules/getpeername: Likewise.
90163         * modules/getsockname: Likewise.
90164         * modules/getsockopt: Likewise.
90165         * modules/ioctl: Likewise.
90166         * modules/listen: Likewise.
90167         * modules/recv: Likewise.
90168         * modules/recvfrom: Likewise.
90169         * modules/send: Likewise.
90170         * modules/sendto: Likewise.
90171         * modules/setsockopt: Likewise.
90172         * modules/shutdown: Likewise.
90173         * modules/socket: Use socket.c instead of winsock.c.
90174         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90175         * doc/posix-functions/accept.texi: Doc fix.
90176         * doc/posix-functions/bind.texi: Doc fix.
90177         * doc/posix-functions/close.texi: Doc fix.
90178         * doc/posix-functions/connect.texi: Doc fix.
90179         * doc/posix-functions/getpeername.texi: Doc fix.
90180         * doc/posix-functions/getsockname.texi: Doc fix.
90181         * doc/posix-functions/getsockopt.texi: Doc fix.
90182         * doc/posix-functions/ioctl.texi: Doc fix.
90183         * doc/posix-functions/listen.texi: Doc fix.
90184         * doc/posix-functions/recv.texi: Doc fix.
90185         * doc/posix-functions/recvfrom.texi: Doc fix.
90186         * doc/posix-functions/send.texi: Doc fix.
90187         * doc/posix-functions/sendto.texi: Doc fix.
90188         * doc/posix-functions/setsockopt.texi: Doc fix.
90189         * doc/posix-functions/shutdown.texi: Doc fix.
90190         * doc/posix-functions/socket.texi: Doc fix.
90192 2008-10-20  Bruno Haible  <bruno@clisp.org>
90194         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90195         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90196         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90197         as an alias for SIGABRT.
90198         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90199         (sigaction): Map it to SIGABRT.
90200         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90202 2008-10-20  Bruno Haible  <bruno@clisp.org>
90204         * lib/fts.c: Don't include lstat.h.
90205         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90207         Move the lstat() declaration to <sys/stat.h>.
90208         * lib/lstat.h: Remove file.
90209         * lib/sys_stat.in.h: Add special invocation convention.
90210         (lstat): New declaration.
90211         * lib/lstat.c (orig_lstat): New function.
90212         (rpl_lstat): Use orig_lstat instead of lstat.
90213         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90214         AC_C_INLINE. Set REPLACE_LSTAT.
90215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90216         and REPLACE_LSTAT.
90217         * modules/lstat (Files): Remove lib/lstat.h.
90218         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90219         (Include): Specify <sys/stat.h> instead of lstat.h.
90220         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90221         REPLACE_LSTAT.
90222         * NEWS: Mention the change.
90224 2008-10-20  Bruno Haible  <bruno@clisp.org>
90226         * modules/posix_spawn-tests: New file.
90227         * tests/test-posix_spawn3.c: New file.
90229 2008-10-20  Bruno Haible  <bruno@clisp.org>
90231         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90232         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90233         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90234         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90235         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90237 2008-10-20  Bruno Haible  <bruno@clisp.org>
90239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90240         of posix_spawn on AIX 5.3.
90242 2008-10-20  Bruno Haible  <bruno@clisp.org>
90244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90246 2008-10-20  Bruno Haible  <bruno@clisp.org>
90248         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90249         of AC_LANG_PROGRAM.
90251 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90253         * lib/netdb.in.h: Don't define GNU specific constants until they
90254         are supported or needed.  Reported by Bruno Haible
90255         <bruno@clisp.org>.
90257 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90259         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90261 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90263         * lib/getaddrinfo.h: Remove file.
90264         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90265         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90266         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90267         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90268         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90269         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90270         * tests/test-getaddrinfo.c: Likewise.
90271         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90272         * NEWS: Mention change.
90274 2008-10-19  Bruno Haible  <bruno@clisp.org>
90276         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90278 2008-10-19  Bruno Haible  <bruno@clisp.org>
90280         * lib/wait-process.c: Include simply <sys/wait.h>.
90281         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90282         WIFSTOPPED): Remove fallback definitions.
90283         * modules/wait-process (Depends-on): Add sys_wait.
90285         New module 'sys_wait'.
90286         * modules/sys_wait: New file.
90287         * lib/sys_wait.in.h: New file, partially copied from
90288         lib/wait-process.c.
90289         * m4/sys_wait_h.m4: New file.
90290         * doc/posix-headers/sys_wait.texi: Mention the new module.
90292 2008-10-19  Bruno Haible  <bruno@clisp.org>
90294         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90296 2008-10-19  Bruno Haible  <bruno@clisp.org>
90298         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90299         * lib/wait-process.c (WAIT_T): Remove type.
90300         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90301         (wait_subprocess): Update.
90303 2008-10-19  Bruno Haible  <bruno@clisp.org>
90305         New module 'atoll'.
90306         * modules/atoll: New file.
90307         * lib/stdlib.in.h (atoll): New declaration.
90308         * lib/atoll.c: New file, from glibc with modifications.
90309         * m4/atoll.m4: New file.
90310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90311         HAVE_ATOLL.
90312         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90313         * doc/posix-functions/atoll.texi: Mention the new module.
90315 2008-10-19  Bruno Haible  <bruno@clisp.org>
90317         Add strtoull() declaration to <stdlib.h>.
90318         * lib/stdlib.in.h (strtoull): New declaration.
90319         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90320         Set HAVE_STRTOULL.
90321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90322         HAVE_STRTOULL.
90323         * modules/strtoull (Depends-on): Add stdlib.
90324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90325         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90326         HAVE_STRTOULL.
90328 2008-10-19  Bruno Haible  <bruno@clisp.org>
90330         Add strtoll() declaration to <stdlib.h>.
90331         * lib/stdlib.in.h (strtoll): New declaration.
90332         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90333         Set HAVE_STRTOLL.
90334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90335         HAVE_STRTOLL.
90336         * modules/strtoll (Depends-on): Add stdlib.
90337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90338         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90340 2008-10-19  Bruno Haible  <bruno@clisp.org>
90342         * modules/bcopy (Depends-on): Add strings.
90343         (Include): Specify <strings.h>.
90345 2008-10-19  Bruno Haible  <bruno@clisp.org>
90347         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90349 2008-10-19  Bruno Haible  <bruno@clisp.org>
90351         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90352         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90353         mingw.
90355 2008-10-19  Bruno Haible  <bruno@clisp.org>
90357         * lib/atanl.c: Don't include isnanl.h.
90358         * lib/cosl.c: Likewise.
90359         * lib/ldexpl.c: Likewise.
90360         * lib/logl.c: Likewise.
90361         * lib/sinl.c: Likewise.
90362         * lib/sqrtl.c: Likewise.
90363         * lib/tanl.c: Likewise.
90365         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90366         * lib/isnanf.h: Remove file.
90367         * lib/isnand.h: Remove file.
90368         * lib/isnanl.h: Remove file.
90369         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90370         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90371         macros.
90372         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90373         HAVE_ISNANF, don't define it as a C macro.
90374         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90375         HAVE_ISNAND, don't define it as a C macro.
90376         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90377         HAVE_ISNANL, don't define it as a C macro.
90378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90379         HAVE_ISNAN[FDL].
90380         * modules/isnanf (Files): Remove lib/isnanf.h.
90381         (Depends-on): Add math.
90382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90383         (Include): Specify <math.h> instead of isnanf.h.
90384         * modules/isnand (Files): Remove lib/isnand.h.
90385         (Depends-on): Add math.
90386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90387         (Include): Specify <math.h> instead of isnand.h.
90388         * modules/isnanl (Files): Remove lib/isnanl.h.
90389         (Depends-on): Add math.
90390         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90391         (Include): Specify <math.h> instead of isnanl.h.
90392         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90393         HAVE_ISNAN[FDL].
90394         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90395         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90396         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90397         * NEWS: Mention the change.
90399 2008-10-18  Bruno Haible  <bruno@clisp.org>
90401         Add getusershell(), setusershell(), endusershell() declarations to
90402         <unistd.h>.
90403         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90404         declarations.
90405         * lib/getusershell.c: Include unistd.h.
90406         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90407         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90408         HAVE_GETUSERSHELL.
90409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90410         and HAVE_GETUSERSHELL.
90411         * modules/getusershell (Depends-on): Add unistd, extensions.
90412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90413         (Include): Specify <unistd.h>.
90414         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90415         HAVE_GETUSERSHELL.
90417 2008-10-18  Bruno Haible  <bruno@clisp.org>
90419         Add a getloadavg() declaration to <stdlib.h>.
90420         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90421         getloadavg declaration.
90422         (getloadavg): New declaration.
90423         * lib/getloadavg.c: Include <stdlib.h> first.
90424         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90425         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90426         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90428         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90429         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90430         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90431         (Include): Specify <stdlib.h>.
90432         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90433         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90435 2008-10-18  Bruno Haible  <bruno@clisp.org>
90437         * lib/dirchownmod.c: Don't include lchmod.h.
90439         Move the lchmod() declaration to <sys/stat.h>.
90440         * lib/lchmod.h: Remove file.
90441         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90442         (lchmod): New declaration, moved here from lib/lchown.h.
90443         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90444         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90446         and HAVE_LCHMOD.
90447         * modules/lchmod (Files): Remove lib/lchmod.h.
90448         (Depends-on): Add sys_stat, extensions.
90449         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90450         (Include): Specify <sys/stat.h> instead of lchmod.h.
90451         * modules/sys_stat (Depends-on): Add link-warning.
90452         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90453         definition of GL_LINK_WARNING.
90454         * NEWS: Mention the change.
90456 2008-10-18  Bruno Haible  <bruno@clisp.org>
90458         * lib/fchdir.c: Don't include dirfd.h.
90459         * lib/fts.c: Likewise.
90460         * lib/getcwd.c: Likewise.
90461         * lib/glob.c: Likewise.
90463         Move the dirfd() declaration to <dirent.h>.
90464         * lib/dirfd.h: Remove file.
90465         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90466         (dirfd): New declaration.
90467         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90469         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90470         HAVE_DECL_DIRFD.
90471         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90472         HAVE_DECL_DIRFD.
90473         * modules/dirfd (Files): Remove lib/dirfd.h.
90474         (Depends-on): Add dirent, extensions.
90475         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90476         (Include): Specify <dirent.h> instead of dirfd.h.
90477         * modules/dirent (Depends-on): Add link-warning.
90478         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90479         definition of GL_LINK_WARNING.
90480         * NEWS: Mention the change.
90482 2008-10-18  Bruno Haible  <bruno@clisp.org>
90484         Move the euidaccess() declaration to <unistd.h>.
90485         * lib/euidaccess.h: Remove file.
90486         * lib/unistd.in.h (euidaccess): New declaration.
90487         * lib/euidaccess.c: Don't include euidaccess.h.
90488         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90489         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90491         and HAVE_EUIDACCESS.
90492         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90493         (Depends-on): Add unistd.
90494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90495         (Include): Specify <unistd.h> instead of euidaccess.h.
90496         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90497         HAVE_EUIDACCESS.
90498         * NEWS: Mention the change.
90500 2008-10-18  Bruno Haible  <bruno@clisp.org>
90502         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90504         Move the getdomainname() declaration to <unistd.h>.
90505         * lib/getdomainname.h: Remove file.
90506         * lib/unistd.in.h (getdomainname): New declaration.
90507         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90508         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90509         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90510         HAVE_GETDOMAINNAME.
90511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90512         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90513         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90514         (Depends-on): Add unistd, extensions.
90515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90516         (Includes): Specify <unistd.h> instead of getdomainname.h.
90517         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
90518         HAVE_GETDOMAINNAME.
90519         * NEWS: Mention the change.
90521 2008-10-18  Bruno Haible  <bruno@clisp.org>
90523         * modules/dirent: New file.
90524         * m4/dirent_h.m4: New file.
90525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
90526         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
90527         * modules/fchdir (Files): Remove lib/dirent.in.h.
90528         (Depends-on): Add dirent.
90529         (Makefile.am): Move rules to modules/dirent.
90530         * doc/posix-headers/dirent.texi: Mention the new module.
90532 2008-10-18  Bruno Haible  <bruno@clisp.org>
90534         Avoid -Wunused-parameter warnings in public gnulib header files.
90535         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
90536         macro.
90537         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
90539 2008-10-18  Bruno Haible  <bruno@clisp.org>
90541         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
90542         * doc/glibc-functions/error.texi: Mention the module 'error'.
90543         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
90544         * doc/glibc-functions/getdomainname.texi: Mention the module
90545         'getdomainname'.
90546         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
90547         * doc/glibc-functions/getpagesize.texi: Mention the module
90548         'getpagesize'.
90549         * doc/glibc-functions/getusershell.texi: Mention the module
90550         'getusershell'.
90551         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
90552         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
90553         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
90554         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
90555         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
90556         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
90557         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
90558         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
90559         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
90560         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
90561         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
90562         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
90563         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
90564         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
90566 2008-10-17  Bruno Haible  <bruno@clisp.org>
90568         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
90569         HP-UX and IRIX, use -0.0L.
90570         * tests/test-ceill.c (minus_zero): Likewise.
90571         * tests/test-floorl.c (minus_zero): Likewise.
90572         * tests/test-frexpl.c (minus_zero): Likewise.
90573         * tests/test-isnan.c (minus_zerol): Likewise.
90574         * tests/test-isnanl.h (minus_zero): Likewise.
90575         * tests/test-ldexpl.c (minus_zero): Likewise.
90576         * tests/test-roundl.c (minus_zero): Likewise.
90577         * tests/test-signbit.c (minus_zerol): Likewise.
90578         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
90579         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
90580         * tests/test-truncl.c (minus_zero): Likewise.
90581         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
90582         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
90583         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
90584         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
90586 2008-10-17  Bruno Haible  <bruno@clisp.org>
90588         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
90589         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
90590         that it gets activated only for gcc >= 3.0.
90591         * lib/dirent.in.h: Likewise.
90592         * lib/errno.in.h: Likewise.
90593         * lib/fcntl.in.h: Likewise.
90594         * lib/float.in.h: Likewise.
90595         * lib/iconv.in.h: Likewise.
90596         * lib/inttypes.in.h: Likewise.
90597         * lib/locale.in.h: Likewise.
90598         * lib/math.in.h: Likewise.
90599         * lib/netdb.in.h: Likewise.
90600         * lib/netinet_in.in.h: Likewise.
90601         * lib/search.in.h: Likewise.
90602         * lib/signal.in.h: Likewise.
90603         * lib/spawn.in.h: Likewise.
90604         * lib/stdarg.in.h: Likewise.
90605         * lib/stdint.in.h: Likewise.
90606         * lib/stdio.in.h: Likewise.
90607         * lib/stdlib.in.h: Likewise.
90608         * lib/string.in.h: Likewise.
90609         * lib/strings.in.h: Likewise.
90610         * lib/sys_file.in.h: Likewise.
90611         * lib/sys_ioctl.in.h: Likewise.
90612         * lib/sys_select.in.h: Likewise.
90613         * lib/sys_socket.in.h: Likewise.
90614         * lib/sys_stat.in.h: Likewise.
90615         * lib/sys_time.in.h: Likewise.
90616         * lib/sysexits.in.h: Likewise.
90617         * lib/time.in.h: Likewise.
90618         * lib/unistd.in.h: Likewise.
90619         * lib/wchar.in.h: Likewise.
90620         * lib/wctype.in.h: Likewise.
90621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90623 2008-10-17  Jim Meyering  <meyering@redhat.com>
90625         ignore-value: don't depend on inline module
90626         * modules/ignore-value (Depends-on): Remove 'inline'.
90627         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90628         Suggestion from Bruno Haible.
90630 2008-10-17  Bruno Haible  <bruno@clisp.org>
90632         New implementation of condition variables for Win32.
90633         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90634         (gl_linked_waitqueue_t): New type.
90635         (gl_cond_t): Use it.
90636         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90637         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90638         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90639         (glthread_cond_init_func, glthread_cond_wait_func,
90640         glthread_cond_timedwait_func, glthread_cond_signal_func,
90641         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90642         Reimplemented on the basis of gl_linked_waitqueue_t.
90643         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90644         gl_waitqueue_t.
90645         (gl_rwlock_t): Update.
90646         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90648 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90650         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90651         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90653 2008-10-17  Jim Meyering  <meyering@redhat.com>
90655         ignore-value: new module
90656         * modules/ignore-value: New file.
90657         * lib/ignore-value.h: New file.
90658         * MODULES.html.sh (Compiler warning management): New section,
90659         just for this module.  More to come.
90661 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90663         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90664         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90665         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90667 2008-10-16  Jim Meyering  <meyering@redhat.com>
90669         openat-die.c: avoid 'no previous prototype' warning
90670         * lib/openat-die.c: Include "openat.h".
90671         Reported by Reuben Thomas <rrt@sc3d.org>.
90673 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90675         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90676         * lib/netdb.in.h: Fix typo.
90677         Reported by Bruno Haible  <bruno@clisp.org>
90679         * lib/netdb.in.h: Include sys/socket.h for platforms without
90680         netdb.h, to get structures like hostent on MinGW.
90681         * modules/netdb (Depends-on): Add sys_socket.
90683 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90685         * modules/netdb, modules/netdb-tests: New file.
90686         * m4/netdb_h.m4: New file.
90687         * lib/netdb.in.h: Add, currently just an empty file pending
90688         definitions.
90689         * tests/test-netdb.c: New file.
90690         * doc/posix-headers/netdb.texi: Mention that we replace it if
90691         needed.
90692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90693         netdb.
90695 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90697         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90698         with code.
90700 2008-10-13  Bruno Haible  <bruno@clisp.org>
90702         * lib/glthread/cond.c (glthread_cond_wait_func,
90703         glthread_cond_timedwait_func): Add a comment.
90705 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90707         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90708         * tests/test-select.c: Likewise,
90710 2008-10-13  Bruno Haible  <bruno@clisp.org>
90712         * lib/glthread/cond.c (glthread_cond_wait_func,
90713         glthread_cond_timedwait_func): Fix variable name.
90714         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90716 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90718         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90720         struct sockaddr.sa_len.
90721         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90723 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90725         * build-aux/pmccabe2html: Add css and css_url parameters.
90727 2008-10-12  Bruno Haible  <bruno@clisp.org>
90729         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90730         calling aclx_get.
90731         Reported by Rainer Tammer <tammer@tammer.net>.
90733 2008-10-12  Bruno Haible  <bruno@clisp.org>
90735         Use msvcrt aware primitives for creation/termination of Win32 threads.
90736         * lib/glthread/thread.c: Include <process.h>.
90737         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90738         (wrapper_func): Update signature.
90739         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90741 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90742             Bruno Haible  <bruno@clisp.org>
90744         Provide a Win32 implementation of the 'cond' module.
90745         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90746         * lib/glthread/cond.c (glthread_cond_init_func,
90747         glthread_cond_wait_func, glthread_cond_timedwait_func,
90748         glthread_cond_signal_func, glthread_cond_broadcast_func,
90749         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90750         * modules/cond (Dependencies): Add gettimeofday.
90752 2008-10-11  Bruno Haible  <bruno@clisp.org>
90754         Make sleep work on older versions of mingw.
90755         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90756         only whether it exists.
90757         * doc/posix-functions/sleep.texi: Mention the problem with older
90758         versions of mingw.
90760 2008-10-11  Bruno Haible  <bruno@clisp.org>
90762         New module 'shutdown'.
90763         * modules/shutdown: New file.
90764         * lib/sys_socket.in.h (shutdown): New declaration.
90765         * lib/winsock.c (shutdown): New function.
90766         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90767         GNULIB_SHUTDOWN.
90768         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90769         * doc/posix-functions/shutdown.texi: Document the new module.
90771 2008-10-11  Jim Meyering  <meyering@redhat.com>
90773         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90775 2008-10-11  Bruno Haible  <bruno@clisp.org>
90777         New module 'fclose'.
90778         * modules/fclose: New file.
90779         * lib/stdio.in.h (fclose): New declaration.
90780         * lib/fclose.c: New file.
90781         * m4/fclose.m4: New file.
90782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90783         REPLACE_FCLOSE.
90784         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90785         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90786         REPLACE_FCLOSE.
90787         * modules/close (Depends-on): fclose.
90788         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90790 2008-10-11  Bruno Haible  <bruno@clisp.org>
90792         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90793         set errno and don't call _close.
90795 2008-10-10  Bruno Haible  <bruno@clisp.org>
90797         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90798         ACL, not afterwards. Fixes test failure on Cygwin.
90800 2008-10-09  Ben Pfaff  <blp@gnu.org>
90802         * build-aux/announce-gen: Fix gnulib version related part of usage
90803         message.  Die with a useful error message if no tarballs are
90804         found.
90806 2008-10-10  Jim Meyering  <meyering@redhat.com>
90808         bootstrap: use git's --depth=N option only if it's supported
90809         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90810         recognize the --depth option.  Reported by Pádraig Brady.
90812 2008-10-09  Bruno Haible  <bruno@clisp.org>
90814         New module 'ioctl'.
90815         * modules/ioctl: New file.
90816         * lib/sys_socket.in.h (ioctl): Remove declaration.
90817         * lib/winsock.c: Include <sys/ioctl.h>.
90818         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90819         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90820         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90821         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90822         * doc/posix-functions/ioctl.texi: Mention the new module.
90824 2008-10-09  Bruno Haible  <bruno@clisp.org>
90826         New module 'sys_ioctl'.
90827         * lib/sys_ioctl.in.h: New file.
90828         * m4/sys_ioctl_h.m4: New file.
90829         * modules/sys_ioctl: New file.
90830         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90832 2008-10-09  Bruno Haible  <bruno@clisp.org>
90834         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90835         * lib/winsock.c: Include <stdarg.h>.
90836         (rpl_ioctl): Change to second argument 'int' and then varargs.
90838 2008-10-09  Bruno Haible  <bruno@clisp.org>
90840         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90841         when the sys_socket module is present and the system has <winsock2.h>.
90843 2008-10-09  Bruno Haible  <bruno@clisp.org>
90845         * doc/posix-functions/close.texi: Mention module 'close' instead of
90846         module 'sys_socket'.
90848 2008-10-09  Bruno Haible  <bruno@clisp.org>
90850         * doc/glibc-headers/sys_ioctl.texi: New file.
90851         * doc/gnulib.texi: Include it.
90853 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90854             Bruno Haible  <bruno@clisp.org>
90856         Combine the two replacements of 'close'.
90857         * lib/sys_socket.in.h (close): Define to a reminder to include
90858         <unistd.h>.
90859         (_gl_close_fd_maybe_socket): New declaration.
90860         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90861         * lib/winsock.c (close): Remove undefinition.
90862         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90863         needed for the gnulib module 'close'.
90864         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90865         define to an error symbol or to a warning, if suitable.
90866         * lib/close.c: Include <sys/socket.h>.
90867         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90868         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90869         UNISTD_H_HAVE_WINSOCK2_H.
90870         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90872         UNISTD_H_HAVE_WINSOCK2_H.
90873         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90874         (configure.ac): Set a module indicator.
90875         (Makefile.am): Substitute GNULIB_CLOSE.
90876         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90877         * modules/poll-tests (Depends-on): Add close.
90878         * modules/select-tests (Depends-on): Likewise.
90880 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90881             Bruno Haible  <bruno@clisp.org>
90883         New module 'close'.
90884         * modules/close: New file.
90885         * lib/unistd.in.h (close): Move declaration out of the
90886         FCHDIR_REPLACEMENT scope.
90887         (_gl_unregister_fd): New declaration.
90888         * lib/close.c: New file.
90889         * lib/fchdir.c (rpl_close): Remove function.
90890         * m4/close.m4: New file.
90891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90892         close.
90893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90894         REPLACE_CLOSE.
90895         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90896         REPLACE_CLOSE.
90897         * modules/fchdir (Depends-on): Add close.
90899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90900             Bruno Haible  <bruno@clisp.org>
90902         * lib/fcntl.in.h (open): Simplify conditionals.
90903         (_gl_register_fd): New declaration.
90904         * lib/fchdir.c (rpl_open): Remove function.
90905         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90906         also.
90907         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90909         open.
90911 2008-10-09  Jim Meyering  <meyering@redhat.com>
90913         GNUmakefile: use the more name-space-friendly "_version"
90914         * top/GNUmakefile (_dummy): Update.
90915         (_version): Rename from "version".
90917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90918             Bruno Haible  <bruno@clisp.org>
90920         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90921         rpl_close.
90922         (_gl_register_fd): New function, extracted from rpl_open.
90923         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90924         (rpl_open, rpl_opendir): Use _gl_register_fd.
90926 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90928         Fix organization of 'open' replacement.
90929         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90930         (gl_FUNC_OPEN): Use it.
90931         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90933 2008-10-08  Bruno Haible  <bruno@clisp.org>
90935         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
90937 2008-10-08  Simon Josefsson  <simon@josefsson.org>
90939         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
90940         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
90941         listen).
90943 2008-10-08  Eric Blake  <ebb9@byu.net>
90945         GNUmakefile: add 'make version' target
90946         * top/GNUmakefile (_curr-ver): Split version update rules...
90947         (version): ...into a target.
90949 2008-10-07  Bruno Haible  <bruno@clisp.org>
90951         Use a more portable replacement expression for -0.0L.
90952         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90953         instead of -0.0L. Fix m4 quotation.
90955         * tests/test-signbit.c: Include <float.h>.
90956         (minus_zero): New variable.
90957         (test_signbitl): Use minus_zero instead of -zero.
90958         * modules/signbit-tests (Depends-on): Add float.
90960         * tests/test-ceill.c: Include <float.h>.
90961         (zero): Remove variable.
90962         (minus_zero): New variable.
90963         (main): Use minus_zero instead of -zero.
90964         * modules/ceill-tests (Depends-on): Add float.
90966         * tests/test-floorl.c: Include <float.h>.
90967         (zero): Remove variable.
90968         (minus_zero): New variable.
90969         (main): Use minus_zero instead of -zero.
90970         * modules/floorl-tests (Depends-on): Add float.
90972         * tests/test-roundl.c: Include <float.h>.
90973         (zero): Remove variable.
90974         (minus_zero): New variable.
90975         (main): Use minus_zero instead of -zero.
90976         * modules/roundl-tests (Depends-on): Add float.
90978         * tests/test-truncl.c: Include <float.h>.
90979         (zero): Remove variable.
90980         (minus_zero): New variable.
90981         (main): Use minus_zero instead of -zero.
90982         * modules/truncl-tests (Depends-on): Add float.
90984         * tests/test-frexpl.c (zero): Remove variable.
90985         (minus_zero): New variable.
90986         (main): Use minus_zero instead of -zero.
90987         * modules/frexpl-tests (Depends-on): Add float.
90989         * tests/test-isnan.c (zerol): Remove variable.
90990         (minus_zerol): New variable.
90991         (test_long_double): Use minus_zerol instead of -zerol.
90992         * modules/isnan-tests (Depends-on): Add float.
90994         * tests/test-isnanl.h (zero): Remove variable.
90995         (minus_zero): New variable.
90996         (main): Use minus_zero instead of -zero.
90997         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90998         * modules/isnanl-tests (Depends-on): Add float.
91000         * tests/test-ldexpl.c (zero): Remove variable.
91001         (minus_zero): New variable.
91002         (main): Use minus_zero instead of -zero.
91003         * modules/ldexpl-tests (Depends-on): Add float.
91005         * tests/test-snprintf-posix.h (zerol): Remove variable.
91006         (minus_zerol): New variable.
91007         (test_function): Use minus_zerol instead of -zerol.
91008         * modules/snprintf-posix-tests (Depends-on): Add float.
91009         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91011         * tests/test-sprintf-posix.h (zerol): Remove variable.
91012         (minus_zerol): New variable.
91013         (test_function): Use minus_zerol instead of -zerol.
91014         * modules/sprintf-posix-tests (Depends-on): Add float.
91015         * modules/vsprintf-posix-tests (Depends-on): Add float.
91017         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91018         (minus_zerol): New variable.
91019         (test_function): Use minus_zerol instead of -zerol.
91020         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91022         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91023         (minus_zerol): New variable.
91024         (test_function): Use minus_zerol instead of -zerol.
91025         * modules/vasprintf-posix-tests (Depends-on): Add float.
91027 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91029         * MODULES.html.sh (Support for building documentation): Mention
91030         pmccabe2html.  Sort entries.
91032         Add pmccabe2html module, from gnupdf.
91033         * build-aux/pmccabe.css: New file.
91034         * build-aux/pmccabe2html: New file.
91035         * m4/pmccabe2html.m4: New file.
91036         * modules/pmccabe2html: New file.
91038 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91040         flock: new module
91041         * MODULES.html.sh: Add to list of modules.
91042         * lib/flock.c: flock implementation for Windows and Unix systems
91043         which have fcntl.
91044         * doc/glibc-functions/flock.texi: Update documentation.
91045         * lib/sys_file.in.h: <sys/file.h> header file.
91046         * m4/flock.m4: M4 macros.
91047         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91048         * modules/flock: flock module.
91049         * modules/flock-tests: flock tests module.
91050         * modules/sys_file: sys/file.h module.
91051         * tests/test-flock.c: test suite for flock.
91053 2008-10-06  Jim Meyering  <meyering@redhat.com>
91055         bootstrap: check for LT_INIT more portably still ;-)
91056         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91057         Spotted by Bruno Haible.
91059 2008-10-06  Eric Blake  <ebb9@byu.net>
91061         test-signbit: avoid tripping Irix cc bug on -0.0L
91062         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91063         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91064         entire testsuite consistent and avoids an Irix 6.2 bug.
91066 2008-10-05  Bruno Haible  <bruno@clisp.org>
91067             Jim Meyering  <jim@meyering.net>
91069         Add an option for ignoring EPIPE during close_stdout.
91070         * lib/closeout.h: Include <stdbool.h>.
91071         (close_stdout_set_ignore_EPIPE): New declaration.
91072         * lib/closeout.c: Include <stdbool.h>.
91073         (ignore_EPIPE): New variable.
91074         (close_stdout_set_ignore_EPIPE): New function.
91075         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91076         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91077         failure.
91078         * modules/closeout (Depends-on): Add stdbool.
91080 2008-10-05  Bruno Haible  <bruno@clisp.org>
91082         * modules/accept: New file.
91083         * modules/bind: New file.
91084         * modules/connect: New file.
91085         * modules/getpeername: New file.
91086         * modules/getsockname: New file.
91087         * modules/getsockopt: New file.
91088         * modules/listen: New file.
91089         * modules/recv: New file.
91090         * modules/recvfrom: New file.
91091         * modules/send: New file.
91092         * modules/sendto: New file.
91093         * modules/setsockopt: New file.
91094         * modules/socket: New file.
91095         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91096         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91097         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91098         the particular module is requested. Add a link warning when the
91099         particular module is not requested.
91100         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91101         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91102         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91103         the particular module is requested.
91104         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91105         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91106         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91107         * modules/sys_socket (Depends-on): Add link-warning.
91108         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91109         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91110         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91111         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91112         GL_LINK_WARNING.
91113         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91114         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91115         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91116         * doc/posix-functions/getpeername.texi: Mention the new module
91117         'getpeername'.
91118         * doc/posix-functions/getsockname.texi: Mention the new module
91119         'getsockname'.
91120         * doc/posix-functions/getsockopt.texi: Mention the new module
91121         'getsockopt'.
91122         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91123         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91124         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91125         * doc/posix-functions/send.texi: Mention the new module 'send'.
91126         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91127         * doc/posix-functions/setsockopt.texi: Mention the new module
91128         'setsockopt'.
91129         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91130         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91131         listen, connect, accept.
91132         * modules/select-tests (Depends-on): Likewise.
91134 2008-10-05  Bruno Haible  <bruno@clisp.org>
91136         * lib/winsock.c (strerror): Remove unused #undef.
91137         (rpl_close): Remove unused local variable.
91139         * modules/sys_socket (Depends-on); Add errno.
91141 2008-10-05  Bruno Haible  <bruno@clisp.org>
91143         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91144         (select): Add a link warning when the 'select' module is not used.
91145         * modules/sys_select (Depends-on): Add link-warning.
91146         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91147         Suggested by Paolo Bonzini.
91149 2008-10-05  Jim Meyering  <meyering@redhat.com>
91151         bootstrap: check for LT_INIT more portably
91152         * build-aux/bootstrap: Avoid using grep -E, since it's not
91153         portable enough.  Suggestion from Bruno Haible.
91155 2008-10-05  Bruno Haible  <bruno@clisp.org>
91157         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91158         as being fixed by gnulib.
91160 2008-10-05  Bruno Haible  <bruno@clisp.org>
91162         * modules/select-tests: New file, mostly copied from
91163         modules/sys_select-tests.
91164         * tests/test-select.c: New file, mostly copied from
91165         tests/test-sys_select.c.
91166         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91167         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91168         (Makefile.am): Remove test_sys_select_LDADD.
91170         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91171         to an undefined symbol, for an error message.
91172         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91173         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91174         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91175         winsock-select.c here.
91176         * modules/sys_select (Files): Remove lib/winsock-select.c.
91177         (Depends-on): Remove alloca.
91178         (Makefile.am): Substitute GNULIB_SELECT.
91179         * modules/select: New file.
91180         * doc/posix-functions/select.texi: Update.
91182 2008-10-05  Bruno Haible  <bruno@clisp.org>
91184         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91185         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91186         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91187         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91188         getdtablesize.
91189         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91190         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91192 2008-10-05  Bruno Haible  <bruno@clisp.org>
91194         * modules/getdtablesize-tests: New file.
91195         * tests/test-getdtablesize.c: New file.
91197         New module 'getdtablesize'.
91198         * lib/unistd.in.h (getdtablesize): New declaration.
91199         * lib/getdtablesize.c: New file.
91200         * m4/getdtablesize.m4: New file.
91201         * modules/getdtablesize: New file.
91202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91203         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91204         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91205         HAVE_GETDTABLESIZE.
91206         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91208 2008-10-05  Bruno Haible  <bruno@clisp.org>
91210         * modules/sched (Makefile.am): Fix typo.
91211         Reported by Simon Josefsson.
91213 2008-10-05  Jim Meyering  <meyering@redhat.com>
91215         bootstrap: check for LT_INIT, too
91216         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91217         are deprecated.  Suggestion from Ralf Wildenhues.
91219 2008-10-05  Bruno Haible  <bruno@clisp.org>
91221         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91222         overriding them by ours.
91223         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91225 2008-10-05  Jim Meyering  <meyering@redhat.com>
91227         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91228         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91229         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91231 2008-10-04  Bruno Haible  <bruno@clisp.org>
91233         * modules/dup2 (License): Change to LGPLv2+.
91234         * modules/sleep (License): Likewise.
91235         * modules/perror (License): Likewise.
91236         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91237         Blake.
91238         * modules/signal (License): Likewise.
91239         * modules/sigprocmask (License): Likewise.
91240         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91241         Meyering.
91243 2008-10-04  Bruno Haible  <bruno@clisp.org>
91245         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91246         Reported by Rainer Tammer <tammer@tammer.net>.
91248 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91249             Bruno Haible  <bruno@clisp.org>
91251         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91252         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91253         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91255 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91257         filevercmp: new module
91258         * lib/filevercmp.h: New function filevercmp comparing version strings.
91259         * lib/filevercmp.c: Implementation of filevercmp function.
91260         * modules/filevercmp: Module metadata.
91261         * tests/test-filevercmp.c: Unit test for new module.
91262         * modules/filevercmp-tests: Unit test metadata.
91263         * MODULES.html.sh: Add filevercmp module.
91265 2008-10-03  Bruno Haible  <bruno@clisp.org>
91267         * lib/c-ctype.h: Add comment.
91268         Reported by Jim Meyering.
91270 2008-10-02  Bruno Haible  <bruno@clisp.org>
91272         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91274 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91276         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91277         name of bootstrap.conf accordingly.
91279 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91281         * build-aux/bootstrap: Install git-merge-changelog configuration
91282         items into .gitconfig if needed.
91284 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91286         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91287         git repository, and initialize/update it accordingly.
91289 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91291         * modules/fsync-tests: New file.
91292         * tests/test-fsync.c: New file.
91294         New module 'fsync'.
91295         * lib/fsync.c: New file.
91296         * m4/fsync.m4: New file.
91297         * modules/fsync: New file.
91298         * lib/unistd.in.h (fsync): New declaration.
91299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91300         GNULIB_FSYNC and HAVE_FSYNC.
91301         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91302         * MODULES.html.sh (posix_functions): Add fsync.
91303         * doc/posix-functions/fsync.texi: Mention the new module.
91305 2008-10-02  Jim Meyering  <meyering@redhat.com>
91307         fts.c: sync with similar code from coreutils' remove.c
91308         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91309         Guard also with "#if defined __linux__", since for now at least,
91310         this code is Linux-kernel-specific.
91312 2008-10-02  Jim Meyering  <meyering@redhat.com>
91314         fts: bug fixes
91315         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91316         Include <sys/vfs.h>, not <sys/statfs.h>.
91318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91319         Include <sys/vfs.h>, not <sys/statfs.h>.
91321 2008-10-01  Bruno Haible  <bruno@clisp.org>
91323         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91325         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91326         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91327         * doc/posix-functions/posix_spawnp.texi: Likewise.
91328         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91329         whether posix_spawn actually works.
91330         * m4/pipe.m4 (gl_PIPE): Likewise.
91331         * modules/execute (Files): Add m4/posix_spawn.m4.
91332         * modules/pipe (Files): Add m4/posix_spawn.m4.
91333         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91335 2008-10-01  Jim Meyering  <meyering@redhat.com>
91337         remove trailing spaces
91338         * NEWS: Likewise.
91339         * lib/poll.c (poll): Likewise.
91340         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91341         * lib/winsock.c (rpl_close): Likewise.
91342         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91343         * modules/yield: Likewise.
91344         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91345         * tests/test-sys_select.c (connect_to_socket): Likewise.
91347         fts.c: adjust a new interface to be more generally useful
91348         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91349         (fts_build): Adjust caller.
91351 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91353         * modules/cond-tests: New file.
91354         * tests/test-cond.c: New file.
91356 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91357             Bruno Haible  <bruno@clisp.org>
91359         * modules/cond (Dependencies): Add errno, time.
91360         * lib/glthread/cond.h: Include <time.h>.
91361         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91362         across platforms.
91364 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91365             Bruno Haible  <bruno@clisp.org>
91367         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91370             Bruno Haible  <bruno@clisp.org>
91372         * modules/tls-tests (Depends-on): Add thread, yield.
91373         (configure.ac): Remove all checks.
91374         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91375         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91376         gl_thread_self): Remove definitions. Include glthread/thread.h and
91377         glthread/yield.h instead.
91378         (test_tls): Pass an additional NULL argument to gl_thread_join.
91380 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91381             Bruno Haible  <bruno@clisp.org>
91383         * modules/lock-tests (Depends-on): Add thread, yield.
91384         (configure.ac): Remove all checks.
91385         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91386         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91387         gl_thread_self): Remove definitions. Include glthread/thread.h and
91388         glthread/yield.h instead.
91389         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91390         additional NULL argument to gl_thread_join.
91392 2008-09-30  Bruno Haible  <bruno@clisp.org>
91394         Fix the Win32 implementation of the 'thread' module.
91395         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91396         pointer type.
91397         (gl_thread_self): Invoke gl_thread_self_func.
91398         (gl_thread_self_func): New declaration.
91399         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91400         (do_init_self_key, init_self_key): New functions.
91401         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91402         Remove some fields.
91403         (running_threads, running_lock): Remove variables.
91404         (get_current_thread_handle): New function.
91405         (gl_thread_self_func, wrapper_func, glthread_create_func,
91406         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91407         simplified.
91409 2008-09-30  Bruno Haible  <bruno@clisp.org>
91411         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91412         files.
91414 2008-09-30  Jim Meyering  <meyering@redhat.com>
91416         fts.m4: correct the test for statfs.f_type
91417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91418         when checking for statfs.f_type.
91420 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91422         tests: avoid some compiler warnings
91423         * tests/test-memchr.c (main): Pass NULL indirectly.
91424         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91426 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91428         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91429         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91430         exactly specified dayshifts.
91431         (dayshift): New rule.
91432         (rel): Add dayshift.
91433         (relative_time_table) [tomorrow, yesterday, today, now]:
91434         Use tDAY_SHIFT in place of tDAY_UNIT.
91435         * tests/test-getdate.c: Add tests for now-disallowed countable
91436         dayshifts, e.g., "4 yesterday ago".
91438 2008-09-29  Bruno Haible  <bruno@clisp.org>
91440         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91441         * tests/test-posix_spawn1.in.sh: Renamed from
91442         tests/test-posix_spawn.in.sh.
91443         * tests/test-posix_spawn2.c: New file.
91444         * tests/test-posix_spawn2.in.sh: New file.
91445         * modules/posix_spawnp-tests (Files): Update.
91446         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91448 2008-09-29  Bruno Haible  <bruno@clisp.org>
91450         Propagate effects of putenv/setenv/unsetenv to child processes.
91451         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91452         * lib/pipe.c (create_pipe): Likewise.
91454 2008-09-29  Bruno Haible  <bruno@clisp.org>
91456         Enable use of shell scripts as executables in mingw.
91457         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91458         run the program as a shell script.
91459         * lib/pipe.c (create_pipe): Likewise.
91460         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91461         resulting array.
91463 2008-09-29  Eric Blake  <ebb9@byu.net>
91465         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91467 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91469         * doc/posix-functions/accept.texi: Update mingw problems.
91470         * doc/posix-functions/bind.texi: Update mingw problems.
91471         * doc/posix-functions/close.texi: Update mingw problems.
91472         * doc/posix-functions/connect.texi: Update mingw problems.
91473         * doc/posix-functions/getpeername.texi: Update mingw problems.
91474         * doc/posix-functions/getsockname.texi: Update mingw problems.
91475         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91476         * doc/posix-functions/ioctl.texi: Update mingw problems.
91477         * doc/posix-functions/listen.texi: Update mingw problems.
91478         * doc/posix-functions/recv.texi: Update mingw problems.
91479         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91480         * doc/posix-functions/select.texi: Update mingw problems.
91481         * doc/posix-functions/send.texi: Update mingw problems.
91482         * doc/posix-functions/sendto.texi: Update mingw problems.
91483         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91484         * doc/posix-functions/socket.texi: Update mingw problems.
91486 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91487             Bruno Haible  <bruno@clisp.org>
91489         * lib/sys_select.in.h: Include sys/time.h.
91490         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91491         * modules/sys_select: Depend on sys_time.
91492         * tests/test-sys_select.c: Test that sys/select.h defines struct
91493         timeval fully.
91495 2008-09-29  Bruno Haible  <bruno@clisp.org>
91497         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91498         * lib/sys_select.in.h: Likewise.
91500 2008-09-29  Bruno Haible  <bruno@clisp.org>
91502         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91504 2008-09-29  Bruno Haible  <bruno@clisp.org>
91506         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91507         Set LIBSOCKET instead of augmenting LIBS.
91508         * modules/sockets (Link): New section.
91509         * modules/sockets-tests (test_sockets_LDADD): New variable.
91510         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91511         * modules/poll-tests (test_poll_LDADD): New variable.
91512         * NEWS: Document the change.
91514 2008-09-29  Bruno Haible  <bruno@clisp.org>
91516         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
91517         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
91518         ARPA_INET_H directly.
91519         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91521 2008-09-28  Bruno Haible  <bruno@clisp.org>
91523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
91524         from gl_HEADER_SYS_SOCKET.
91525         (gl_HEADER_SYS_SOCKET): Invoke it.
91526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91528 2008-09-28  Bruno Haible  <bruno@clisp.org>
91530         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
91531         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
91532         Needed on OSF/1 4.0.
91534 2008-09-28  Bruno Haible  <bruno@clisp.org>
91536         Override open more carefully.
91537         * lib/open.c (orig_open): New function.
91538         (rpl_open): Use orig_open instead of open.
91539         * lib/fcntl.in.h: Add special invocation convention.
91540         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
91541         (gl_FUNC_OPEN): Invoke it.
91543         Override freopen more carefully.
91544         * lib/freopen.c (orig_freopen): New function.
91545         (rpl_freopen): Use orig_freopen instead of freopen.
91546         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
91547         (gl_FUNC_FREOPEN): Invoke it.
91549         Override fopen more carefully.
91550         * lib/fopen.c (orig_fopen): New function.
91551         (rpl_fopen): Use orig_fopen instead of fopen.
91552         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
91553         (gl_FUNC_FOPEN): Invoke it.
91554         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
91556 2008-09-28  Bruno Haible  <bruno@clisp.org>
91558         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
91559         SIGPIPE.
91561 2008-09-28  Bruno Haible  <bruno@clisp.org>
91563         * tests/test-sigaction.c (handler, main): Disable the check whether
91564         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
91565         glibc systems with LinuxThreads.
91567 2008-09-28  Bruno Haible  <bruno@clisp.org>
91569         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
91571         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
91572         with AIX xlc.
91573         * lib/fcntl.in.h (open): Likewise.
91574         Reported by Rainer Tammer <tammer@tammer.net>.
91576 2008-09-28  Bruno Haible  <bruno@clisp.org>
91578         * modules/posix_spawnp-tests: New file.
91579         * tests/test-posix_spawn.c: New file.
91580         * tests/test-posix_spawn.in.sh: New file.
91582         New module 'posix_spawnp'.
91583         * modules/posix_spawnp: New file.
91584         * lib/spawnp.c: New file, from GNU libc with modifications.
91585         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
91587         New module 'posix_spawn'.
91588         * modules/posix_spawn: New file.
91589         * lib/spawn.c: New file, from GNU libc with modifications.
91590         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91592         New module 'posix_spawnattr_destroy'.
91593         * modules/posix_spawnattr_destroy: New file.
91594         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91595         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91596         module.
91598         New module 'posix_spawnattr_setsigmask'.
91599         * modules/posix_spawnattr_setsigmask: New file.
91600         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91601         modifications.
91602         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91603         new module.
91605         New module 'posix_spawnattr_getsigmask'.
91606         * modules/posix_spawnattr_getsigmask: New file.
91607         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91608         modifications.
91609         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
91610         new module.
91612         New module 'posix_spawnattr_setsigdefault'.
91613         * modules/posix_spawnattr_setsigdefault: New file.
91614         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91615         modifications.
91616         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91617         new module.
91619         New module 'posix_spawnattr_getsigdefault'.
91620         * modules/posix_spawnattr_getsigdefault: New file.
91621         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91622         modifications.
91623         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91624         new module.
91626         New module 'posix_spawnattr_setschedpolicy'.
91627         * modules/posix_spawnattr_setschedpolicy: New file.
91628         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91629         modifications.
91630         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91631         new module.
91633         New module 'posix_spawnattr_getschedpolicy'.
91634         * modules/posix_spawnattr_getschedpolicy: New file.
91635         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91636         modifications.
91637         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91638         new module.
91640         New module 'posix_spawnattr_setschedparam'.
91641         * modules/posix_spawnattr_setschedparam: New file.
91642         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91643         modifications.
91644         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91645         new module.
91647         New module 'posix_spawnattr_getschedparam'.
91648         * modules/posix_spawnattr_getschedparam: New file.
91649         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91650         modifications.
91651         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91652         new module.
91654         New module 'posix_spawnattr_setpgroup'.
91655         * modules/posix_spawnattr_setpgroup: New file.
91656         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91657         modifications.
91658         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91659         module.
91661         New module 'posix_spawnattr_getpgroup'.
91662         * modules/posix_spawnattr_getpgroup: New file.
91663         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91664         modifications.
91665         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91666         module.
91668         New module 'posix_spawnattr_setflags'.
91669         * modules/posix_spawnattr_setflags: New file.
91670         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91671         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91672         module.
91674         New module 'posix_spawnattr_getflags'.
91675         * modules/posix_spawnattr_getflags: New file.
91676         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91677         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91678         module.
91680         New module 'posix_spawnattr_init'.
91681         * modules/posix_spawnattr_init: New file.
91682         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91683         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91684         module.
91686         New module 'posix_spawn_file_actions_destroy'.
91687         * modules/posix_spawn_file_actions_destroy: New file.
91688         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91689         modifications.
91690         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91691         the new module.
91693         New module 'posix_spawn_file_actions_addopen'.
91694         * modules/posix_spawn_file_actions_addopen: New file.
91695         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91696         modifications.
91697         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91698         the new module.
91700         New module 'posix_spawn_file_actions_adddup2'.
91701         * modules/posix_spawn_file_actions_adddup2: New file.
91702         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91703         modifications.
91704         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91705         the new module.
91707         New module 'posix_spawn_file_actions_addclose'.
91708         * modules/posix_spawn_file_actions_addclose: New file.
91709         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91710         modifications.
91711         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91712         the new module.
91714         New module 'posix_spawn_file_actions_init'.
91715         * modules/posix_spawn_file_actions_init: New file.
91716         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91717         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91718         new module.
91720         New module 'posix_spawn-internal'.
91721         * modules/posix_spawn-internal: New file.
91722         * lib/spawn_int.h: New file, from GNU libc with modifications.
91723         * lib/spawni.c: New file, from GNU libc with modifications.
91724         * m4/posix_spawn.m4: New file.
91726         New module 'spawn'.
91727         * modules/spawn: New file.
91728         * lib/spawn.in.h: New file, from GNU libc with modifications.
91729         * m4/spawn_h.m4: New file.
91730         * doc/posix-headers/spawn.texi: Mention the new module.
91732 2008-09-28  Bruno Haible  <bruno@clisp.org>
91734         * modules/sched-tests: New file.
91735         * tests/test-sched.c: New file.
91737         New module 'sched'.
91738         * modules/sched: New file.
91739         * lib/sched.in.h: New file.
91740         * m4/sched_h.m4: New file.
91741         * doc/posix-headers/sched.texi: Mention the new module.
91743 2008-09-27  Eric Blake  <ebb9@byu.net>
91745         Fix previous patch, and tweak references to $0.
91746         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91747         (func_version, func_gnulib_dir): Don't call this program
91748         gnulib-tool.
91749         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91750         with using $0 in function.
91751         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91752         (func_fatal_error): Reuse the name the user invoked us with.
91754 2008-09-27  Bruno Haible  <bruno@clisp.org>
91756         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91757         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91758         (gl_ICONV_H): Not here.
91759         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91760         instead of assigning ICONV_H directly.
91762         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91764         WCHAR_H directly.
91766 2008-09-27  Bruno Haible  <bruno@clisp.org>
91768         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91769         * modules/arpa_inet (Depends-on): Add link-warning.
91770         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91771         * modules/unistd (Makefile.am): Likewise.
91773 2008-09-26  Bruno Haible  <bruno@clisp.org>
91775         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91776         variables.
91777         (func_version): Essentially copied from gnulib-tool.
91778         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91779         func_readlink): Copied from gnulib-tool.
91781 2008-09-26  Bruno Haible  <bruno@clisp.org>
91783         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91784         invoking git-version-gen.
91786 2008-09-26  Bruno Haible  <bruno@clisp.org>
91788         * posix-modules: Update to directory names changed on 2008-01-19.
91789         Remove commas in output before splitting into words. No more need to
91790         avoid 'ftruncate' since 2007-02-19.
91792 2008-09-26  Bruno Haible  <bruno@clisp.org>
91794         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91796 2008-09-26  Bruno Haible  <bruno@clisp.org>
91798         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91799         * modules/fwriteerror (Depends-on): Add errno.
91801 2008-09-26  Bruno Haible  <bruno@clisp.org>
91803         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91804         * tests/test-vc-list-files-cvs.sh: Likewise.
91806 2008-09-26  Bruno Haible  <bruno@clisp.org>
91808         * doc/posix-headers/sys_resource.texi: Reorder items.
91810 2008-09-26  Jim Meyering  <meyering@redhat.com>
91812         fts: tweak inode comparison function
91813         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91814         inode numbers, as documented.
91816         fts: sort dirent entries on inode number before traversing
91817         This avoids a quadratic, seek-related performance penalty when
91818         operating on a directory containing many entries (measurable at 10k;
91819         3.5 hours at 2 million entries with a cold cache) on certain types
91820         of file systems, including ext3 and ext4, but not tmpfs.
91821         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91822         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91823         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91824         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91825         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91826         (fts_build): Set the stat.st_ino member from D_INO.
91827         If it is likely to be useful, sort dirent entries on inode number.
91829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91830         and the struct statfs.f_type member.
91831         * modules/fts (Depends-on): Add d-ino.
91833 2008-09-26  Bruno Haible  <bruno@clisp.org>
91835         * modules/sigpipe-die (Depends-on): Add sigpipe.
91837         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91838         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91839         and GNULIB_STDIO_H_SIGPIPE are set.
91840         * lib/stdio-write.c: New file.
91841         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91844         REPLACE_STDIO_WRITE_FUNCS.
91845         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91846         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91847         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91848         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91849         * modules/stdio (Files): Add lib/stdio-write.c.
91850         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91851         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91852         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91853         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91854         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91855         REPLACE_FPRINTF_POSIX.
91856         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91857         REPLACE_PRINTF_POSIX.
91858         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91859         REPLACE_VFPRINTF_POSIX.
91860         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91861         REPLACE_VPRINTF_POSIX.
91862         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91863         SIGPIPE issue.
91864         * doc/posix-functions/fputc.texi: Likewise.
91865         * doc/posix-functions/fputs.texi: Likewise.
91866         * doc/posix-functions/fwrite.texi: Likewise.
91867         * doc/posix-functions/printf.texi: Likewise.
91868         * doc/posix-functions/putc.texi: Likewise.
91869         * doc/posix-functions/putchar.texi: Likewise.
91870         * doc/posix-functions/puts.texi: Likewise.
91871         * doc/posix-functions/vfprintf.texi: Likewise.
91872         * doc/posix-functions/vprintf.texi: Likewise.
91874         * modules/safe-write (Depends-on): Add write.
91876         * modules/sigpipe-tests: New file.
91877         * tests/test-sigpipe.c: New file.
91878         * tests/test-sigpipe.sh: New file.
91880         * modules/write: New file.
91881         * lib/unistd.in.h: Include <sys/types.h>.
91882         (write): New declaration.
91883         * lib/write.c: New file.
91884         * m4/write.m4: New file.
91885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91886         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91887         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91888         GNULIB_WRITE, REPLACE_WRITE.
91889         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91890         and the SIGPIPE issue.
91892         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91893         (raise): New declaration.
91894         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91895         (ext_signal): New function.
91896         (rpl_raise): New function.
91897         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91898         GNULIB_SIGNAL_H_SIGPIPE.
91899         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91900         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91902         * modules/sigpipe: New file.
91903         * m4/sigpipe.m4: New file.
91905 2008-09-25  Derek Price  <derek@ximbiot.com>
91906             Bruno Haible  <bruno@clisp.org>
91908         * gnulib-tool (func_import): Report all license incompatibilities, not
91909         just the first one.
91911 2008-09-25  Bruno Haible  <bruno@clisp.org>
91913         * gnulib-tool (func_import): When computing the edits, consider not
91914         only the Makefile.ams that exist but also those that will be generated.
91916 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91918         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91919         fixes gnulib-tool --test warning about duplicate dependency.
91921 2008-09-25  Bruno Haible  <bruno@clisp.org>
91923         * gnulib-tool: Don't ask the user to perform edits in the generated
91924         Makefile.ams.
91925         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91926         apply to the Makefile.am being generated.
91927         (func_emit_tests_Makefile_am): Execute edits that apply to the
91928         Makefile.am being generated.
91929         (func_import): Setup list of Makefile.am edits before emitting the
91930         Makefile.ams, not at the end.
91931         (func_create_testdir): Update.
91932         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91934 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91936         * gnulib-tool (func_import): Store the --tests-base option in the
91937         comment in gnulib-cache.m4.
91939 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
91941         * NEWS: Document increased portability that sys_select now provides.
91943         * lib/sys_select.in.h: Install select wrapper.
91944         * lib/sys_socket.in.h: Use more descriptive name when there is no
91945         select wrapper.
91946         * lib/winsock-select.c: New.
91947         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91948         Require gl_HEADER_SYS_SOCKET.
91949         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91950         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91951         * tests/test-sys_select.c: Add functional tests.
91953 2008-09-24  Eric Blake  <ebb9@byu.net>
91955         open, fopen: close fd leak in last patch
91956         * lib/open.c (rpl_open): Close fd before returning error.
91957         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91958         * doc/posix-functions/open.texi (open): Document that Irix also
91959         has the bug.
91960         * doc/posix-functions/fopen.texi (fopen): Likewise.
91961         Reported by Paolo Bonzini.
91963 2008-09-24  Bruno Haible  <bruno@clisp.org>
91965         Ensure that a filename ending in a slash cannot be used to access a
91966         non-directory.
91967         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91968         to check whether it's really a directory.
91969         * lib/fopen.c: Include fcntl.h, unistd.h.
91970         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91971         and fdopen().
91972         * modules/fopen (Depends-on): Add unistd.
91973         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91974         * tests/test-fopen.c (main): Likewise.
91975         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91976         * doc/posix-functions/fopen.texi: Likewise.
91977         Reported by Eric Blake.
91979 2008-09-23  Eric Blake  <ebb9@byu.net>
91981         c-stack: avoid compiler optimizations when provoking overflow
91982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91983         recursion harder to optimize, to ensure a stack overflow occurs.
91984         * tests/test-c-stack.c (recurse): Likewise.
91985         Borrowed from libsigsegv.
91987         c-stack: work around Irix sigaltstack bug
91988         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91989         whether sigaltstack uses wrong end of stack_t (copied in part from
91990         libsigsegv).
91991         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91992         Irix bug, without requiring an over-allocation.
91993         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91994         bug.
91996         fopen: document mingw bug on directories
91997         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91998         not allowing a stream visiting a directory, even though reading
91999         from such a stream is not portable.
92001 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92003         * lib/poll.c: Rewrite.
92004         * modules/poll: Depend on alloca.
92006 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92008         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92009         instead define prototypes for a full set of wrappers.  Ensure
92010         that Cygwin does not use the compatibility code, which is only
92011         for MinGW.
92012         * lib/winsock.c: New.
92013         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92014         * modules/sys_socket: Add lib/winsock.c.
92016         * modules/poll-tests: Add errno and perror.
92017         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92019 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92021         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92023 2008-09-23  Bruno Haible  <bruno@clisp.org>
92025         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92026         * doc/glibc-functions/*: Likewise.
92028 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92030         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92031         success.
92033 2008-09-22  Eric Blake  <ebb9@byu.net>
92034             Bruno Haible  <bruno@clisp.org>
92036         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92037         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92038         supply %A but mishandle pseudo-NaN.
92039         Reported by Simon Josefsson.
92041 2008-09-21  Bruno Haible  <bruno@clisp.org>
92043         * tests/test-lock.c (main): Tweak skip message.
92044         * tests/test-tls.c (main): Likewise.
92046 2008-09-21  Bruno Haible  <bruno@clisp.org>
92048         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92049         whether 'struct sigaction' has sa_sigaction here...
92050         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92051         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92053 2008-09-21  Bruno Haible  <bruno@clisp.org>
92055         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92056         section.
92057         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92058         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92059         the new section.
92060         (Support for obsolete systems lacking POSIX:2001): New section.
92061         (String handling <string.h>): Move strdup to the new section.
92062         Suggested by Simon Josefsson and Paolo Bonzini.
92064 2008-09-21  Bruno Haible  <bruno@clisp.org>
92066         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92067         exponents in %e and %g results on 'long double'. Needed for mingw's
92068         improved *printf functions.
92069         * tests/test-vasprintf-posix.c (test_function): Likewise.
92070         * tests/test-snprintf-posix.h (test_function): Likewise.
92071         * tests/test-sprintf-posix.h (test_function): Likewise.
92072         Reported by Eric Blake.
92074 2008-09-21  Bruno Haible  <bruno@clisp.org>
92076         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92077         * tests/test-sprintf-posix.h (test_function): Likewise.
92079 2008-09-21  Bruno Haible  <bruno@clisp.org>
92081         * modules/getpass (Depends-on): Add strdup-posix.
92083         New module 'strdup-posix'.
92084         * modules/strdup-posix: New file.
92085         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92086         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92088         REPLACE_STRDUP.
92089         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92090         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92092         strdup-posix.
92094         * modules/strdup (Depends-on): Remove malloc-posix.
92096 2008-09-20  Bruno Haible  <bruno@clisp.org>
92098         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92099         Wildenhues.
92101 2008-09-20  Bruno Haible  <bruno@clisp.org>
92103         Ensure that wint_t gets defined on IRIX 5.3.
92104         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92105         * lib/wctype.in.h (wint_t): Likewise.
92106         (__wctype_wint_t): Remove type.
92107         (isw*): Use wint_t instead of __wctype_wint_t.
92108         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92109         * modules/wchar (Files): Add m4/wint_t.m4.
92110         (Makefile.am): Substitute HAVE_WINT_T.
92111         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92112         * tests/test-wctype.c: Check that wint_t is defined.
92113         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92114         * doc/posix-headers/wctype.texi: Likewise.
92115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92117 2008-09-18  Bruno Haible  <bruno@clisp.org>
92119         * gnulib-tool (func_exit): Update comment.
92121 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92123         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92124         assumes strdup exists and does not depend on strdup to return
92125         ENOMEM on out of memory conditions.
92127 2008-09-18  Bruno Haible  <bruno@clisp.org>
92129         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92130         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92131         digits for the exponent.
92133 2008-09-18  Jim Meyering  <meyering@redhat.com>
92134             Bruno Haible  <bruno@clisp.org>
92136         * lib/vasnprintf.c (decimal_point_char): Define also if
92137         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92139 2008-09-16  Bruno Haible  <bruno@clisp.org>
92140         and Eric Blake  <ebb9@byu.net>
92142         vasnprintf: support Irix 5.3
92143         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92144         that mishandle long double infinity.
92145         Reported by Tom G. Christensen.
92147 2008-09-16  Bruno Haible  <bruno@clisp.org>
92149         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92150         Solaris 9.
92151         * doc/glibc-functions/alphasort.texi: Likewise.
92152         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92154 2008-09-16  Jim Meyering  <meyering@redhat.com>
92156         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92157         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92158         a umask modification leak out of a subshell.  Otherwise, the
92159         opensolaris /bin/sh would be accepted and thus cause unwarranted
92160         failures in the coreutils test suite.
92162 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92164         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92165         to succeed.
92167 2008-09-16  Jim Meyering  <meyering@redhat.com>
92169         avoid spurious test failure when library is built without ACL support
92170         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92171         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92172         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92173         * tests/test-copy-acl.sh: Likewise.
92175 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92177         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92178         based on character occurrence counts.
92180 2008-09-15  Eric Blake  <ebb9@byu.net>
92182         tests: avoid some compiler warnings
92183         * tests/test-memchr.c (main): Pass NULL indirectly.
92184         * tests/test-closein.c (main): Avoid unused variable.
92186 2008-09-15  Bruno Haible  <bruno@clisp.org>
92188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92189         are missing on OpenBSD 4.0 individually.
92190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92192 2008-09-15  Bruno Haible  <bruno@clisp.org>
92194         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92195         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92196         * doc/posix-functions/perror.texi: Likewise.
92197         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92198         is missing.
92199         Reported by Eric Blake.
92201         * lib/errno.in.h: Use replacement values >= 2000.
92202         Reported by Eric Blake.
92204 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92206         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92207         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92208         limit.
92209         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92210         compareseq was aborted.
92212 2008-09-14  Bruno Haible  <bruno@clisp.org>
92214         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92215         yvec_edit_count.
92216         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92217         (fstrcmp_bounded): Simplify result computation accordingly.
92219 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92221         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92222         (fstrcmp): Define in terms of fstrcmp_bounded.
92223         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92224         lower_bound argument.
92225         Return quickly if the result is certainly < lower_bound.
92226         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92228 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92230         * lib/diffseq.h (EARLY_ABORT): New macro.
92231         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92232         evaluates to true.
92234 2008-09-14  Bruno Haible  <bruno@clisp.org>
92236         * modules/perror-tests: New file.
92237         * tests/test-perror.sh: New file.
92238         * tests/test-perror.c: New file.
92240         New module 'perror'.
92241         * lib/stdio.in.h (perror): New declaration.
92242         * lib/perror.c: New file.
92243         * m4/perror.m4: New file.
92244         * modules/perror: New file.
92245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92246         * doc/posix-functions/perror.texi: Mention the perror module.
92247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92248         REPLACE_PERROR.
92249         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92250         REPLACE_PERROR.
92252 2008-09-14  Bruno Haible  <bruno@clisp.org>
92254         * modules/stdio (Makefile.am): Reorder to match the order in
92255         lib/stdio.in.h.
92256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92258 2008-09-13  Bruno Haible  <bruno@clisp.org>
92260         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92262 2008-09-13  Bruno Haible  <bruno@clisp.org>
92264         Extend strerror to cover the added errno values.
92265         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92266         (rpl_strerror): Provide error messages for the added errno values and
92267         for the WSA* values.
92268         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92269         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92270         strerror.
92271         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92272         * modules/strerror (Depends-on): Add errno.
92273         * doc/posix-functions/strerror.texi: Document the change.
92274         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92275         and EOVERFLOW.
92277 2008-09-13  Bruno Haible  <bruno@clisp.org>
92279         * modules/EOVERFLOW: Remove file.
92280         * m4/eoverflow.m4: Remove file.
92281         * modules/EOVERFLOW-tests: Remove file.
92282         * tests/test-EOVERFLOW.c: Remove file.
92283         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92284         * modules/ftell (Depends-on): Likewise.
92285         * modules/getdelim (Depends-on): Likewise.
92286         * modules/getugroups (Depends-on): Likewise.
92287         * modules/poll (Depends-on): Likewise.
92288         * modules/snprintf (Depends-on): Likewise.
92289         * modules/sprintf-posix (Depends-on): Likewise.
92290         * modules/vasnprintf (Depends-on): Likewise.
92291         * modules/vasprintf (Depends-on): Likewise.
92292         * modules/vfprintf-posix (Depends-on): Likewise.
92293         * modules/vsnprintf (Depends-on): Likewise.
92294         * modules/vsprintf-posix (Depends-on): Likewise.
92295         * modules/xvasprintf (Depends-on): Likewise.
92296         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92297         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92298         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92299         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92300         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92301         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92302         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92303         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92304         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92305         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92306         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92307         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92309         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92310         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92311         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92312         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92313         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92314         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92315         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92316         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92317         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92318         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92319         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92320         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92321         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92322         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92323         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92324         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92325         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92326         * MODULES.html.sh: Remove EOVERFLOW.
92327         * NEWS: Mention the change.
92329 2008-09-13  Bruno Haible  <bruno@clisp.org>
92331         * modules/errno-tests: New file.
92332         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92334         * lib/errno.in.h: New file.
92335         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92336         * modules/errno: New file.
92337         * doc/posix-headers/errno.texi: Update documentation.
92338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92340 2008-09-13  Bruno Haible  <bruno@clisp.org>
92342         * tests/test-poll.c: Use #if for native Windows, rather than testing
92343         __MSVCRT__.
92345 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92346             Bruno Haible  <bruno@clisp.org>
92348         * lib/glob.c: Don't include <pwd.h> on native Windows.
92349         (WINDOWS32): New macro.
92350         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92352 2008-09-13  Bruno Haible  <bruno@clisp.org>
92354         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92355         (ETIMEDOUT): Remove macro.
92356         (glthread_cond_timedwait_multithreaded): New declaration.
92357         (glthread_cond_timedwait): Use it.
92358         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92359         (glthread_cond_timedwait_multithreaded): New function.
92361 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92363         * modules/poll-tests: Do not check for io.h.
92364         * tests/test-poll.c: Check for __MSVCRT__ instead.
92366 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92368         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92369         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92370         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92372 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92374         * modules/poll-tests: New.
92375         * tests/test-poll.c: New.
92377 2008-09-12  Eric Blake  <ebb9@byu.net>
92379         frexp: test for NetBSD failure on -0.0
92380         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92381         not all, bugs from NetBSD 3.0 have been fixed.
92382         * doc/posix-functions/frexp.texi (frexp): Document bug.
92383         Reported by Thomas Klausner.
92385         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92386         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92387         literal -0.0.
92388         Reported by Jonathan C. Patschke <jp@centtech.com>.
92390 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92392         * lib/glthread/cond.h: Use dummy implementation also if
92393         USE_WIN32_THREADS.
92395 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92397         * modules/fnmatch-posix (License): Change to LGPLv2+.
92398         * modules/fnmatch-gnu (License): Likewise.
92400 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92402         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92404 2008-09-11  Jim Meyering  <meyering@redhat.com>
92406         * users.txt: Add gtk-vnc.
92408 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92410         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92411         rotate amounts.
92413         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92414         required for 16-bit and 8-bit rotates.
92415         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92416         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92417         UINT8_MAX instead of hard-coded constants.
92418         Suggested by Paul Eggert.
92420 2008-09-07  Bruno Haible  <bruno@clisp.org>
92422         * tests/test-striconveh.c (main): Check behaviour when converting from
92423         UTF-7.
92425         Make striconveh work better with stateful encodings.
92426         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92427         that iconv does not increment the inptr when returning -1/EINVAL.
92429 2008-09-07  Bruno Haible  <bruno@clisp.org>
92431         * build-aux/config.rpath: Update according to libtool-2.2.6.
92432         * build-aux/config.libpath: Likewise.
92434 2008-09-06  Bruno Haible  <bruno@clisp.org>
92436         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92437         * lib/freadptr.c (freadptr): Likewise.
92438         * lib/freadseek.c (freadptrinc): Likewise.
92439         Reported by Simon Josefsson.
92441 2008-09-06  Bruno Haible  <bruno@clisp.org>
92443         * modules/freadptr (License): Change to LGPLv2+.
92444         * modules/freadseek (License): Likewise.
92445         Suggested by Eric Blake.
92447         * modules/memchr2 (License): Change to LGPLv2+.
92448         Approved by Eric Blake.
92450 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92451             Bruno Haible  <bruno@clisp.org>
92453         Make gnulib-tool work with native 'sed' on AIX.
92454         * gnulib-tool (sed_noop): New variable.
92455         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92456         func_add_or_update, func_create_testdir): Use it to initialize sed
92457         script variables.
92458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92460 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92461             Bruno Haible  <bruno@clisp.org>
92463         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92464         also works after #include directives.
92466 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92468         getdate.y: reject an out-of-range timezone value
92469         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92470         the range [-24...+24].  When specified with only one or two digits,
92471         * tests/test-getdate.c: Tests for the fix.
92472         * doc/getdate.texi: Document this change.
92474 2008-09-03  Bruno Haible  <bruno@clisp.org>
92476         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92478 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92480         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92481         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92482         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92483         Blake <ebb9@byu.net>.
92485         * tests/test-bitrotate.c: Add more test vectors.
92487 2008-09-02  Eric Blake  <ebb9@byu.net>
92489         vasnprintf-posix: handle large precision via %.*d
92490         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92491         when handling it ourselves.
92492         * tests/test-vasnprintf-posix.c (test_function): Add test.
92493         * tests/test-snprintf-posix.h (test_function): Likewise.
92494         * tests/test-sprintf-posix.h (test_function): Likewise.
92495         * tests/test-vasprintf-posix.c (test_function): Likewise.
92496         Reported by Alain Guibert.
92498 2008-09-01  Eric Blake  <ebb9@byu.net>
92500         c-stack: make configure-time check more robust
92501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92502         successful sigaction call.
92503         Reported by Tom G. Christensen.
92505 2008-09-01  Bruno Haible  <bruno@clisp.org>
92507         New module 'findprog-lgpl'.
92508         * modules/findprog-lgpl: New file.
92509         * lib/findprog-lgpl.c: New file.
92510         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92511         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92512         to decide whether to use strdup or xstrdup, concatenated_filename or
92513         xconcatenated_filename.
92515 2008-09-01  Bruno Haible  <bruno@clisp.org>
92517         Split module 'concat-filename' into 'concat-filename' (LGPL) and
92518         'xconcat-filename' (GPL).
92519         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
92520         (License): Change to LGPLv2+.
92521         * modules/xconcat-filename: New file.
92522         * lib/concat-filename.h (concatenated_filename): Change specification.
92523         (xconcatenated_filename): New declaration.
92524         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
92525         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
92526         memory situations.
92527         * lib/xconcat-filename.c: New file.
92528         * NEWS: Mention the change.
92529         * lib/findprog.c: Include concat-filename.h, not filename.h.
92530         (find_in_path): Use xconcatenated_filename instead of
92531         concatenated_filename.
92532         * lib/javacomp.c: Include concat-filename.h, not filename.h.
92533         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
92534         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
92535         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
92536         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
92537         instead of concatenated_filename.
92538         * lib/javaexec.c: Include concat-filename.h, not filename.h.
92539         (execute_java_class): Use xconcatenated_filename instead of
92540         concatenated_filename.
92541         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
92542         * modules/javacomp (Depends-on): Likewise.
92543         * modules/javaexec (Depends-on): Likewise.
92545 2008-09-01  Bruno Haible  <bruno@clisp.org>
92547         Split module 'filename' into 'filename' and 'concat-filename'.
92548         * modules/filename: Keep only lib/filename.h.
92549         (License): Change to LGPLv2+.
92550         * modules/concat-filename: New file, extracted from modules/filename.
92551         * lib/filename.h (concatenated_filename): Remove declaration.
92552         * lib/concat-filename.h: New file, extracted from lib/filename.h.
92553         * lib/concat-filename.c: Include concat-filename.h.
92554         * NEWS: Mention the change.
92556 2008-09-01  Simon Josefsson  <simon@josefsson.org>
92558         * lib/bitrotate.h (rotl8, rotr8): Add.
92560         * modules/bitrotate (configure.ac): Need
92561         AC_REQUIRE([AC_C_INLINE]).
92562         (Description): Mention stdint.h.  Reported by Bruno Haible
92563         <bruno@clisp.org>.
92565         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
92566         Paolo Bonzini <bonzini@gnu.org>.
92568 2008-08-31  Bruno Haible  <bruno@clisp.org>
92570         Assume Solaris specific bi-arch conventions on Solaris systems.
92571         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
92572         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
92573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
92574         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
92575         like acl_libdirstem.
92576         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
92577         acl_libdirstem.
92578         * NEWS: Mention the change.
92579         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
92581 2008-08-31  Jim Meyering  <meyering@redhat.com>
92583         * lib/strftime.h: Add comments describing the two added arguments.
92585         remove duplicate #include directives
92586         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
92587         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
92589 2008-08-31  Bruno Haible  <bruno@clisp.org>
92591         New module 'sigpipe-die'.
92592         * modules/sigpipe-die: New file.
92593         * lib/sigpipe-die.h: New file.
92594         * lib/sigpipe-die.c: New file.
92595         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92597 2008-08-31  Bruno Haible  <bruno@clisp.org>
92599         Don't override previously installed signal handlers.
92600         * lib/fatal-signal.c (saved_sigactions): New variable.
92601         (uninstall_handlers): Reset the signal to the saved handler, not
92602         to SIG_DFL (except when ignored).
92603         (install_handlers): Save the previous handlers.
92605 2008-08-30  Bruno Haible  <bruno@clisp.org>
92607         * gnulib-tool (func_reset_sigpipe): New function.
92608         (func_get_automake_snippet, func_modules_transitive_closure,
92609         func_import): Invoke it before a join command that reads from stdin,
92610         to avoid "echo: write error: Broken pipe" error messages on stderr.
92611         Reported by Sam Steingold <sds@gnu.org>.
92613 2008-08-30  Bruno Haible  <bruno@clisp.org>
92615         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92616         Code copied from m4/open.m4.
92617         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92618         access and the filename ends in a slash. Code copied from lib/open.c.
92619         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92620         * tests/test-fopen.c (main): Check against bug with trailing slash.
92622 2008-08-29  Bruno Haible  <bruno@clisp.org>
92624         Avoid some "gcc -pedantic" warnings.
92625         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92626         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92627         * lib/dirent.in.h: Likewise.
92628         * lib/fcntl.in.h: Likewise.
92629         * lib/float.in.h: Likewise.
92630         * lib/iconv.in.h: Likewise.
92631         * lib/inttypes.in.h: Likewise.
92632         * lib/locale.in.h: Likewise.
92633         * lib/math.in.h: Likewise.
92634         * lib/netinet_in.in.h: Likewise.
92635         * lib/search.in.h: Likewise.
92636         * lib/signal.in.h: Likewise.
92637         * lib/stdarg.in.h: Likewise.
92638         * lib/stdint.in.h: Likewise.
92639         * lib/stdio.in.h: Likewise.
92640         * lib/stdlib.in.h: Likewise.
92641         * lib/string.in.h: Likewise.
92642         * lib/strings.in.h: Likewise.
92643         * lib/sys_select.in.h: Likewise.
92644         * lib/sys_socket.in.h: Likewise.
92645         * lib/sys_stat.in.h: Likewise.
92646         * lib/sys_time.in.h: Likewise.
92647         * lib/sysexits.in.h: Likewise.
92648         * lib/time.in.h: Likewise.
92649         * lib/unistd.in.h: Likewise.
92650         * lib/wchar.in.h: Likewise.
92651         * lib/wctype.in.h: Likewise.
92652         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92653         * modules/fchdir (Makefile.am): Likewise.
92654         * modules/fcntl (Makefile.am): Likewise.
92655         * modules/float (Makefile.am): Likewise.
92656         * modules/iconv_open (Makefile.am): Likewise.
92657         * modules/inttypes (Makefile.am): Likewise.
92658         * modules/locale (Makefile.am): Likewise.
92659         * modules/math (Makefile.am): Likewise.
92660         * modules/netinet_in (Makefile.am): Likewise.
92661         * modules/search (Makefile.am): Likewise.
92662         * modules/signal (Makefile.am): Likewise.
92663         * modules/stdarg (Makefile.am): Likewise.
92664         * modules/stdint (Makefile.am): Likewise.
92665         * modules/stdio (Makefile.am): Likewise.
92666         * modules/stdlib (Makefile.am): Likewise.
92667         * modules/string (Makefile.am): Likewise.
92668         * modules/strings (Makefile.am): Likewise.
92669         * modules/sys_select (Makefile.am): Likewise.
92670         * modules/sys_socket (Makefile.am): Likewise.
92671         * modules/sys_stat (Makefile.am): Likewise.
92672         * modules/sys_time (Makefile.am): Likewise.
92673         * modules/sysexits (Makefile.am): Likewise.
92674         * modules/time (Makefile.am): Likewise.
92675         * modules/unistd (Makefile.am): Likewise.
92676         * modules/wchar (Makefile.am): Likewise.
92677         * modules/wctype (Makefile.am): Likewise.
92678         Reported by Reuben Thomas <rrt@sc3d.org>.
92680 2008-08-29  Bruno Haible  <bruno@clisp.org>
92682         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92683         any more.
92685 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92687         * MODULES.html.sh (Misc): Add bitrotate.
92689         * modules/bitrotate: New file.
92691         * lib/bitrotate.h: New file.
92693         * modules/bitrotate-tests: New file.
92695         * tests/test-bitrotate.c: New file.
92697         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92698         on the bitrotate module.
92700         * lib/arctwo.c: Use new bitrotate module.
92702 2008-08-29  Jim Meyering  <meyering@redhat.com>
92704         bootstrap: merge changes from coreutils
92705         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92706         of copied files.  Remove a kludge, now that this is fixed.
92707         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92708         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92709         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92711 2008-08-29  Bruno Haible  <bruno@clisp.org>
92713         * MODULES.html.sh: Remove --cvs-urls option.
92715 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92717         maint.mk: adjust to file name change
92718         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92720 2008-08-28  Jim Meyering  <meyering@redhat.com>
92722         * modules/getndelim2 (License): Relicense to LGPLv2+.
92723         Approved by Richard Stallman for the version of 1995, and by
92724         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92726 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92728         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92729         dummy if one is not available.  Do not touch them if
92730         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92731         (getc_maybe_unlocked): New.
92732         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92734 2008-08-26  Eric Blake  <ebb9@byu.net>
92736         doc/INSTALL: resync from autoconf
92737         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92738         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92739         moving...
92740         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92741         * INSTALL: Regenerate.
92742         * INSTALL.ISO: New file.
92743         * INSTALL.UTF-8: Likewise.
92745 2008-08-26  Jim Meyering  <meyering@redhat.com>
92747         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92748         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92749         these definitions conditional, so that they may be overridden, too.
92751 2008-08-26  Bruno Haible  <bruno@clisp.org>
92753         Generate INSTALL file variants with prettier quotes.
92754         * doc/Makefile (INSTALL_PRELUDE): New macro.
92755         (INSTALL): Use it.
92756         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92758 2008-08-26  Bruno Haible  <bruno@clisp.org>
92760         Run makeinfo in an English locale.
92761         * doc/Makefile (MAKEINFO): New variable.
92763 2008-08-26  Bruno Haible  <bruno@clisp.org>
92765         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92766         Suggested by Eric Blake.
92768 2008-08-25  Bruno Haible  <bruno@clisp.org>
92770         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92772 2008-08-25  Eric Blake  <ebb9@byu.net>
92774         c-stack: test that stack overflow can be caught
92775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92776         that platform allows handling stack overflow; at least OS/2 EMX
92777         has sigaltstack, but crashes before transferring control to
92778         handler on stack overflow.
92779         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92780         check for HAVE_STACK_OVERFLOW_HANDLING.
92781         Reported by Elbert Pol.
92783 2008-08-25  Bruno Haible  <bruno@clisp.org>
92785         * doc/posix-functions/strftime.texi: Fix description of strftime
92786         module.
92788 2008-08-24  Bruno Haible  <bruno@clisp.org>
92790         * tests/uniwidth/test-uc_width2.c: New file.
92791         * tests/uniwidth/test-uc_width2.sh: New file.
92792         * modules/uniwidth/width-tests (Files): Add the new files.
92793         (TESTS): Add uniwidth/test-uc_width2.sh.
92794         (TESTS_ENVIRONMENT): New variable.
92795         (check_PROGRAMS): Add test-uc_width2.
92796         (test_uc_width2_SOURCES): New variable.
92798         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92799         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92800         not 0x00AB.
92801         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92803 2008-08-22  Eric Blake  <ebb9@byu.net>
92805         test-lock, test-tls: mention why a test is skipped
92806         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92807         skipped.
92808         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92810         count-one-bits: relax license
92811         * modules/count-one-bits (License): Relicense to LGPLv2+.
92812         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92814 2008-08-22  Andreas Schwab  <schwab@suse.de>
92816         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92817         Remove spurious space in assignment.
92819 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92821         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92822         Paul Eggert <eggert@CS.UCLA.EDU>.
92824 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92826         * modules/gettext: Add m4/threadlib.m4.
92828 2008-08-19  Eric Blake  <ebb9@byu.net>
92830         test-c-stack: fix compilation failure on FreeBSD 5.0
92831         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92832         headers before <sys/resource.h>.
92833         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92834         the bug.
92835         Reported by Nelson H. F. Beebe.
92837         strverscmp: migrate from "strverscmp.h" to <string.h>
92838         * modules/string (Makefile.am): Add new hooks.
92839         * modules/strverscmp (Files): Remove strverscmp.h.
92840         (Depends-on): Add string.
92841         (configure.ac): Add indicator.
92842         (Include): Mention new header.
92843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92844         defaults.
92845         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92846         results.
92847         * lib/strverscmp.h: Delete.
92848         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92849         * tests/test-strverscmp.c (includes): Adjust client.
92850         * lib/check-version.c (includes): Likewise.
92851         * NEWS: Document the change.
92853         strverscmp: add unit test
92854         * modules/strverscmp-tests: New file.
92855         * tests/test-strverscmp.c: Likewise.
92857 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92859         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92860         regarding Windows crypto stuff, from Mono.
92862 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92864         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92865         if present, for intel RND.  Return error on failures.
92867 2008-08-18  Ben Pfaff  <blp@gnu.org>
92869         gitlog-to-changelog: give better diagnostic for failed pipe-open
92870         * build-aux/gitlog-to-changelog: Improve error message: suggest
92871         that the version of Git may be too old.
92873 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92875         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92876         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92878 2008-08-18  Bruno Haible  <bruno@clisp.org>
92880         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92881         pthread_in_use().
92883 2008-08-18  Bruno Haible  <bruno@clisp.org>
92885         * lib/glthread/threadlib.c: Include <pthread.h>.
92887 2008-08-18  Bruno Haible  <bruno@clisp.org>
92889         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92890         glthread_recursive_lock_* macros.
92891         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92892         Fix syntax error.
92894 2008-08-18  Bruno Haible  <bruno@clisp.org>
92896         * lib/glthread/thread.c: Avoid forcing a context switch right after
92897         thread creation.
92899 2008-08-17  Bruno Haible  <bruno@clisp.org>
92901         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92902         * lib/glthread/thread.h: Provide Win32 specific implementation.
92903         * modules/thread (Files): Add lib/glthread/thread.c.
92904         (Depends-on): Add lock.
92905         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92907 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92909         New module 'yield'.
92910         * modules/yield: New file.
92911         * lib/glthread/yield.h: New file.
92912         * m4/yield.m4: New file.
92913         * MODULES.html.sh (Multithreading): Add yield.
92915 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92917         New module 'thread'.
92918         * modules/thread: New file.
92919         * lib/glthread/thread.h: New file.
92920         * m4/thread.m4: New file.
92921         * MODULES.html.sh (Multithreading): Add thread.
92923 2008-08-17  Bruno Haible  <bruno@clisp.org>
92925         * lib/glthread/lock.h: Include <stdlib.h> always.
92926         * lib/glthread/tls.h: Likewise.
92927         * lib/glthread/cond.h: Likewise.
92929 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92931         New module 'cond'.
92932         * modules/cond: New file.
92933         * lib/glthread/cond.h: New file.
92934         * lib/glthread/cond.c: New file.
92935         * m4/cond.m4: New file.
92936         * MODULES.html.sh (Multithreading): Add cond.
92938 2008-08-16  Eric Blake  <ebb9@byu.net>
92940         c-stack: fix regression on Irix 5.3 from 2008-06-21
92941         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
92942         sa_sigaction...
92943         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
92944         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
92945         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
92946         * modules/signal (Makefile.am): Use the value.
92947         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92948         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92949         * doc/posix-headers/signal.texi (signal.h): Document this
92950         portability issue.
92951         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92952         Reported by Tom G. Christensen.
92954 2008-08-17  Bruno Haible  <bruno@clisp.org>
92956         New module 'threadlib'.
92957         * modules/threadlib: New file.
92958         * lib/glthread/threadlib.c: New file, extracted from
92959         lib/glthread/lock.c.
92960         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92961         functions.
92962         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92963         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92964         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92965         macros.
92966         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92967         (gl_DISABLE_THREADS): Remove macro.
92968         * modules/lock (Files): Remove build-aux/config.rpath.
92969         (Depends-on): Remove havelib. Add threadlib.
92970         (configure.ac-early): Remove section.
92971         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92972         * modules/tls (Depends-on): Remove lock. Add threadlib.
92973         (Link): New section, copied from threadlib.
92974         * MODULES.html.sh (Multithreading): Add threadlib.
92976 2008-08-14  Bruno Haible  <bruno@clisp.org>
92978         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92979         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92980         glthread_rwlock_unlock, glthread_rwlock_destroy,
92981         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92982         glthread_recursive_lock_destroy): Define as macros always.
92983         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92984         glthread_lock_lock.
92985         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92986         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92987         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92988         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92989         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92990         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92991         (glthread_recursive_lock_lock_func): Renamed from
92992         glthread_recursive_lock_lock.
92993         (glthread_recursive_lock_unlock_func): Renamed from
92994         glthread_recursive_lock_unlock.
92995         (glthread_recursive_lock_destroy_func): Renamed from
92996         glthread_recursive_lock_destroy.
92998 2008-08-14  Bruno Haible  <bruno@clisp.org>
93000         * lib/glthread/lock.h: Renamed from lib/lock.h.
93001         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93002         * lib/glthread/tls.h: Renamed from lib/tls.h.
93003         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93004         * lib/fstrcmp.c: Update includes.
93005         * lib/strsignal.c: Update includes.
93006         * modules/lock (Files, Makefile.am): Update.
93007         (Include): Change to "glthread/lock.h".
93008         * modules/tls (Files, Makefile.am): Update.
93009         (Include): Change to "glthread/tls.h".
93010         * tests/test-lock.c: Update includes.
93011         * tests/test-tls.c: Update includes.
93012         * NEWS: Mention the renamed header files.
93014 2008-08-11  Jim Meyering  <meyering@redhat.com>
93016         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93018 2008-08-11  Eric Blake  <ebb9@byu.net>
93020         test-c-stack: avoid C99-ism
93021         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93022         before statement.
93023         Reported by Alain Guibert.
93025 2008-08-10  Jim Meyering  <meyering@redhat.com>
93027         ensure that return value of uinttostr et al are not ignored
93028         * lib/inttostr.h (__GNUC_PREREQ): Define.
93029         (__attribute_warn_unused_result__): Define.
93030         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93032 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93034         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93035         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93037 2008-08-07  Jim Meyering  <meyering@redhat.com>
93039         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93041         * modules/mkstemp (License): Relicense under LGPLv2+.
93042         * modules/tempname (License): Likewise.
93044 2008-08-06  Bruno Haible  <bruno@clisp.org>
93046         * lib/poll.c (poll): Further micro-optimization.
93048 2008-08-06  Jim Meyering  <meyering@redhat.com>
93050         inet_pton.c: use locale-independent tolower
93051         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93052         (inet_pton6): Use c_tolower rather than tolower.
93053         * modules/inet_pton (Depends-on): Add c-ctype.
93055 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93057         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93058         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93060 2008-08-06  Jim Meyering  <meyering@redhat.com>
93062         * modules/inet_pton (License): Relicense under LGPLv2+.
93064 2008-08-03  Bruno Haible  <bruno@clisp.org>
93066         Additional non-aborting API for lock and tls.
93067         * lib/lock.h: Include <errno.h>.
93068         (glthread_lock_init): New macro/function.
93069         (gl_lock_init): Define as wrapper around glthread_lock_init.
93070         (glthread_lock_lock): New macro/function.
93071         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93072         (glthread_lock_unlock): New macro/function.
93073         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93074         (glthread_lock_destroy): New macro/function.
93075         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93076         (glthread_rwlock_init): New macro/function.
93077         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93078         (glthread_rwlock_rdlock): New macro/function.
93079         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93080         (glthread_rwlock_wrlock): New macro/function.
93081         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93082         (glthread_rwlock_unlock): New macro/function.
93083         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93084         (glthread_rwlock_destroy): New macro/function.
93085         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93086         (glthread_recursive_lock_init): New macro/function.
93087         (gl_recursive_lock_init): Define as wrapper around
93088         glthread_recursive_lock_init.
93089         (glthread_recursive_lock_lock): New macro/function.
93090         (gl_recursive_lock_lock): Define as wrapper around
93091         glthread_recursive_lock_lock.
93092         (glthread_recursive_lock_unlock): New macro/function.
93093         (gl_recursive_lock_unlock): Define as wrapper around
93094         glthread_recursive_lock_unlock.
93095         (glthread_recursive_lock_destroy): New macro/function.
93096         (gl_recursive_lock_destroy): Define as wrapper around
93097         glthread_recursive_lock_destroy.
93098         (glthread_once): New macro/function.
93099         (gl_once): Define as wrapper around glthread_once.
93100         Update function declarations.
93101         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93102         glthread_rwlock_init. Return error code.
93103         (glthread_rwlock_rdlock_multithreaded): Renamed from
93104         glthread_rwlock_rdlock. Return error code.
93105         (glthread_rwlock_wrlock_multithreaded): Renamed from
93106         glthread_rwlock_wrlock. Return error code.
93107         (glthread_rwlock_unlock_multithreaded): Renamed from
93108         glthread_rwlock_unlock. Return error code.
93109         (glthread_rwlock_destroy_multithreaded): Renamed from
93110         glthread_rwlock_destroy. Return error code.
93111         (glthread_recursive_lock_init_multithreaded): Renamed from
93112         glthread_recursive_lock_init. Return error code.
93113         (glthread_recursive_lock_lock_multithreaded): Renamed from
93114         glthread_recursive_lock_lock. Return error code.
93115         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93116         glthread_recursive_lock_unlock. Return error code.
93117         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93118         glthread_recursive_lock_destroy. Return error code.
93119         (glthread_once_call): Make static.
93120         (glthread_once_multithreaded): Renamed from glthread_once.
93121         * lib/tls.h: Include <errno.h>.
93122         (glthread_tls_key_init): New macro/function.
93123         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93124         (glthread_tls_set): New macro/function.
93125         (gl_tls_set): Define as wrapper around glthread_tls_set.
93126         (glthread_tls_key_destroy): New macro/function.
93127         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93128         Update function declarations.
93129         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93130         glthread_tls_get.
93131         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93133 2008-08-04  Eric Blake  <ebb9@byu.net>
93135         gnumakefile: use space, not TAB, outside of targets
93136         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93138 2008-08-02  Jim Meyering  <meyering@redhat.com>
93140         getdate.y: avoid locale-dependent date parsing failure
93141         In Turkish locales, getdate would fail to recognize keywords
93142         containing a lowercase "i".  The solution is not to rely on
93143         locale-sensitive case-conversion.
93144         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93145         (lookup_word): Use c_toupper in place of toupper.
93146         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93147         Reported by Vefa Bicakci <bicave@superonline.com> in
93148         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93149         * modules/getdate (Depends-on): Add c-ctype.
93151 2008-08-02  Bruno Haible  <bruno@clisp.org>
93153         * gnulib-tool (func_import): When updating or creating a .gitignore
93154         file, prepend each added line with a slash, and ignore leading slashes
93155         from the existing lines.
93156         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93158 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93160         Portability fix for GNU make 3.79.1.
93161         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93162         versions do not understand.
93164 2008-08-01  Bruno Haible  <bruno@clisp.org>
93166         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93167         * tests/test-isnanf.h (zero): New variable.
93168         (main): Avoid literal -0.0f.
93169         * tests/test-isnand.h (zero): New variable.
93170         (main): Avoid literal -0.0.
93171         * tests/test-isnanl.h (zero): New variable.
93172         (main): Avoid literal -0.0L.
93173         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93174         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93175         -0.0, -0.0L.
93176         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93177         (test_signbitd): Avoid literal -0.0.
93178         (test_signbitl): Avoid literal -0.0L.
93179         * tests/test-ceilf1.c (zero): New variable.
93180         (main): Avoid literal -0.0f.
93181         * tests/test-ceill.c (zero): New variable.
93182         (main): Avoid literal -0.0L.
93183         * tests/test-floorf1.c (zero): New variable.
93184         (main): Avoid literal -0.0f.
93185         * tests/test-floorl.c (zero): New variable.
93186         (main): Avoid literal -0.0L.
93187         * tests/test-roundf1.c (zero): New variable.
93188         (main): Avoid literal -0.0f.
93189         * tests/test-round1.c (zero): New variable.
93190         (main): Avoid literal -0.0.
93191         * tests/test-roundl.c (zero): New variable.
93192         (main): Avoid literal -0.0L.
93193         * tests/test-truncf1.c (zero): New variable.
93194         (main): Avoid literal -0.0f.
93195         * tests/test-trunc1.c (zero): New variable.
93196         (main): Avoid literal -0.0.
93197         * tests/test-truncl.c (zero): New variable.
93198         (main): Avoid literal -0.0L.
93199         * tests/test-frexp.c (zero): New variable.
93200         (main): Avoid literal -0.0.
93201         * tests/test-frexpl.c (zero): New variable.
93202         (main): Avoid literal -0.0L.
93203         * tests/test-ldexpl.c (zero): New variable.
93204         (main): Avoid literal -0.0L.
93205         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93206         (zerod, zerol): New variables.
93207         (test_function): Avoid literals -0.0, -0.0L.
93208         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93209         (zerod, zerol): New variables.
93210         (test_function): Avoid literals -0.0, -0.0L.
93211         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93212         (zerod, zerol): New variables.
93213         (test_function): Avoid literals -0.0, -0.0L.
93214         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93215         (zerod, zerol): New variables.
93216         (test_function): Avoid literals -0.0, -0.0L.
93217         * tests/test-strtod.c (zero): New variable.
93218         (main): Avoid literal -0.0.
93219         Reported by Jonathan C. Patschke <jp@centtech.com>.
93221 2008-07-31  Jim Meyering  <meyering@redhat.com>
93223         sha256.h: correct definition of SHA224_DIGEST_SIZE
93224         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93225         Reported by Paulie Pena IV <paulie4@gmail.com>.
93226         Define as 224 / 8, rather than as a literal.
93227         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93228         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93229         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93231 2008-07-31  Bruno Haible  <bruno@clisp.org>
93233         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93234         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93235         Reported by Jonathan Patschke <jp@centtech.com>.
93237 2008-07-31  Bruno Haible  <bruno@clisp.org>
93239         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93240         Reported by Paolo Bonzini <bonzini@gnu.org>.
93242 2008-07-30  Eric Blake  <ebb9@byu.net>
93244         test-strtod: allow compilation without -lm
93245         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93246         Reported by Dennis Clarke <blastwave@gmail.com>.
93248 2008-07-28  Jim Meyering  <meyering@redhat.com>
93250         bootstrap: work also when there are no .po files in po/
93251         * build-aux/bootstrap (update_po_files): Complete the change
93252         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93254 2008-07-27  Jim Meyering  <meyering@redhat.com>
93256         * users.txt: Add zile.
93258 2008-07-26  Ben Pfaff  <blp@gnu.org>
93260         Add missing dependencies on new m4/exponent[fdl].m4 files.
93261         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93262         * modules/isnand-nolibm: Add m4/exponentd.m4.
93263         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93264         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93265         m4/isnan[fdl].m4, because the macros actually used moved.
93266         Reported by Jim Meyering.
93268 2008-07-14  Ben Pfaff  <blp@gnu.org>
93270         Add isinf module.
93271         * lib/isinf.c: New file.
93272         * lib/math.in.h: Define isinf macro if we have decided to replace
93273         it.
93274         * m4/isinf.m4: New file.
93275         * m4/math_h.m4: Initialize and substitute variables for isinf
93276         module.
93277         * modules/isinf: New file.
93278         * modules/isinf-tests: New file.
93279         * modules/math: Add substitutions for new module.
93280         * tests/test-isinf.c: New file.
93281         * doc/posix-functions/isinf.texi: Mention new module.
93282         * MODULES.html.sh: Mention new module.
93284 2008-07-14  Ben Pfaff  <blp@gnu.org>
93286         Factor out some macros for use by additional modules.
93287         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93288         exponentf.m4.
93289         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93290         exponentd.m4.
93291         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93292         file exponentl.m4.
93293         * m4/exponentf.m4: New file.
93294         * m4/exponentd.m4: New file.
93295         * m4/exponentl.m4: New file.
93296         * modules/isnanf: Use new file m4/exponentf.m4.
93297         * modules/isnand: Use new file m4/exponentd.m4.
93298         * modules/isnanl: Use new file m4/exponentl.m4.
93300 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93302         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93303         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93304         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93305         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93307         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93308         readlink on platforms without PATH_MAX.
93310 2008-07-21  Eric Blake  <ebb9@byu.net>
93312         Warn, not fail, on stale version.
93313         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93315         Don't allow installation with stale devel version number.
93316         * top/GNUmakefile (_is-install-target): New macro.
93317         (_curr-ver): Forbid installation with stale version number.
93319 2008-07-20  Bruno Haible  <bruno@clisp.org>
93321         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93322         TESTS_ENVIRONMENT.
93323         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93325 2008-07-20  Bruno Haible  <bruno@clisp.org>
93327         * lib/c-stack.h (c_stack_action): Add documentation.
93328         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93330 2008-07-20  Bruno Haible  <bruno@clisp.org>
93332         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93333         * modules/readlink (License): Likewise.
93335 2008-07-17  Eric Blake  <ebb9@byu.net>
93337         * modules/c-stack (Link): Fix typo.
93339         Make c-stack use libsigsegv, when available.
93340         * modules/c-stack (Depends-on): Add libsigsegv.
93341         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93342         needed.
93343         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93344         (segv_handler, overflow_handler, c_stack_action)
93345         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93346         implementation when libsigsegv is available, but only when using
93347         the library is necessary.
93348         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93349         comment, explaining why XSI check fails on Linux.
93350         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93351         * tests/test-c-stack2.sh: Tweak skip message.
93352         * NEWS: Document new link-time requirements.
93354 2008-07-16  Eric Blake  <ebb9@byu.net>
93356         c-stack: Expose false positives when not using libsigsegv.
93357         * modules/c-stack-tests (Files): Expand test.
93358         * tests/test-c-stack.c (main): Add means to conditionally trigger
93359         non-overflow SIGSEGV.
93360         * tests/test-c-stack2.sh: New file.
93362 2008-07-14  Bruno Haible  <bruno@clisp.org>
93364         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93365         Reported by Eric Blake.
93367 2008-07-14  Sam Steingold  <sds@gnu.org>
93368             Bruno Haible  <bruno@clisp.org>
93370         New module libsigsegv.
93371         * modules/libsigsegv: New file.
93372         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93373         modifications.
93374         * MODULES.html.sh (Signal handling): New section.
93376 2008-07-14  Bruno Haible  <bruno@clisp.org>
93378         * modules/unictype/ctype-* (Description): Add the word "function".
93379         Improves the resulting doc in MODULES.html.
93381 2008-07-12  Ben Pfaff  <blp@gnu.org>
93383         Add longlong module.
93384         * modules/longlong: New file.
93386 2008-07-12  Bruno Haible  <bruno@clisp.org>
93388         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93389         to empty.
93391 2008-07-10  Ben Pfaff  <blp@gnu.org>
93393         Add isnan module.
93394         * doc/posix-functions/isnan.texi: Mention new module.
93395         * lib/math.in.h: Define isnan macro if we have decided to replace
93396         it.
93397         * m4/isnan.m4: New file.
93398         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93399         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93400         also.
93401         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93402         redundancy.
93403         * m4/math_h.m4: Initialize and substitute variables for isnan
93404         module.
93405         * modules/isnan: New file.
93406         * modules/isnan-tests: New file.
93407         * modules/math: Add substitutions for new module.
93408         * tests/test-isnan.c: New file.
93409         * MODULES.html.sh: Mention new module.
93411 2008-07-10  Ben Pfaff  <blp@gnu.org>
93413         Add isnanf module.
93414         * lib/isnanf.m4: New file.
93415         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93416         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93417         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93418         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93419         * modules/isnanf: New file.
93420         * modules/isnanf-tests: New file.
93421         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93422         files.
93423         * tests/test-isnanf-nolibm.c: factored most of its contents into
93424         new file tests/test-isnanf.h.
93425         * tests/test-isnanf.h: New file.
93426         * tests/test-isnanf.c: New file.
93427         * MODULES.html.sh: Mention new module.
93428         * doc/glibc-functions/isnanf.texi: Mention new module.
93430 2008-07-10  Ben Pfaff  <blp@gnu.org>
93432         Add isnand module.
93433         * lib/isnand.h: New file.
93434         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93435         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93436         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93437         functionality also.
93438         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93439         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93440         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93441         * modules/isnand: New file.
93442         * modules/isnand-tests: New file.
93443         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93444         files.
93445         * tests/test-isnand-nolibm.c: factored most of its contents into
93446         new file tests/test-isnand.h.
93447         * tests/test-isnand.h: New file.
93448         * tests/test-isnand.c: New file.
93449         * MODULES.html.sh: Mention new module.
93451 2008-07-10  Ben Pfaff  <blp@gnu.org>
93453         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93454         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93455         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93456         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93457         * modules/isnanf-nolibm: Update references to renamed files.
93458         * modules/isnand-nolibm: Likewise.
93459         * modules/isnanf-nolibm-tests: Likewise.
93460         * modules/isnand-nolibm-tests: Likewise.
93461         * lib/frexp.c: Likewise.
93462         * lib/isfinite.c: Likewise.
93463         * lib/signbitd.c: Likewise.
93464         * lib/signbitf.c: Likewise.
93465         * lib/vasnprintf.c: Likewise.
93466         * tests/test-ceilf1.c: Likewise.
93467         * tests/test-ceilf2.c: Likewise.
93468         * tests/test-floorf1.c: Likewise.
93469         * tests/test-floorf2.c: Likewise.
93470         * tests/test-frexp.c: Likewise.
93471         * tests/test-round1.c: Likewise.
93472         * tests/test-round2.c: Likewise.
93473         * tests/test-roundf1.c: Likewise.
93474         * tests/test-strtod.c: Likewise.
93475         * tests/test-trunc1.c: Likewise.
93476         * tests/test-trunc2.c: Likewise.
93477         * tests/test-truncf1.c: Likewise.
93478         * tests/test-truncf2.c: Likewise.
93479         * NEWS: Mention the renamed header files.
93481 2008-07-11  Jim Meyering  <meyering@redhat.com>
93483         vc-list-files: make the last-resort awk code more portable
93484         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93485         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93486         does not support it.
93488 2008-07-10  Eric Blake  <ebb9@byu.net>
93490         Work with tar's bootstrap.
93491         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93492         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93493         an m4 comment.
93495 2008-07-09  Jim Meyering  <meyering@redhat.com>
93497         posix-shell.m4: fix typo that made this test malfunction
93498         * m4/posix-shell.m4: Remove capitalization in variable name.
93500 2008-07-08  Bruno Haible  <bruno@clisp.org>
93502         * m4/onceonly.m4: Update comments.
93503         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93505 2008-07-04  Jim Meyering  <meyering@redhat.com>
93507         * users.txt: Add vc-dwim.
93508         (bison, coreutils): Use the gitweb URL.
93510 2008-07-03  Jim Meyering  <meyering@redhat.com>
93512         * users.txt: Add libffcall.  From Sam Steingold.
93514 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
93516         getdate.y: do not ignore TZ with relative day, month or year offset
93517         * lib/getdate.y (get_date): Move the tz-handling block to follow the
93518         relative-date-handling, since otherwise, the latter would clobber the
93519         sole output (an updated Start value) of the tz-handling block.
93520         * tests/test-getdate.c: Tests for the fix
93522 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93524         Recognize 'foo_LIBRARIES += libgnu.a'.
93525         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
93526         makefile snippet has already specified an installation location,
93527         also using '+='.
93529 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
93531         getdate.y: factor out common actions
93532         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
93533         Use them in place of open-coded actions.
93535 2008-07-01  Simon Josefsson  <simon@josefsson.org>
93537         Add self-test for getdate module.
93538         * modules/getdate-tests: New file.
93539         * tests/test-getdate.c: New file.
93541 2008-06-29  Bruno Haible  <bruno@clisp.org>
93543         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
93544         .gitignore.
93545         Reported by Sylvain Beucler <beuc@beuc.net>.
93547 2008-06-29  Bruno Haible  <bruno@clisp.org>
93549         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
93550         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
93552 2008-06-29  Bruno Haible  <bruno@clisp.org>
93554         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
93555         EXTRA_DIST.
93556         Reported by Sylvain Beucler <beuc@beuc.net>.
93558 2008-06-26  Jim Meyering  <meyering@redhat.com>
93560         make several modules depend on the "open" module
93561         This provides slightly increased consistency when opening-for-write
93562         the name of a non-directory spelled with a trailing slash.
93563         * modules/chdir-safer: Likewise.
93564         * modules/chown: Likewise.
93565         * modules/clean-temp: Likewise.
93566         * modules/copy-file: Likewise.
93567         * modules/fchdir: Likewise.
93568         * modules/fcntl-safer: Likewise.
93569         * modules/pipe: Likewise.
93570         * modules/utime: Likewise.
93571         Prompted by Eric Blake and Bruno Haible.
93573 2008-06-24  Andreas Schwab  <schwab@suse.de>
93575         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
93576         literals can be used as initializers for global variables.
93578 2008-06-23  Eric Blake  <ebb9@byu.net>
93580         Make gnulib-cache.m4 easier to diff.
93581         * gnulib-tool (func_import): Allow newlines when reading cached
93582         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
93584 2008-06-23  Bruno Haible  <bruno@clisp.org>
93586         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
93587         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
93588         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
93589         m4/signalblocking.m4.
93590         (gl_PREREQ_SIGACTION): Don't invoke it.
93591         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93592         gl_PREREQ_SIG_HANDLER_H.
93593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93594         Don't check for sigaction here.
93596 2008-06-23  Bruno Haible  <bruno@clisp.org>
93598         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93599         (install_handlers): Don't set the SA_RESETHAND flag.
93601 2008-06-23  Bruno Haible  <bruno@clisp.org>
93603         * m4/sigaction.m4: Comment fixes.
93604         * lib/signal.in.h: Likewise.
93606 2008-06-23  Eric Blake  <ebb9@byu.net>
93608         Fix typo.
93609         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
93611         Avoid SA_ namespace.
93612         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93613         Reported by Ralf Wildenhues.
93615         Avoid test failure due to SA_RESTORER.
93616         * tests/test-sigaction.c (SA_MASK): New macro.
93617         (main): Avoid failing due to extension flags being set.
93618         Reported by Jim Meyering.
93620         Revert use of sig-handler.h in sigprocmask.c.
93621         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93622         it requires the existence of struct sigaction.
93623         * lib/sigprocmask.c (handler_t): Restore typedef.
93624         (rpl_signal, old_handlers): Use local type.
93626 2008-06-22  Bruno Haible  <bruno@clisp.org>
93628         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93629         conditionally.
93630         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93632 2008-06-22  Bruno Haible  <bruno@clisp.org>
93634         * doc/posix-functions/siginterrupt.texi: Move note.
93636         * lib/signal.in.h (SA_RESTART): New macro.
93637         * lib/sigaction.c: Update comment.
93639         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93641         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93642         (gl_PREREQ_SIGPROCMASK): Invoke it.
93643         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93645         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93647         * lib/sigprocmask.c: Update a comment.
93649 2008-06-21  Eric Blake  <ebb9@byu.net>
93651         Use sigaction module rather than signal().
93652         * modules/c-stack (Depends-on): Add sigaction.
93653         * modules/fatal-signal (Depends-on): Likewise.
93654         * modules/nanosleep (Depends-on): Likewise.
93655         * modules/sigprocmask (Files): Add sig-handler.h.
93656         * modules/sigaction (Files): Likewise.
93657         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93658         Eggert.
93659         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93660         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93661         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93662         (init_fatal_signals): Likewise.
93663         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93664         (siginterrupt): Delete fallback.
93665         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93666         instead.
93667         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93668         siginterrupt.
93670         New module sigaction, for mingw.
93671         * modules/sigaction: New module...
93672         * modules/sigaction-tests: ...and its test.
93673         * m4/sigaction.m4: New file.
93674         * lib/sigaction.c: Likewise.
93675         * tests/test-sigaction.c: Likewise.
93676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93677         * modules/signal (Makefile.am): Likewise.
93678         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93679         needed.
93680         * doc/posix-headers/signal.texi (signal.h): Mention provided
93681         types.
93682         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93683         that sigaction is preferable.
93684         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93685         module.
93686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93687         sigaction.
93689         Improve robustness of sigprocmask by overriding signal.
93690         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93691         is in use.
93692         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93693         (SIGKILL, SIGSTOP): Provide fallbacks.
93694         (rpl_signal): Implement.
93695         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93696         signal can be called inside handlers.
93698         Fix nanosleep module on mingw.
93699         * modules/nanosleep (Depends-on): Add sys_select.
93700         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93702         Fix licensing of sigprocmask.
93703         * modules/raise (License): Relicense as LGPL.
93705 2008-06-21  Bruno Haible  <bruno@clisp.org>
93707         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93708         result if it contains question marks.
93709         Reported by Michael Geng <linux@michaelgeng.de>.
93711 2008-06-19  Bruno Haible  <bruno@clisp.org>
93713         Fix CVS-ism.
93714         * doc/gnulib.texi: Include updated-stamp.texi.
93715         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93716         (updated-stamp.texi): New rule.
93717         (gnulib.info): Depend on it.
93718         * doc/.gitignore: Add updated-stamp.texi.
93719         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93721 2008-06-19  Bruno Haible  <bruno@clisp.org>
93723         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93724         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93726 2008-06-19  Eric Blake  <ebb9@byu.net>
93728         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93729         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93730         Reported by Stepan Kasal.
93732 2008-06-18  Bruno Haible  <bruno@clisp.org>
93734         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93735         Reported by Eric Blake.
93737 2008-06-18  Eric Blake  <ebb9@byu.net>
93739         Work around cygwin 1.5.25 strsignal bug.
93740         * tests/test-strsignal.c: Allow for const char *.
93741         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93743 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93745         * users.txt: Update URL to article and add author/date
93746         information.
93748 2008-06-17  Bruno Haible  <bruno@clisp.org>
93750         New macro gl_DISABLE_THREADS.
93751         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93752         if the user did not pass --enable-threads or --disable-threads option.
93753         (gl_DISABLE_THREADS): New macro.
93754         Reported by Eric Blake <ebb9@byu.net>.
93756 2008-06-17  Bruno Haible  <bruno@clisp.org>
93758         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93759         when the macro ignores it.
93760         Based on a patch by Eric Blake <ebb9@byu.net>.
93762 2008-06-17  Bruno Haible  <bruno@clisp.org>
93764         * modules/tls (License): Change to LGPLv2+.
93765         Reported by Eric Blake.
93767 2008-06-17  Eric Blake  <ebb9@byu.net>
93769         Simplify c-stack prerequisites.
93770         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93772         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93773         check.
93774         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93775         <sys/resource.h>.
93777         Move c-stack test into testsuite.
93778         * modules/c-stack-tests: New file.
93779         * lib/c-stack.c [DEBUG]: Move test program...
93780         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93781         fail test if sigaltstack is lacking.
93782         * tests/test-c-stack.sh: New driver file.
93784 2008-06-16  Eric Blake  <ebb9@byu.net>
93786         Use raise module consistently.
93787         * modules/fatal-signal (Depends-on): Add raise.
93788         * modules/sigprocmask (Depends-on): Likewise.
93789         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93790         * lib/sigprocmask.c (sigprocmask): Likewise.
93791         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93792         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93794         Fix compliance bug in sigpending.
93795         * lib/sigprocmask.c (sigpending): Return pending array via
93796         parameter, not return value.
93798 2008-06-14  Eric Blake  <ebb9@byu.net>
93800         Improve obstack-printf test code.
93801         * tests/test-obstack-printf.c (test_function): Fix comment, and
93802         simplify usage of obstack_* in macros.  Add a test for coverage.
93803         Reported by Bruno Haible.
93805 2008-06-14  Bruno Haible  <bruno@clisp.org>
93807         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93808         array size as a constant, not as a const variable.
93809         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93810         AC_USE_SYSTEM_EXTENSIONS.
93811         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93812         Test whether the obstack_printf function actually exists.
93813         * modules/obstack-printf (Depends-on): Add extensions.
93814         (Include): Remove obstack.h.
93815         * modules/obstack-printf-posix (Depends-on): Add extensions.
93816         (Include): Remove obstack.h.
93818 2008-06-13  Eric Blake  <ebb9@byu.net>
93820         Add obstack-printf and obstack-printf-posix modules.
93821         * modules/obstack-printf: New file.
93822         * modules/obstack-printf-posix: Likewise.
93823         * MODULES.html.sh (Misc): Mention them.
93824         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93825         Likewise.
93826         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93827         Likewise.
93828         * modules/stdio (Makefile.am): Accomodate new modules.
93829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93830         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93831         Declare.
93832         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93833         functions.
93834         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93835         (gl_REPLACE_OBSTACK_PRINTF): New macros
93836         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93837         * tests/test-obstack-printf.c: New file.
93838         * modules/obstack-printf-tests: Likewise.
93839         * modules/obstack-printf-posix-tests: Likewise.
93841 2008-06-11  Bruno Haible  <bruno@clisp.org>
93843         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93844         * lib/open.c: Include errno.h.
93845         (open): Fail when attempting to write to a file that has a trailing
93846         slash.
93847         * tests/test-open.c (main): Test against trailing slash bug.
93848         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93850 2008-06-10  Bruno Haible  <bruno@clisp.org>
93852         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93853         for $? to work inside the trap command, with various /bin/sh-s.
93854         * tests/test-vc-list-files-cvs.sh: Likewise.
93856 2008-06-10  Bruno Haible  <bruno@clisp.org>
93858         * lib/acl-internal.h: Don't include gettext.h here.
93859         * lib/set-mode-acl.c: Include gettext.h here.
93860         * lib/copy-acl.c: Likewise.
93862 2008-06-10  Bruno Haible  <bruno@clisp.org>
93864         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93865         * lib/wait-process.c (wait_subprocess): Likewise.
93866         * lib/execute.h (execute): Add termsigp argument.
93867         * lib/execute.c (execute): Likewise.
93868         * lib/csharpcomp.c (compile_csharp_using_pnet,
93869         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93870         * lib/csharpexec.c (execute_csharp_using_pnet,
93871         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93872         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93873         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93874         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93875         is_jikes_present): Update.
93876         * lib/javaexec.c (execute_java_class): Update.
93877         * lib/javaversion.c (execute_and_read_line): Update.
93878         * NEWS: Document the changes.
93879         Reported by Eric Blake.
93881 2008-06-10  Eric Blake  <ebb9@byu.net>
93883         Add missing include.
93884         * tests/test-strstr.c (includes): Add <signal.h>.
93885         * tests/test-strcasestr.c (includes): Likewise.
93886         * tests/test-memmem.c (includes): Likewise.
93888 2008-06-10  Bruno Haible  <bruno@clisp.org>
93890         * lib/wait-process.c (wait_subprocess): Add an assertion.
93892 2008-06-10  Bruno Haible  <bruno@clisp.org>
93894         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93896 2008-06-10  Bruno Haible  <bruno@clisp.org>
93898         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93899         using alarm().
93900         * tests/test-strcasestr.c (main): Likewise.
93901         * tests/test-strstr.c (main): Likewise.
93903 2008-06-09  Bruno Haible  <bruno@clisp.org>
93905         Work around the Solaris 10 ACE ACLs ABI change.
93906         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93907         declare if ACL_NO_TRIVIAL is present.
93908         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93909         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93910         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93911         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93912         define if ACL_NO_TRIVIAL is present.
93913         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93914         and use the current ABI.
93915         (file_has_acl): Use same #if condition as elsewhere.
93916         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93917         in use, and use the current ABI.
93918         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93919         Reported by Jim Meyering.
93921 2008-06-09  Eric Blake  <ebb9@byu.net>
93923         Work around environments that (stupidly) ignore SIGALRM.
93924         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93925         before using alarm().
93926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93928         Reported by Ian Beckwith <ianb@erislabs.net>.
93930         Produce autobuild blurb earlier in log.
93931         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93933 2008-06-09  Jim Meyering  <meyering@redhat.com>
93934         and Ondřej Vašík  <ovasik@redhat.com>
93936         utimens.c: correct kernel bug work-around
93937         Ondřej Vašík found that the invalid return value of 280 indicates
93938         failure, not success, and the kernel bug we're trying to work
93939         around affects not just the utimensat call, but also the fallback
93940         futimens call.
93941         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
93942         not success.
93943         [HAVE_FUTIMENS]: Use the same work-around, here.
93945 2008-06-09  Jim Meyering  <meyering@redhat.com>
93947         add more guards around definition of ACE_-related code
93948         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93949         ALLOW and ACE_OWNER are also defined.
93951 2008-06-08  Bruno Haible  <bruno@clisp.org>
93953         * lib/acl-internal.h: Add me as co-author.
93954         * lib/file-has-acl.c: Likewise.
93955         * lib/set-mode-acl.c: Likewise.
93956         * lib/copy-acl.c: Likewise.
93958 2008-06-08  Bruno Haible  <bruno@clisp.org>
93960         Add support for AIX ACLs.
93961         * lib/acl-internal.h (acl_nontrivial): New declaration.
93962         * lib/file-has-acl.c (acl_nontrivial): New function.
93963         (file_has_acl): Add implementation using AIX 4 ACL API.
93964         * lib/set-mode-acl.c (qset_acl): Likewise.
93965         * lib/copy-acl.c (qcopy_acl): Likewise.
93967 2008-06-08  Bruno Haible  <bruno@clisp.org>
93969         Add support for HP-UX ACLs.
93970         * lib/acl-internal.h (acl_nontrivial): New declaration.
93971         * lib/file-has-acl.c (acl_nontrivial): New function.
93972         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93973         * lib/set-mode-acl.c (qset_acl): Likewise.
93974         * lib/copy-acl.c (qcopy_acl): Likewise.
93976 2008-06-08  Bruno Haible  <bruno@clisp.org>
93978         Add support for Cygwin ACLs.
93979         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93980         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93981         the chmod_or_fchmod call.
93982         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93984 2008-06-08  Bruno Haible  <bruno@clisp.org>
93986         Fix bug with setuid modes in Solaris 10+ code.
93987         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93988         succeeded, when the mode contains some special bits.
93990 2008-06-08  Bruno Haible  <bruno@clisp.org>
93992         Add support for Solaris 7..10 ACLs.
93993         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93994         declarations.
93995         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93996         functions.
93997         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93998         * lib/set-mode-acl.c (qset_acl): Likewise.
93999         * lib/copy-acl.c (qcopy_acl): Likewise.
94001 2008-06-08  Bruno Haible  <bruno@clisp.org>
94003         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94004         declaration.
94005         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94006         (acl_access_nontrivial): Remove MacOS X case.
94007         (file_has_acl): Use acl_extended_nontrivial.
94008         * lib/copy-acl.c (qcopy_acl): Likewise.
94010 2008-06-08  Bruno Haible  <bruno@clisp.org>
94012         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94014 2008-06-08  Jim Meyering  <meyering@redhat.com>
94016         * modules/acl (Maintainer): Add Bruno Haible.
94018 2008-06-07  Bruno Haible  <bruno@clisp.org>
94020         Improve support for Tru64 ACLs.
94021         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94022         ACL on OSF/1.
94024 2008-06-07  Bruno Haible  <bruno@clisp.org>
94026         Add support for MacOS X ACLs.
94027         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94028         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94029         * lib/set-mode-acl.c (qset_acl): Likewise.
94030         * lib/copy-acl.c (qcopy_acl): Likewise.
94032 2008-06-07  Bruno Haible  <bruno@clisp.org>
94034         Fix memory leak introduced on 2008-05-22.
94035         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94036         use.
94038 2008-06-07  Bruno Haible  <bruno@clisp.org>
94040         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94041         to construct an empty ACL.
94043 2008-06-07  Bruno Haible  <bruno@clisp.org>
94045         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94046         precisely.
94047         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94049 2008-06-07  Bruno Haible  <bruno@clisp.org>
94051         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94052         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94054 2008-06-07  Bruno Haible  <bruno@clisp.org>
94056         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94057         regardless of POSIX.
94058         * doc/posix-functions/_longjmp.texi: Likewise.
94059         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94060         SystemV platform in this case.
94062 2008-06-06  Eric Blake  <ebb9@byu.net>
94064         Document abort() bugs.
94065         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94067         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94068         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94069         sigsetjmp.
94070         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94071         siglongjmp, but only as a macro.
94072         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94073         is obsolete.
94074         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94076         Tweak documentation to cover cygwin argz bugs.
94077         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94078         argz bug fix; no code change needed since no cygwin releases
94079         occurred between the last fix and the bug being tested.
94080         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94081         module and recently fixed cygwin bugs.
94082         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94083         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94084         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94085         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94086         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94087         Likewise.
94088         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94089         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94090         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94091         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94092         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94093         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94094         Likewise.
94096         Avoid gcc warning on cygwin.
94097         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94098         !ACL_NO_TRIVIAL]: Avoid unused variable.
94100 2008-06-05  Eric Blake  <ebb9@byu.net>
94102         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94103         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94104         git-version-gen fails to come up with a version.
94105         Reported by Simon Josefsson.
94107 2008-06-05  Jim Meyering  <meyering@redhat.com>
94108             Paul Eggert  <eggert@cs.ucla.edu>
94110         utimens.c: work around a probable Linux kernel bug
94111         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94112         appears to be a kernel bug that causes utimensat to return 280
94113         instead of 0, indicating success.
94115 2008-06-04  Bruno Haible  <bruno@clisp.org>
94117         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94118         2008-06-01 commit.
94120 2008-06-04  Bruno Haible  <bruno@clisp.org>
94122         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94123         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94124         (file_has_acl): Use it. Save errno afterwards.
94125         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94127 2008-06-03  Bruno Haible  <bruno@clisp.org>
94129         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94130         draft code. Simplify #ifs.
94131         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94132         Put Solaris code after POSIX-draft code. Fix comments regarding
94133         Solaris 10, HP-UX. Mention Cygwin.
94134         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94136 2008-06-03  Eric Blake  <ebb9@byu.net>
94138         Provide fallback for older kernels.
94139         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94140         Provide runtime fallback if kernel lacks support.
94141         Reported by Mike Frysinger.
94143 2008-06-02  Bruno Haible  <bruno@clisp.org>
94145         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94146         it exists.
94148 2008-06-02  Bruno Haible  <bruno@clisp.org>
94150         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94151         * lib/copy-acl.c (qcopy_acl): Update comment.
94153 2008-06-02  Bruno Haible  <bruno@clisp.org>
94155         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94156         like ACL APIs.
94158 2008-06-02  Bruno Haible  <bruno@clisp.org>
94160         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94161         * tests/test-set-mode-acl.sh: Likewise.
94162         * tests/test-copy-acl.sh: Likewise.
94163         * tests/test-copy-file.sh: Likewise.
94165 2008-06-02  Bruno Haible  <bruno@clisp.org>
94167         * tests/test-file-has-acl.sh: Remove unused code.
94169 2008-06-01  Bruno Haible  <bruno@clisp.org>
94171         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94172         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94173         messages.
94174         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94176 2008-06-01  Bruno Haible  <bruno@clisp.org>
94178         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94179         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94180         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94181         APIs.
94182         * modules/acl-tests (configure.ac): Remove tests now contained in
94183         m4/acl.m4.
94185 2008-06-02  Jim Meyering  <meyering@redhat.com>
94187         announce-gen: use a better key-server host name
94188         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94189         it may be more consistently reliable.  Suggested by Werner Koch
94190         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94192 2008-06-01  Bruno Haible  <bruno@clisp.org>
94194         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94195         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94197 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94199         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94201 2008-06-01  Bruno Haible  <bruno@clisp.org>
94203         New ACL tests.
94204         * tests/test-file-has-acl.sh: New file.
94205         * tests/test-file-has-acl.c: New file.
94206         * tests/test-set-mode-acl.sh: New file.
94207         * tests/test-set-mode-acl.c: New file.
94208         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94209         * tests/test-copy-acl.c: New file.
94210         * modules/acl-tests: New file, based on modules/copy-file-tests.
94211         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94212         (Depends-on): Add acl-tests.
94213         (configure.ac): Remove checks.
94214         (Makefile.am): Don't create test-sameacls program here any more.
94216 2008-06-01  Bruno Haible  <bruno@clisp.org>
94218         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94219         * tests/test-sameacls.c: Include progname.h.
94220         (main): Invoke set_program_name. Portability fixes for MacOS X,
94221         Solaris, HP-UX.
94223 2008-06-01  Bruno Haible  <bruno@clisp.org>
94225         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94226         function.
94227         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94229 2008-06-01  Bruno Haible  <bruno@clisp.org>
94231         * modules/rpmatch (Depends-on): Add strdup.
94233 2008-06-01  Bruno Haible  <bruno@clisp.org>
94235         * lib/pipe.c: Include unistd-safer.h.
94236         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94237         * modules/pipe (Depends-on): Add unistd-safer.
94239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94241         * modules/autobuild (configure.ac): Call AB_INIT.
94243 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94245         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94246         Suggested by Bruno Haible <bruno@clisp.org>.
94248 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94250         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94251         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94252         <bruno@clisp.org>.
94254 2008-05-29  Eric Blake  <ebb9@byu.net>
94256         Prefer new POSIX 200x interfaces over futimesat.
94257         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94258         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94259         when available.
94260         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94262 2008-05-28  Bruno Haible  <bruno@clisp.org>
94264         * modules/stpcpy (License): Change to LGPLv2+.
94265         Requested by David Lutterkort <dlutter@redhat.com>.
94267 2008-05-27  Bruno Haible  <bruno@clisp.org>
94269         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94270         current mingw.
94271         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94273 2008-05-27  Bruno Haible  <bruno@clisp.org>
94275         * modules/iconv_open (Link): New section, from module 'iconv'.
94276         * modules/striconv (Link): Likewise.
94277         * modules/striconveh (Link): Likewise.
94278         * modules/xstriconv (Link): Likewise.
94279         * modules/unicodeio (Link): Likewise.
94280         * modules/propername (Link): Likewise.
94281         Reported by Jim Meyering.
94283 2008-05-26  Jim Meyering  <meyering@redhat.com>
94285         sha256: do not artificially restrict buffer length to be < 2^32
94286         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94287         uint32_t to size_t.
94288         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94289         to match.
94291         avoid unaligned access errors, e.g., on sparc
94292         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94293         direct access through a possibly-unaligned uint64* pointer.
94294         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94295         direct access through a possibly-unaligned uint32* pointer.
94296         Prompted by this patch from Tom "spot" Callaway:
94297         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94299         sha512.c: fix typo in comment
94300         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94302 2008-05-25  Bruno Haible  <bruno@clisp.org>
94304         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94305         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94306         (Makefile.am): Update lib_SOURCES.
94308 2008-05-25  Bruno Haible  <bruno@clisp.org>
94310         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94312 2008-05-25  Jim Meyering  <meyering@redhat.com>
94314         useless-if-before-free: freed expr may have white-space differences
94315         * build-aux/useless-if-before-free: Recognize cases in which the
94316         freed expression differs from the tested one in embedded white
94317         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94318         $1 was used, so we can't make any regexp shy.  Improved tests now
94319         detect this.
94321         useless-if-before-free: accept white space in the expression.
94322         * build-aux/useless-if-before-free: For now, any white space
94323         in the expression must be identical in the free argument.
94325         useless-if-before-free: efficiency tweak
94326         * build-aux/useless-if-before-free: Make the expression-matching
94327         regexp "shy".
94328         Make the *outer* regexp shy, not the expr-matching one.
94330         update code-in-comment to accept cast of free arg
94331         * build-aux/useless-if-before-free: Update regexp.
94333 2008-05-25  Bruno Haible  <bruno@clisp.org>
94335         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94336         * modules/copy-file-tests (Files, Makefile.am): Update.
94337         * tests/test-copy-file.c (func_test_copy): Update.
94339 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94341         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94343 2008-05-23  Bruno Haible  <bruno@clisp.org>
94345         Improve support for ACLs on OSF/1.
94346         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94347         Remove fallback for unknown flavors of ACLs.
94349 2008-05-22  Bruno Haible  <bruno@clisp.org>
94351         Add support for ACLs on OSF/1.
94352         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94353         replacements.
94354         (acl_free_text): New macro fallback.
94355         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94356         acl_free.
94357         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94358         acl_free_text function. Require AC_C_INLINE.
94360 2008-05-22  Bruno Haible  <bruno@clisp.org>
94362         Make copy_acl work on MacOS X 10.5.
94363         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94364         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94365         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94366         If MODE_INSIDE_ACL, don't assume that every system has the same text
94367         representation for ACLs as FreeBSD.
94368         * lib/copy-acl.c (copy_acl): Add support for platforms with
94369         !MODE_INSIDE_ACL.
94370         * lib/file-has-acl.c (file_has_acl): Likewise.
94371         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94372         FreeBSD, MacOS X, or IRIX, respectively.
94374 2008-05-22  Bruno Haible  <bruno@clisp.org>
94376         * lib/acl.h: Don't include <sys/acl.h>.
94377         (GETACLCNT): Move fallback to lib/acl-internal.h.
94378         * lib/acl-internal.h: Include <sys/acl.h> here.
94379         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94381 2008-05-22  Bruno Haible  <bruno@clisp.org>
94383         Split off copy_acl function to separate file.
94384         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94385         * lib/acl.c (copy_acl): Moved function to separate file.
94386         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94387         * modules/acl (Files): Add lib/copy-acl.c.
94388         (Makefiles.am): Augment lib_SOURCES.
94390 2008-05-22  Bruno Haible  <bruno@clisp.org>
94392         * modules/copy-file-tests: New file.
94393         * tests/test-copy-file.sh: New file.
94394         * tests/test-copy-file.c: New file.
94395         * tests/test-copy-file-sameacls.c: New file.
94397 2008-05-22  Eric Blake  <ebb9@byu.net>
94399         Avoid gcc warning.
94400         * tests/test-memcmp.c (main): Pass NULL indirectly.
94402 2008-05-21  Bruno Haible  <bruno@clisp.org>
94404         Add reference doc about ACLs.
94405         * doc/acl-resources.txt: New file.
94406         * doc/acl-cygwin.txt: New file.
94408 2008-05-21  Bruno Haible  <bruno@clisp.org>
94410         Avoid one more warning from gcc.
94411         * lib/vasnprintf.c (IF_LINT): Update comments.
94412         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94414 2008-05-21  Jim Meyering  <meyering@redhat.com>
94416         avoid a warning from gcc
94417         * lib/vasnprintf.c (IF_LINT): Define.
94418         (scale10_round_decimal_long_double):
94419         Use it to avoid a "may be used uninitialized" warning.
94420         (scale10_round_decimal_double): Likewise.
94422 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94424         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94425         declared.
94427 2008-05-20  Bruno Haible  <bruno@clisp.org>
94429         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94430         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94432 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94434         * modules/memcmp-tests: New file.
94435         * tests/test-memcmp.c: New file.
94437 2008-05-19  Bruno Haible  <bruno@clisp.org>
94439         * modules/propername (Notice, configure.ac): Put quoted "..." into
94440         --keyword option.
94441         * lib/propername.h: Update comments accordingly.
94442         Reported by Eric Blake.
94444 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94446         * modules/getpass-gnu (Depends-on): Add fseeko.
94448 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94450         * modules/base64-tests: New file.
94452 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94454         * lib/base64.c (base64_decode_ctx): If a decode context structure
94455         was passed in use it to ignore newlines.  If a context structure
94456         was _not_ passed in, continue to treat newlines as garbage (this
94457         is the historical behavior).  Formerly base64_decode.
94458         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94459         takes a decode context structure.
94460         * lib/base64.h (base64_decode): Macro for four-argument calls.
94461         (base64_decode_alloc): Likewise.
94462         * lib/base64.c (base64_decode_ctx): If a decode context structure
94463         was passed in use it to ignore newlines.  If a context structure
94464         was _not_ passed in, continue to treat newlines as garbage (this
94465         is the historical behavior).  Formerly base64_decode.
94466         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94467         takes a decode context structure.
94468         * lib/base64.h (base64_decode): Macro for four-argument calls.
94469         (base64_decode_alloc): Likewise.
94471 2008-05-19  Jim Meyering  <meyering@redhat.com>
94473         avoid a warning from gcc
94474         * lib/trim.c (IF_LINT): Define.
94475         (trim2): Use it to avoid a "may be used uninitialized" warning.
94477         Fix doc typo.
94478         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94480 2008-05-19  Bruno Haible  <bruno@clisp.org>
94482         * doc/glibc-functions/getpass.texi: Document limits of other
94483         implementations.
94485 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94486             Bruno Haible <bruno@clisp.org>
94488         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94490 2008-05-18  Bruno Haible  <bruno@clisp.org>
94492         * modules/propername: New file, from GNU gettext.
94493         * lib/propername.h: New file, from GNU gettext.
94494         * lib/propername.c: New file, from GNU gettext.
94495         * MODULES.html.sh (Internationalization functions): Add propername.
94497 2008-05-16  Jim Meyering  <meyering@redhat.com>
94498             Bruno Haible  <bruno@clisp.org>
94500         Avoid some warnings from "gcc -Wshadow".
94501         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94503 2008-05-15  Eric Blake  <ebb9@byu.net>
94505         Extend previous patch to cygwin 1.7.0.
94506         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94507         fast implementation in cygwin >= 1.7.0.
94508         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94511 2008-05-15  Bruno Haible  <bruno@clisp.org>
94513         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94514         implementation in glibc >= 2.9.
94515         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94518 2008-05-15  Bruno Haible  <bruno@clisp.org>
94520         * MODULES.html.sh (Internationalization functions): Remove linebreak.
94521         (Unicode string functions): Add unilbrk/*.
94522         Reported by Karl Berry.
94524 2008-05-15  Eric Blake  <ebb9@byu.net>
94526         Fix violation of <stdbool.h> replacement in regex.
94527         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
94528         * lib/regexec.c (re_search_internal): Likewise.
94529         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
94531 2008-05-15  Jim Meyering  <meyering@redhat.com>
94533         avoid distracting test output when git or cvs is not found
94534         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
94535         * tests/test-vc-list-files-git.sh: Likewise.
94537 2008-05-15  Eric Blake  <ebb9@byu.net>
94539         Glibc finally accepted the memmem speedup code, bugzilla #5514.
94540         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
94541         glibc version.
94542         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
94543         * doc/posix-functions/strstr.texi (strstr): Likewise.
94544         * lib/str-two-way.h (MAX): Sychronize with glibc.
94546 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
94548         * lib/regcomp.c (optimize_utf8): Add a note on why we test
94549         opr.ctx_type.
94550         (calc_first): Initialize constraint field.
94551         (duplicate_node_closure): Use it instead of special casing ANCHORS.
94552         Fix grammar.
94553         (duplicate_node): Merge constraint field for all node types.
94554         (calc_eclosure_iter): Look at constraint field for all node types.
94555         * lib/regex_internal.c (create_cd_newstate): Don't look at
94556         opr.ctx_type.
94558 2008-05-14  Bruno Haible  <bruno@clisp.org>
94560         Help GCC to do better code generation.
94561         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
94562         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
94563         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
94564         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
94565         Declare with attribute 'malloc' if supported.
94567 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
94569         use "echo STR|wc -c" rather than unportable "expr length STR"
94570         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
94571         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
94573 2008-05-14  Jim Meyering  <meyering@redhat.com>
94575         use dd ibs=$n count=1 ... rather than less-portable head -c$n
94576         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
94577         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
94578         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
94579         via Collin Lasse.
94581 2008-05-14  Eric Blake  <ebb9@byu.net>
94583         Avoid quadratic growth in gl_LIBSOURCES.
94584         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
94585         Suggested by Bruno Haible.
94587         Test xmemdup0.
94588         * modules/xmemdup0-tests: New file.
94589         * tests/test-xmemdup0.c: Likewise.
94591 2008-05-13  Eric Blake  <ebb9@byu.net>
94593         Split xmemdup0 into its own module.
94594         * modules/xmemdup0: New file.
94595         * lib/xmemdup0.h: Likewise.
94596         * lib/xmemdup0.c: Likewise.
94597         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94598         * lib/xalloc.h (xmemdup0): Remove.
94599         * lib/xmalloc.c (xmemdup0): Likewise.
94601 2008-05-13  Eric Blake  <ebb9@byu.net>
94602             Bruno Haible  <bruno@clisp.org>
94604         Reduce number of forks required during autoconf.
94605         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94606         and gl_LIBSOURCES_DIR.
94607         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94608         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
94609         m4_syscmd per file.
94610         <m4_foreach_w>: Move...
94611         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94613 2008-05-13  Eric Blake  <ebb9@byu.net>
94615         * gnulib-tool: Fix various comment typos.
94617 2008-05-12  Bruno Haible  <bruno@clisp.org>
94619         Tailor the linebreaking algorithm.
94620         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94622 2008-05-12  Bruno Haible  <bruno@clisp.org>
94624         Update to Unicode 5.0.0.
94625         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94626         LBP_JV, LBP_JT. Redistribute values.
94627         (unilbrk_table): Change size.
94628         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94629         Unicode TR#14 rev. 22.
94630         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94631         LBP_JV, LBP_JT. Redistribute values.
94632         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94633         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94634         Update.
94635         * lib/unilbrk/lbrkprop1.h: Regenerated.
94636         * lib/unilbrk/lbrkprop2.h: Regenerated.
94637         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94638         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94639         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94640         Likewise.
94641         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94642         Likewise.
94643         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94644         result.
94645         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94646         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94647         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94648         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94649         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94650         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94652 2008-05-11  Bruno Haible  <bruno@clisp.org>
94654         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94656 2008-05-11  Bruno Haible  <bruno@clisp.org>
94658         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94659         * modules/unilbrk/gen-lbrk: New file.
94661 2008-05-11  Bruno Haible  <bruno@clisp.org>
94663         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94664         * m4/sha512.m4 (gl_SHA512): Likewise.
94666 2008-05-11  Jim Meyering  <meyering@redhat.com>
94668         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94669         * modules/crypto/sha256: New file.
94670         * modules/crypto/sha512: Likewise.
94671         * lib/sha256.c: Likewise.
94672         * lib/sha256.h: Likewise.
94673         * lib/sha512.c: Likewise.
94674         * lib/sha512.h: Likewise.
94675         * lib/u64.h: Likewise.
94676         * m4/sha256.m4: Likewise.
94677         * m4/sha512.m4: Likewise.
94678         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94680 2008-05-10  Bruno Haible  <bruno@clisp.org>
94682         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94683         (Input/Output <stdio.h>): Add xprintf.
94684         (Signal handling <signal.h>): Add strsignal.
94685         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94686         (Core language properties): Add func.
94687         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94688         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94689         strings.
94690         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94691         (Input/output): New section.
94692         (File system functions): Add openat-die, stat-macros.
94693         (Networking functions): Add sockets.
94694         (Unicode string functions): Add unictype/*.
94695         (Support for building libraries and executables): Add gperf.
94696         (Support for building documentation): Add agpl-3.0.
94697         (Misc): Add nocrash.
94699 2008-05-10  Bruno Haible  <bruno@clisp.org>
94701         * modules/unictype/gen-ctype: New file.
94703 2008-05-10  Jim Meyering  <meyering@redhat.com>
94705         Make chdir-safer.c more efficient on a system with no symlinks.
94706         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94707         also if ELOOP is zero.  Suggested by Bruno Haible.
94709         Make chdir-safer.c slightly safer.
94710         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94711         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94713         Avoid compile failure on systems without ELOOP (like mingw).
94714         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94715         Reported by Bruno Haible.
94717 2008-05-10  Bruno Haible  <bruno@clisp.org>
94719         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94720         (is_utf8_encoding): Use a case-insensitive comparison.
94721         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94722         streq.
94724 2008-05-10  Bruno Haible  <bruno@clisp.org>
94726         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94727         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94728         * lib/unilbrk/ulc-common.h (iconv_string_length,
94729         iconv_string_keeping_offsets): Remove declarations.
94730         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94731         Don't include <iconv.h>, streq.h, xsize.h.
94732         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94733         conversion.
94734         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94735         <iconv.h>, streq.h, xsize.h.
94736         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94737         conversion.
94738         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94739         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94740         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94741         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94743 2008-05-10  Bruno Haible  <bruno@clisp.org>
94745         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94746         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94748         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94749         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94751         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94752         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94754         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94755         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94757         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94758         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94760         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94761         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94763         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94764         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94766         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94767         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94769 2008-05-10  Bruno Haible  <bruno@clisp.org>
94771         Split up 'linebreak' module.
94772         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94773         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94774         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94775         modifications.
94776         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94777         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94778         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94779         lib/linebreak.c.
94780         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94781         lib/linebreak.c.
94782         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94783         lib/linebreak.c.
94784         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94785         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94786         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94787         lib/linebreak.c.
94788         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94789         lib/linebreak.c.
94790         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94791         lib/linebreak.c.
94792         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94793         lib/linebreak.c.
94794         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94795         lib/linebreak.c.
94796         * modules/unilbrk/base: New file.
94797         * modules/unilbrk/tables: New file.
94798         * modules/unilbrk/u8-possible-linebreaks: New file.
94799         * modules/unilbrk/u16-possible-linebreaks: New file.
94800         * modules/unilbrk/u32-possible-linebreaks: New file.
94801         * modules/unilbrk/ulc-common: New file.
94802         * modules/unilbrk/ulc-possible-linebreaks: New file.
94803         * modules/unilbrk/u8-width-linebreaks: New file.
94804         * modules/unilbrk/u16-width-linebreaks: New file.
94805         * modules/unilbrk/u32-width-linebreaks: New file.
94806         * modules/unilbrk/ulc-width-linebreaks: New file.
94807         * lib/linebreak.h: Remove file.
94808         * lib/linebreak.c: Remove file.
94809         * m4/linebreak.m4: Remove file.
94810         * modules/linebreak: Remove file.
94811         * NEWS: Mention the changes.
94813 2008-05-09  Eric Blake  <ebb9@byu.net>
94815         Add xmemdup0.
94816         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94817         implementation.
94818         * lib/xmalloc.c (xmemdup0): New C implementation.
94820 2008-05-08  Bruno Haible  <bruno@clisp.org>
94822         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94824 2008-05-07  Eric Blake  <ebb9@byu.net>
94826         Support cross-compilation of <wctype.h>.
94827         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94828         AC_CACHE_CHECK.
94830 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94832         * build-aux/vc-list-files: Add support for bzr.
94834 2008-05-03  Jim Meyering  <meyering@redhat.com>
94836         avoid failed assertion with tight malloc
94837         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94839 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94841         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94842         are needed from arpa/inet.h.
94843         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94844         Reported by Bruno Haible.
94846 2008-05-02  Jim Meyering  <meyering@redhat.com>
94848         avoid compilation error on FreeBSD 6
94849         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94851 2008-05-01  Jim Meyering  <meyering@redhat.com>
94853         useless-if-before-free: correct --help's exit status description
94854         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94855         for one or more matches, etc.  Reported by Bruno Haible.
94857         vc-list-files: make the stand-alone gnulib test work
94858         * modules/vc-list-files-tests (configure.ac):
94859         Define and AC_SUBST abs_aux_dir.
94860         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94861         $(abs_top_srcdir) to each script and having each of them
94862         duplicate the work of setting PATH, set PATH here, using
94863         the new variable, abs_aux_dir instead.
94864         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94865         * tests/test-vc-list-files-git.sh: Likewise.
94866         Reported by Bruno Haible.
94868 2008-05-01  Bruno Haible  <bruno@clisp.org>
94870         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94871         reallocation. Rename 'done' to 'found_delimiter'.
94873 2008-05-01  Jim Meyering  <meyering@redhat.com>
94875         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94876         * build-aux/vc-list-files: Use `...`, not $(...).
94878 2008-04-30  Jim Meyering  <meyering@redhat.com>
94880         add tests for vc-list-files
94881         * modules/vc-list-files-tests: New module.
94882         * tests/test-vc-list-files-cvs.sh: New file.
94883         * tests/test-vc-list-files-git.sh: New file.
94885         avoid a warning from gcc
94886         * lib/getndelim2.c (IF_LINT): Define.
94887         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94889         vc-list-files: work properly with build-aux/cvsu, too
94890         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94891         to all cvs-based clauses.
94893         vc-list-files: work properly in the CVS+awk case, too
94894         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94896         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94897         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94898         take more than one file argument, so .  Add quotes, just in case $dir
94899         ever contains a shell meta-character.  Prompted by Soren Hansen in
94900         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94902 2008-04-29  Eric Blake  <ebb9@byu.net>
94904         Optimize getndelim2 to use block operations when possible.
94905         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94906         freadseek, and memchr2.
94907         * lib/getndelim2.c (getndelim2): Use them for block reads.
94909 2008-04-29  Bruno Haible  <bruno@clisp.org>
94911         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94912         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94913         * modules/inet_ntop (Depends-on): Add extensions.
94914         * modules/inet_pton (Depends-on): Likewise.
94915         Reported by Simon Josefsson.
94917 2008-04-29  Jim Meyering  <meyering@redhat.com>
94919         When the is more than one match in a block, match all of them.
94920         * build-aux/useless-if-before-free: Iterate through each block
94921         until there are no more matches.
94923         Fix broken useless-if-before-free script.
94924         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94925         the expression to match cast of argument to free-like function.
94927 2008-04-29  Eric Blake  <ebb9@byu.net>
94929         Use new header.
94930         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94932 2008-04-29  Jim Meyering  <meyering@redhat.com>
94934         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94935         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
94936         by gnulib to exist and to declare e.g., inet_ntop.
94937         Don't include "inet_ntop.h", now removed.
94939         * m4/arpa_inet_h.m4: Remove trailing blanks.
94941 2008-04-29  Eric Blake  <ebb9@byu.net>
94943         Silence valgrind on safe reads beyond potential array bounds.
94944         * lib/rawmemchr.valgrind: New file.
94945         * lib/strchrnul.valgrind: Likewise.
94946         * modules/rawmemchr (Files): Distribute new file.
94947         * modules/strchrnul (Files): Likewise.
94948         Suggested by Bruno Haible.
94950 2008-04-29  Bruno Haible  <bruno@clisp.org>
94952         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94953         (inet_ntop, inet_pton): Change portability warning's wording.
94954         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94955         Invoke gl_CHECK_NEXT_HEADERS.
94956         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94957         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94958         set ARPA_INET_H.
94959         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94960         * modules/arpa_inet (Description): No longer only for systems that
94961         lack it.
94962         (Depends-on): Add include_next.
94963         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94964         HAVE_ARPA_INET_H.
94966 2008-04-29  Jim Meyering  <meyering@redhat.com>
94968         * modules/mkdir (License): Re-license as LGPLv2+.
94970 2008-04-29  Bruno Haible  <bruno@clisp.org>
94972         * modules/rawmemchr (Maintainer): Set to Eric.
94973         * modules/strchrnul (Maintainer): Likewise.
94975 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94977         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94978         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94980         * modules/arpa_inet (arpa/inet.h): Use them.
94982 2008-04-28  Eric Blake  <ebb9@byu.net>
94984         Test getndelim2.
94985         * modules/getndelim2-tests: New file.
94986         * tests/test-getndelim2.c: Likewise.
94987         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94988         stream.
94989         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94991         * MODULES.html.sh: Document new module.
94993 2008-04-20  Bruno Haible  <bruno@clisp.org>
94995         * lib/c-stack.c (die): Use raise.
94996         * modules/c-stack (Depends-on): Add raise.
94998 2008-04-28  Bruno Haible  <bruno@clisp.org>
95000         Expect rpmatch to be declared.
95001         * lib/yesno.c (rpmatch): Remove declaration.
95003         Declare rpmatch.
95004         * lib/stdlib.in.h (rpmatch): New declaration.
95005         * lib/rpmatch.c: Include <stdlib.h> first.
95006         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95007         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95009         HAVE_RPMATCH.
95010         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95012         (Include): Set to <stdlib.h>.
95013         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95014         HAVE_RPMATCH.
95015         * NEWS: Document the change.
95017 2008-04-28  Bruno Haible  <bruno@clisp.org>
95019         Change rpmatch to use nl_langinfo when appropriate.
95020         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95021         (N_): New macro.
95022         (localized_pattern): New function/macro.
95023         (try): Remove match, nomatch arguments. Copy the pattern into safe
95024         memory before caching it.
95025         (rpmatch): Use localized_pattern. Add translator comments.
95026         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95027         Suggested by Eric Blake.
95028         * modules/rpmatch (Depends-on): Add stdbool.
95030 2008-04-28  Eric Blake  <ebb9@byu.net>
95032         Add rawmemchr module, matching glibc.
95033         * modules/string (Makefile.am): New indicator.
95034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95035         * lib/string.in.h (rawmemchr): Declare when appropriate.
95036         * modules/rawmemchr: New file.
95037         * m4/rawmemchr.m4: Likewise.
95038         * lib/rawmemchr.c: Likewise.
95039         * modules/rawmemchr-tests: Likewise.
95040         * tests/test-rawmemchr.c: Likewise.
95041         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95042         module.
95043         * modules/strchrnul (Depends-on): Add rawmemchr.
95044         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95046         Whitespace cleanup.
95047         * tests/test-strchrnul.c: Reindent.
95048         * lib/strchrnul.c: Likewise.
95050         Optimize and test strchrnul.
95051         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95052         * modules/strchrnul-tests: New file.
95053         * tests/test-strchrnul.c: Likewise.
95055         Remove intprops dependency.
95056         * modules/memchr (Depends-on): Remove intprops.
95057         * modules/memrchr (Depends-on): Likewise.
95058         * modules/memchr2 (Depends-on): Likewise.
95059         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95060         * lib/memrchr.c (__memrchr): Likewise.
95061         * lib/memrchr2.c (memchr2): Likewise.
95062         Reported by Simon Josefsson.
95064 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95066         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95067         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95069 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95071         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95073         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95075         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95077         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95078         declarations.
95079         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95081         * m4/inet_pton.m4: Don't check for header files.
95083         * m4/inet_ntop.m4: Don't check for header files.
95085 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95087         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95088         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95089         trigger for cygwin).
95090         Reported by Bruno Haible  <bruno@clisp.org>.
95092 2008-04-28  Bruno Haible  <bruno@clisp.org>
95094         * doc/posix-functions/strdup.texi: Mention mingw problem.
95096 2008-04-27  Bruno Haible  <bruno@clisp.org>
95098         * modules/stat-time-tests (Depends-on): Add sleep.
95099         * tests/test-stat-time.c (force_unlink): New function.
95100         (cleanup): Use it.
95101         (test_mtime): Remove the ctime related tests.
95102         (test_ctime): New function, containing the ctime related tests.
95103         (main): Call test_ctime, except on native Windows platforms.
95105 2008-04-27  Bruno Haible  <bruno@clisp.org>
95107         * lib/rpmatch.c (rpmatch): Add some comments.
95108         Reported by James Youngman <jay@gnu.org>.
95110 2008-04-27  Bruno Haible  <bruno@clisp.org>
95112         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95113         quiet NaNs.
95115 2008-04-27  Bruno Haible  <bruno@clisp.org>
95117         Make test-yesno.sh work on mingw.
95118         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95119         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95120         (main): Set stdin to binary mode.
95121         * modules/yesno-tests (Depends-on): Add binary-io.
95123 2008-04-27  Bruno Haible  <bruno@clisp.org>
95125         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95126         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95127         argument that lie outside the IEEE 854 domain.
95128         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95129         (gl_ISFINITE): Use it.
95130         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95132 2008-04-27  Bruno Haible  <bruno@clisp.org>
95134         Allow local renaming in config.h.
95135         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95137 2008-04-27  Bruno Haible  <bruno@clisp.org>
95139         * lib/memchr.c (__memchr): Change type of 'i'.
95140         * lib/memchr2.c (memchr2): Likewise.
95142 2008-04-26  Eric Blake  <ebb9@byu.net>
95143         and Bruno Haible  <bruno@clisp.org>
95145         Optimize and test memrchr.
95146         * modules/memrchr (Depends-on): Add intprops.
95147         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95148         * modules/memrchr-tests: New file.
95149         * tests/test-memrchr.c: New file.
95151 2008-04-26  Bruno Haible  <bruno@clisp.org>
95153         Add tentative support for DragonFly BSD.
95154         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95155         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95156         fp.
95157         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95158         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95159         * lib/fpurge.c (fpurge): Likewise.
95160         * lib/freadable.c (freaadable): Likewise.
95161         * lib/freadahead.c (freadahead): Likewise.
95162         * lib/freading.c (freading): Likewise.
95163         * lib/freadptr.c (freadptr): Likewise.
95164         * lib/freadseek.c (freadptrinc): Likewise.
95165         * lib/fseeko.c (fseeko): Likewise.
95166         * lib/fseterr.c (fseterr): Likewise.
95167         * lib/fwritable.c (fwritable): Likewise.
95168         * lib/fwriting.c (fwriting): Likewise.
95170 2008-04-26  Bruno Haible  <bruno@clisp.org>
95172         * lib/stdio-impl.h: New file.
95173         * lib/fbufmode.c: Include stdio-impl.h.
95174         (fbufmode): Use fp_, remove redundant #defines.
95175         * lib/fflush.c: Include stdio-impl.h.
95176         (clear_ungetc_buffer): Remove redundant #defines.
95177         * lib/fpurge.c: Include stdio-impl.h.
95178         (fpurge): Remove redundant #defines.
95179         * lib/freadable.c: Include stdio-impl.h.
95180         (freadable): Remove redundant #defines.
95181         * lib/freadahead.c: Include stdio-impl.h.
95182         (freadahead): Remove redundant #defines.
95183         * lib/freading.c: Include stdio-impl.h.
95184         (freading): Remove redundant #defines.
95185         * lib/freadptr.c: Include stdio-impl.h.
95186         (freadptr): Remove redundant #defines.
95187         * lib/freadseek.c: Include stdio-impl.h.
95188         (freadptrinc): Remove redundant #defines.
95189         * lib/fseeko.c: Include stdio-impl.h.
95190         (rpl_fseeko): Remove redundant #defines.
95191         * lib/fseterr.c: Include stdio-impl.h.
95192         (fseterr): Remove redundant #defines.
95193         * lib/fwritable.c: Include stdio-impl.h.
95194         (fwritable: Remove redundant #defines.
95195         * lib/fwriting.c: Include stdio-impl.h.
95196         (fwriting): Remove redundant #defines.
95197         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95198         * modules/fflush (Files): Likewise.
95199         * modules/fpurge (Files): Likewise.
95200         * modules/freadable (Files): Likewise.
95201         * modules/freadahead (Files): Likewise.
95202         * modules/freading (Files): Likewise.
95203         * modules/freadptr (Files): Likewise.
95204         * modules/freadseek (Files): Likewise.
95205         * modules/fseeko (Files): Likewise.
95206         * modules/fseterr (Files): Likewise.
95207         * modules/fwritable (Files): Likewise.
95208         * modules/fwriting (Files): Likewise.
95210 2008-04-26  Bruno Haible  <bruno@clisp.org>
95212         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95213         restore_seek_optimization, update_fpos_cache): New functions, extracted
95214         from rpl_fflush.
95215         (rpl_fflush): Use them.
95216         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95217         (gl_REPLACE_FFLUSH): Use it.
95219 2008-04-26  Bruno Haible  <bruno@clisp.org>
95221         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95222         on Solaris.
95223         * tests/test-xstrtoimax.sh: Likewise.
95224         * tests/test-xstrtoumax.sh: Likewise.
95225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95227 2008-04-26  Bruno Haible  <bruno@clisp.org>
95229         * modules/memchr-tests: New file.
95230         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95232 2008-04-26  Eric Blake  <ebb9@byu.net>
95233             Bruno Haible  <bruno@clisp.org>
95235         * lib/memchr.c: Include intprops.h.
95236         (__memchr): Optimize parallel detection of matching bytes. Rename local
95237         variables. Add explanatory comments.
95239 2008-04-26  Bruno Haible  <bruno@clisp.org>
95241         Fix module 'memchr', broken since 2000-10-28.
95242         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95244 2008-04-26  Bruno Haible  <bruno@clisp.org>
95246         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95247         comments.
95249 2008-04-25  Eric Blake  <ebb9@byu.net>
95251         Use native fstatat on cygwin 1.7.0.
95252         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95253         first.
95255 2008-04-23  Eric Blake  <ebb9@byu.net>
95257         Improve memchr2 performance.
95258         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95259         NUL bytes.
95260         * modules/memchr2 (Depends-on): Use intprops.h.
95262 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95264         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95265         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95266         <blp@cs.stanford.edu>.
95268 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95270         * lib/arpa_inet.in.h: New file.
95272         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95273         (Makefile.am): Sed in substitute header file.
95275         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95276         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95278         * modules/inet_ntop (configure.ac): Use
95279         gl_ARPA_INET_MODULE_INDICATOR.
95281         * modules/inet_pton (configure.ac): Use
95282         gl_ARPA_INET_MODULE_INDICATOR.
95284 2008-04-22  Jim Meyering  <meyering@redhat.com>
95286         * modules/verify (License): Re-license as LGPLv2+.
95288 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95290         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95291         parameter to void* as per POSIX standard (MinGW uses char*).
95293 2008-04-21  Bruno Haible  <bruno@clisp.org>
95295         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95296         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95297         Define to replacements if REPLACE_ISWCNTRL is 1.
95298         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95299         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95300         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95301         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95302         what it fixes.
95303         * doc/posix-functions/iswalpha.texi: Likewise.
95304         * doc/posix-functions/iswblank.texi: Likewise.
95305         * doc/posix-functions/iswcntrl.texi: Likewise.
95306         * doc/posix-functions/iswdigit.texi: Likewise.
95307         * doc/posix-functions/iswgraph.texi: Likewise.
95308         * doc/posix-functions/iswlower.texi: Likewise.
95309         * doc/posix-functions/iswprint.texi: Likewise.
95310         * doc/posix-functions/iswpunct.texi: Likewise.
95311         * doc/posix-functions/iswspace.texi: Likewise.
95312         * doc/posix-functions/iswupper.texi: Likewise.
95313         * doc/posix-functions/iswxdigit.texi: Likewise.
95314         Reported by Alain Guibert.
95316 2008-04-21  Bruno Haible  <bruno@clisp.org>
95318         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95319         Patch by Alain Guibert.
95321 2008-04-21  Bruno Haible  <bruno@clisp.org>
95323         Fix test failures on mingw.
95324         * tests/test-xstrtol.c (print_no_progname): New function.
95325         (main): Install it in error_print_progname hook.
95326         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95327         * tests/test-xstrtoimax.sh: Likewise.
95328         * tests/test-xstrtoumax.sh: Likewise.
95330 2008-04-21  Bruno Haible  <bruno@clisp.org>
95332         Fix test failure on mingw.
95333         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95335 2008-04-21  Bruno Haible  <bruno@clisp.org>
95337         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95338         Actually assign a value.
95340 2008-04-20  Bruno Haible  <bruno@clisp.org>
95342         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95343         take 2.
95344         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95345         'canonicalize-lgpl' module is also used.
95346         * lib/canonicalize-lgpl.c: Undo last change.
95347         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95349 2008-04-20  Bruno Haible  <bruno@clisp.org>
95351         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95352         config.h. Provide _mkdir based fallback for mingw.
95353         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95354         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95355         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95356         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95357         rather than defining mkdir in config.h.
95358         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95359         (gl_SYS_STAT_H_DEFAULTS): New macro.
95360         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95361         HAVE_IO_H any more.
95362         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95363         HAVE_DECL_MKDIR and HAVE_IO_H.
95365 2008-04-20  Bruno Haible  <bruno@clisp.org>
95367         * lib/isapipe.c: Port to native Windows platforms.
95369 2008-04-20  Bruno Haible  <bruno@clisp.org>
95371         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95373 2008-04-21  Eric Blake  <ebb9@byu.net>
95375         Work around preprocessors that don't handle UINTMAX_MAX.
95376         * lib/memchr2.c (memchr2): Avoid embedded #if.
95377         Reported by Alain Guibert, fix suggested by Bruno Haible.
95379 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95381         * doc/posix-functions/strftime.texi (strftime): Explain better
95382         Windows incompatibility.  Suggested by Micah Cowan
95383         <micah@cowan.name>.
95385 2008-04-20  Bruno Haible  <bruno@clisp.org>
95387         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95388         unistr/u8-mblen.
95390 2008-04-20  Bruno Haible  <bruno@clisp.org>
95392         Fix test failure on platforms with non-GNU iconv.
95393         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95394         (U_TO_U8): Use it, rather than u16_to_u8.
95395         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95396         units at the end of the input string.
95397         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95399 2008-04-20  Bruno Haible  <bruno@clisp.org>
95401         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95402         when the resulting length is 0.
95403         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95405 2008-04-20  Bruno Haible  <bruno@clisp.org>
95407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95408         works.
95409         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95411 2008-04-20  Bruno Haible  <bruno@clisp.org>
95413         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95414         * modules/tsearch-tests (configure.ac): Test for initstate function.
95416 2008-04-20  Bruno Haible  <bruno@clisp.org>
95418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95419         for nlink_t if missing.
95420         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95422 2008-04-19  Bruno Haible  <bruno@clisp.org>
95424         Work around snprintf bug on Linux libc5.
95425         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95427         gl_SNPRINTF_SIZE1.
95428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95429         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95430         that test failed.
95431         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95432         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95433         * modules/snprintf (Files): Add m4/printf.m4.
95434         * modules/vsnprintf (Files): Likewise.
95435         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95436         * doc/posix-functions/vsnprintf.texi: Likewise.
95438 2008-04-19  Bruno Haible  <bruno@clisp.org>
95440         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95441         from 0.0058 to less than 10^-7.
95443 2008-04-19  Bruno Haible  <bruno@clisp.org>
95445         Fix rounding when a precision is given.
95446         * lib/vasnprintf.c (is_borderline): New function.
95447         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95448         9...9x.
95449         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95450         %e, %g.
95451         * tests/test-vasprintf-posix.c (test_function): Likewise.
95452         * tests/test-snprintf-posix.h (test_function): Likewise.
95453         * tests/test-sprintf-posix.h (test_function): Likewise.
95454         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95455         * tests/test-printf-posix.h (test_function): Likewise.
95456         * tests/test-printf-posix.output: Update.
95457         Reported by John Darrington <john@darrington.wattle.id.au> via
95458         Ben Pfaff <blp@cs.stanford.edu>.
95460 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95462         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95463         Suggested by Bruno Haible <bruno@clisp.org>.
95465 2008-04-17  Bruno Haible  <bruno@clisp.org>
95467         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95468         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95469         implementation.
95470         Patch by Bruce Merry <bmerry@gmail.com>.
95472 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95474         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95475         doesn't work under Windows.
95477 2008-04-16  Bruno Haible  <bruno@clisp.org>
95479         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95480         New macros.
95481         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95482         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95483         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95484         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95485         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95486         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95487         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95488         macros.
95489         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95490         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95491         Northern Sotho, Uighur.
95493 2008-04-16  Bruno Haible  <bruno@clisp.org>
95495         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95496         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95497         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95498         Reported by Daniel Bergström <daniel@octocode.com>.
95500 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95501             Bruno Haible  <bruno@clisp.org>
95503         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95504         function.
95505         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95506         New functions, mostly extracted from gl_locale_name_default.
95507         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95509 2008-04-16  Eric Blake  <ebb9@byu.net>
95511         Adjust strtod detection to catch glibc 2.7 bug.
95512         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95513         Reported by John Gatewood Ham.
95515 2008-04-16  Bruno Haible  <bruno@clisp.org>
95517         Add tentative support for Linux libc5.
95518         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
95519         * lib/fpurge.c (fpurge): Likewise.
95520         * lib/freadable.c (freadable): Likewise.
95521         * lib/freadahead.c (freadahead): Likewise.
95522         * lib/freading.c (freading): Likewise.
95523         * lib/freadptr.c (freadptr): Likewise.
95524         * lib/freadseek.c (freadptrinc): Likewise.
95525         * lib/fseeko.c (rpl_fseeko): Likewise.
95526         * lib/fseterr.c (fseterr): Likewise.
95527         * lib/fwritable.c (fwritable): Likewise.
95528         * lib/fwriting.c (fwriting): Likewise.
95529         Reported by Alain Guibert <alguibert+bts@free.fr>.
95531 2008-04-15  Bruno Haible  <bruno@clisp.org>
95533         * modules/mathl (configure.ac): Define module indicator.
95535 2008-04-15  Bruno Haible  <bruno@clisp.org>
95537         * lib/logl.c (logl): Remove unused variables.
95539 2008-04-15  Bruno Haible  <bruno@clisp.org>
95541         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
95542         fails.
95544 2008-04-15  Bruno Haible  <bruno@clisp.org>
95546         * lib/trim.c (trim2): Fix argument of isspace() macro.
95548 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
95550         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
95551         to 0.
95552         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
95554 2008-04-14  Bruno Haible  <bruno@clisp.org>
95556         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
95557         AC_LANG_PROGRAM argument.
95558         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
95559         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
95560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
95561         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95562         * m4/math_h.m4 (gl_MATH_H): Likewise.
95563         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
95564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95565         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95566         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
95567         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95568         * m4/regex.m4 (gl_REGEX): Likewise.
95569         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
95570         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
95571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95572         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
95573         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95574         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95578 2008-04-14  Jim Meyering  <meyering@redhat.com>
95580         test-strtod: fix typos: s/abs/fabs/
95581         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
95583 2008-04-13  Bruno Haible  <bruno@clisp.org>
95585         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
95586         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
95587         module is also used and while not building the reloc-wrapper.
95589 2008-04-13  Bruno Haible  <bruno@clisp.org>
95591         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95593 2008-04-13  Bruno Haible  <bruno@clisp.org>
95595         Fix AIX compilation failure introduced on 2008-04-02.
95596         * tests/test-frexp.c (exp): Undefine before redefining.
95597         * tests/test-frexpl.c (exp): Likewise.
95599 2008-04-13  Bruno Haible  <bruno@clisp.org>
95601         Work around a HP-UX stdio bug.
95602         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95603         * tests/test-ftello.c (main): Likewise.
95604         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95605         * doc/posix-functions/ftello.texi: Likewise.
95607 2008-04-13  Bruno Haible  <bruno@clisp.org>
95609         Make test-signbit pass on HP-UX/hppa.
95610         * tests/test-signbit.c (minus_zerol): New variable.
95611         (test_signbitl): Use it.
95613 2008-04-13  Bruno Haible  <bruno@clisp.org>
95615         Make truncl work on OSF/1 4.0.
95616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95617         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95618         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95620         HAVE_DECL_TRUNCL.
95621         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95622         HAVE_DECL_TRUNCL.
95623         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95625 2008-04-13  Bruno Haible  <bruno@clisp.org>
95627         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95629 2008-04-13  Bruno Haible  <bruno@clisp.org>
95631         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95632         expression, so as to avoid HP-UX 11 cc compiler bug.
95634 2008-04-13  Bruno Haible  <bruno@clisp.org>
95636         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95638 2008-04-13  Bruno Haible  <bruno@clisp.org>
95640         * lib/git-merge-changelog.c: Remove empty declaration outside of
95641         functions.
95643 2008-04-13  Bruno Haible  <bruno@clisp.org>
95645         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95647 2008-04-13  Bruno Haible  <bruno@clisp.org>
95649         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95650         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95651         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95652         also if it exists but lacks definitions of the SHUT_* macros.
95653         * modules/sys_socket (Description): Update.
95654         Reported by Elbert Pol <e.pol@chello.nl>.
95656 2008-04-13  Bruno Haible  <bruno@clisp.org>
95658         * lib/localcharset.c (OS2): Don't redefine if already defined.
95659         Reported by Elbert Pol <e.pol@chello.nl>.
95661 2008-04-13  Bruno Haible  <bruno@clisp.org>
95663         * lib/binary-io.h [__EMX__]: Include <io.h>.
95664         Reported by Elbert Pol <e.pol@chello.nl>.
95666 2008-04-12  Bruno Haible  <bruno@clisp.org>
95668         * lib/fpucw.h: Enable the definitions also for x86_64.
95669         Needed for NetBSD/x86_64.
95670         Reported by Thomas Klausner <tk@giga.or.at>.
95672 2008-04-12  Bruno Haible  <bruno@clisp.org>
95674         * tests/test-strtod.c: Include isnand.h.
95675         (main): Use isnand instead of isnan.
95676         Reported by Jim Meyering.
95678 2008-04-12  Bruno Haible  <bruno@clisp.org>
95680         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95681         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95683 2008-04-12  Jim Meyering  <meyering@redhat.com>
95685         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95687 2008-04-12  Bruno Haible  <bruno@clisp.org>
95689         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95690         Reported by Elbert Pol <e.pol@chello.nl>.
95692 2008-04-12  Eric Blake  <ebb9@byu.net>
95694         Work around Solaris 10 math.h bug.
95695         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95696         (gl_MATH_H_DEFAULTS): Set up default.
95697         * modules/math (Makefile.am): Replace new indicators.
95698         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95699         * tests/test-math.c (main): Test this.
95700         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95701         * doc/posix-headers/math.texi (math.h): Mention bug.
95702         Reported by Nelson H. F. Beebe and Jim Meyering.
95704 2008-04-11  Bruno Haible  <bruno@clisp.org>
95706         Adapt to future versions of Apple GCC.
95707         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95708         Reported by Peter O'Gorman <peter@pogma.com>.
95710 2008-04-11  Bruno Haible  <bruno@clisp.org>
95712         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95714 2008-04-11  Bruno Haible  <bruno@clisp.org>
95716         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95718         * modules/getaddrinfo-tests (Makefile.am): Define
95719         test_getaddrinfo_LDADD.
95721 2008-04-11  Bruno Haible  <bruno@clisp.org>
95723         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95724         (init): Fix syntax error.
95725         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95726         is declared.
95728 2008-04-11  Bruno Haible  <bruno@clisp.org>
95730         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95731         * modules/glob (Depends-on): Add stdbool.
95733 2008-04-11  Bruno Haible  <bruno@clisp.org>
95735         * lib/trim.c: Include <string.h>.
95737 2008-04-11  Eric Blake  <ebb9@byu.net>
95739         Avoid compile failure on OS/2.
95740         * lib/regex_internal.h (internal_function): Disable optimization
95741         on OS/2 (__EMX__), where it caused compiler error.
95742         Reported by Elbert Pol.
95744 2008-04-11  Bruno Haible  <bruno@clisp.org>
95746         Flush the standard error stream before aborting. Needed on mingw.
95747         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95748         * tests/test-array_list.c (ASSERT): Likewise.
95749         * tests/test-array_oset.c (ASSERT): Likewise.
95750         * tests/test-avltree_list.c (ASSERT): Likewise.
95751         * tests/test-avltree_oset.c (ASSERT): Likewise.
95752         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95753         * tests/test-binary-io.c (ASSERT): Likewise.
95754         * tests/test-byteswap.c (ASSERT): Likewise.
95755         * tests/test-c-ctype.c (ASSERT): Likewise.
95756         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95757         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95758         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95759         * tests/test-c-strstr.c (ASSERT): Likewise.
95760         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95761         * tests/test-canonicalize.c (ASSERT): Likewise.
95762         * tests/test-carray_list.c (ASSERT): Likewise.
95763         * tests/test-ceilf1.c (ASSERT): Likewise.
95764         * tests/test-ceilf2.c (ASSERT): Likewise.
95765         * tests/test-ceill.c (ASSERT): Likewise.
95766         * tests/test-count-one-bits.c (ASSERT): Likewise.
95767         * tests/test-fbufmode.c (ASSERT): Likewise.
95768         * tests/test-fflush2.c (ASSERT): Likewise.
95769         * tests/test-floorf1.c (ASSERT): Likewise.
95770         * tests/test-floorf2.c (ASSERT): Likewise.
95771         * tests/test-floorl.c (ASSERT): Likewise.
95772         * tests/test-fopen.c (ASSERT): Likewise.
95773         * tests/test-fpending.c (ASSERT): Likewise.
95774         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95775         * tests/test-fpurge.c (ASSERT): Likewise.
95776         * tests/test-freadable.c (ASSERT): Likewise.
95777         * tests/test-freadahead.c (ASSERT): Likewise.
95778         * tests/test-freading.c (ASSERT): Likewise.
95779         * tests/test-freadptr.c (ASSERT): Likewise.
95780         * tests/test-freadptr2.c (ASSERT): Likewise.
95781         * tests/test-freadseek.c (ASSERT): Likewise.
95782         * tests/test-freopen.c (ASSERT): Likewise.
95783         * tests/test-frexp.c (ASSERT): Likewise.
95784         * tests/test-frexpl.c (ASSERT): Likewise.
95785         * tests/test-fseek.c (ASSERT): Likewise.
95786         * tests/test-fseeko.c (ASSERT): Likewise.
95787         * tests/test-fstrcmp.c (ASSERT): Likewise.
95788         * tests/test-ftell.c (ASSERT): Likewise.
95789         * tests/test-ftello.c (ASSERT): Likewise.
95790         * tests/test-func.c (ASSERT): Likewise.
95791         * tests/test-fwritable.c (ASSERT): Likewise.
95792         * tests/test-fwriting.c (ASSERT): Likewise.
95793         * tests/test-getdelim.c (ASSERT): Likewise.
95794         * tests/test-getline.c (ASSERT): Likewise.
95795         * tests/test-i-ring.c (ASSERT): Likewise.
95796         * tests/test-iconv-utf.c (ASSERT): Likewise.
95797         * tests/test-iconv.c (ASSERT): Likewise.
95798         * tests/test-isfinite.c (ASSERT): Likewise.
95799         * tests/test-isnand.c (ASSERT): Likewise.
95800         * tests/test-isnanf.c (ASSERT): Likewise.
95801         * tests/test-isnanl.h (ASSERT): Likewise.
95802         * tests/test-ldexpl.c (ASSERT): Likewise.
95803         * tests/test-linked_list.c (ASSERT): Likewise.
95804         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95805         * tests/test-localename.c (ASSERT): Likewise.
95806         * tests/test-lseek.c (ASSERT): Likewise.
95807         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95808         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95809         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95810         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95811         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95812         * tests/test-mbschr.c (ASSERT): Likewise.
95813         * tests/test-mbscspn.c (ASSERT): Likewise.
95814         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95815         * tests/test-mbspbrk.c (ASSERT): Likewise.
95816         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95817         * tests/test-mbsrchr.c (ASSERT): Likewise.
95818         * tests/test-mbsspn.c (ASSERT): Likewise.
95819         * tests/test-mbsstr1.c (ASSERT): Likewise.
95820         * tests/test-mbsstr2.c (ASSERT): Likewise.
95821         * tests/test-mbsstr3.c (ASSERT): Likewise.
95822         * tests/test-memchr2.c (ASSERT): Likewise.
95823         * tests/test-memmem.c (ASSERT): Likewise.
95824         * tests/test-open.c (ASSERT): Likewise.
95825         * tests/test-printf-frexp.c (ASSERT): Likewise.
95826         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95827         * tests/test-printf-posix.c (ASSERT): Likewise.
95828         * tests/test-quotearg.c (ASSERT): Likewise.
95829         * tests/test-rbtree_list.c (ASSERT): Likewise.
95830         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95831         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95832         * tests/test-round1.c (ASSERT): Likewise.
95833         * tests/test-roundf1.c (ASSERT): Likewise.
95834         * tests/test-roundl.c (ASSERT): Likewise.
95835         * tests/test-signbit.c (ASSERT): Likewise.
95836         * tests/test-sleep.c (ASSERT): Likewise.
95837         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95838         * tests/test-snprintf.c (ASSERT): Likewise.
95839         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95840         * tests/test-stat-time.c (ASSERT): Likewise.
95841         * tests/test-strcasestr.c (ASSERT): Likewise.
95842         * tests/test-strerror.c (ASSERT): Likewise.
95843         * tests/test-striconv.c (ASSERT): Likewise.
95844         * tests/test-striconveh.c (ASSERT): Likewise.
95845         * tests/test-striconveha.c (ASSERT): Likewise.
95846         * tests/test-strsignal.c (ASSERT): Likewise.
95847         * tests/test-strstr.c (ASSERT): Likewise.
95848         * tests/test-strtod.c (ASSERT): Likewise.
95849         * tests/test-trunc1.c (ASSERT): Likewise.
95850         * tests/test-trunc2.c (ASSERT): Likewise.
95851         * tests/test-truncf1.c (ASSERT): Likewise.
95852         * tests/test-truncf2.c (ASSERT): Likewise.
95853         * tests/test-truncl.c (ASSERT): Likewise.
95854         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95855         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95856         * tests/test-vasnprintf.c (ASSERT): Likewise.
95857         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95858         * tests/test-vasprintf.c (ASSERT): Likewise.
95859         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95860         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95861         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95862         * tests/test-vsnprintf.c (ASSERT): Likewise.
95863         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95864         * tests/test-wcwidth.c (ASSERT): Likewise.
95865         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95866         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95867         * tests/test-xvasprintf.c (ASSERT): Likewise.
95868         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95869         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95870         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95871         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95872         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95873         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95874         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95875         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95876         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95877         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95878         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95879         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95880         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95881         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95882         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95883         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95884         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95885         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95886         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95887         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95888         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95889         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95890         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95891         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95892         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95893         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95894         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95895         * tests/unictype/test-combining.c (ASSERT): Likewise.
95896         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95897         * tests/unictype/test-digit.c (ASSERT): Likewise.
95898         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95899         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95900         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95901         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95902         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95903         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95904         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95905         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95906         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95907         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95908         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95909         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95910         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95911         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95912         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95913         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95914         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95915         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95916         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95917         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95918         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95919         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95920         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95921         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95922         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95923         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95924         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95925         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95926         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95927         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95928         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95929         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95930         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95931         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95932         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95933         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95934         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95935         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
95936         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
95937         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
95938         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
95939         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
95940         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
95941         Reported by Eric Blake.
95943 2008-04-11  Bruno Haible  <bruno@clisp.org>
95945         * lib/wchar.in.h: Tweak comment.
95947 2008-04-11  Bruno Haible  <bruno@clisp.org>
95949         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95950         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95951         gl_COMMON.
95952         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95954 2008-04-11  Bruno Haible  <bruno@clisp.org>
95956         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95958 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95960         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95961         of attempting to use non-existing /dev/*random.  Based on patch
95962         from Adam Strzelecki <ono@java.pl> in
95963         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95965 2008-04-08  Bruno Haible  <bruno@clisp.org>
95967         Add tentative support for emx+gcc.
95968         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95969         * lib/fpurge.c (fpurge): Likewise.
95970         * lib/freadable.c (freadable): Likewise.
95971         * lib/freadahead.c (freadahead): Likewise.
95972         * lib/freading.c (freading): Likewise.
95973         * lib/freadptr.c (freadptr): Likewise.
95974         * lib/freadseek.c (freadptrinc): Likewise.
95975         * lib/fseeko.c (rpl_fseeko): Likewise.
95976         * lib/fseterr.c (fseterr): Likewise.
95977         * lib/fwritable.c (fwritable): Likewise.
95978         * lib/fwriting.c (fwriting): Likewise.
95979         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95981 2008-04-09  Eric Blake  <ebb9@byu.net>
95983         Avoid some autoconf warnings.
95984         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95985         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95986         * m4/afs.m4 (gl_AFS): Likewise.
95987         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95988         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95990         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95991         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95992         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95993         (AC_CHECK_DECLS_ONCE): Likewise.
95994         Rename file...
95995         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95996         gnulib-tool requires autoconf 2.59 or better.
95997         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95999 2008-04-08  Eric Blake  <ebb9@byu.net>
96001         Use 'git describe --match' if present (added in git 1.5.5).
96002         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96003         if possible.
96005 2008-04-08  Bruno Haible  <bruno@clisp.org>
96007         Add tentative support for OpenServer.
96008         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96009         _ptr, _cnt.
96010         * lib/fpurge.c (fpurge): Likewise.
96011         * lib/freadable.c (freadable): Likewise.
96012         * lib/freadahead.c (freadahead): Likewise.
96013         * lib/freading.c (freading): Likewise.
96014         * lib/freadptr.c (freadptr): Likewise.
96015         * lib/freadseek.c (freadptrinc): Likewise.
96016         * lib/fseeko.c (rpl_fseeko): Likewise.
96017         * lib/fseterr.c (fseterr): Likewise.
96018         * lib/fwritable.c (fwritable): Likewise.
96019         * lib/fwriting.c (fwriting): Likewise.
96020         Reported by Roger Cornelius <rac@tenzing.org> and
96021         Brian K. White <brian@aljex.com>.
96023 2008-04-06  Jim Meyering  <meyering@redhat.com>
96025         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96027 2008-04-06  Bruno Haible  <bruno@clisp.org>
96029         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96030         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96031         * tests/test-printf-posix.sh: Likewise.
96032         * tests/test-vfprintf-posix.sh: Likewise.
96033         * tests/test-vprintf-posix.sh: Likewise.
96034         * tests/test-xprintf-posix.sh: Likewise.
96036 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96038         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96039         hide error from 'ls', needed on OS/2.
96040         Report by Elbert Pol <elbert.pol@gmail.com>.
96042 2008-04-04  Eric Blake  <ebb9@byu.net>
96044         Make test-fseeko.c failures meaningful.
96045         * tests/test-fseeko.c: Print line number on failure.
96046         * tests/test-fseek.c: Likewise.
96047         Reported by Nelson H. F. Beebe.
96049         Improve strtod bug detection check.
96050         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96051         required for Solaris 10.
96052         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96054 2008-04-04  Bruno Haible  <bruno@clisp.org>
96056         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96057         by m4/setenv.m4.
96059 2008-04-03  Eric Blake  <ebb9@byu.net>
96061         Ensure sane .version contents.
96062         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96063         version string.
96064         * build-aux/git-version-gen: Improve documentation.
96066         Make GNU make output nicer.
96067         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96068         MAKECMDGOALS to enforce message for all command line targets.  Set
96069         srcdir for use in maint.mk.
96071         Another maintainer tweak.
96072         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96073         a target that regenerates version.
96075 2008-04-03  Jim Meyering  <meyering@redhat.com>
96077         vc-list-files: don't cause coreutils "make po-check" failure
96078         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96080 2008-04-03  Eric Blake  <ebb9@byu.net>
96082         Allow VPATH usage of vc-list-files.
96083         * build-aux/vc-list-files (scriptversion): Add timestamp.
96084         (options): Add --help, --version, -C.
96085         (CVS): Support installed cvsu.
96087 2008-04-02  Bruno Haible  <bruno@clisp.org>
96089         Avoid some "statement with no effect" warnings from gcc.
96090         * tests/test-wctype.c (main): Explicitly ignore unused values.
96091         Reported by Jim Meyering.
96093 2008-04-02  Jim Meyering  <meyering@redhat.com>
96095         Avoid some warnings from "gcc -Wshadow".
96096         * tests/test-frexp.c (exp): Define to a different identifier.
96097         * tests/test-frexpl.c (exp): Likewise.
96099 2008-04-03  Jim Meyering  <meyering@redhat.com>
96101         bootstrap: remove dangling *.[ch] symlinks from lib
96102         * build-aux/bootstrap [dangling symlink removal]: Move find's
96103         -depth option to precede all others, to avoid a warning.
96104         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96106 2008-04-02  Bruno Haible  <bruno@clisp.org>
96108         Avoid some warnings from "gcc -Wshadow".
96109         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96110         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96111         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96112         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96113         Reported by Jim Meyering.
96115 2008-04-01  Bruno Haible  <bruno@clisp.org>
96117         Fix test to work on IRIX 6.5 with cc.
96118         * tests/test-math.c (numeric_equal): New function.
96119         (main): Use it.
96121 2008-04-01  Bruno Haible  <bruno@clisp.org>
96123         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96125 2008-04-01  Bruno Haible  <bruno@clisp.org>
96127         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96128         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96129         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96130         (Depends-on): Remove math.
96132         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96133         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96134         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96135         (Depends-on): Remove math.
96137         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96138         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96139         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96140         (Depends-on): Remove math.
96141         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96142         (Depends-on): Remove math.
96144         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96145         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96146         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96147         (Depends-on): Remove math.
96148         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96149         (Depends-on): Remove math.
96151         * tests/test-round1.c: Include nan.h.
96152         (main): Use NaNd instead of NAN.
96153         * modules/round-tests (Files): Add tests/nan.h.
96155         * tests/test-trunc1.c: Include nan.h.
96156         (main): Use NaNd instead of NAN.
96157         * modules/trunc-tests (Files): Add tests/nan.h.
96159         * tests/test-roundf1.c: Include nan.h.
96160         (main): Use NaNf instead of NAN.
96161         * modules/roundf-tests (Files): Add tests/nan.h.
96163         * tests/test-truncf1.c: Include nan.h.
96164         (main): Use NaNf instead of NAN.
96165         * modules/truncf-tests (Files): Add tests/nan.h.
96167         * tests/test-ceilf1.c: Include nan.h.
96168         (main): Use NaNf instead of NAN.
96169         * modules/ceilf-tests (Files): Add tests/nan.h.
96171         * tests/test-floorf1.c: Include nan.h.
96172         (main): Use NaNf instead of NAN.
96173         * modules/floorf-tests (Files): Add tests/nan.h.
96175         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96176         (main): Use NaNf instead of NAN.
96177         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96179         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96180         (main): Use NaNd instead of NAN.
96181         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96183         * tests/test-frexp.c: Include nan.h.
96184         (main): Use NaNd instead of NAN.
96185         * modules/frexp-tests (Files): Add tests/nan.h.
96187         * lib/isnan.c: Don't include <math.h>.
96188         (FUNC): Don't use NAN macro.
96189         * modules/isnand-nolibm (Depends-on): Remove math.
96190         * modules/isnanf-nolibm (Depends-on): Remove math.
96191         * modules/isnanl (Depends-on): Remove math.
96192         * modules/isnanl-nolibm (Depends-on): Remove math.
96194         * tests/nan.h: New file.
96196 2008-04-01  Eric Blake  <ebb9@byu.net>
96198         Fix typos.
96199         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96200         values to be the right type.
96202         For now, cater to gnulib strtod inaccuracies.
96203         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96204         fractional results.  While not as nice from a QoI perspective, it
96205         is a quicker patch than correctly implementing decimal to binary
96206         rounding.
96208 2008-03-31  Eric Blake  <ebb9@byu.net>
96210         Guarantee a definition of NAN.
96211         * lib/math.in.h (NAN): Define if missing.
96212         * tests/test-math.c (main): Test it.
96213         * doc/posix-headers/math.texi (math.h): Document this.
96214         * lib/isnan.c (rpl_isnand): Use it.
96215         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96216         * tests/test-floorf1.c (NaN): Likewise.
96217         * tests/test-frexp.c (NaN): Likewise.
96218         * tests/test-isnand.c (NaN): Likewise.
96219         * tests/test-isnanf.c (NaN): Likewise.
96220         * tests/test-round1.c (NaN): Likewise.
96221         * tests/test-roundf1.c (NaN): Likewise.
96222         * tests/test-snprintf-posix.h (NaN): Likewise.
96223         * tests/test-sprintf-posix.h (NaN): Likewise.
96224         * tests/test-trunc1.c (NaN): Likewise.
96225         * tests/test-truncf1.c (NaN): Likewise.
96226         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96227         * tests/test-vasprintf-posix.c (NaN): Likewise.
96228         * modules/isnand-nolibm (Depends-on): Add math.
96229         * modules/isnanf-nolibm (Depends-on): Likewise.
96230         * modules/isnanl (Depends-on): Likewise.
96231         * modules/isnanl-nolibm (Depends-on): Likewise.
96232         * modules/snprintf-posix-tests (Depends-on): Likewise.
96233         * modules/sprintf-posix-tests (Depends-on): Likewise.
96234         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96235         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96236         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96237         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96239 2008-03-31  Bruno Haible  <bruno@clisp.org>
96241         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96242         * doc/posix-functions/strtod.texi: Likewise.
96244 2008-03-31  Bruno Haible  <bruno@clisp.org>
96246         * tests/test-strtod.c (main): Don't use C99 syntax.
96248 2008-03-31  Bruno Haible  <bruno@clisp.org>
96250         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96251         Reported by Eric Blake.
96253 2008-03-31  Jim Meyering  <meyering@redhat.com>
96255         Don't compare actual signbit return values.
96256         * tests/test-strtod.c (main): Rather, compare only their
96257         zero/non-zero nature.
96259 2008-03-31  Eric Blake  <ebb9@byu.net>
96261         More strtod documentation.
96262         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96263         failures as distinct bugs.
96265 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96267         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96268         Problem reported by Erik Benada in
96269         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96271 2008-03-30  Bruno Haible  <bruno@clisp.org>
96273         * tests/test-strtod.c: Add comments about which assertion fails on which
96274         platform.
96275         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96277 2008-03-30  Eric Blake  <ebb9@byu.net>
96279         Test signbit behavior on zeros.
96280         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96281         (test_signbitd, test_signbitl): Likewise.
96283         More strtod touchups.
96284         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96285         sign of negative underflow, for now.  Use .5, not .1.
96286         * doc/posix-functions/strtod.texi (strtod): Mention these
96287         limitations.
96288         Reported by Jim Meyering.
96290 2008-03-30  Bruno Haible  <bruno@clisp.org>
96292         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96293         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96295 2008-03-30  Bruno Haible  <bruno@clisp.org>
96297         Avoid failure when attempting to return empty iconv results on some
96298         platforms.
96299         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96300         allocation, don't report ENOMEM when the resulting string is empty.
96302 2008-03-30  Bruno Haible  <bruno@clisp.org>
96304         Fix buffer overrun.
96305         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96306         Don't consider the width for tmp_length. Check count against tmp_length
96307         before doing the padding. Ensure enough allocation during padding.
96309 2008-03-30  Eric Blake  <ebb9@byu.net>
96311         strtod touchups.
96312         * lib/strtod.c (strtod): Avoid compiler warnings.
96313         Reported by Jim Meyering.
96315 2008-03-30  Bruno Haible  <bruno@clisp.org>
96317         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96318         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96319         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96320         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96321         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96322         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96323         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96324         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96326         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96327         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96328         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96329         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96330         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96331         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96332         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96333         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96335         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96336         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96337         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96338         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96339         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96340         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96341         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96342         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96344         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96345         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96347         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96348         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96350         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96351         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96353         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96355         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96357         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96359         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96361         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96363         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96365         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96367         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96369         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96370         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96372         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96373         (Depends-on): Add EOVERFLOW.
96374         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96375         (Depends-on): Add EOVERFLOW.
96376         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96377         (Depends-on): Add EOVERFLOW.
96378         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96379         (Depends-on): Add EOVERFLOW.
96380         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96381         (Depends-on): Add EOVERFLOW.
96382         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96383         (Depends-on): Add EOVERFLOW.
96384         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96385         (Depends-on): Add EOVERFLOW.
96386         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96387         (Depends-on): Add EOVERFLOW.
96389         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96391         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96393         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96395         * modules/snprintf (Depends-on): Add EOVERFLOW.
96397         * lib/poll.c (EOVERFLOW): Remove fallback.
96398         * modules/poll (Depends-on): Add EOVERFLOW.
96400         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96401         * modules/getugroups (Depends-on): Add EOVERFLOW.
96403         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96404         * modules/getdelim (Depends-on): Add EOVERFLOW.
96406         * lib/ftell.c (EOVERFLOW): Remove fallback.
96407         * modules/ftell (Depends-on): Add EOVERFLOW.
96409         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96410         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96411         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96413         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96415         * modules/EOVERFLOW-tests: New file.
96416         * tests/test-EOVERFLOW.c: New file.
96418         * modules/EOVERFLOW: New file.
96419         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96421 2008-03-30  Bruno Haible  <bruno@clisp.org>
96423         Fix bug introduced on 2007-06-10.
96424         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96425         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96427 2008-03-30  Bruno Haible  <bruno@clisp.org>
96429         Improve freadseek's efficiency after ungetc.
96430         * lib/freadseek.c: Include freadahead.h.
96431         (freadptrinc): New function, extracted from freadseek.
96432         (freadseek): Use it in a loop. Use freadahead to determine the number
96433         of loop iterations.
96434         * modules/freadseek (Depends-on): Add freadahead.
96435         (configure.ac): Require AC_C_INLINE.
96437 2008-03-30  Bruno Haible  <bruno@clisp.org>
96439         * lib/freadseek.c (freadseek): Don't ignore the return value of
96440         freadptr.
96442 2008-03-29  Eric Blake  <ebb9@byu.net>
96444         Add hex float support.
96445         * modules/strtod (Depends-on): Add c-ctype.
96446         (Link): Mention POW_LIB.
96447         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96448         whitespace between 'e' and exponent.
96449         * tests/test-strtod.c (main): Enable hex float tests.
96450         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96451         now provides.
96453         Document various strtod bugs, with some fixes.
96454         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96455         "-0x", "inf", "nan", and hex constants.
96456         * doc/posix-functions/atof.texi (atof): Likewise.
96457         * modules/stdlib (Makefile.am): Support strtod.
96458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96459         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96460         detect additional strtod bugs.
96461         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96462         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96463         bool where appropriate.  Parse 'inf' and 'nan'.
96464         * tests/test-strtod.c: New file.
96465         * modules/strtod (Depends-on): Add stdbool, stdlib.
96466         (configure.ac): Turn on module indicator.
96467         * modules/strtod-tests: New module.
96469 2008-03-29  Eric Blake  <ebb9@byu.net>
96471         Fix ftell on mingw.
96472         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96473         * modules/ftell-tests (Depends-on): Add binary-io.
96474         * modules/ftello-tests (Depends-on): Likewise.
96475         * tests/test-ftell.c (main): Enhance test to cover behavior after
96476         ungetc.  Enforce binary mode.
96477         * tests/test-ftello.c (main): Likewise.
96479         Pass test-freadseek on cygwin.
96480         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96481         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96482         ungetc buffer.
96484         * tests/test-fflush2.c (main): Fix typo.
96486 2008-03-29  Bruno Haible  <bruno@clisp.org>
96488         * tests/test-fflush2.c (main): Temporarily disable the contents of
96489         this test.
96490         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96491         Reported by Eric Blake.
96493 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96495         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96496         (GC_SHA224_DIGEST_SIZE): Add.
96498         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96499         (gc_hash_digest_length): Likewise.
96500         (gc_hash_buffer): Likewise.
96502 2008-03-25  Bruno Haible  <bruno@clisp.org>
96504         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96505         detail which gettext release to use.
96506         Reported by Simon Josefsson.
96508 2008-03-26  Jim Meyering  <meyering@redhat.com>
96510         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96511         * modules/gnumakefile (clean-GNUmakefile): Also, use
96512         test ... && ... || : syntax rather than if-then ... fi.
96514         gnumakefile: Don't double-quote-expand $(VPATH) value.
96515         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
96517 2008-03-24  Eric Blake  <ebb9@byu.net>
96519         Alter GNUmakefile to install into top directory.
96520         * modules/maintainer-makefile: Split, and add dependency...
96521         * modules/gnumakefile: to this new module.
96522         * build-aux/GNUmakefile: Move...
96523         * top/GNUmakefile: ...here.
96524         * build-aux/maint.mk: Move...
96525         * top/maint.mk: ...here.
96526         * MODULES.html.sh (Support for maintaining...): Document new
96527         module.
96529 2008-03-23  Bruno Haible  <bruno@clisp.org>
96531         * gnulib-tool: New options --vc-files, --no-vc-files.
96532         (func_usage): Document them.
96533         (vc_files): New variable.
96534         (func_import): Consider vc_files.
96535         (func_create_testdir): Set vc_files to empty.
96536         Suggested by Jim Meyering and Karl Berry.
96538 2008-03-23  Bruno Haible  <bruno@clisp.org>
96540         Fix regex compilation error on HP-UX 11.
96541         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
96542         * modules/regex (Files): Add m4/mbstate_t.m4.
96543         Reported by Ton Voon <ton.voon@altinity.com>.
96545 2008-03-23  Bruno Haible  <bruno@clisp.org>
96547         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
96549 2008-03-23  Eric Blake  <ebb9@byu.net>
96550             Bruno Haible  <bruno@clisp.org>
96552         Install files from top/ in the destination directory.
96553         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
96554         augmentation also for the files from top/.
96555         (func_import, func_create_testdir): Rewrite file names:
96556         top/filename -> filename.
96558 2008-03-23  Bruno Haible  <bruno@clisp.org>
96560         Tweak "gnulib --version" output.
96561         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
96563 2008-03-23  Bruno Haible  <bruno@clisp.org>
96565         Tweak "gnulib --version" output.
96566         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
96567         rather than contents of ChangeLog, when possible.
96569 2008-03-21  Eric Blake  <ebb9@byu.net>
96571         More --version tweaks.
96572         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
96573         date of last ChangeLog entry.
96575 2008-03-21  Jim Meyering  <meyering@redhat.com>
96577         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
96579 2008-03-20  Eric Blake  <ebb9@byu.net>
96581         VPATH fix.
96582         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
96584 2008-03-20  Simon Josefsson  <simon@josefsson.org>
96586         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
96587         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
96589 2008-03-20  Eric Blake  <ebb9@byu.net>
96591         Sync GNUmakefile with coreutils.
96592         * build-aux/GNUmakefile (have-Makefile): Rename...
96593         (_have-Makefile): ...to this, for namespace consideration.
96594         (GNUmakefile.cfg): Include, if present.
96595         (_autoreconf): Define a default.
96596         (_is-dist-target): New rule for rebuilds to pick up intra-release
96597         version.
96598         (maint-cfg.mk): Rename...
96599         (cfg.mk): ...to this.
96601 2008-03-18  Jim Meyering  <meyering@redhat.com>
96603         New script and module: mktempd
96604         * MODULES.html.sh (maint+release support): Add mktempd.
96605         * build-aux/mktempd: New file.
96606         * modules/mktempd: New file.
96608 2008-03-15  Jim Meyering  <meyering@redhat.com>
96610         Undo last change.
96611         * lib/sha1.c, lib/md5.c: 63 != ~63.
96612         Reported by Andreas Schwab.
96614         sha1.c, md5.c: Hoist a redundant expression.
96615         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96616         "ctx->buflen" only once, before calling *_process_block.
96617         * lib/md5.c (md5_process_bytes): Likewise.
96619 2008-03-14  Eric Blake  <ebb9@byu.net>
96621         Bump copyright year in files generated by gnulib-tool.
96622         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96623         gnulib-tool, rather than hard-coding it.
96625         Fix 'gnulib-tool --version' output to work with git.
96626         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96627         (startup): ...here.
96628         (func_version): Use it to invoke git-version-gen, rather than
96629         relying on CVS keyword expansion.  Modernize wording.
96630         (cvsdatestamp, last_checkin_date, version): Kill unused
96631         variables.
96633 2008-03-12  Jim Meyering  <meyering@redhat.com>
96635         Recognize optional cast of the argument to free.
96636         * build-aux/useless-if-before-free: Update regexps.
96638         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96640 2008-03-11  Bruno Haible  <bruno@clisp.org>
96642         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96643         by a single package.
96644         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96645         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96646         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96647         Reported by Sam Steingold <sds@gnu.org>.
96649 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96651         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96652         repositories.
96654 2008-03-11  Bruno Haible  <bruno@clisp.org>
96656         Avoid conflicts between local macro definitions.
96657         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96658         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96660 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96661             Bruno Haible  <bruno@clisp.org>
96663         Make va_copy work with some version of xlc on AIX 5.1.
96664         * lib/stdarg.in.h: New file.
96665         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96666         On AIX, use a <stdarg.h> file substitute.
96667         * modules/stdarg (Files): Add lib/stdarg.in.h.
96668         (Depends-on): Add include_next.
96669         (Makefile.am): Build a stdarg.h substitute if requested.
96670         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96672 2008-03-10  Bruno Haible  <bruno@clisp.org>
96674         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96676         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96678 2008-03-10  Bruno Haible  <bruno@clisp.org>
96680         * modules/stdlib (Depends-on): Add include_next, remove
96681         absolute-header.
96683 2008-03-09  Bruno Haible  <bruno@clisp.org>
96685         * lib/freadahead.h (freadahead): Document more precisely.
96686         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96687         the sum of both buffer sizes.
96688         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96689         * NEWS: Document the change.
96691 2008-03-09  Bruno Haible  <bruno@clisp.org>
96693         Extend freadptr to return also the buffer size.
96694         * lib/freadptr.h (freadptr): Add sizep argument.
96695         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96696         (freadptr): Add sizep argument. Determine buffer size like freadahead
96697         does.
96698         * tests/test-freadptr.c: Don't include freadahead.h.
96699         (main): Adapt for new calling convention of freadptr.
96700         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96701         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96702         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96703         tests/test-freadptr2.sh.
96704         (Depends): Remove freadahead.
96705         (TESTS): Add test-freadptr2.sh.
96706         (check_PROGRAMS): Add test-freadptr2.
96708 2008-03-09  Bruno Haible  <bruno@clisp.org>
96710         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96711         Report and solution by Simon Josefsson.
96713 2008-03-06  Bruno Haible  <bruno@clisp.org>
96715         Make fflush after ungetc work on BSD platforms.
96716         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96717         * tests/test-fflush2.c: New file.
96718         * tests/test-fflush2.sh: New file.
96719         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96720         tests/test-fflush2.c.
96721         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96722         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96724 2008-03-06  Eric Blake  <ebb9@byu.net>
96726         Likewise for ftello.
96727         * modules/ftello (Dependencies): Add extensions.
96728         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96730 2008-03-06  Bruno Haible  <bruno@clisp.org>
96732         * modules/fseeko (Dependencies): Add extensions.
96733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96734         Needed on glibc systems.
96736 2008-03-06  Bruno Haible  <bruno@clisp.org>
96738         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96739         email address.
96740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96742 2008-03-06  Bruno Haible  <bruno@clisp.org>
96744         * users.txt: Add libgnupdf.
96746 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96748         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96749         (Header File Substitutes, Function Substitutes,
96750         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96751         (Build robot for gnulib): Fix typo.
96753 2008-03-06  Bruno Haible  <bruno@clisp.org>
96755         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96756         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96758 2008-03-06  Bruno Haible  <bruno@clisp.org>
96760         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96761         * doc/gnulib.texi: Include it.
96763 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96765         * modules/func (License): Change license to unlimited; there was
96766         no LGPL parts in the module anyway.
96768 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96770         * modules/__func__: Renamed to modules/func.
96771         * modules/__func__-tests: Renamed to modules/func-tests.
96772         * tests/test-__func__.c: Renamed to tests/test-func.c.
96773         * m4/__func__.m4: Renamed to m4/func.m4.
96774         * doc/gnulib.texi (__func__): Section renamed to func.
96775         Suggested by Eric Blake <ebb9@byu.net>.
96777 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96779         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96780         about __func__.  Make example self-contained.  Suggested by Eric
96781         Blake <ebb9@byu.net>.
96783         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96784         Suggested by Eric Blake <ebb9@byu.net>.
96786 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96788         * modules/__func__: New file.
96789         * modules/__func__-tests: New file.
96790         * tests/test-__func__.c: New file.
96791         * m4/__func__.m4: New file.
96792         * doc/gnulib.texi (__func__): Document __func__ module.
96794 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96796         * modules/byteswap (License): Re-license as LGPLv2+.
96798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96800         * doc/Makefile: Add pdf target.
96802 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96804         * modules/inline (License): Use 'unlimited', since there are only
96805         *.m4 files in this module.
96807 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96808             Bruno Haible  <bruno@clisp.org>
96810         Add support for HP C 7.1 on OpenVMS 8.3.
96811         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96813 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96815         Update VMS specifics.
96816         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96818 2008-03-02  Jim Meyering  <meyering@redhat.com>
96820         Remove the last dependency on the "free" module.
96821         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96822         Reported by Bob Proulx.
96824         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96826         Remove useless "if" tests before free.  Deprecate "free" module.
96827         * doc/posix-functions/free.texi: Mention that this
96828         module is no longer useful.
96829         * modules/free (Notice): Say this module is obsolete.
96830         * modules/readutmp (Depends-on): Remove free.
96831         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96832         * lib/putenv.c (putenv): Likewise.
96833         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96834         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96835         * tests/test-c-strcasestr.c (main): Likewise.
96836         * tests/test-c-strstr.c (main): Likewise.
96837         * tests/test-mbscasestr1.c (main): Likewise.
96838         * tests/test-mbscasestr2.c (main): Likewise.
96839         * tests/test-mbsstr1.c (main): Likewise.
96840         * tests/test-mbsstr2.c (main): Likewise.
96841         * tests/test-memmem.c (main): Likewise.
96842         * tests/test-strcasestr.c (main): Likewise.
96843         * tests/test-striconv.c (main): Likewise.
96844         * tests/test-striconveh.c (main): Likewise.
96845         * tests/test-striconveha.c (main): Likewise.
96846         * tests/test-strstr.c (main): Likewise.
96848         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96850         bootstrap: sync from coreutils again
96851         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96853 2008-03-01  Jim Meyering  <meyering@redhat.com>
96855         bootstrap: sync from coreutils
96856         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96857         also when the target doesn't exist.
96859 2008-03-01  Eric Blake  <ebb9@byu.net>
96861         Fix bugs in last patch.
96862         * lib/memchr2.c (memchr2): Fix typo.
96863         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96864         extension.
96865         Reported by Bruce Korb.
96867         New module 'memchr2'.
96868         * modules/memchr2: New file.
96869         * modules/memchr2-tests: Likewise.
96870         * lib/memchr2.h: Likewise.
96871         * lib/memchr2.c: Likewise, based on memchr.c.
96872         * tests/test-memchr2.c: New test.
96873         * MODULES.html.sh (String handling): Add memchr2.
96875 2008-02-29  Bruno Haible  <bruno@clisp.org>
96877         * modules/freadseek-tests: New file.
96878         * tests/test-freadseek.sh: New file.
96879         * tests/test-freadseek.c: New file.
96881         New module 'freadseek'.
96882         * modules/freadseek: New file.
96883         * lib/freadseek.h: New file.
96884         * lib/freadseek.c: New file.
96885         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96887 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96889         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96890         wydawca.
96892         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96893         program_invocation_name and program_invocation_short_name are
96894         present.
96896 2008-02-28  Bruno Haible  <bruno@clisp.org>
96898         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96899         * tests/test-freadptr.sh: Also test non-seekable stdin.
96901 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96903         * build-aux/bootstrap (source_base, m4_base)
96904         (doc_base, tests_base): New variables.
96905         (gnulib_tool_options): Do not hardcode base directories, use
96906         the above variables instead.
96908 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96910         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96912 2008-02-28  Bruno Haible  <bruno@clisp.org>
96914         * modules/freadptr-tests: New file.
96915         * tests/test-freadptr.sh: New file.
96916         * tests/test-freadptr.c: New file.
96918         New module 'freadptr'.
96919         * modules/freadptr: New file.
96920         * lib/freadptr.h: New file.
96921         * lib/freadptr.c: New file.
96922         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96924 2008-02-26  Karl Berry  <karl@freefriends.org>
96926         Sync from Libtool:
96927         * libltdl/argz.c (argz_add, argz_count): New functions.
96928         * libltdl/argz.in.h: Declare them.
96929         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96931 2008-02-22  Bruno Haible  <bruno@clisp.org>
96933         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96934         is a pointer type.  Needed for HP-UX 10.
96935         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
96936         * doc/posix-functions/gmtime_r.texi: Likewise.
96937         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96939 2008-02-24  Bruno Haible  <bruno@clisp.org>
96941         * modules/environ-tests: New file.
96942         * tests/test-environ.c: New file.
96944         New module 'environ'.
96945         * modules/environ: New file.
96946         * lib/unistd.in.h (environ): New declaration.
96947         * m4/environ.m4: New file.
96948         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96949         after use.
96950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96951         HAVE_DECL_ENVIRON.
96952         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96953         HAVE_DECL_ENVIRON.
96954         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96955         wrong claim that 'environ' is missing on some systems.
96956         * modules/execute (Depends-on): Add environ.
96957         * lib/execute.c (environ): Remove fallback declaration.
96958         * modules/pipe (Depends-on): Add environ.
96959         * lib/pipe.c (environ): Remove fallback declaration.
96960         * modules/setenv (Depends-on): Add environ.
96961         * lib/setenv.c (environ): Remove fallback declaration.
96962         * modules/unsetenv (Depends-on): Add environ.
96963         * lib/unsetenv.c (environ): Remove fallback declaration.
96964         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96965         m4/environ.m4.
96966         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96967         (gl_PREREQ_UNSETENV): Likewise.
96969 2008-02-24  Bruno Haible  <bruno@clisp.org>
96971         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96973 2008-02-20  Bob Proulx  <bob@proulx.com>
96975         Enable use of older two part flavor 'git describe'.
96976         * build-aux/git-version-gen: If using the older two part flavor of
96977         git version then recreate the third part now present in the
96978         newer three part flavor of git describe.
96980 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96982         * lib/fts.c (fts_build): Typo correction to comment.
96984 2008-02-17  Bruno Haible  <bruno@clisp.org>
96986         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96987         generating no-op conflicts.
96989 2008-02-17  Bruno Haible  <bruno@clisp.org>
96991         Speed up by 10%.
96992         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96993         result_entries, rather than an index-based loop.
96995 2008-02-17  Bruno Haible  <bruno@clisp.org>
96997         Speed up by 25%.
96998         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96999         'hashcode_cached'.
97000         (entry_create): New function.
97001         (entry_hashcode): Use the cached hashcode if possible.
97002         (read_changelog_file, try_split_merged_entry): Use entry_create.
97004 2008-02-17  Bruno Haible  <bruno@clisp.org>
97006         Speed up from O(n^2) to O(n) for long ChangeLog files.
97007         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97008         (read_changelog_file): Change implementation of entries_reversed list
97009         to rbtreehash.
97010         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97012 2008-02-17  Bruno Haible  <bruno@clisp.org>
97014         New option --split-merged-entry.
97015         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97016         (find_paragraph_end, try_split_merged_entry): New functions.
97017         (long_options): Add option --split-merged-entry.
97018         (usage): Document option --split-merged-entry.
97019         (main): Implement option --split-merged-entry.
97020         Reported by Eric Blake.
97022 2008-02-17  Bruno Haible  <bruno@clisp.org>
97024         * lib/git-merge-changelog.c: Include c-strstr.h.
97025         (main): Support the "git pull --rebase" situation.
97026         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97027         Reported by Eric Blake.
97029 2008-02-16  Eric Blake  <ebb9@byu.net>
97031         Avoid doubling \ in common case of "c-maybe" quoting style.
97032         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97033         eliding outer quotes.
97034         * lib/quotearg.h: Document this.
97035         * tests/test-quotearg.c (result_strings, inputs, results_g)
97036         (flag_results, locale_results): Test it by adding a new string to
97037         each test group.
97038         (compare_strings): Test new string.
97040 2008-02-13  Eric Blake  <ebb9@byu.net>
97042         Avoid trigraph quoting in default output.
97043         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97044         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97045         unless explicitly requested.
97046         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97048 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97050         Don't rely on signed integer overflowing to negative value.
97051         * lib/getugroups.c (getugroups): Include <limits.h>.
97052         Instead, compare against INT_MAX, and increment only if the test passes.
97054 2008-02-13  Jim Meyering  <meyering@redhat.com>
97055         and Eric Blake  <ebb9@byu.net>
97057         Avoid shadowing warning and compile errors on Linux.
97058         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97059         forwarding macros on Linux.
97060         (dcgettext): Define a stub, for Linux.
97061         (results_g, main): Avoid warnings.
97063 2008-02-12  Eric Blake  <ebb9@byu.net>
97065         Silence warning in last patch.
97066         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97068         Quotearg part 4: add tests, fix c-maybe colon quoting.
97069         * lib/quotearg.h: Improve documentation.
97070         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97071         escapes when adding outer quotes.  When quoting trigraphs, use
97072         valid C notation.  When quoting NUL, omit extra characters if next
97073         character is not digit.  Alter prototype.
97074         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97075         callers.
97076         * modules/quotearg-tests: New module.
97077         * tests/test-quotearg.c: New test.
97079 2008-02-07  Eric Blake  <ebb9@byu.net>
97081         Quotearg part 3: add flag to control outer quote elision.
97082         * lib/quotearg.h (c_maybe_quoting_style): New style.
97083         (enum quoting_flags): Better documentation of flags.
97084         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97085         c-maybe style.
97086         (quotearg_buffer_restyled): Handle new flag to elide outer
97087         quotes.
97089         Quotearg part 2: add flag that can control NUL elision.
97090         * lib/quotearg.h (set_quoting_flags): New prototype.
97091         * lib/quotearg.c (struct quoting_options): Add flag field.
97092         (set_quoting_flags): New function.
97093         (quotearg_buffer_restyled): Add flags parameter.
97094         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97095         (quotearg_n_options): Set the flag, since length cannot be
97096         returned.
97097         (quoting_options_from_style): Default flags correctly.
97099         Quotearg part 1: more wrappers, restore quotearg_char state.
97100         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97101         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97102         (quotearg_colon_mem): New wrappers.
97103         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97104         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97105         functions.
97106         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97107         (quotearg_colon_mem): New functions.
97109 2008-02-11  Bruno Haible  <bruno@clisp.org>
97111         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97112         library in the current directory: it does not work with parallel make.
97113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97115 2008-02-11  Bruno Haible  <bruno@clisp.org>
97117         * .gitattributes: New file.
97119 2008-02-11  Jim Meyering  <meyering@redhat.com>
97121         useless-if-before-free: Fix reversed exit values.
97122         * build-aux/useless-if-before-free: Use correct values
97123         for EXIT_MATCH and EXIT_NO_MATCH.
97125         * build-aux/useless-if-before-free: Close stdout carefully.
97127 2008-02-10  Bruno Haible  <bruno@clisp.org>
97129         New module 'git-merge-changelog'.
97130         * modules/git-merge-changelog: New file.
97131         * lib/git-merge-changelog.c: New file.
97133 2008-02-10  Jim Meyering  <meyering@redhat.com>
97135         useless-if-before-free: New option: --list (-l).
97137         useless-if-before-free: Don't exit immediately upon open failure.
97138         * build-aux/useless-if-before-free: Exit 2 for errors.
97139         Upon failure to open a file, don't exit immediately.
97140         Rather, just warn and continue with any remaining files.
97142 2008-02-10  Bruno Haible  <bruno@clisp.org>
97144         New abstract list operation 'node_set_value'.
97145         * lib/gl_list.h (gl_list_node_set_value): New function.
97146         (struct gl_list_implementation): New field node_set_value.
97147         * lib/gl_list.c (gl_list_node_set_value): New function.
97148         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97149         (gl_array_list_implementation): Update.
97150         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97151         (gl_carray_list_implementation): Update.
97152         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97153         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97154         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97155         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97156         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97157         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97158         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97159         Update.
97160         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97161         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97162         (gl_sublist_list_implementation): Update.
97164 2008-02-10  Bruno Haible  <bruno@clisp.org>
97166         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97167         Needed when ELEMENT is #defined to 'some_type *'.
97169 2008-02-10  Jim Meyering  <meyering@redhat.com>
97171         New script and module: useless-if-before-free
97172         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97173         * build-aux/useless-if-before-free: New file.
97174         * modules/useless-if-before-free: New file.
97176         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97178         xstrtol_error: Fix typo.
97179         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97180         s/exit_failure/exit_status/.
97182 2008-02-09  Jim Meyering  <meyering@redhat.com>
97184         New script and module: gitlog-to-changelog
97185         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97186         * modules/gitlog-to-changelog: New file.
97187         * build-aux/gitlog-to-changelog: New file.
97189 2008-02-08  Jim Meyering  <meyering@redhat.com>
97191         Avoid two "parameter unused" warnings.
97192         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97193         Mark "st" as used.
97195         Use "git COMMAND", not "git-COMMAND".
97196         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97197         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97198         * build-aux/git-version-gen: Use "git status", not "git-status".
97200 2008-02-07  Bruno Haible  <bruno@clisp.org>
97202         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97203         Avoids a crash on Windows Vista.
97204         Reported by Adam Strzelecki <ono@java.pl> via
97205         Simon Josefsson <simon@josefsson.org>.
97207 2008-02-06  Bruno Haible  <bruno@clisp.org>
97209         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97210         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97211         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97215         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97216         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97224         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97225         left-adjust flag.
97226         * tests/test-snprintf-posix.h (test_function): Likewise.
97227         * tests/test-sprintf-posix.h (test_function): Likewise.
97228         * tests/test-vasprintf-posix.c (test_function): Likewise.
97229         * doc/posix-functions/fprintf.texi: Update.
97230         * doc/posix-functions/printf.texi: Update.
97231         * doc/posix-functions/snprintf.texi: Update.
97232         * doc/posix-functions/sprintf.texi: Update.
97233         * doc/posix-functions/vfprintf.texi: Update.
97234         * doc/posix-functions/vprintf.texi: Update.
97235         * doc/posix-functions/vsnprintf.texi: Update.
97236         * doc/posix-functions/vsprintf.texi: Update.
97237         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97239 2008-02-06  Bruno Haible  <bruno@clisp.org>
97241         Fix bug introduced on 2008-01-26.
97242         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97244 2008-02-06  Bruno Haible  <bruno@clisp.org>
97246         Fix bug introduced on 2007-06-10.
97247         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97248         !NEED_PRINTF_FLAG_ZERO.
97250 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97252         getloadavg: use libperfstat on AIX5
97253         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97255 2008-02-03  Bruno Haible  <bruno@clisp.org>
97257         * lib/diffseq.h: Add comments about required #includes.
97258         Reported by Michael Biggs <gnulib@doubleplum.net>.
97260 2008-02-01  Bruno Haible  <bruno@clisp.org>
97262         * users.txt: Add gnuit.
97264 2008-01-31  Bruno Haible  <bruno@clisp.org>
97266         * lib/md4.c (set_uint32): Mark as inline.
97267         * lib/md5.c (set_uint32): Likewise.
97268         * lib/sha1.c (set_uint32): Likewise.
97269         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97270         * m4/md5.m4 (gl_MD5): Likewise.
97271         * m4/sha1.m4 (gl_SHA1): Likewise.
97273 2008-01-31  Jim Meyering  <meyering@redhat.com>
97275         Use "sizeof VAR", rather than a literal "4".
97276         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97277         * lib/md4.c (md4_read_ctx): Likewise.
97278         * lib/sha1.c (sha1_read_ctx): Likewise.
97280 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97282         * tests/test-sha1.c: New file, based on test-md5.c.
97284         * modules/crypto/sha1-tests: New file.
97286 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97288         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97290 2008-01-31  Jim Meyering  <meyering@redhat.com>
97292         Prefer "sizeof v" over the equivalent "4".
97293         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97294         * lib/md5.c (set_uint32): Likewise.
97295         * lib/sha1.c (set_uint32): Likewise.
97297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97299         * lib/sha1.c (set_uint32): Mark function as static.
97301 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97303         md2: clarify comments to say that alignment is not required.
97304         * lib/md2.h: Remove warning about alignment in comment.
97305         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97306         never been required.
97308 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97310         md4: adapt alignment constraint fix from sha1.
97311         * lib/md4.c (set_uint32): New function, from sha1.c
97312         (md4_read_ctx): Use it.
97313         (md4_finish_ctx): Doc fix.
97314         * lib/md4.h: Doc fix.
97316 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97318         md5: adapt alignment constraint fix from sha1.
97319         * lib/md5.c (set_uint32): New function, from sha1.c
97320         (md5_read_ctx): Use it.
97321         (md5_finish_ctx): Doc fix.
97322         * lib/md5.h: Doc fix.
97324 2008-01-30  Peter Palfrader  <weasel@debian.org>
97326         sha1: remove the result buffer alignment constraint
97327         * lib/sha1.c (set_uint32): New function.
97328         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97329         constraint.
97330         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97331         * lib/sha1.h: Likewise.
97333 2008-01-30  Andreas Schwab  <schwab@suse.de>
97334             Bruno Haible  <bruno@clisp.org>
97336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97337         correct definition of LDBL_MIN_EXP.
97339 2008-01-30  Karl Berry  <karl@gnu.org>
97341         * config/srclist-update: try to preserve x bit on updates.
97342         * config/srclistvars.sh: update for karl.
97344 2008-01-29  Jim Meyering  <meyering@redhat.com>
97346         vasnprintf.c: Avoid warning about unused label
97347         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97348         "overflow" label definition and associated code with the
97349         same cpp condition that guards the sole use of that label.
97351 2008-01-26  Bruno Haible  <bruno@clisp.org>
97353         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97354         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97355         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97356         * lib/isnanl-nolibm.h (isnanl): Likewise.
97357         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97359 2008-01-26  Bruno Haible  <bruno@clisp.org>
97361         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97362         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97364 2008-01-26  Bruno Haible  <bruno@clisp.org>
97366         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97367         GCC >= 4.0 built-in.
97368         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97370 2008-01-26  Bruno Haible  <bruno@clisp.org>
97372         Rename isnan, applicable to 'double' only, to isnand.
97373         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97374         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97375         (configure.ac): Update.
97376         (Include): Replace "isnan.h" with "isnand.h".
97377         * m4/isnand.m4: Renamed from m4/isnan.m4.
97378         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97379         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97380         instead of isnan.c.
97381         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97382         instead of HAVE_ISNAN_IN_LIBC.
97383         (isnand): Renamed from isnan.
97384         * lib/isnand.c: New file.
97385         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97386         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97387         (Makefile.am): Update.
97388         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97389         Include isnand.h instead of isnan.h.
97390         (main): Test isnand instead of isnan.
97391         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97392         isnan-nolibm.
97393         * modules/frexp (Depends-on): Likewise.
97394         * modules/frexp-tests (Depends-on): Likewise.
97395         * modules/frexp-nolibm (Depends-on): Likewise.
97396         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97397         * modules/isfinite (Depends-on): Likewise.
97398         * modules/round-tests (Depends-on): Likewise.
97399         * modules/signbit (Depends-on): Likewise.
97400         * modules/signbit-tests (Depends-on): Likewise.
97401         * modules/snprintf-posix (Depends-on): Likewise.
97402         * modules/sprintf-posix (Depends-on): Likewise.
97403         * modules/trunc-tests (Depends-on): Likewise.
97404         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97405         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97406         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97407         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97408         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97409         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97410         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97411         * modules/vasnprintf-posix (Depends-on): Likewise.
97412         * modules/vasprintf-posix (Depends-on): Likewise.
97413         * modules/vfprintf-posix (Depends-on): Likewise.
97414         * modules/vsnprintf-posix (Depends-on): Likewise.
97415         * modules/vsprintf-posix (Depends-on): Likewise.
97416         * lib/frexp.c: Include isnand.h instead of isnan.h.
97417         (ISNAN): Set to isnand instead of isnan.
97418         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97419         (gl_isfinited): Use isnand instead of isnan.
97420         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97421         (gl_signbitd): Use isnand instead of isnan.
97422         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97423         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97424         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97425         (main): Use isnand instead of isnan.
97426         * tests/test-round1.c: Include isnand.h.
97427         (main): Use isnand instead of isnan.
97428         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97429         (ISNAN): Set to isnand instead of isnan.
97430         * tests/test-trunc1.c: Include isnand.h.
97431         (main): Use isnand instead of isnan.
97432         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97433         (equal): Use isnand instead of isnan.
97434         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97435         isnand-nolibm.
97436         * NEWS: Mention the change.
97438 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97439             Bruno Haible  <bruno@clisp.org>
97441         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97442         the GCC builtins for signbits are present and set
97443         REPLACE_SIGNBIT_USING_GCC if so.
97444         * lib/math.in.h (signbit): Define using GCC builtins if
97445         REPLACE_SIGNBIT_USING_GCC is set.
97446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97447         REPLACE_SIGNBIT_USING_GCC.
97448         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97450 2008-01-25  Jim Meyering  <meyering@redhat.com>
97452         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97453         * lib/poll.c: Include <config.h>, not "config.h".
97454         * tests/test-getaddrinfo.c: Likewise.
97456 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97458         * modules/sockets-tests: New file.
97460 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97462         * modules/sockets: New module, can be used to call WSA_Startup and
97463         WSA_Cleanup when needed.
97465         * lib/sockets.h, lib/sockets.c: New files.
97467         * m4/sockets.m4: New file.
97469         * tests/test-sockets.c: New file.
97471 2008-01-19  Bruno Haible  <bruno@clisp.org>
97473         * doc/posix-headers: Renamed from doc/headers.
97474         * doc/posix-functions: Renamed from doc/functions.
97475         * doc/gnulib.texi: Update.
97477 2008-01-19  Bruno Haible  <bruno@clisp.org>
97479         * doc/glibc-functions/strcasestr.texi: Include contents of
97480         doc/functions/strcasestr.texi, fixing the list of platforms.
97481         * doc/functions/strcasestr.texi: Remove file.
97483 2008-01-19  Bruno Haible  <bruno@clisp.org>
97485         * doc/glibc-functions/memmem.texi: Include contents of
97486         doc/functions/memmem.texi.
97487         * doc/functions/memmem.texi: Remove file.
97489 2008-01-18  Bruno Haible  <bruno@clisp.org>
97491         * doc/glibc-functions/*.texi: New files.
97492         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97493         to use the new files.
97495 2008-01-17  Bruno Haible  <bruno@clisp.org>
97497         * tests/test-gethostname.c (main): Fix printf statement.
97499 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97501         * modules/gethostname-tests: New file.
97503         * tests/test-gethostname.c: New file.
97505 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97507         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97508         used by the UNAME case.  Reported by Bruno Haible
97509         <bruno@clisp.org>.
97511 2008-01-17  Eric Blake  <ebb9@byu.net>
97513         Convert c-strcasestr to be more efficient.
97514         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
97515         (Depends-on): Add c-strcase, remove malloca, strnlen.
97516         * tests/test-c-strcasestr.c (main): Enhance test.
97517         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
97519 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
97521         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
97522         Use it in creating po/Makevars.
97524 2008-01-15  Simon Josefsson  <simon@josefsson.org>
97526         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
97527         Applications that requires it should initialize libgcrypt
97528         manually.
97530 2008-01-16  Simon Josefsson  <simon@josefsson.org>
97532         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
97534 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
97536         Fix problem with getdate on mingw32 reported by Simon Josefsson
97537         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
97538         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
97539         tzname", when deciding whether to declare tzname.
97540         * lib/strftime.c (tzname): Likewise.
97542 2008-01-15  Bruno Haible  <bruno@clisp.org>
97544         Work around a MacOS X 10.5 bug in frexpl().
97545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
97546         * doc/functions/frexpl.texi: Document the bug.
97547         Reported by Elias Pipping <pipping@gentoo.org>.
97549 2008-01-14  Eric Blake  <ebb9@byu.net>
97551         Touch up previous patch.
97552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
97553         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
97555         Convert strcasestr module to use Two-Way algorithm.
97556         * modules/strcasestr-simple: New module, based on the old
97557         strcasestr, but with Two-Way rather than KMP.
97558         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
97559         * lib/string.in.h (rpl_strcasestr): Declare.
97560         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
97561         performance.
97562         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
97563         * modules/string (Makefile.am): Support strcasestr.
97564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
97565         * modules/strcasestr-tests (Depends-on): Check for alarm.
97566         * tests/test-strcasestr.c: Augment test.
97567         * lib/str-two-way.h: Clean up stray macro.
97568         * NEWS: Document new module.
97569         * MODULES.html.sh (string handling): Likewise.
97570         * doc/functions/strcasestr.texi: New file.
97571         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
97572         here, since it is not a POSIX function.
97574 2008-01-14  Colin Watson  <cjwatson@debian.org>
97575             Bruno Haible  <bruno@clisp.org>
97577         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
97578         works fine; if not, set REPLACE_STRSIGNAL.
97579         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
97580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97581         REPLACE_STRSIGNAL.
97582         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
97583         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
97584         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
97586 2008-01-14  Bruno Haible  <bruno@clisp.org>
97588         * modules/strsignal (Include): Change to <string.h>.
97590 2008-01-14  Colin Watson  <cjwatson@debian.org>
97592         * modules/argp (Notice): Add a notice recommending to change
97593         XGETTEXT_OPTIONS.
97594         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97596 2008-01-13  Colin Watson  <cjwatson@debian.org>
97598         * modules/strsignal-tests: New file.
97599         * tests/test-strsignal.c: New file.
97601         * lib/strsignal.c: New file, from glibc with modifications.
97602         * lib/siglist.h: New file, from glibc with modifications.
97603         * lib/string.in.h (strsignal): New declaration.
97604         * m4/strsignal.m4: New file.
97605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97606         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97607         * modules/strsignal: New file.
97608         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
97609         HAVE_DECL_STRSIGNAL.
97611 2008-01-13  Bruno Haible  <bruno@clisp.org>
97613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97614         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97615         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97618 2008-01-13  Bruno Haible  <bruno@clisp.org>
97620         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97621         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97622         * lib/argp.h (__attribute__): Likewise.
97623         * lib/c-stack.c (__attribute__): Likewise.
97624         * lib/error.h (__attribute__): Likewise.
97625         * lib/fts.c (__attribute__): Likewise.
97626         * lib/openat.h (__attribute__): Likewise.
97627         * lib/stdio.in.h (__attribute__): Likewise.
97628         * lib/string.in.h (__attribute__): Likewise.
97629         * lib/utimens.c (__attribute__): Likewise.
97630         * lib/vasnprintf.h (__attribute__): Likewise.
97631         * lib/xalloc.h (__attribute__): Likewise.
97632         * lib/xprintf.h (__attribute__): Likewise.
97633         * lib/xstrtol.h (__attribute__): Likewise.
97634         * lib/xvasprintf.h (__attribute__): Likewise.
97636 2008-01-12  Bruno Haible  <bruno@clisp.org>
97638         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97639         * doc/glibc-headers/a.out.texi: New file.
97640         * doc/glibc-headers/aliases.texi: New file.
97641         * doc/glibc-headers/alloca.texi: New file.
97642         * doc/glibc-headers/ar.texi: New file.
97643         * doc/glibc-headers/argp.texi: New file.
97644         * doc/glibc-headers/argz.texi: New file.
97645         * doc/glibc-headers/byteswap.texi: New file.
97646         * doc/glibc-headers/crypt.texi: New file.
97647         * doc/glibc-headers/endian.texi: New file.
97648         * doc/glibc-headers/envz.texi: New file.
97649         * doc/glibc-headers/err.texi: New file.
97650         * doc/glibc-headers/error.texi: New file.
97651         * doc/glibc-headers/execinfo.texi: New file.
97652         * doc/glibc-headers/fpu_control.texi: New file.
97653         * doc/glibc-headers/fstab.texi: New file.
97654         * doc/glibc-headers/fts.texi: New file.
97655         * doc/glibc-headers/getopt.texi: New file.
97656         * doc/glibc-headers/ieee754.texi: New file.
97657         * doc/glibc-headers/ifaddrs.texi: New file.
97658         * doc/glibc-headers/libintl.texi: New file.
97659         * doc/glibc-headers/mcheck.texi: New file.
97660         * doc/glibc-headers/mntent.texi: New file.
97661         * doc/glibc-headers/obstack.texi: New file.
97662         * doc/glibc-headers/paths.texi: New file.
97663         * doc/glibc-headers/printf.texi: New file.
97664         * doc/glibc-headers/pty.texi: New file.
97665         * doc/glibc-headers/resolv.texi: New file.
97666         * doc/glibc-headers/shadow.texi: New file.
97667         * doc/glibc-headers/sysexits.texi: New file.
97668         * doc/glibc-headers/ttyent.texi: New file.
97670 2008-01-12  Jim Meyering  <meyering@redhat.com>
97672         announce-gen: emit Gnulib's git-based version string.
97673         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97674         New option --gnulib-version=V, where V is expected to be
97675         the output of running git describe in the gnulib directory.
97676         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97677         not useful, and plan to stop publishing an xdelta file with each
97678         coreutils release.
97680         * build-aux/announce-gen: Also check for lzma-compressed files.
97682 2008-01-11  Bruno Haible  <bruno@clisp.org>
97684         * tests/test-memmem.c (main): Increase maximum allowed time.
97685         * tests/test-strstr.c (main): Likewise.
97687 2008-01-11  Bruno Haible  <bruno@clisp.org>
97689         * doc/functions/memmem.texi: Add more precisions about platforms.
97690         * doc/functions/strstr.texi: Likewise.
97692 2008-01-10  Eric Blake  <ebb9@byu.net>
97694         * m4/strstr.m4: Delete cruft from copy-n-paste.
97695         Reported by Bruno Haible.
97697 2008-01-10  Bruno Haible  <bruno@clisp.org>
97699         Make c-strstr rely on strstr.
97700         * lib/c-strstr.c: Don't include str-kmp.h.
97701         (c_strstr): Define in terms of strstr.
97702         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97703         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97705 2008-01-10  Bruno Haible  <bruno@clisp.org>
97707         * doc/gnulib.texi (String Functions in C Locale): New section.
97708         * doc/c-ctype.texi: New file.
97709         * doc/c-strcase.texi: New file.
97710         * doc/c-strcaseeq.texi: New file.
97711         * doc/c-strcasestr.texi: New file.
97712         * doc/c-strstr.texi: New file.
97713         * doc/c-strtod.texi: New file.
97714         * doc/c-strtold.texi: New file.
97716 2008-01-10  Eric Blake  <ebb9@byu.net>
97718         * lib/relocatable.h: Fix a comment.
97720 2008-01-10  Eric Blake  <ebb9@byu.net>
97722         Share two-way algorithm.
97723         * lib/str-two-way.h: New file, merged from...
97724         * lib/memmem.c: ...here...
97725         * lib/strstr.c: ...and here.
97726         * modules/memmem (Files): Use it.
97727         * modules/strstr (Files): Likewise.
97729         Avoid quadratic strstr implementations.
97730         * lib/strstr.c: New file.
97731         * m4/strstr.m4: Likewise.
97732         * modules/strstr: Likewise.
97733         * modules/strstr-tests: Likewise.
97734         * tests/test-strstr.c: Likewise.
97735         * lib/string.in.h (rpl_strstr): Declare.
97736         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97738         * modules/string (Makefile.am): Likewise.
97739         * MODULES.html.sh (string handling): Mention new module.
97740         * doc/functions/strstr.texi (strstr): Document the bug.
97742 2008-01-10  Bruno Haible  <bruno@clisp.org>
97744         * lib/relocatable.h (relocate): State whether result is freshly
97745         allocated or not.
97746         * lib/relocatable.c (relocate): Return a freshly allocated string
97747         instead of a pointer to a privately held string.
97748         Reported by Sylvain Beucler <beuc@gnu.org>.
97750 2008-01-10  Colin Watson  <cjwatson@debian.org>
97752         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97753         s/S_ISNLK/S_ISLNK/.
97755 2008-01-09  Bruno Haible  <bruno@clisp.org>
97757         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97758         and other files.
97759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97760         if it's only a guess.
97761         * modules/memmem: Simplify by depending on memmem-simple.
97763 2008-01-09  Bruno Haible  <bruno@clisp.org>
97765         Work around OpenBSD 4.0 tdelete() bug.
97766         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97767         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97768         macros and don't redefine the enum values.
97769         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97770         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97771         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97773 2008-01-09  Bruno Haible  <bruno@clisp.org>
97775         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97776         (main): Don't perform the tests if setlocale did not install a UTF-8
97777         locale. Needed on OpenBSD 4.0.
97778         * modules/wcwidth-tests (Depends-on): Add localcharset.
97780 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97782         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97783         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97784         * NEWS: announce this.
97785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97787 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97788         and Eric Blake  <ebb9@byu.net>
97790         Add memmem-simple module.
97791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97792         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97793         * modules/memmem-simple: New file.
97794         * modules/memmem (Description): Tweak.
97795         * MODULES.html.sh (string handling): Mention new module.
97796         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97797         addressed by memmem-simple.
97798         * NEWS: Document the difference.
97800 2008-01-09  Eric Blake  <ebb9@byu.net>
97802         Give gcc some memmem optimization hints.
97803         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97804         (strcasestr): Declare as pure.
97805         * modules/memmem (Maintainer): Claim my implementation.
97807 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97809         Support AIX 6.1 and higher.
97810         * build-aux/config.libpath: Likewise.
97811         * build-aux/config.rpath: Likewise.
97813 2008-01-08  Jim Meyering  <meyering@redhat.com>
97814             Bruno Haible  <bruno@clisp.org>
97816         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97817         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97818         Reported by Peter Fales in
97819         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97821 2008-01-08  Bruno Haible  <bruno@clisp.org>
97823         * modules/unictype/category-of (Depends-on): Add
97824         unictype/category-none.
97825         * modules/unictype/category-and-tests (Depends-on): Add
97826         unictype/category-{L,N,Lu,Nd}.
97827         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97828         * modules/unictype/category-or-tests (Depends-on): Add
97829         unictype/category-{L,N}.
97830         * modules/unictype/category-name-tests (Depends-on): Add
97831         unictype/category-{Z,Nl}.
97832         Reported by Simon Josefsson.
97834 2008-01-08  Bruno Haible  <bruno@clisp.org>
97836         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97837         convention better.
97838         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97839         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97840         Reported by Peter Miller <millerp@canb.auug.org.au>.
97842 2008-01-08  Eric Blake  <ebb9@byu.net>
97844         Rewrite memmem to guarantee linear complexity without malloc.
97845         * lib/memmem.c (memmem): Use Two-Way rather than
97846         Knuth-Morris-Pratt, to allow O(1) space usage.
97847         (critical_factorization, two_way_short_needle)
97848         (two_way_long_needle): New functions.
97849         (knuth_morris_pratt): Delete.
97850         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97851         Add stdint.
97852         * tests/test-memmem.c (main): Add tests for periodic needle and
97853         sublinear performance.
97854         * doc/functions/memmem.texi (memmem): Document other deficiencies
97855         in cygwin and older glibc.
97857 2008-01-08  Bruno Haible  <bruno@clisp.org>
97859         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97860         augmentation.
97862 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97864         Add a configure time option: --disable-acl.
97865         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97866         AC_ARG_ENABLE(acl).
97868 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97870         * tests/test-localename.c: Don't include obsolete "setenv.h".
97872         * modules/localename-tests (Depends-on): Need unsetenv.
97874 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97876         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97878 2008-01-06  Colin Watson  <cjwatson@debian.org>
97880         * users.txt: Add man-db.
97882 2008-01-07  Bruno Haible  <bruno@clisp.org>
97884         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97885         previous section name.
97887 2008-01-07  Bruno Haible  <bruno@clisp.org>
97889         * lib/progname.c (set_program_name): Don't strip off a leading
97890         "lt-" prefix outside a .libs directory.
97891         Suggested by Paul Eggert.
97893 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97894             Bruno Haible  <bruno@clisp.org>
97896         Improve memory cleanup in 'relocatable' module.
97897         * lib/relocatable.h (compute_curr_prefix): Change return type to
97898         'char *'.
97899         * lib/relocatable.c (compute_curr_prefix): Change return type to
97900         'char *'. Free curr_installdir after use.
97901         (relocate): Free curr_prefix_better after use.
97902         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97904 2008-01-01  Bruno Haible  <bruno@clisp.org>
97906         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97907         failure on older glibc systems.
97908         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97910 2008-01-05  Eric Blake  <ebb9@byu.net>
97912         Avoid quadratic system memmem.
97913         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97914         Reported by Ralf Wildenhues.
97916         Fix memmem test for mingw.
97917         * modules/memmem-tests (configure.ac): Check for alarm.
97918         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97919         it.
97920         * doc/functions/memmem.texi: New file.
97921         * doc/gnulib.texi (Function Substitutes): Add memmem.
97922         Reported by Bruno Haible.
97924 2008-01-04  Bruno Haible  <bruno@clisp.org>
97926         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97927         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97928         gl_HEADER_STRING_H_DEFAULTS.
97930 2008-01-04  Eric Blake  <ebb9@byu.net>
97932         Shorten duration of memmem test.
97933         * tests/test-memmem.c (main): Use alarm to declare failure if test
97934         is taking too long.
97935         Reported by Ralf Wildenhues.
97937 2007-12-21  Simon Josefsson  <simon@josefsson.org>
97939         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
97940         string, needed by strerror.
97942 2008-01-03  Colin Watson  <cjwatson@debian.org>
97943             Bruno Haible  <bruno@clisp.org>
97945         * doc/gnulib-tool.texi (Localization): New section.
97947 2008-01-02  Bruno Haible  <bruno@clisp.org>
97949         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97950         variables to 'unsigned char *' type.
97951         Reported by Paul Eggert.
97953 2008-01-02  Jim Meyering  <jim@meyering.net>
97955         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97957 2007-12-31  Jim Meyering  <jim@meyering.net>
97959         Avoid use of private FTS type name.
97960         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97962 2007-12-30  Karl Berry  <karl@gnu.org>
97964         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97965         work around defect in Texinfo and/or the standalone Info browser.
97967 2007-12-30  Bruno Haible  <bruno@clisp.org>
97969         Unify 5 copies of the KMP code.
97970         * lib/str-kmp.h: New file.
97971         * lib/c-strcasestr.c: Include str-kmp.h.
97972         (knuth_morris_pratt): Remove function.
97973         (c_strcasestr): Update.
97974         * lib/c-strstr.c: Include str-kmp.h.
97975         (knuth_morris_pratt): Remove function.
97976         (c_strcasestr): Update.
97977         * lib/mbscasestr.c: Include str-kmp.h.
97978         (knuth_morris_pratt_unibyte): Remove function.
97979         * lib/mbsstr.c: Include str-kmp.h.
97980         (knuth_morris_pratt_unibyte): Remove function.
97981         * lib/strcasestr.c: Include str-kmp.h.
97982         (knuth_morris_pratt): Remove function.
97983         (strcasestr): Update.
97984         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97985         * modules/c-strstr (Files): Likewise.
97986         * modules/mbscasestr (Files): Likewise.
97987         * modules/mbsstr (Files): Likewise.
97988         * modules/strcasestr (Files): Likewise.
97989         Suggested by Paul Eggert.
97991 2007-12-30  Bruno Haible  <bruno@clisp.org>
97993         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97994         defined.
97996 2007-12-30  Bruno Haible  <bruno@clisp.org>
97998         * lib/xmalloca.h: Include xalloc.h.
97999         (xnmalloca): New macro.
98001 2007-12-30  Bruno Haible  <bruno@clisp.org>
98003         * lib/malloca.h (nmalloca): New macro.
98004         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98005         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98006         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98007         knuth_morris_pratt_multibyte): Likewise.
98008         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98009         knuth_morris_pratt_multibyte): Likewise.
98010         * lib/memmem.c (knuth_morris_pratt): Likewise.
98011         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98013 2007-12-25  Bruno Haible  <bruno@clisp.org>
98015         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98016         * lib/glob.c: Don't include openat.h.
98017         (link_exists2_p): Add back the code that deals with the
98018         !GLOB_ALTDIRFUNC case.
98019         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98020         let it do the filename concatenation.
98021         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98022         * modules/glob (Depends-on): Remove openat.
98024 2007-12-31  Bruno Haible  <bruno@clisp.org>
98026         * modules/dirfd (License): Change to LGPLv2+.
98027         Approved by Jim Meyering.
98029 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98031         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98032         when multiplying M by sizeof (size_t).
98034 2007-12-10  Martin Lambers  <marlam@marlam.de>
98036         Override getpagesize on mingw.
98037         * lib/getpagesize.c: New file.
98038         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98039         * modules/getpagesize (Files): Add lib/getpagesize.c.
98040         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98042         REPLACE_GETPAGESIZE.
98043         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98045 2007-12-25  Bruno Haible  <bruno@clisp.org>
98047         * modules/localcharset (Notice): New field.
98048         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98049         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98051 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98052             Bruno Haible  <bruno@clisp.org>
98054         Avoid using the syntax symbol() in formatted documentation.
98055         * MODULES.html.sh (func_module): When replacing symbol() with a
98056         hyperlink, remove the parentheses. Show an error if some remain.
98057         Recognize and render the '...' syntax.
98058         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98059         Rework. Add paragraph about GCC's inlining.
98060         * doc/alloca.texi: Likewise.
98061         * doc/error.texi: Remove parentheses from symbol reference.
98062         * doc/gnulib-intro.texi: Likewise.
98063         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98064         * modules/fnmatch (Description): Reword to say "the ... function".
98065         * modules/full-read (Description): Likewise.
98066         * modules/full-write (Description): Likewise.
98067         * modules/safe-read (Description): Likewise.
98068         * modules/safe-write (Description): Likewise.
98069         * modules/strchrnul (Description): Likewise.
98070         * modules/trim (Description): Likewise.
98071         * modules/error (Description): Remove parentheses from symbol
98072         references.
98073         * modules/verror (Description): Likewise.
98074         Reported by Karl Berry.
98076 2007-12-25  Bruno Haible  <bruno@clisp.org>
98078         Fixup after 2007-10-16 commit.
98079         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98081 2007-12-24  Bruno Haible  <bruno@clisp.org>
98083         Make --enable-relocatable work with DESTDIR.
98084         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98085         to compute installdir from destprog.
98086         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98087         also set the RELOC_DESTDIR variable.
98088         Reported by Левашев Иван <octagram@bluebottle.com>.
98090 2007-12-24  Bruno Haible  <bruno@clisp.org>
98092         Fix link error due to xalloc_die().
98093         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98094         of xreadlink.
98095         * lib/relocwrapper.c: Update comments.
98096         * build-aux/install-reloc: Remove xreadlink.c from file list.
98097         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98098         xreadlink.c.
98099         Reported by Левашев Иван <octagram@bluebottle.com>.
98101 2007-12-24  Bruno Haible  <bruno@clisp.org>
98103         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98104         * lib/setenv.h: Remove file.
98105         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98106         lib/setenv.h.
98107         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98108         (Depends-on): Add stdlib.
98109         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98110         gl_FUNC_UNSETENV.
98111         (Include): Replace setenv.h with <stdlib.h>.
98112         * modules/unsetenv: New file.
98113         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98114         * lib/unsetenv.c: Include <stdlib.h> first.
98115         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98116         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98117         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98118         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98119         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98120         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98122         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98123         * doc/functions/unsetenv.texi: Update.
98124         * modules/xsetenv (Depends-on): Add unsetenv.
98125         * modules/getdate (Depends-on): Likewise.
98126         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98127         * lib/xsetenv.c: Don't include setenv.h.
98128         * lib/getdate.y: Likewise.
98129         * lib/relocwrapper.c: Likewise.
98130         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98131         (Depends-on): Add stdlib.
98132         * NEWS: Mention the changes.
98133         Reported by Левашев Иван <octagram@bluebottle.com>.
98135 2007-12-23  Bruno Haible  <bruno@clisp.org>
98137         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98138         indentation.
98140 2007-12-23  Bruno Haible  <bruno@clisp.org>
98142         * lib/c-strcasestr.c: Add more comments.
98143         * lib/c-strstr.c: Likewise.
98144         * lib/mbscasestr.c: Likewise.
98145         * lib/mbsstr.c: Likewise.
98146         * lib/strcasestr.c: Likewise.
98147         * lib/memmem.c: Likewise.
98149 2007-12-23  Bruno Haible  <bruno@clisp.org>
98151         * tests/test-memmem.c: Include <string.h> first.
98153 2007-12-22  Bruno Haible  <bruno@clisp.org>
98155         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98156         the contents of $testsbase.
98157         Reported by Ralf Wildenhues.
98159 2007-12-22  Bruno Haible  <bruno@clisp.org>
98161         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98162         two variables local_ldadd_before, local_ldadd_last.
98164 2007-12-20  Eric Blake  <ebb9@byu.net>
98166         Work around circular library issue when cross-compiling.
98167         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98168         that progname.o does not need to pull in rpl_memcmp.
98170 2007-12-19  Eric Blake  <ebb9@byu.net>
98172         Fix memmem to avoid O(n^2) worst-case complexity.
98173         * lib/memmem.c (knuth_morris_pratt): New function.
98174         (memmem): Use it if first few naive iterations fail.
98175         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98176         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98177         * modules/memchr (License): Likewise.
98178         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98179         malloca.
98180         * tests/test-memmem.c: Rewrite, borrowing ideas from
98181         test-mbsstr1.c; the old version wouldn't even compile!
98182         * modules/memmem-tests: New file.
98183         * lib/string.in.h (rpl_memmem): Add declaration.
98184         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98186         REPLACE_MEMMEM.
98188 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98190         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98191         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98192         before any system include files, and undef after them all.  This
98193         should fix a problem on VMS reported by John E. Malmberg in
98194         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98196 2007-12-17  Eric Blake  <ebb9@byu.net>
98198         Revert addition of verify, for BSD/OS.
98199         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98200         can't handle large files, for the sake of obsolete platforms.
98201         * modules/fseeko (Depends-on): Remove verify.
98202         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98203         * doc/functions/ftello.texi (ftello): Likewise.
98204         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98205         Reported by Larry Jones.
98207 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98209         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98210         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98212 2007-12-17  Jim Meyering  <meyering@redhat.com>
98214         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98215         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98216         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98217         * modules/getcwd (Depends-on): Add openat.
98218         Reported by Petr Salinger.
98220 2007-12-17  Bruno Haible  <bruno@clisp.org>
98222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98223         avoid a segmentation fault of the configure test on x86_64 systems.
98225 2007-12-15  Jim Meyering  <meyering@redhat.com>
98227         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98229 2007-12-13  Eric Blake  <ebb9@byu.net>
98231         Another fseek test.
98232         * tests/test-fseek.c (main): Also test ungetc handling.
98233         * tests/test-fseeko.c (main): Likewise.
98234         * modules/fseeko (Depends-on): Add verify.
98235         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98236         large.
98237         Reported by Larry Jones.
98239         Fix fseeko on mingw.
98240         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98241         seek.
98243         Beef up fseek tests.
98244         * tests/test-fseek.c (main): Also test eof handling.
98245         * tests/test-fseeko.c (main): Likewise.
98246         Reported by Larry Jones.
98248 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98250         Fix fseeko on BSD-based platforms.
98251         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98252         successful seek.
98254 2007-12-12  Eric Blake  <ebb9@byu.net>
98256         Allow circular dependency of separate libtests.a
98257         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98258         when use_libtests.
98260 2007-12-11  Eric Blake  <ebb9@byu.net>
98262         Fix bug with -0.0L in previous patch.
98263         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98264         * tests/test-isnan.c (main): Also test on zeroes.
98265         * tests/test-isnanf.c (main): Likewise.
98266         * tests/test-isnanl.h (main): Likewise.
98268         Detect pseudo-denormals on x86 even when cross-compiling.
98269         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98270         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98271         invalid bit patterns that happen to satisfy ==.
98273         Avoid link failures with separate libtests.a.
98274         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98275         last, to satisfy circular dependencies.
98277 2007-12-11  Eric Blake  <ebb9@byu.net>
98278         and Bruno Haible  <bruno@clisp.org>
98280         Fix OpenBSD 4.0 <float.h> handling of long double.
98281         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98282         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98283         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98285 2007-12-11  Jim Meyering  <meyering@redhat.com>
98287         * users.txt: Add libvirt.
98289         Support versions of autoconf prior to 2.59c.
98290         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98291         if it is not already defined.
98293 2007-12-09  Bruno Haible  <bruno@clisp.org>
98295         Let 'gnulib-tool --import' collect sources needed for the tests in
98296         tests/ rather than in lib/.
98297         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98298         argument. If true, add rules to generate libtests.a, and put libtests.a
98299         into $(LDADD). Consider source files in subdirectories and set
98300         uses_subdirs.
98301         (func_emit_initmacro_start, func_emit_initmacro_end,
98302         func_emit_initmacro_done): Pass all arguments explicitly.
98303         (func_import): Determine two module lists main_modules,
98304         testsrelated_modules. Determine use_libtests. Determine two variables
98305         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98306         instead of just sed_transform_lib_file. Determine two variables
98307         main_files and testsrelated_files. Compute 'files' as the union of
98308         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98309         func_add_or_update. In the generated gnulib-comp.m4, collect the
98310         object files for tests/ in different variables than those for lib/.
98311         Substitute LIBTESTS_LIBDEPS.
98312         (func_create_testdir): Combine the uses_subdirs results from
98313         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98315 2007-12-09  Bruno Haible  <bruno@clisp.org>
98317         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98318         the build-aux directory.
98320 2007-12-09  Bruno Haible  <bruno@clisp.org>
98322         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98323         introduced on 2006-09-09.
98325 2007-12-07  Jim Meyering  <meyering@redhat.com>
98327         Let these macros work also with autoconf-2.59.
98328         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98329         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98332 2007-12-06  Jim Meyering  <meyering@redhat.com>
98334         Avoid a configure-time syntax error in gl_FUNC_ACL.
98335         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98336         function in each branch, before testing the cache variable.
98338 2007-12-04  Eric Blake  <ebb9@byu.net>
98340         Make scripts executable.
98341         * build-aux/config.guess: Add execute permissions.
98342         * build-aux/config.sub: Likewise.
98343         * build-aux/gendocs.sh: Likewise.
98345         Fix frexp on mingw.
98346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98347         cross-compiling.
98348         * doc/functions/frexp.texi (frexp): Document the bug.
98350         Make cygwin fseeko check more reliable.
98351         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98352         version numbers, rather than unrelated feature check.
98353         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98354         * doc/functions/ftello.texi (ftello): Likewise.
98355         Reported by Bruno Haible.
98357         * m4/strerror.m4: Bump version number.
98359 2007-12-03  Bruno Haible  <bruno@clisp.org>
98361         * doc/functions/mprotect.texi: Mention the mingw problem.
98363 2007-12-03  Eric Blake  <ebb9@byu.net>
98365         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98366         REPLACE_STRERROR is initialized before this macro.
98368 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98370         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98371         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98372         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98373         put -lsec in even for programs other than 'ls'.  This fixes a problem
98374         for gettext reported by Bruno Haible in
98375         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98376         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98377         Add support for Solaris 10.  This isn't efficient, but should get the
98378         job done for now.
98380 2007-12-03  James Youngman  <jay@gnu.org>
98382         * doc/regexprops-generic.texi: change "an close-group" to "a
98383         close-group" and "illegal" to "not allowed".
98385 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98387         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98388         pr_byname.h. Needed for the rare case when the maintainer has done
98389         "make maintainer-clean" in the source directory and then attempts a
98390         build outside the source directory.
98391         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98392         scripts_byname.h.
98394 2007-12-02  Martin Lambers  <marlam@marlam.de>
98395             Bruno Haible  <bruno@clisp.org>
98397         * lib/getpagesize.h: Remove file.
98398         * lib/unistd.in.h: Include declaration of getpagesize here.
98399         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98400         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98401         HAVE_SYS_PARAM_H.
98402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98403         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98404         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98405         (Depends-on): Add unistd.
98406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98407         (Include): Use <unistd.h> instead of getpagesize.h.
98408         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98409         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98410         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98411         gl_GETPAGESIZE invocation, already handled by module dependency.
98412         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98414 2007-12-02  Bruno Haible  <bruno@clisp.org>
98416         * modules/strings-tests: New file.
98417         * tests/test-strings.c: New file.
98419         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98420         * lib/strings.in.h: New file.
98421         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98422         * m4/strings_h.m4: New file.
98423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98424         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98425         * modules/strings: New file.
98426         * modules/string (Makefile.am): Update.
98427         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98428         Reported by Karl Berry.
98430 2007-12-01  Eric Blake  <ebb9@byu.net>
98432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98433         accommodate fix in cygwin 1.5.25.
98435 2007-12-01  Jim Meyering  <meyering@redhat.com>
98437         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98438         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98439         that would inhibit utf8-optimization of a regexp containing line-
98440         or buffer-anchors, e.g., `^', `$'.
98442 2007-11-30  Bruno Haible  <bruno@clisp.org>
98444         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98445         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98446         glthread_recursive_lock_init.
98447         * lib/lock.c (glthread_recursive_lock_init)
98448         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98449         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98451 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98453         New function qset_acl, like set_acl but with syscall semantics.
98454         * lib/acl.h (qset_acl): New decl.
98455         * lib/acl.c (qset_acl): New function.
98456         (set_acl): Use new function.  Use more-consistent diagnostics.
98458 2007-11-28  Jim Meyering  <meyering@redhat.com>
98460         * modules/physmem (License): Change from GPL to LGPLv2+.
98462 2007-11-26  Bruno Haible  <bruno@clisp.org>
98464         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98465         'long double' type has excess precision.
98466         Reported by Jim Meyering in
98467         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98469 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98471         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98472         Sync from <http://gnu.org/licenses>.
98473         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98474         with license text from same location.
98475         * doc/maintain.texi, doc/standards.texi:  Sync from
98476         <http://savannah.gnu.org/projects/gnustandards>.
98478 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98479         and Jim Meyering  <meyering@redhat.com>
98481         Adjust getdate' grammar to accept a slightly more regular language.
98482         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98483         Before, the former was rejected.
98484         * lib/getdate.y (digits_to_date_time): New function, factored
98485         out of ...
98486         (number): ...here.  Just call digits_to_date_time.
98487         (hybrid): New non-terminal to handle an <unsigned number,
98488         signed relative offset> sequence consistently.
98490 2007-11-18  Jim Meyering  <meyering@redhat.com>
98492         Pull my changes from coreutils:
98493         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98494         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98495         use of $gnulib_tool_option_extras, so that it's separated from the
98496         preceding argument.
98498         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98499         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98500         parent destination directories before copying a file into place.
98502 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98504         bootstrap: work also with 4-argument variant of AC_INIT
98505         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98507 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98509         Port test-getaddrinfo to Solaris.
98510         Problem reported by Bruno Haible in
98511         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98512         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98513         explanation of setting 'hints'.
98514         Don't reject an implementation merely because it returns EAI_SERVICE.
98515         (EAI_SERVICE): Define to 0 if not defined.
98517 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98519         The license of gnu-make and posix-shell is now "GPLed build tool".
98520         * modules/gnu-make (License): Likewise.
98521         * modules/posix-shell (License): Likewise.
98523         New module posix-shell, for determining a POSIX shell
98524         or perhaps something that is close enough to a POSIX shell.
98525         * m4/posix-shell.m4: New file.
98526         * modules/posix-shell: New file.
98528         * MODULES.html.sh: Mention new module.
98530         New module gnu-make, for determining whether we're using GNU Make.
98531         * m4/gnu-make.m4: New file.
98532         * modules/gnu-make: New file.
98533         * MODULES.html.sh: Mention new module.
98535 2007-11-14  Jim Meyering  <meyering@redhat.com>
98537         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
98538         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
98539         use this macro to create a function _definition_.
98540         Remove useless "#undef ARGMATCH_DIE".
98542 2007-11-14  Bruno Haible  <bruno@clisp.org>
98544         * lib/config.charset: Update for OpenBSD 4.1.
98545         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
98547 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
98549         Document 64-bit #if problems in stdint.texi.
98550         * doc/headers/stdint.texi (stdint.h): Mention problems with
98551         64-bit-#if, and how to work around them.
98553         Don't insist on 'long long int' support in the preprocessor.  It
98554         breaks too many things.  For example, PRIdMAX still uses a 'long
98555         long int' format with the latest Sun compiler, even though
98556         HAVE_LONG_LONG_INT isn't defined due to that compiler's
98557         preprocessor problem.  This causes the latest coreutils to dump
98558         core on Solaris 10 sparc with the Sun C compiler.
98559         Instead, fix the 2007-10-16 problem in a different way, by evaluating
98560         the troublesome expressions at configure-time, not at #if-time.
98561         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
98562         preprocessor.
98563         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
98564         compile-time C checks, done at 'configure'-time.
98565         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
98566         * modules/inttypes (Makefile): Substitute the new symbols that
98567         gl_INTTYPES_H now generates.
98568         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
98570 2007-11-12  Bruno Haible  <bruno@clisp.org>
98572         Tests for Unicode character classification functions.
98574         * modules/unictype/bidicategory-byname-tests: New file.
98575         * modules/unictype/bidicategory-name-tests: New file.
98576         * modules/unictype/bidicategory-of-tests: New file.
98577         * modules/unictype/bidicategory-test-tests: New file.
98578         * modules/unictype/block-list-tests: New file.
98579         * modules/unictype/block-of-tests: New file.
98580         * modules/unictype/block-test-tests: New file.
98581         * modules/unictype/category-C-tests: New file.
98582         * modules/unictype/category-Cc-tests: New file.
98583         * modules/unictype/category-Cf-tests: New file.
98584         * modules/unictype/category-Cn-tests: New file.
98585         * modules/unictype/category-Co-tests: New file.
98586         * modules/unictype/category-Cs-tests: New file.
98587         * modules/unictype/category-L-tests: New file.
98588         * modules/unictype/category-Ll-tests: New file.
98589         * modules/unictype/category-Lm-tests: New file.
98590         * modules/unictype/category-Lo-tests: New file.
98591         * modules/unictype/category-Lt-tests: New file.
98592         * modules/unictype/category-Lu-tests: New file.
98593         * modules/unictype/category-M-tests: New file.
98594         * modules/unictype/category-Mc-tests: New file.
98595         * modules/unictype/category-Me-tests: New file.
98596         * modules/unictype/category-Mn-tests: New file.
98597         * modules/unictype/category-N-tests: New file.
98598         * modules/unictype/category-Nd-tests: New file.
98599         * modules/unictype/category-Nl-tests: New file.
98600         * modules/unictype/category-No-tests: New file.
98601         * modules/unictype/category-P-tests: New file.
98602         * modules/unictype/category-Pc-tests: New file.
98603         * modules/unictype/category-Pd-tests: New file.
98604         * modules/unictype/category-Pe-tests: New file.
98605         * modules/unictype/category-Pf-tests: New file.
98606         * modules/unictype/category-Pi-tests: New file.
98607         * modules/unictype/category-Po-tests: New file.
98608         * modules/unictype/category-Ps-tests: New file.
98609         * modules/unictype/category-S-tests: New file.
98610         * modules/unictype/category-Sc-tests: New file.
98611         * modules/unictype/category-Sk-tests: New file.
98612         * modules/unictype/category-Sm-tests: New file.
98613         * modules/unictype/category-So-tests: New file.
98614         * modules/unictype/category-Z-tests: New file.
98615         * modules/unictype/category-Zl-tests: New file.
98616         * modules/unictype/category-Zp-tests: New file.
98617         * modules/unictype/category-Zs-tests: New file.
98618         * modules/unictype/category-and-not-tests: New file.
98619         * modules/unictype/category-and-tests: New file.
98620         * modules/unictype/category-byname-tests: New file.
98621         * modules/unictype/category-name-tests: New file.
98622         * modules/unictype/category-none-tests: New file.
98623         * modules/unictype/category-of-tests: New file.
98624         * modules/unictype/category-or-tests: New file.
98625         * modules/unictype/category-test-withtable-tests: New file.
98626         * modules/unictype/combining-class-tests: New file.
98627         * modules/unictype/ctype-alnum-tests: New file.
98628         * modules/unictype/ctype-alpha-tests: New file.
98629         * modules/unictype/ctype-blank-tests: New file.
98630         * modules/unictype/ctype-cntrl-tests: New file.
98631         * modules/unictype/ctype-digit-tests: New file.
98632         * modules/unictype/ctype-graph-tests: New file.
98633         * modules/unictype/ctype-lower-tests: New file.
98634         * modules/unictype/ctype-print-tests: New file.
98635         * modules/unictype/ctype-punct-tests: New file.
98636         * modules/unictype/ctype-space-tests: New file.
98637         * modules/unictype/ctype-upper-tests: New file.
98638         * modules/unictype/ctype-xdigit-tests: New file.
98639         * modules/unictype/decimal-digit-tests: New file.
98640         * modules/unictype/digit-tests: New file.
98641         * modules/unictype/mirror-tests: New file.
98642         * modules/unictype/numeric-tests: New file.
98643         * modules/unictype/property-alphabetic-tests: New file.
98644         * modules/unictype/property-ascii-hex-digit-tests: New file.
98645         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98646         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98647         * modules/unictype/property-bidi-block-separator-tests: New file.
98648         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98649         * modules/unictype/property-bidi-common-separator-tests: New file.
98650         * modules/unictype/property-bidi-control-tests: New file.
98651         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98652         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98653         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98654         * modules/unictype/property-bidi-european-digit-tests: New file.
98655         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98656         * modules/unictype/property-bidi-left-to-right-tests: New file.
98657         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98658         * modules/unictype/property-bidi-other-neutral-tests: New file.
98659         * modules/unictype/property-bidi-pdf-tests: New file.
98660         * modules/unictype/property-bidi-segment-separator-tests: New file.
98661         * modules/unictype/property-bidi-whitespace-tests: New file.
98662         * modules/unictype/property-byname-tests: New file.
98663         * modules/unictype/property-combining-tests: New file.
98664         * modules/unictype/property-composite-tests: New file.
98665         * modules/unictype/property-currency-symbol-tests: New file.
98666         * modules/unictype/property-dash-tests: New file.
98667         * modules/unictype/property-decimal-digit-tests: New file.
98668         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98669         * modules/unictype/property-deprecated-tests: New file.
98670         * modules/unictype/property-diacritic-tests: New file.
98671         * modules/unictype/property-extender-tests: New file.
98672         * modules/unictype/property-format-control-tests: New file.
98673         * modules/unictype/property-grapheme-base-tests: New file.
98674         * modules/unictype/property-grapheme-extend-tests: New file.
98675         * modules/unictype/property-grapheme-link-tests: New file.
98676         * modules/unictype/property-hex-digit-tests: New file.
98677         * modules/unictype/property-hyphen-tests: New file.
98678         * modules/unictype/property-id-continue-tests: New file.
98679         * modules/unictype/property-id-start-tests: New file.
98680         * modules/unictype/property-ideographic-tests: New file.
98681         * modules/unictype/property-ids-binary-operator-tests: New file.
98682         * modules/unictype/property-ids-trinary-operator-tests: New file.
98683         * modules/unictype/property-ignorable-control-tests: New file.
98684         * modules/unictype/property-iso-control-tests: New file.
98685         * modules/unictype/property-join-control-tests: New file.
98686         * modules/unictype/property-left-of-pair-tests: New file.
98687         * modules/unictype/property-line-separator-tests: New file.
98688         * modules/unictype/property-logical-order-exception-tests: New file.
98689         * modules/unictype/property-lowercase-tests: New file.
98690         * modules/unictype/property-math-tests: New file.
98691         * modules/unictype/property-non-break-tests: New file.
98692         * modules/unictype/property-not-a-character-tests: New file.
98693         * modules/unictype/property-numeric-tests: New file.
98694         * modules/unictype/property-other-alphabetic-tests: New file.
98695         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98696         * modules/unictype/property-other-grapheme-extend-tests: New file.
98697         * modules/unictype/property-other-id-continue-tests: New file.
98698         * modules/unictype/property-other-id-start-tests: New file.
98699         * modules/unictype/property-other-lowercase-tests: New file.
98700         * modules/unictype/property-other-math-tests: New file.
98701         * modules/unictype/property-other-uppercase-tests: New file.
98702         * modules/unictype/property-paired-punctuation-tests: New file.
98703         * modules/unictype/property-paragraph-separator-tests: New file.
98704         * modules/unictype/property-pattern-syntax-tests: New file.
98705         * modules/unictype/property-pattern-white-space-tests: New file.
98706         * modules/unictype/property-private-use-tests: New file.
98707         * modules/unictype/property-punctuation-tests: New file.
98708         * modules/unictype/property-quotation-mark-tests: New file.
98709         * modules/unictype/property-radical-tests: New file.
98710         * modules/unictype/property-sentence-terminal-tests: New file.
98711         * modules/unictype/property-soft-dotted-tests: New file.
98712         * modules/unictype/property-space-tests: New file.
98713         * modules/unictype/property-terminal-punctuation-tests: New file.
98714         * modules/unictype/property-test-tests: New file.
98715         * modules/unictype/property-titlecase-tests: New file.
98716         * modules/unictype/property-unassigned-code-value-tests: New file.
98717         * modules/unictype/property-unified-ideograph-tests: New file.
98718         * modules/unictype/property-uppercase-tests: New file.
98719         * modules/unictype/property-variation-selector-tests: New file.
98720         * modules/unictype/property-white-space-tests: New file.
98721         * modules/unictype/property-xid-continue-tests: New file.
98722         * modules/unictype/property-xid-start-tests: New file.
98723         * modules/unictype/property-zero-width-tests: New file.
98724         * modules/unictype/scripts-tests: New file.
98725         * modules/unictype/syntax-c-ident-tests: New file.
98726         * modules/unictype/syntax-c-whitespace-tests: New file.
98727         * modules/unictype/syntax-java-ident-tests: New file.
98728         * modules/unictype/syntax-java-whitespace-tests: New file.
98729         * tests/unictype/test-bidi_byname.c: New file.
98730         * tests/unictype/test-bidi_name.c: New file.
98731         * tests/unictype/test-bidi_of.c: New file.
98732         * tests/unictype/test-bidi_test.c: New file.
98733         * tests/unictype/test-block_list.c: New file.
98734         * tests/unictype/test-block_of.c: New file.
98735         * tests/unictype/test-block_test.c: New file.
98736         * tests/unictype/test-categ_and.c: New file.
98737         * tests/unictype/test-categ_and_not.c: New file.
98738         * tests/unictype/test-categ_byname.c: New file.
98739         * tests/unictype/test-categ_name.c: New file.
98740         * tests/unictype/test-categ_none.c: New file.
98741         * tests/unictype/test-categ_of.c: New file.
98742         * tests/unictype/test-categ_or.c: New file.
98743         * tests/unictype/test-categ_test_withtable.c: New file.
98744         * tests/unictype/test-combining.c: New file.
98745         * tests/unictype/test-decdigit.c: New file.
98746         * tests/unictype/test-digit.c: New file.
98747         * tests/unictype/test-mirror.c: New file.
98748         * tests/unictype/test-numeric.c: New file.
98749         * tests/unictype/test-pr_byname.c: New file.
98750         * tests/unictype/test-pr_test.c: New file.
98751         * tests/unictype/test-predicate-part1.h: New file.
98752         * tests/unictype/test-predicate-part2.h: New file.
98753         * tests/unictype/test-scripts.c: New file.
98754         * tests/unictype/test-sy_c_ident.c: New file.
98755         * tests/unictype/test-sy_java_ident.c: New file.
98757         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98758         for Unicode 5.0.0.
98759         * tests/unictype/test-categ_Cc.c: Likewise.
98760         * tests/unictype/test-categ_Cf.c: Likewise.
98761         * tests/unictype/test-categ_Cn.c: Likewise.
98762         * tests/unictype/test-categ_Co.c: Likewise.
98763         * tests/unictype/test-categ_Cs.c: Likewise.
98764         * tests/unictype/test-categ_L.c: Likewise.
98765         * tests/unictype/test-categ_Ll.c: Likewise.
98766         * tests/unictype/test-categ_Lm.c: Likewise.
98767         * tests/unictype/test-categ_Lo.c: Likewise.
98768         * tests/unictype/test-categ_Lt.c: Likewise.
98769         * tests/unictype/test-categ_Lu.c: Likewise.
98770         * tests/unictype/test-categ_M.c: Likewise.
98771         * tests/unictype/test-categ_Mc.c: Likewise.
98772         * tests/unictype/test-categ_Me.c: Likewise.
98773         * tests/unictype/test-categ_Mn.c: Likewise.
98774         * tests/unictype/test-categ_N.c: Likewise.
98775         * tests/unictype/test-categ_Nd.c: Likewise.
98776         * tests/unictype/test-categ_Nl.c: Likewise.
98777         * tests/unictype/test-categ_No.c: Likewise.
98778         * tests/unictype/test-categ_P.c: Likewise.
98779         * tests/unictype/test-categ_Pc.c: Likewise.
98780         * tests/unictype/test-categ_Pd.c: Likewise.
98781         * tests/unictype/test-categ_Pe.c: Likewise.
98782         * tests/unictype/test-categ_Pf.c: Likewise.
98783         * tests/unictype/test-categ_Pi.c: Likewise.
98784         * tests/unictype/test-categ_Po.c: Likewise.
98785         * tests/unictype/test-categ_Ps.c: Likewise.
98786         * tests/unictype/test-categ_S.c: Likewise.
98787         * tests/unictype/test-categ_Sc.c: Likewise.
98788         * tests/unictype/test-categ_Sk.c: Likewise.
98789         * tests/unictype/test-categ_Sm.c: Likewise.
98790         * tests/unictype/test-categ_So.c: Likewise.
98791         * tests/unictype/test-categ_Z.c: Likewise.
98792         * tests/unictype/test-categ_Zl.c: Likewise.
98793         * tests/unictype/test-categ_Zp.c: Likewise.
98794         * tests/unictype/test-categ_Zs.c: Likewise.
98795         * tests/unictype/test-ctype_alnum.c: Likewise.
98796         * tests/unictype/test-ctype_alpha.c: Likewise.
98797         * tests/unictype/test-ctype_blank.c: Likewise.
98798         * tests/unictype/test-ctype_cntrl.c: Likewise.
98799         * tests/unictype/test-ctype_digit.c: Likewise.
98800         * tests/unictype/test-ctype_graph.c: Likewise.
98801         * tests/unictype/test-ctype_lower.c: Likewise.
98802         * tests/unictype/test-ctype_print.c: Likewise.
98803         * tests/unictype/test-ctype_punct.c: Likewise.
98804         * tests/unictype/test-ctype_space.c: Likewise.
98805         * tests/unictype/test-ctype_upper.c: Likewise.
98806         * tests/unictype/test-ctype_xdigit.c: Likewise.
98807         * tests/unictype/test-decdigit.h: Likewise.
98808         * tests/unictype/test-digit.h: Likewise.
98809         * tests/unictype/test-numeric.h: Likewise.
98810         * tests/unictype/test-pr_alphabetic.c: Likewise.
98811         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98812         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98813         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98814         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98815         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98816         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98817         * tests/unictype/test-pr_bidi_control.c: Likewise.
98818         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98819         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98820         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98821         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98822         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98823         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98824         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98825         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98826         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98827         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98828         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98829         * tests/unictype/test-pr_combining.c: Likewise.
98830         * tests/unictype/test-pr_composite.c: Likewise.
98831         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98832         * tests/unictype/test-pr_dash.c: Likewise.
98833         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98834         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98835         * tests/unictype/test-pr_deprecated.c: Likewise.
98836         * tests/unictype/test-pr_diacritic.c: Likewise.
98837         * tests/unictype/test-pr_extender.c: Likewise.
98838         * tests/unictype/test-pr_format_control.c: Likewise.
98839         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98840         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98841         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98842         * tests/unictype/test-pr_hex_digit.c: Likewise.
98843         * tests/unictype/test-pr_hyphen.c: Likewise.
98844         * tests/unictype/test-pr_id_continue.c: Likewise.
98845         * tests/unictype/test-pr_id_start.c: Likewise.
98846         * tests/unictype/test-pr_ideographic.c: Likewise.
98847         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98848         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98849         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98850         * tests/unictype/test-pr_iso_control.c: Likewise.
98851         * tests/unictype/test-pr_join_control.c: Likewise.
98852         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98853         * tests/unictype/test-pr_line_separator.c: Likewise.
98854         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98855         * tests/unictype/test-pr_lowercase.c: Likewise.
98856         * tests/unictype/test-pr_math.c: Likewise.
98857         * tests/unictype/test-pr_non_break.c: Likewise.
98858         * tests/unictype/test-pr_not_a_character.c: Likewise.
98859         * tests/unictype/test-pr_numeric.c: Likewise.
98860         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98861         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98862         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98863         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98864         * tests/unictype/test-pr_other_id_start.c: Likewise.
98865         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98866         * tests/unictype/test-pr_other_math.c: Likewise.
98867         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98868         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98869         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98870         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98871         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98872         * tests/unictype/test-pr_private_use.c: Likewise.
98873         * tests/unictype/test-pr_punctuation.c: Likewise.
98874         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98875         * tests/unictype/test-pr_radical.c: Likewise.
98876         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98877         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98878         * tests/unictype/test-pr_space.c: Likewise.
98879         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98880         * tests/unictype/test-pr_titlecase.c: Likewise.
98881         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98882         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98883         * tests/unictype/test-pr_uppercase.c: Likewise.
98884         * tests/unictype/test-pr_variation_selector.c: Likewise.
98885         * tests/unictype/test-pr_white_space.c: Likewise.
98886         * tests/unictype/test-pr_xid_continue.c: Likewise.
98887         * tests/unictype/test-pr_xid_start.c: Likewise.
98888         * tests/unictype/test-pr_zero_width.c: Likewise.
98889         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98890         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98892 2007-11-12  Bruno Haible  <bruno@clisp.org>
98894         Unicode character classification functions.
98895         * lib/unictype.h: New file.
98896         * modules/unictype/base: New file.
98897         * modules/unictype/category-L: New file.
98898         * modules/unictype/category-Lu: New file.
98899         * modules/unictype/category-Ll: New file.
98900         * modules/unictype/category-Lt: New file.
98901         * modules/unictype/category-Lm: New file.
98902         * modules/unictype/category-Lo: New file.
98903         * modules/unictype/category-M: New file.
98904         * modules/unictype/category-Mn: New file.
98905         * modules/unictype/category-Mc: New file.
98906         * modules/unictype/category-Me: New file.
98907         * modules/unictype/category-N: New file.
98908         * modules/unictype/category-Nd: New file.
98909         * modules/unictype/category-Nl: New file.
98910         * modules/unictype/category-No: New file.
98911         * modules/unictype/category-P: New file.
98912         * modules/unictype/category-Pc: New file.
98913         * modules/unictype/category-Pd: New file.
98914         * modules/unictype/category-Ps: New file.
98915         * modules/unictype/category-Pe: New file.
98916         * modules/unictype/category-Pi: New file.
98917         * modules/unictype/category-Pf: New file.
98918         * modules/unictype/category-Po: New file.
98919         * modules/unictype/category-S: New file.
98920         * modules/unictype/category-Sm: New file.
98921         * modules/unictype/category-Sc: New file.
98922         * modules/unictype/category-Sk: New file.
98923         * modules/unictype/category-So: New file.
98924         * modules/unictype/category-Z: New file.
98925         * modules/unictype/category-Zs: New file.
98926         * modules/unictype/category-Zl: New file.
98927         * modules/unictype/category-Zp: New file.
98928         * modules/unictype/category-C: New file.
98929         * modules/unictype/category-Cc: New file.
98930         * modules/unictype/category-Cf: New file.
98931         * modules/unictype/category-Cs: New file.
98932         * modules/unictype/category-Co: New file.
98933         * modules/unictype/category-Cn: New file.
98934         * modules/unictype/category-or: New file.
98935         * modules/unictype/category-of: New file.
98936         * modules/unictype/category-test: New file.
98937         * modules/unictype/category-test-withtable: New file.
98938         * modules/unictype/category-byname: New file.
98939         * modules/unictype/category-none: New file.
98940         * modules/unictype/category-and: New file.
98941         * modules/unictype/category-and-not: New file.
98942         * modules/unictype/category-name: New file.
98943         * modules/unictype/combining-class: New file.
98944         * modules/unictype/category-all: New file.
98945         * modules/unictype/bidicategory-all: New file.
98946         * modules/unictype/bidicategory-byname: New file.
98947         * modules/unictype/bidicategory-name: New file.
98948         * modules/unictype/bidicategory-of: New file.
98949         * modules/unictype/bidicategory-test: New file.
98950         * modules/unictype/decimal-digit: New file.
98951         * modules/unictype/digit: New file.
98952         * modules/unictype/numeric: New file.
98953         * modules/unictype/mirror: New file.
98954         * modules/unictype/property-white-space: New file.
98955         * modules/unictype/property-alphabetic: New file.
98956         * modules/unictype/property-other-alphabetic: New file.
98957         * modules/unictype/property-not-a-character: New file.
98958         * modules/unictype/property-default-ignorable-code-point: New file.
98959         * modules/unictype/property-other-default-ignorable-code-point: New
98960         file.
98961         * modules/unictype/property-deprecated: New file.
98962         * modules/unictype/property-logical-order-exception: New file.
98963         * modules/unictype/property-variation-selector: New file.
98964         * modules/unictype/property-private-use: New file.
98965         * modules/unictype/property-unassigned-code-value: New file.
98966         * modules/unictype/property-uppercase: New file.
98967         * modules/unictype/property-other-uppercase: New file.
98968         * modules/unictype/property-lowercase: New file.
98969         * modules/unictype/property-other-lowercase: New file.
98970         * modules/unictype/property-titlecase: New file.
98971         * modules/unictype/property-soft-dotted: New file.
98972         * modules/unictype/property-id-start: New file.
98973         * modules/unictype/property-other-id-start: New file.
98974         * modules/unictype/property-id-continue: New file.
98975         * modules/unictype/property-other-id-continue: New file.
98976         * modules/unictype/property-xid-start: New file.
98977         * modules/unictype/property-xid-continue: New file.
98978         * modules/unictype/property-pattern-white-space: New file.
98979         * modules/unictype/property-pattern-syntax: New file.
98980         * modules/unictype/property-join-control: New file.
98981         * modules/unictype/property-grapheme-base: New file.
98982         * modules/unictype/property-grapheme-extend: New file.
98983         * modules/unictype/property-other-grapheme-extend: New file.
98984         * modules/unictype/property-grapheme-link: New file.
98985         * modules/unictype/property-bidi-control: New file.
98986         * modules/unictype/property-bidi-left-to-right: New file.
98987         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98988         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98989         * modules/unictype/property-bidi-european-digit: New file.
98990         * modules/unictype/property-bidi-eur-num-separator: New file.
98991         * modules/unictype/property-bidi-eur-num-terminator: New file.
98992         * modules/unictype/property-bidi-arabic-digit: New file.
98993         * modules/unictype/property-bidi-common-separator: New file.
98994         * modules/unictype/property-bidi-block-separator: New file.
98995         * modules/unictype/property-bidi-segment-separator: New file.
98996         * modules/unictype/property-bidi-whitespace: New file.
98997         * modules/unictype/property-bidi-non-spacing-mark: New file.
98998         * modules/unictype/property-bidi-boundary-neutral: New file.
98999         * modules/unictype/property-bidi-pdf: New file.
99000         * modules/unictype/property-bidi-embedding-or-override: New file.
99001         * modules/unictype/property-bidi-other-neutral: New file.
99002         * modules/unictype/property-hex-digit: New file.
99003         * modules/unictype/property-ascii-hex-digit: New file.
99004         * modules/unictype/property-ideographic: New file.
99005         * modules/unictype/property-unified-ideograph: New file.
99006         * modules/unictype/property-radical: New file.
99007         * modules/unictype/property-ids-binary-operator: New file.
99008         * modules/unictype/property-ids-trinary-operator: New file.
99009         * modules/unictype/property-zero-width: New file.
99010         * modules/unictype/property-space: New file.
99011         * modules/unictype/property-non-break: New file.
99012         * modules/unictype/property-iso-control: New file.
99013         * modules/unictype/property-format-control: New file.
99014         * modules/unictype/property-dash: New file.
99015         * modules/unictype/property-hyphen: New file.
99016         * modules/unictype/property-punctuation: New file.
99017         * modules/unictype/property-line-separator: New file.
99018         * modules/unictype/property-paragraph-separator: New file.
99019         * modules/unictype/property-quotation-mark: New file.
99020         * modules/unictype/property-sentence-terminal: New file.
99021         * modules/unictype/property-terminal-punctuation: New file.
99022         * modules/unictype/property-currency-symbol: New file.
99023         * modules/unictype/property-math: New file.
99024         * modules/unictype/property-other-math: New file.
99025         * modules/unictype/property-paired-punctuation: New file.
99026         * modules/unictype/property-left-of-pair: New file.
99027         * modules/unictype/property-combining: New file.
99028         * modules/unictype/property-composite: New file.
99029         * modules/unictype/property-decimal-digit: New file.
99030         * modules/unictype/property-numeric: New file.
99031         * modules/unictype/property-diacritic: New file.
99032         * modules/unictype/property-extender: New file.
99033         * modules/unictype/property-ignorable-control: New file.
99034         * modules/unictype/property-test: New file.
99035         * modules/unictype/property-byname: New file.
99036         * modules/unictype/property-all: New file.
99037         * modules/unictype/scripts: New file.
99038         * modules/unictype/scripts-all: New file.
99039         * modules/unictype/block-of: New file.
99040         * modules/unictype/block-test: New file.
99041         * modules/unictype/block-list: New file.
99042         * modules/unictype/block-all: New file.
99043         * modules/unictype/syntax-c-whitespace: New file.
99044         * modules/unictype/syntax-java-whitespace: New file.
99045         * modules/unictype/syntax-c-ident: New file.
99046         * modules/unictype/syntax-java-ident: New file.
99047         * modules/unictype/ctype-alnum: New file.
99048         * modules/unictype/ctype-alpha: New file.
99049         * modules/unictype/ctype-cntrl: New file.
99050         * modules/unictype/ctype-digit: New file.
99051         * modules/unictype/ctype-graph: New file.
99052         * modules/unictype/ctype-lower: New file.
99053         * modules/unictype/ctype-print: New file.
99054         * modules/unictype/ctype-punct: New file.
99055         * modules/unictype/ctype-space: New file.
99056         * modules/unictype/ctype-upper: New file.
99057         * modules/unictype/ctype-xdigit: New file.
99058         * modules/unictype/ctype-blank: New file.
99059         * lib/unictype/bidi_byname.c: New file.
99060         * lib/unictype/bidi_name.c: New file.
99061         * lib/unictype/bidi_of.c: New file.
99062         * lib/unictype/bidi_test.c: New file.
99063         * lib/unictype/bitmap.h: New file.
99064         * lib/unictype/block_test.c: New file.
99065         * lib/unictype/blocks.c: New file.
99066         * lib/unictype/categ_C.c: New file.
99067         * lib/unictype/categ_Cc.c: New file.
99068         * lib/unictype/categ_Cf.c: New file.
99069         * lib/unictype/categ_Cn.c: New file.
99070         * lib/unictype/categ_Co.c: New file.
99071         * lib/unictype/categ_Cs.c: New file.
99072         * lib/unictype/categ_L.c: New file.
99073         * lib/unictype/categ_Ll.c: New file.
99074         * lib/unictype/categ_Lm.c: New file.
99075         * lib/unictype/categ_Lo.c: New file.
99076         * lib/unictype/categ_Lt.c: New file.
99077         * lib/unictype/categ_Lu.c: New file.
99078         * lib/unictype/categ_M.c: New file.
99079         * lib/unictype/categ_Mc.c: New file.
99080         * lib/unictype/categ_Me.c: New file.
99081         * lib/unictype/categ_Mn.c: New file.
99082         * lib/unictype/categ_N.c: New file.
99083         * lib/unictype/categ_Nd.c: New file.
99084         * lib/unictype/categ_Nl.c: New file.
99085         * lib/unictype/categ_No.c: New file.
99086         * lib/unictype/categ_P.c: New file.
99087         * lib/unictype/categ_Pc.c: New file.
99088         * lib/unictype/categ_Pd.c: New file.
99089         * lib/unictype/categ_Pe.c: New file.
99090         * lib/unictype/categ_Pf.c: New file.
99091         * lib/unictype/categ_Pi.c: New file.
99092         * lib/unictype/categ_Po.c: New file.
99093         * lib/unictype/categ_Ps.c: New file.
99094         * lib/unictype/categ_S.c: New file.
99095         * lib/unictype/categ_Sc.c: New file.
99096         * lib/unictype/categ_Sk.c: New file.
99097         * lib/unictype/categ_Sm.c: New file.
99098         * lib/unictype/categ_So.c: New file.
99099         * lib/unictype/categ_Z.c: New file.
99100         * lib/unictype/categ_Zl.c: New file.
99101         * lib/unictype/categ_Zp.c: New file.
99102         * lib/unictype/categ_Zs.c: New file.
99103         * lib/unictype/categ_and.c: New file.
99104         * lib/unictype/categ_and_not.c: New file.
99105         * lib/unictype/categ_byname.c: New file.
99106         * lib/unictype/categ_name.c: New file.
99107         * lib/unictype/categ_none.c: New file.
99108         * lib/unictype/categ_of.c: New file.
99109         * lib/unictype/categ_or.c: New file.
99110         * lib/unictype/categ_test.c: New file.
99111         * lib/unictype/combining.c: New file.
99112         * lib/unictype/ctype_alnum.c: New file.
99113         * lib/unictype/ctype_alpha.c: New file.
99114         * lib/unictype/ctype_blank.c: New file.
99115         * lib/unictype/ctype_cntrl.c: New file.
99116         * lib/unictype/ctype_digit.c: New file.
99117         * lib/unictype/ctype_graph.c: New file.
99118         * lib/unictype/ctype_lower.c: New file.
99119         * lib/unictype/ctype_print.c: New file.
99120         * lib/unictype/ctype_punct.c: New file.
99121         * lib/unictype/ctype_space.c: New file.
99122         * lib/unictype/ctype_upper.c: New file.
99123         * lib/unictype/ctype_xdigit.c: New file.
99124         * lib/unictype/decdigit.c: New file.
99125         * lib/unictype/digit.c: New file.
99126         * lib/unictype/identsyntaxmap.h: New file.
99127         * lib/unictype/mirror.c: New file.
99128         * lib/unictype/numeric.c: New file.
99129         * lib/unictype/pr_alphabetic.c: New file.
99130         * lib/unictype/pr_ascii_hex_digit.c: New file.
99131         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99132         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99133         * lib/unictype/pr_bidi_block_separator.c: New file.
99134         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99135         * lib/unictype/pr_bidi_common_separator.c: New file.
99136         * lib/unictype/pr_bidi_control.c: New file.
99137         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99138         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99139         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99140         * lib/unictype/pr_bidi_european_digit.c: New file.
99141         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99142         * lib/unictype/pr_bidi_left_to_right.c: New file.
99143         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99144         * lib/unictype/pr_bidi_other_neutral.c: New file.
99145         * lib/unictype/pr_bidi_pdf.c: New file.
99146         * lib/unictype/pr_bidi_segment_separator.c: New file.
99147         * lib/unictype/pr_bidi_whitespace.c: New file.
99148         * lib/unictype/pr_byname.c: New file.
99149         * lib/unictype/pr_byname.gperf: New file.
99150         * lib/unictype/pr_combining.c: New file.
99151         * lib/unictype/pr_composite.c: New file.
99152         * lib/unictype/pr_currency_symbol.c: New file.
99153         * lib/unictype/pr_dash.c: New file.
99154         * lib/unictype/pr_decimal_digit.c: New file.
99155         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99156         * lib/unictype/pr_deprecated.c: New file.
99157         * lib/unictype/pr_diacritic.c: New file.
99158         * lib/unictype/pr_extender.c: New file.
99159         * lib/unictype/pr_format_control.c: New file.
99160         * lib/unictype/pr_grapheme_base.c: New file.
99161         * lib/unictype/pr_grapheme_extend.c: New file.
99162         * lib/unictype/pr_grapheme_link.c: New file.
99163         * lib/unictype/pr_hex_digit.c: New file.
99164         * lib/unictype/pr_hyphen.c: New file.
99165         * lib/unictype/pr_id_continue.c: New file.
99166         * lib/unictype/pr_id_start.c: New file.
99167         * lib/unictype/pr_ideographic.c: New file.
99168         * lib/unictype/pr_ids_binary_operator.c: New file.
99169         * lib/unictype/pr_ids_trinary_operator.c: New file.
99170         * lib/unictype/pr_ignorable_control.c: New file.
99171         * lib/unictype/pr_iso_control.c: New file.
99172         * lib/unictype/pr_join_control.c: New file.
99173         * lib/unictype/pr_left_of_pair.c: New file.
99174         * lib/unictype/pr_line_separator.c: New file.
99175         * lib/unictype/pr_logical_order_exception.c: New file.
99176         * lib/unictype/pr_lowercase.c: New file.
99177         * lib/unictype/pr_math.c: New file.
99178         * lib/unictype/pr_non_break.c: New file.
99179         * lib/unictype/pr_not_a_character.c: New file.
99180         * lib/unictype/pr_numeric.c: New file.
99181         * lib/unictype/pr_other_alphabetic.c: New file.
99182         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99183         * lib/unictype/pr_other_grapheme_extend.c: New file.
99184         * lib/unictype/pr_other_id_continue.c: New file.
99185         * lib/unictype/pr_other_id_start.c: New file.
99186         * lib/unictype/pr_other_lowercase.c: New file.
99187         * lib/unictype/pr_other_math.c: New file.
99188         * lib/unictype/pr_other_uppercase.c: New file.
99189         * lib/unictype/pr_paired_punctuation.c: New file.
99190         * lib/unictype/pr_paragraph_separator.c: New file.
99191         * lib/unictype/pr_pattern_syntax.c: New file.
99192         * lib/unictype/pr_pattern_white_space.c: New file.
99193         * lib/unictype/pr_private_use.c: New file.
99194         * lib/unictype/pr_punctuation.c: New file.
99195         * lib/unictype/pr_quotation_mark.c: New file.
99196         * lib/unictype/pr_radical.c: New file.
99197         * lib/unictype/pr_sentence_terminal.c: New file.
99198         * lib/unictype/pr_soft_dotted.c: New file.
99199         * lib/unictype/pr_space.c: New file.
99200         * lib/unictype/pr_terminal_punctuation.c: New file.
99201         * lib/unictype/pr_test.c: New file.
99202         * lib/unictype/pr_titlecase.c: New file.
99203         * lib/unictype/pr_unassigned_code_value.c: New file.
99204         * lib/unictype/pr_unified_ideograph.c: New file.
99205         * lib/unictype/pr_uppercase.c: New file.
99206         * lib/unictype/pr_variation_selector.c: New file.
99207         * lib/unictype/pr_white_space.c: New file.
99208         * lib/unictype/pr_xid_continue.c: New file.
99209         * lib/unictype/pr_xid_start.c: New file.
99210         * lib/unictype/pr_zero_width.c: New file.
99211         * lib/unictype/scripts.c: New file.
99212         * lib/unictype/sy_c_ident.c: New file.
99213         * lib/unictype/sy_c_whitespace.c: New file.
99214         * lib/unictype/sy_java_ident.c: New file.
99215         * lib/unictype/sy_java_whitespace.c: New file.
99217         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99218         Unicode 5.0.0.
99219         * lib/unictype/blocks.h: Likewise.
99220         * lib/unictype/categ_C.h: Likewise.
99221         * lib/unictype/categ_Cc.h: Likewise.
99222         * lib/unictype/categ_Cf.h: Likewise.
99223         * lib/unictype/categ_Cn.h: Likewise.
99224         * lib/unictype/categ_Co.h: Likewise.
99225         * lib/unictype/categ_Cs.h: Likewise.
99226         * lib/unictype/categ_L.h: Likewise.
99227         * lib/unictype/categ_Ll.h: Likewise.
99228         * lib/unictype/categ_Lm.h: Likewise.
99229         * lib/unictype/categ_Lo.h: Likewise.
99230         * lib/unictype/categ_Lt.h: Likewise.
99231         * lib/unictype/categ_Lu.h: Likewise.
99232         * lib/unictype/categ_M.h: Likewise.
99233         * lib/unictype/categ_Mc.h: Likewise.
99234         * lib/unictype/categ_Me.h: Likewise.
99235         * lib/unictype/categ_Mn.h: Likewise.
99236         * lib/unictype/categ_N.h: Likewise.
99237         * lib/unictype/categ_Nd.h: Likewise.
99238         * lib/unictype/categ_Nl.h: Likewise.
99239         * lib/unictype/categ_No.h: Likewise.
99240         * lib/unictype/categ_P.h: Likewise.
99241         * lib/unictype/categ_Pc.h: Likewise.
99242         * lib/unictype/categ_Pd.h: Likewise.
99243         * lib/unictype/categ_Pe.h: Likewise.
99244         * lib/unictype/categ_Pf.h: Likewise.
99245         * lib/unictype/categ_Pi.h: Likewise.
99246         * lib/unictype/categ_Po.h: Likewise.
99247         * lib/unictype/categ_Ps.h: Likewise.
99248         * lib/unictype/categ_S.h: Likewise.
99249         * lib/unictype/categ_Sc.h: Likewise.
99250         * lib/unictype/categ_Sk.h: Likewise.
99251         * lib/unictype/categ_Sm.h: Likewise.
99252         * lib/unictype/categ_So.h: Likewise.
99253         * lib/unictype/categ_Z.h: Likewise.
99254         * lib/unictype/categ_Zl.h: Likewise.
99255         * lib/unictype/categ_Zp.h: Likewise.
99256         * lib/unictype/categ_Zs.h: Likewise.
99257         * lib/unictype/categ_of.h: Likewise.
99258         * lib/unictype/combining.h: Likewise.
99259         * lib/unictype/ctype_alnum.h: Likewise.
99260         * lib/unictype/ctype_alpha.h: Likewise.
99261         * lib/unictype/ctype_blank.h: Likewise.
99262         * lib/unictype/ctype_cntrl.h: Likewise.
99263         * lib/unictype/ctype_digit.h: Likewise.
99264         * lib/unictype/ctype_graph.h: Likewise.
99265         * lib/unictype/ctype_lower.h: Likewise.
99266         * lib/unictype/ctype_print.h: Likewise.
99267         * lib/unictype/ctype_punct.h: Likewise.
99268         * lib/unictype/ctype_space.h: Likewise.
99269         * lib/unictype/ctype_upper.h: Likewise.
99270         * lib/unictype/ctype_xdigit.h: Likewise.
99271         * lib/unictype/decdigit.h: Likewise.
99272         * lib/unictype/digit.h: Likewise.
99273         * lib/unictype/mirror.h: Likewise.
99274         * lib/unictype/numeric.h: Likewise.
99275         * lib/unictype/pr_alphabetic.h: Likewise.
99276         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99277         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99278         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99279         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99280         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99281         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99282         * lib/unictype/pr_bidi_control.h: Likewise.
99283         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99284         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99285         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99286         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99287         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99288         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99289         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99290         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99291         * lib/unictype/pr_bidi_pdf.h: Likewise.
99292         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99293         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99294         * lib/unictype/pr_combining.h: Likewise.
99295         * lib/unictype/pr_composite.h: Likewise.
99296         * lib/unictype/pr_currency_symbol.h: Likewise.
99297         * lib/unictype/pr_dash.h: Likewise.
99298         * lib/unictype/pr_decimal_digit.h: Likewise.
99299         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99300         * lib/unictype/pr_deprecated.h: Likewise.
99301         * lib/unictype/pr_diacritic.h: Likewise.
99302         * lib/unictype/pr_extender.h: Likewise.
99303         * lib/unictype/pr_format_control.h: Likewise.
99304         * lib/unictype/pr_grapheme_base.h: Likewise.
99305         * lib/unictype/pr_grapheme_extend.h: Likewise.
99306         * lib/unictype/pr_grapheme_link.h: Likewise.
99307         * lib/unictype/pr_hex_digit.h: Likewise.
99308         * lib/unictype/pr_hyphen.h: Likewise.
99309         * lib/unictype/pr_id_continue.h: Likewise.
99310         * lib/unictype/pr_id_start.h: Likewise.
99311         * lib/unictype/pr_ideographic.h: Likewise.
99312         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99313         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99314         * lib/unictype/pr_ignorable_control.h: Likewise.
99315         * lib/unictype/pr_iso_control.h: Likewise.
99316         * lib/unictype/pr_join_control.h: Likewise.
99317         * lib/unictype/pr_left_of_pair.h: Likewise.
99318         * lib/unictype/pr_line_separator.h: Likewise.
99319         * lib/unictype/pr_logical_order_exception.h: Likewise.
99320         * lib/unictype/pr_lowercase.h: Likewise.
99321         * lib/unictype/pr_math.h: Likewise.
99322         * lib/unictype/pr_non_break.h: Likewise.
99323         * lib/unictype/pr_not_a_character.h: Likewise.
99324         * lib/unictype/pr_numeric.h: Likewise.
99325         * lib/unictype/pr_other_alphabetic.h: Likewise.
99326         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99327         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99328         * lib/unictype/pr_other_id_continue.h: Likewise.
99329         * lib/unictype/pr_other_id_start.h: Likewise.
99330         * lib/unictype/pr_other_lowercase.h: Likewise.
99331         * lib/unictype/pr_other_math.h: Likewise.
99332         * lib/unictype/pr_other_uppercase.h: Likewise.
99333         * lib/unictype/pr_paired_punctuation.h: Likewise.
99334         * lib/unictype/pr_paragraph_separator.h: Likewise.
99335         * lib/unictype/pr_pattern_syntax.h: Likewise.
99336         * lib/unictype/pr_pattern_white_space.h: Likewise.
99337         * lib/unictype/pr_private_use.h: Likewise.
99338         * lib/unictype/pr_punctuation.h: Likewise.
99339         * lib/unictype/pr_quotation_mark.h: Likewise.
99340         * lib/unictype/pr_radical.h: Likewise.
99341         * lib/unictype/pr_sentence_terminal.h: Likewise.
99342         * lib/unictype/pr_soft_dotted.h: Likewise.
99343         * lib/unictype/pr_space.h: Likewise.
99344         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99345         * lib/unictype/pr_titlecase.h: Likewise.
99346         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99347         * lib/unictype/pr_unified_ideograph.h: Likewise.
99348         * lib/unictype/pr_uppercase.h: Likewise.
99349         * lib/unictype/pr_variation_selector.h: Likewise.
99350         * lib/unictype/pr_white_space.h: Likewise.
99351         * lib/unictype/pr_xid_continue.h: Likewise.
99352         * lib/unictype/pr_xid_start.h: Likewise.
99353         * lib/unictype/pr_zero_width.h: Likewise.
99354         * lib/unictype/scripts.h: Likewise.
99355         * lib/unictype/scripts_byname.gperf: Likewise.
99356         * lib/unictype/sy_c_ident.h: Likewise.
99357         * lib/unictype/sy_c_whitespace.h: Likewise.
99358         * lib/unictype/sy_java_ident.h: Likewise.
99359         * lib/unictype/sy_java_whitespace.h: Likewise.
99361         * lib/unictype/Makefile: New file.
99362         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99363         glibc.
99364         * lib/unictype/3level.h: New file, copied from glibc.
99365         * lib/unictype/3levelbit.h: New file.
99367 2007-11-11  Bruno Haible  <bruno@clisp.org>
99369         * modules/gperf: New file.
99370         * modules/iconv_open (Depends-on): Add it.
99371         (Makefile.am): Remove the GPERF definition.
99373 2007-11-11  Bruno Haible  <bruno@clisp.org>
99375         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99376         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99378 2007-11-11  Bruno Haible  <bruno@clisp.org>
99380         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99381         (usage): Remove function.
99383 2007-11-11  Bruno Haible  <bruno@clisp.org>
99385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99386         gl_FUNC_CEILF_LIBS.
99387         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99388         gl_FUNC_CEIL_LIBS.
99389         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99390         gl_FUNC_CEILL_LIBS.
99391         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99392         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99393         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99395 2007-11-11  Bruno Haible  <bruno@clisp.org>
99397         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99398         roundf were declared but do not exist on functions.
99399         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99400         roundl were declared but do not exist on functions.
99401         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99402         HAVE_FLOORL_AND_CEILL, respectively.
99403         Needed for Sun C on Solaris 10.
99405 2007-11-11  Bruno Haible  <bruno@clisp.org>
99407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99408         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99409         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99410         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99411         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99412         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99413         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99414         HAVE_DECL_ROUNDF.
99415         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99416         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99418         of HAVE_DECL_ROUND*.
99419         * modules/math (Makefile.am): Update.
99421 2007-11-10  Bruno Haible  <bruno@clisp.org>
99423         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99424         ptrdiff_t as m4/intl.m4.
99426 2007-11-10  Jim Meyering  <meyering@redhat.com>
99428         Avoid link failure for the argmatch test.
99429         * tests/test-argmatch.c (usage): Define function to avoid a link
99430         failure: argmatch_die requires a usage function.
99432 2007-11-09  Bruno Haible  <bruno@clisp.org>
99434         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99435         * doc/functions/vsnprintf.texi: Likewise.
99436         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99437         with a size argument < 2.
99439 2007-11-09  Bruno Haible  <bruno@clisp.org>
99441         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99442         buffer. Fixes an inefficiency introduced on 2007-11-03.
99444 2007-11-09  Bruno Haible  <bruno@clisp.org>
99446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99447         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99449 2007-11-08  Jim Meyering  <meyering@redhat.com>
99451         Change cache variable name prefix "jm_" to "gl_" everywhere.
99452         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99453         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99454         * m4/uptime.m4: s/gl_/jm_/
99456 2007-11-07  Bruno Haible  <bruno@clisp.org>
99458         Update to GNU gettext 0.17.
99459         * m4/intl.m4: Update to GNU gettext 0.17.
99460         * m4/po.m4: Likewise.
99461         * modules/gettext (Files): Remove m4/ulonglong.m4.
99462         (configure.ac): Require gettext infrastructure from version 0.17.
99464 2007-11-06  Bruno Haible  <bruno@clisp.org>
99466         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99467         symbolic values are not defined in a public header.
99468         * lib/freadable.c (freadable) [QNX]: Likewise.
99469         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99470         * lib/freading.c (freading) [QNX]: Likewise.
99471         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99472         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99473         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99474         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99475         Reported by Alain Magloire.
99477         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99479 2007-11-05  Bruno Haible  <bruno@clisp.org>
99481         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99482         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99483         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99484         Reported by Eric Blake.
99486 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99487             Bruno Haible  <bruno@clisp.org>
99489         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99490         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99491         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99492         (malloc): Undefine also before including <stdlib.h>.
99493         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99494         Needed on OSF/1 4.0.
99496 2007-11-05  Jim Meyering  <meyering@redhat.com>
99498         git-version-gen: sync from coreutils.
99499         * build-aux/git-version-gen: Add comments.
99500         Change the first '-' to '.' in the snapshot version string,
99501         e.g., 6.9-377-08144 -> 6.9.377-08144
99502         Remove first parameter.
99503         Don't declare a version "-dirty" merely because a time
99504         stamp has changed.
99506 2007-11-04  Bruno Haible  <bruno@clisp.org>
99508         * lib/lock.h: Protect all macro definitions containing an 'if'
99509         statement through a "do { ... } while (0)".
99510         * lib/tls.h: Likewise.
99512 2007-11-04  Bruno Haible  <bruno@clisp.org>
99514         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
99516 2007-11-04  Bruno Haible  <bruno@clisp.org>
99518         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
99519         * modules/fprintf-posix (Depends-on): Add nocrash.
99520         * modules/snprintf-posix (Depends-on): Likewise.
99521         * modules/sprintf-posix (Depends-on): Likewise.
99522         * modules/vasnprintf-posix (Depends-on): Likewise.
99523         * modules/vasprintf-posix (Depends-on): Likewise.
99524         * modules/vfprintf-posix (Depends-on): Likewise.
99525         * modules/vsnprintf-posix (Depends-on): Likewise.
99526         * modules/vsprintf-posix (Depends-on): Likewise.
99527         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
99528         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
99529         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
99530         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
99531         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
99532         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
99533         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
99535 2007-11-04  Bruno Haible  <bruno@clisp.org>
99537         * modules/nocrash: New file.
99538         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
99539         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
99541 2007-11-04  Bruno Haible  <bruno@clisp.org>
99543         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
99544         precision handling.
99545         * tests/test-vasprintf-posix.c (test_function): Likewise.
99546         * tests/test-snprintf-posix.h (test_function): Likewise.
99547         * tests/test-sprintf-posix.h (test_function): Likewise.
99549         Fix *printf behaviour for large precisions on mingw and BeOS.
99550         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
99551         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
99552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
99553         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99554         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99555         gl_PRINTF_PRECISION and test its result. Invoke
99556         gl_PREREQ_VASNPRINTF_PRECISION.
99557         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99558         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99564         * doc/functions/fprintf.texi: Update.
99565         * doc/functions/printf.texi: Update.
99566         * doc/functions/snprintf.texi: Update.
99567         * doc/functions/sprintf.texi: Update.
99568         * doc/functions/vfprintf.texi: Update.
99569         * doc/functions/vprintf.texi: Update.
99570         * doc/functions/vsnprintf.texi: Update.
99571         * doc/functions/vsprintf.texi: Update.
99573 2007-11-04  Bruno Haible  <bruno@clisp.org>
99575         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
99577 2007-11-04  Bruno Haible  <bruno@clisp.org>
99579         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
99580         Reported by Sylvain Beucler <beuc@gnu.org>.
99582 2007-11-03  Bruno Haible  <bruno@clisp.org>
99584         * tests/test-fprintf-posix2.sh: New file.
99585         * tests/test-fprintf-posix2.c: New file.
99586         * modules/fprintf-posix-tests (Files): Add them.
99587         (TESTS): Add test-fprintf-posix2.sh.
99588         (configure.ac): Check for getrlimit and setrlimit.
99589         (check_PROGRAMS): Add test-fprintf-posix2.
99591         * tests/test-printf-posix2.sh: New file.
99592         * tests/test-printf-posix2.c: New file.
99593         * modules/printf-posix-tests (Files): Add them.
99594         (TESTS): Add test-printf-posix2.sh.
99595         (configure.ac): Check for getrlimit and setrlimit.
99596         (check_PROGRAMS): Add test-printf-posix2.
99598         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99599         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99600         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99601         (decode_double): New function, copied from decode_long_double.
99602         (scale10_round_decimal_decoded): New function, extracted from
99603         scale10_round_decimal_long_double.
99604         (scale10_round_decimal_long_double): Use it.
99605         (scale10_round_decimal_double): New function.
99606         (floorlog10): New function.
99607         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
99609         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99611         gl_PRINTF_ENOMEM and test its result. Invoke
99612         gl_PREREQ_VASNPRINTF_ENOMEM.
99613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99620         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99621         * modules/snprintf-posix (Depends-on): Likewise.
99622         * modules/sprintf-posix (Depends-on): Likewise.
99623         * modules/vasnprintf-posix (Depends-on): Likewise.
99624         * modules/vasprintf-posix (Depends-on): Likewise.
99625         * modules/vfprintf-posix (Depends-on): Likewise.
99626         * modules/vsnprintf-posix (Depends-on): Likewise.
99627         * modules/vsprintf-posix (Depends-on): Likewise.
99628         * doc/functions/fprintf.texi: Update.
99629         * doc/functions/printf.texi: Update.
99630         * doc/functions/snprintf.texi: Update.
99631         * doc/functions/sprintf.texi: Update.
99632         * doc/functions/vfprintf.texi: Update.
99633         * doc/functions/vprintf.texi: Update.
99634         * doc/functions/vsnprintf.texi: Update.
99635         * doc/functions/vsprintf.texi: Update.
99637 2007-11-03  Bruno Haible  <bruno@clisp.org>
99639         * modules/frexp-nolibm-tests: New file.
99641         * modules/frexp-nolibm: New file.
99642         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99644 2007-11-03  Bruno Haible  <bruno@clisp.org>
99646         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99647         value is C99 compliant.
99648         Needed for OSF/1 5.1.
99650 2007-11-03  Bruno Haible  <bruno@clisp.org>
99652         Fix out-of-memory handling of vasnprintf.
99653         * lib/printf-parse.c: Include <errno.h>.
99654         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99655         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99656         is already set.
99658 2007-11-02  Eric Blake  <ebb9@byu.net>
99660         Fix tests on cygwin.
99661         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99663 2007-11-01  Bruno Haible  <bruno@clisp.org>
99665         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99666         warning.
99667         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99668         needed for POSIX compatibility.
99670 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99672         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99673         for compatibility with GNU.
99675 2007-11-01  Bruno Haible  <bruno@clisp.org>
99677         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99678         (putenv): Renamed from rpl_putenv. Change argument type from
99679         'const char *' to 'char *'.
99680         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99681         of defining putenv in config.h, just set REPLACE_PUTENV.
99682         * modules/putenv (Depends-on): Add stdlib.
99683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99684         (Include): Use <stdlib.h>.
99685         * lib/stdlib.in.h (putenv): New declaration.
99686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99687         REPLACE_PUTENV.
99688         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99689         REPLACE_PUTENV.
99690         Needed for MacOS X 10.5.0.
99691         Reported by Peter O'Gorman <peter@pogma.com>.
99693 2007-11-01  Jim Meyering  <meyering@redhat.com>
99695         Treat an empty date string exactly like "0".
99696         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99697         if the remaining date string (to be parsed) is empty, use "0".
99698         Reported by Mischa Molhoek and discussed in this thread:
99699         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99701 2007-10-31  Bruno Haible  <bruno@clisp.org>
99703         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99704         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99705         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99706         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99707         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99708         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99710 2007-10-31  Bruno Haible  <bruno@clisp.org>
99712         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99713         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99714         (AC_TYPE_LONG_LONG_INT): Use it.
99715         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99716         it as well.
99717         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99718         to m4/longlong.m4.
99719         * modules/stdint (Files): Remove m4/ulonglong.m4.
99720         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99721         m4/ulonglong.m4.
99722         * modules/strtoumax (Files): Likewise.
99724 2007-10-30  Bruno Haible  <bruno@clisp.org>
99726         * modules/xvasprintf-posix: New file.
99727         Suggested by Eric Blake.
99729 2007-10-30  Bruno Haible  <bruno@clisp.org>
99731         * modules/xprintf-posix-tests: New file.
99732         * tests/test-xprintf-posix.sh: New file.
99733         * tests/test-xprintf-posix.c: New file.
99734         * tests/test-xfprintf-posix.c: New file.
99736         * modules/xprintf-posix: New file.
99738 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99740         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99741         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99742         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99744 2007-10-29  Bruno Haible  <bruno@clisp.org>
99746         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99747         contain the special marker '_cv_'.
99748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99749         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99750         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99751         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99752         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99753         Reported by Ralf Wildenhues.
99755 2007-10-29  Bruno Haible  <bruno@clisp.org>
99757         * gnulib-tool (func_import): When --lgpl is not specified, set
99758         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99759         GPLv3.
99760         Reported by Simon Josefsson.
99762 2007-10-28  Bruno Haible  <bruno@clisp.org>
99764         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99765         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99766         HAVE_DECL_ISFINITE.
99767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99768         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99769         HAVE_DECL_ISFINITE.
99771 2007-10-28  Bruno Haible  <bruno@clisp.org>
99773         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99774         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99776 2007-10-28  Bruno Haible  <bruno@clisp.org>
99778         Fix link errors with Sun C 5.0 on Solaris 10.
99779         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99780         function is declared but not present in the compiler's libm.
99781         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99782         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99783         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99784         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99785         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99786         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99787         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99789         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99790         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99791         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99792         HAVE_DECL_FLOORL.
99794 2007-10-28  Bruno Haible  <bruno@clisp.org>
99796         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99797         gl_FUNC_FLOORL. Cache the result.
99798         (gl_FUNC_FLOORL): Use it.
99799         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99800         gl_FUNC_CEILL. Cache the result.
99801         (gl_FUNC_CEILL): Use it.
99803         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99804         gl_FUNC_FLOOR. Cache the result.
99805         (gl_FUNC_FLOOR): Use it.
99806         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99807         gl_FUNC_CEIL. Cache the result.
99808         (gl_FUNC_CEIL): Use it.
99810         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99811         gl_FUNC_FLOORF. Cache the result.
99812         (gl_FUNC_FLOORF): Use it.
99813         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99814         gl_FUNC_CEILF. Cache the result.
99815         (gl_FUNC_CEILF): Use it.
99817 2007-10-28  Bruno Haible  <bruno@clisp.org>
99819         * gnulib-tool: Allow specifying the LGPL version number through
99820         --lgpl=2 or --lgpl=3.
99821         (func_usage): Document --lgpl with argument.
99822         Handle --lgpl=... arguments.
99823         (func_import): Recognize also gl_LGPL calls with an argument. When
99824         --lgpl=2 is used and the module's license is just LGPL, report an
99825         error. Set sed_transform_lib_file according to the lgpl variable. In
99826         the generated files, use --lgpl or gl_LGPL invocations with argument,
99827         if necessary.
99828         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99829         an LGPv2+ license.
99830         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99831         gl_LGPL macro.
99833 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99834             Bruno Haible  <bruno@clisp.org>
99836         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99837         (u16_uctomb_aux): Likewise.
99838         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99839         !HAVE_INLINE.
99840         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99842 2007-10-28  Bruno Haible  <bruno@clisp.org>
99844         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99845         Invoke AM_GETTEXT_OPTION if it exists.
99846         * modules/vasprintf: Likewise.
99847         * modules/verror: Likewise.
99848         * modules/xprintf: Likewise.
99849         * modules/xvasprintf: Likewise.
99851 2007-10-27  Ben Pfaff  <blp@gnu.org>
99853         * lib/math.in.h: Define isfinite macro and prototypes for
99854         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99855         implementations.
99856         * m4/math_h.m4: New substitutions for isfinite module.
99857         * lib/isfinite.c: New file.
99858         * m4/isfinite.m4: New file.
99859         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99860         * modules/isfinite: New file.
99861         * modules/isfinite-tests: New file.
99862         * tests/tests-isfinite.c: New file.
99863         * doc/functions/isfinite.texi: Mention isfinite module.
99864         * MODULES.html.sh: Mention new module.
99866 2007-10-27  Ben Pfaff  <blp@gnu.org>
99868         Ralf Wildenhues reported that Tru64 4.0D declares the round
99869         functions but does not have definitions.
99870         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99871         cannot be found in any library, set the output variable to
99872         "missing" instead of "".
99873         * m4/round.m4: Also use our substitute if we cannot find round in
99874         any library, even if it is declared.
99875         * m4/roundf.m4: Likewise for roundf.
99876         * m4/roundl.m4: Likewise for roundl.
99877         * lib/math.in.h: Undefine roundf, round, roundl before defining
99878         their replacements, to allow for hypothetical systems where these
99879         may be defined as macros but not available in libraries.
99881 2007-10-27  Bruno Haible  <bruno@clisp.org>
99883         * doc/gnulib.texi: Invoke @firstparagraphindent.
99884         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99885         changes in gnulib.
99886         (Source changes): New section.
99888 2007-10-26  Bruno Haible  <bruno@clisp.org>
99890         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99891         borrowed from autoconf.
99893 2007-10-26  Bruno Haible  <bruno@clisp.org>
99895         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99896         strerror returned the empty string. Needed on HP-UX 11.00.
99898 2007-10-24  Micah Cowan  <micah@cowan.name>
99900         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99901         * build-aux/bootstrap: Remove support for now-unnecessary option,
99902         --cvs-user, and envvars CVS_USER, CVS_RSH.
99904 2007-10-24  Jim Meyering  <meyering@redhat.com>
99906         Avoid diagnostics from sha1sum when there is no cached checksum.
99907         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99908         if the po.s1 file hasn't been created yet.
99910         * build-aux/bootstrap: Sync from coreutils:
99911         2007-10-24  Jim Meyering  <meyering@redhat.com>
99912         Get gnulib from the git repository, not from an obsolete cvs one.
99913         * build-aux/bootstrap: Suggestion from Micah Cowan.
99914         2007-10-04  Jim Meyering  <jim@meyering.net>
99915         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99916         (update_po_files): Work also when there are no .po files in po/.
99918 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99920         * README: Append ".git" to git and cg examples.
99921         Problem reported by Benoit Sigoure.
99923 2007-10-23  Micah Cowan  <micah@cowan.name>
99925         * users.txt: Add wget.
99927 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99929         Fix linking of some unistdio tests on FreeBSD.
99930         * modules/unistdio/u16-vsnprintf-tests
99931         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99932         * modules/unistdio/u16-vsprintf-tests
99933         (test_u16_vsnprintf1_LDADD): Likewise.
99934         * modules/unistdio/u32-vsnprintf-tests
99935         (test_u32_vsnprintf1_LDADD): Likewise.
99936         * modules/unistdio/u32-vsprintf-tests
99937         (test_u32_vsprintf1_LDADD): Likewise.
99938         * modules/unistdio/u8-vsnprintf-tests
99939         (test_u8_vsnprintf1_LDADD): Likewise.
99940         * modules/unistdio/u8-vsprintf-tests
99941         (test_u8_vsprintf1_LDADD): Likewise.
99942         * modules/unistdio/ulc-vsnprintf-tests
99943         (test_ulc_vsnprintf1_LDADD): Likewise.
99944         * modules/unistdio/ulc-vsprintf-tests
99945         (test_ulc_vsprintf1_LDADD): Likewise.
99947         Fix linking of some uniconv tests on FreeBSD.
99948         * modules/uniconv/u16-conv-from-enc-tests
99949         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99950         * modules/uniconv/u16-conv-to-enc-tests
99951         (test_u16_conv_to_enc_LDADD): Likewise.
99952         * modules/uniconv/u16-strconv-from-enc-tests
99953         (test_u16_strconv_from_enc_LDADD): Likewise.
99954         * modules/uniconv/u16-strconv-to-enc-tests
99955         (test_u16_strconv_to_enc_LDADD): Likewise.
99956         * modules/uniconv/u32-conv-from-enc-tests
99957         (test_u32_conv_from_enc_LDADD): Likewise.
99958         * modules/uniconv/u32-conv-to-enc-tests
99959         (test_u32_conv_to_enc_LDADD): Likewise.
99960         * modules/uniconv/u32-strconv-from-enc-tests
99961         (test_u32_strconv_from_enc_LDADD): Likewise.
99962         * modules/uniconv/u32-strconv-to-enc-tests
99963         (test_u32_strconv_to_enc_LDADD): Likewise.
99964         * modules/uniconv/u8-conv-from-enc-tests
99965         (test_u8_conv_from_enc_LDADD): Likewise.
99966         * modules/uniconv/u8-conv-to-enc-tests
99967         (test_u8_conv_to_enc_LDADD): Likewise.
99968         * modules/uniconv/u8-strconv-from-enc-tests
99969         (test_u8_strconv_from_enc_LDADD): Likewise.
99970         * modules/uniconv/u8-strconv-to-enc-tests
99971         (test_u8_strconv_to_enc_LDADD): Likewise.
99973 2007-10-22  Bruno Haible  <bruno@clisp.org>
99975         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99976         size.
99978 2007-10-22  Eric Blake  <ebb9@byu.net>
99980         Tweak x*printf documentation.
99981         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99982         variable name and comments.
99983         Suggested by Bruno Haible.
99985 2007-10-22  Bruno Haible  <bruno@clisp.org>
99987         * lib/acl.c (copy_acl): Fix file name in comment.
99989 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99991         Fix Tru64 problem with stdbool.h.
99992         * lib/stdbool.in.h (false, true):
99993         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99994         Don't declare as an enum in this situation; it runs afoul of Tru64.
99995         Problem reported by Steven M. Schweda in
99996         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99998 2007-10-22  Eric Blake  <ebb9@byu.net>
100000         Also wrap vf?printf.
100001         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100002         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100003         (xvprintf, xvfprintf): New functions.
100005 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100007         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100008         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100010         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100011         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100013 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100015         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100016         by Bruno Haible.
100018 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100020         * lib/getloadavg.c
100021         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100022         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100024         * tests/test-i-ring.c: Work for C89.
100026 2007-10-22  Bruno Haible  <bruno@clisp.org>
100028         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100029         -1u, in preprocessor expression, so that we don't test for the bug
100030         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100031         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100033 2007-10-22  Eric Blake  <ebb9@byu.net>
100035         * tests/test-yesno.sh: Silence stderr during test.
100037 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100039         * modules/crypto/gc-camellia: New file.
100041         * m4/gc-camellia.m4: New file.
100043         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100045         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100047 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100049         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100050         --help to stdout.  Reported by sms@antinode.org (Steven
100051         M. Schweda).
100053 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100055         * users.txt: Fix link to libksba.
100057 2007-10-21  Ben Pfaff  <blp@gnu.org>
100059         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100060         round.c roundf implementation that depends on floorf and ceilf to
100061         be tested unconditionally.
100063 2007-10-21  Ben Pfaff  <blp@gnu.org>
100065         * m4/check-libm-func.m4: Removed.
100066         * m4/check-math-lib.m4: New file.
100067         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100068         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100069         definition and lack of AC_LIBOBJ([roundf]).
100070         * m4/roundl.m4: Ditto, and similarly for roundl.
100071         * modules/round: Reference new m4 file.
100072         * modules/roundf: Ditto.
100073         * modules/roundl: Ditto.
100074         * tests/test-round2.c (main): Use ROUND instead of round.
100075         Bug report from Bruno Haible.
100077 2007-10-21  Bruno Haible  <bruno@clisp.org>
100079         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100080         context.
100082 2007-10-21  Bruno Haible  <bruno@clisp.org>
100084         * tests/test-wcwidth.c (main): Allow negative result for some control
100085         characters.
100087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100088         Needed on OSF/1 5.1.
100090 2007-10-21  Bruno Haible  <bruno@clisp.org>
100092         * tests/test-floorf1.c: Include isnanf.h.
100093         (main): Use isnanf() instead of isnan().
100094         * tests/test-ceilf1.c: Include isnanf.h.
100095         (main): Use isnanf() instead of isnan().
100096         * tests/test-truncf1.c: Include isnanf.h.
100097         (main): Use isnanf() instead of isnan().
100098         * tests/test-roundf1.c: Include isnanf.h.
100099         (main): Use isnanf() instead of isnan().
100101 2007-10-21  Eric Blake  <ebb9@byu.net>
100103         * users.txt: Update URL for m4.
100105 2007-10-21  Bruno Haible  <bruno@clisp.org>
100107         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100109 2007-10-21  Bruno Haible  <bruno@clisp.org>
100111         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100112         Git's management files if the CVS files are not present.
100114 2007-10-20  Bruno Haible  <bruno@clisp.org>
100116         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100117         gcc-3.4.x.
100119 2007-10-20  Ben Pfaff  <blp@gnu.org>
100121         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100122         implementations.
100123         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100124         * lib/round.c: New file.
100125         * lib/roundf.c: New file.
100126         * lib/roundl.c: New file.
100127         * m4/round.m4: New file.
100128         * m4/roundf.m4: New file.
100129         * m4/roundl.m4: New file.
100130         * m4/check-libm-func-m4: New file.
100131         * modules/math: Replace round, roundf, roundl related @VARS@ in
100132         math.in.h.
100133         * modules/round: New file.
100134         * modules/round-tests: New file.
100135         * modules/roundf: New file.
100136         * modules/roundf-tests: New file.
100137         * modules/roundl: New file.
100138         * modules/roundl-tests: New file.
100139         * tests/test-round1.c: New file.
100140         * tests/test-round2.c: New file.
100141         * tests/test-roundf1.c: New file.
100142         * tests/test-roundf2.c: New file.
100143         * tests/test-roundl.c: New file.
100144         * doc/functions/round.texi: Mention round module.
100145         * doc/functions/roundf.texi: Mention roundf module.
100146         * doc/functions/roundl.texi: Mention roundl module.
100147         * MODULES.html.sh: Mention new modules.
100148         Thanks to Bruno Haible for suggestions.
100150 2007-10-20  Jim Meyering  <meyering@redhat.com>
100152         * lib/xprintf.c: Include <config.h> unconditionally.
100154         Change xprintf's license to GPL.
100155         * modules/xprintf (License): s/LGPL/GPL/, since this module
100156         depends on modules (exit and exitfail) which are GPL.
100157         Suggestion from Bruno Haible.
100159         xprintf fixes.
100160         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100161         Use a clearer diagnostic.
100162         Patch from Bruno Haible.
100164 2007-10-20  Bruno Haible  <bruno@clisp.org>
100166         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100167         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100170 2007-10-20  Bruno Haible  <bruno@clisp.org>
100172         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100173         precision in the comparison result > x - 1 or similar.
100174         * tests/test-ceilf2.c (correct_result_p): Likewise.
100175         * tests/test-truncf2.c (correct_result_p): Likewise.
100176         * tests/test-trunc2.c (correct_result_p): Likewise.
100177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100179 2007-10-20  Bruno Haible  <bruno@clisp.org>
100181         * modules/ceil: New file.
100182         * m4/ceil.m4: New file.
100183         * doc/functions/ceil.texi: Mention the 'ceil' module.
100185 2007-10-20  Bruno Haible  <bruno@clisp.org>
100187         * modules/floor: New file.
100188         * m4/floor.m4: New file.
100189         * doc/functions/floor.texi: Mention the 'floor' module.
100191 2007-10-20  Bruno Haible  <bruno@clisp.org>
100193         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100194         of %a.
100195         * modules/floorf-tests (Depends-on): Likewise.
100196         * modules/truncf-tests (Depends-on): Likewise.
100197         * modules/trunc-tests (Depends-on): Likewise.
100198         Reported by Ben Pfaff.
100200 2007-10-19  Jim Meyering  <meyering@redhat.com>
100202         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100203         Don't bother testing specific errno values.  Just test ferror.
100205         New module: xprintf
100206         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100208 2007-10-19  Bruno Haible  <bruno@clisp.org>
100210         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100211         syntax.
100212         * modules/javaexec (Makefile.am): Likewise.
100213         * modules/relocatable-prog (Makefile.am): Likewise.
100214         Suggested by Jim Meyering.
100216 2007-10-18  Bruno Haible  <bruno@clisp.org>
100218         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100219         Reported by Jim Meyering.
100221 2007-10-18  Eric Blake  <ebb9@byu.net>
100223         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100225 2007-10-18  Bruno Haible  <bruno@clisp.org>
100227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100228         the format string into writable memory. Needed in Fortify conditions.
100230 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100231             Bruno Haible  <bruno@clisp.org>
100233         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100234         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100235         * modules/trim (Depends-on): Add mbchar.
100236         (configure.ac): Add gl_FUNC_MBRTOWC.
100237         (Makefile.am): Augment lib_SOURCES.
100239 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100241         Modify glob.c to use fstatat and dirfd, to simplify it.
100242         Suggested by Eric Blake.
100243         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100244         Don't include <stdbool.h>; not used.
100245         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100246         (link_exists_p): Simplify implementation, since we can now assume
100247         dirfd and fstatat.
100248         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100250 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100252         * gnulib-tool (func_get_dependencies): Fix sed script to
100253         match only tests.
100255 2007-10-17  Bruno Haible  <bruno@clisp.org>
100257         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100258         allow locale names without encoding suffix.
100259         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100262 2007-10-16  Bruno Haible  <bruno@clisp.org>
100264         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100265         * lib/getgroups.c (getgroups): Likewise.
100266         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100268 2007-10-16  Bruno Haible  <bruno@clisp.org>
100270         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100271         * modules/malloc-posix (License): Likewise.
100272         * modules/realloc-posix (License): Likewise.
100273         * modules/calloc-posix (License): Likewise.
100274         * modules/intprops (License): Change from GPL to LGPL, with
100275         Paul Eggert's approval.
100277 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100279         Merge glibc changes into lib/glob.c.
100281         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100282         2007-10-15 04:59:03 UTC.  Here are the changes:
100284         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100286         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100288         * lib/glob.c: Add some branch prediction throughout.
100290         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100292         [BZ #5103]
100293         * lib/glob.c (glob): Recognize patterns starting \/.
100295         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100297         [BZ #3996]
100298         * lib/glob.c (attribute_hidden): Define if not defined.
100299         (glob): Unescape dirname, filename or username when needed and not
100300         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100301         is NULL.  Handle unescaped [ in pattern without closing ].
100302         Don't pass GLOB_CHECK down to recursive glob for directories.
100303         (__glob_pattern_type): New function.
100304         (__glob_pattern_p): Implement using __glob_pattern_type.
100305         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100306         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100307         Remove unreachable code.
100309         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100311         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100312         explain why there are no leaks.
100314         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100316         [BZ #3253]
100317         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100318         time, rather allocate increasingly bigger arrays of pointers, if
100319         possible with alloca, if too large with malloc.
100321 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100323         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100324         Problem reported by H.Merijn Brand in
100325         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100326         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100327         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100329 2007-10-15  Bruno Haible  <bruno@clisp.org>
100331         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100332         with explicit rpl_ prefix.
100333         * lib/fopen.c (fopen): Likewise.
100334         * lib/freopen.c (freopen): Likewise.
100335         * lib/iconv.c (iconv): Likewise.
100336         * lib/iconv_close.c (iconv_close): Likewise.
100338 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100340         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100342 2007-10-15  Bruno Haible  <bruno@clisp.org>
100344         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100345         <stddef.h> instead of <stdlib.h> since we only need NULL.
100346         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100348 2007-10-15  Bruno Haible  <bruno@clisp.org>
100350         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100351         Replace paragraph talking about LIBOBJS.
100352         Reported by Colin Watson <cjwatson@debian.org>.
100354 2007-10-15  Bruno Haible  <bruno@clisp.org>
100356         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100357         <stdlib.h> before using NULL.
100359 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100361         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100362         Reported by Albert Chin <china@thewrittenword.com>.
100364 2007-10-14  Bruno Haible  <bruno@clisp.org>
100366         * modules/iconv_open-utf-tests: New file.
100367         * tests/test-iconv-utf.c: New file.
100369         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100370         * modules/iconv_open-utf: New file.
100371         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100372         (iconv, iconv_close): New declarations.
100373         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100374         be defined.
100375         (iconv_open): Add special handling of conversion between UTF-8 and
100376         UTF-{16,32}{BE,LE}.
100377         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100378         * lib/iconv_close.c: New file.
100379         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100380         gl_FUNC_ICONV_OPEN.
100381         (gl_FUNC_ICONV_OPEN): Use it.
100382         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100383         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100384         and REPLACE_ICONV_UTF.
100385         * modules/iconv_open (Depends-on): Add c-strcase.
100386         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100387         ICONV_CONST.
100388         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100390 2007-10-13  Albert Chin  <china@thewrittenword.com>
100391             Bruno Haible  <bruno@clisp.org>
100393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100394         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100396 2007-10-13  Bruno Haible  <bruno@clisp.org>
100398         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100399         defined, use the ISO C99 inline semantics.
100400         * lib/argp.h (ARGP_EI): Likewise.
100402 2007-10-13  Bruno Haible  <bruno@clisp.org>
100404         Handle 'inline' change in gcc 4.3.0.
100405         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100406         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100407         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100408         argp_fmtstream_point): Disable 'extern' declaration if the function
100409         definition is going to be provided inline.
100410         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100411         semantics, not the ISO C99 inline semantics.
100412         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100413         'extern' declaration if the function definition is going to be provided
100414         inline.
100415         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100416         the GNU C inline semantics, not the ISO C99 inline semantics. With
100417         GCC 4.2, avoid a warning.
100419 2007-10-13  Bruno Haible  <bruno@clisp.org>
100421         * lib/freading.h (freading): Enable the use of __freading for
100422         glibc >= 2.7.
100423         * lib/freading.c (freading): Likewise.
100425 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100427         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100428         "warning: C99 inline functions are not supported; using GNU89".
100430 2007-10-12  Bruno Haible  <bruno@clisp.org>
100432         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100433         of 2.
100434         * tests/test-ceilf2.c: New file.
100435         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100437         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100438         * modules/ceilf-tests: Update.
100440 2007-10-12  Bruno Haible  <bruno@clisp.org>
100442         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100443         of 2.
100444         * tests/test-floorf2.c: New file.
100445         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100447         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100448         * modules/floorf-tests: Update.
100450 2007-10-12  Bruno Haible  <bruno@clisp.org>
100452         * tests/test-trunc2.c: New file.
100453         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100455         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100456         * modules/trunc-tests: Update.
100458 2007-10-12  Bruno Haible  <bruno@clisp.org>
100460         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100461         of 2.
100462         * tests/test-truncf2.c: New file.
100463         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100465         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100466         * modules/truncf-tests: Update.
100468 2007-10-11  Eric Blake  <ebb9@byu.net>
100470         Don't claim strerror is broken on Interix.
100471         * doc/functions/strerror.texi (strerror): Known broken systems are
100472         now Solaris 8, and not Interix.
100473         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100474         Interix on cross-compile.
100475         Reported by Martin Koeppe in
100476         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100478 2007-10-11  Bruno Haible  <bruno@clisp.org>
100480         * modules/i-ring-tests: New file.
100481         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100482         instead of assert.
100484 2007-10-11  Bruno Haible  <bruno@clisp.org>
100486         * modules/filenamecat-tests: New file.
100487         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100488         * lib/filenamecat.c: Remove test code.
100490 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100492         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100494         * lib/strerror.c: Include <string.h> always, to test interface,
100495         and to remove the need for the dummy.
100496         Include intprops.h to compute width instead of doing it ourselves
100497         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100498         (strerror): Define it to return NULL if there's no system strerror.
100499         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100500         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100501         ancient pre-strerror Unix systems well any more.  Saying "unknown
100502         system error" is enough.
100503         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100504         simpler strerror.c implementation.
100505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100506         Simplify the tests to reflect the simpler strerror implementation.
100507         * modules/strerror (Depends-on): Add intprops.
100509 2007-10-09  Eric Blake  <ebb9@byu.net>
100511         Silence test-fpending.
100512         * modules/fpending-tests (Files): Add wrapper script.
100513         * tests/test-fpending.sh: New file.
100515 2007-10-09  Bruno Haible  <bruno@clisp.org>
100517         * MODULES.html.sh (func_module): Don't create a hyperlink for
100518         function names like 'printf_frexp'.
100519         (Misc): Add crc, memxor.
100520         (Characteristics of floating types): New section.
100521         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
100522         isnanf-nolibm, signbit, trunc, truncf, truncl.
100523         (Enhancements for ISO C 99 functions): New subsection Input/output.
100524         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
100525         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
100526         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
100527         (Compatibility checks for POSIX:2001 functions): Add clock-time.
100528         (Enhancements for POSIX:2001 functions): Add chdir-long.
100529         (File system functions): Add areadlink, chdir-safer, read-file.
100530         Remove cycle-check.
100531         (File system as inode set): New section.
100532         (Date and time): Add gethrxtime.
100533         (Multithreading): Add openmp.
100534         (Internationalization functions): Add localename.
100535         (Unicode string functions): Add unistr/u*-mbsnlen.
100536         (Support for maintaining and releasing projects): Add git-version-gen.
100537         (Lone files): Remove directories.
100539 2007-10-08  Ben Pfaff  <blp@gnu.org>
100541         * lib/xmalloca.h: Fix typo in comment.
100543 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100545         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
100546         when avoiding problems with integer overflow.  Use a portable test
100547         instead.
100549 2007-10-08  Simon Josefsson  <simon@josefsson.org>
100551         * modules/dummy (License): Change to LGPLv2+.
100552         * modules/float (License): Likewise
100553         * modules/realloc (License): Likewise
100554         * modules/stdlib (License): Likewise
100556 2007-10-07  Bruno Haible  <bruno@clisp.org>
100558         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
100559         * floor.c (TWO_MANT_DIG): Likewise.
100560         * ceil.c (TWO_MANT_DIG): Likewise.
100561         Reported by Ben Pfaff.
100563 2007-10-07  Bruno Haible  <bruno@clisp.org>
100565         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
100566         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
100567         * lib/frexp.c (FUNC): Likewise.
100568         * lib/printf-frexp.h (printf_frexp): Likewise.
100569         * lib/printf-frexpl.h (printf_frexpl): Likewise.
100570         * lib/printf-frexp.c (FUNC): Likewise.
100571         Suggested by Jim Meyering.
100573 2007-10-07  Jim Meyering  <meyering@redhat.com>
100575         Make xnanosleep's integer overflow test more robust.
100576         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
100577         so that gcc-4.3.0 doesn't optimize away this test for overflow.
100579 2007-10-07  Bruno Haible  <bruno@clisp.org>
100581         * NEWS: Mention the license change.
100583         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
100584         abbreviations in the modules files.
100586         Change copyright notice from GPLv2+ to GPLv3+.
100587         * README: Change copyright notice.
100588         * MODULES.html.sh: Likewise.
100589         * build-aux/bootstrap.conf: Likewise.
100590         * build-aux/config.libpath: Likewise.
100591         * build-aux/csharpcomp.sh.in: Likewise.
100592         * build-aux/csharpexec.sh.in: Likewise.
100593         * build-aux/install-reloc: Likewise.
100594         * build-aux/javacomp.sh.in: Likewise.
100595         * build-aux/javaexec.sh.in: Likewise.
100596         * build-aux/ldd.sh.in: Likewise.
100597         * build-aux/reloc-ldflags: Likewise.
100598         * build-aux/relocatable.sh.in: Likewise.
100599         * build-aux/x-to-1.in: Likewise.
100600         * check-module: Likewise.
100601         * config/srclistvars.sh: Likewise.
100602         * gnulib-tool: Likewise.
100603         * lib/acl-internal.h: Likewise.
100604         * lib/acl.c: Likewise.
100605         * lib/acl.h: Likewise.
100606         * lib/acl_entries.c: Likewise.
100607         * lib/areadlink-with-size.c: Likewise.
100608         * lib/areadlink.c: Likewise.
100609         * lib/areadlink.h: Likewise.
100610         * lib/argmatch.c: Likewise.
100611         * lib/argmatch.h: Likewise.
100612         * lib/argp-ba.c: Likewise.
100613         * lib/argp-eexst.c: Likewise.
100614         * lib/argp-fmtstream.c: Likewise.
100615         * lib/argp-fmtstream.h: Likewise.
100616         * lib/argp-fs-xinl.c: Likewise.
100617         * lib/argp-help.c: Likewise.
100618         * lib/argp-namefrob.h: Likewise.
100619         * lib/argp-parse.c: Likewise.
100620         * lib/argp-pin.c: Likewise.
100621         * lib/argp-pv.c: Likewise.
100622         * lib/argp-pvh.c: Likewise.
100623         * lib/argp-xinl.c: Likewise.
100624         * lib/argp.h: Likewise.
100625         * lib/at-func.c: Likewise.
100626         * lib/atanl.c: Likewise.
100627         * lib/backupfile.c: Likewise.
100628         * lib/backupfile.h: Likewise.
100629         * lib/basename.c: Likewise.
100630         * lib/binary-io.h: Likewise.
100631         * lib/byteswap.in.h: Likewise.
100632         * lib/c-stack.c: Likewise.
100633         * lib/c-stack.h: Likewise.
100634         * lib/c-strcasestr.c: Likewise.
100635         * lib/c-strcasestr.h: Likewise.
100636         * lib/c-strstr.c: Likewise.
100637         * lib/c-strstr.h: Likewise.
100638         * lib/c-strtod.c: Likewise.
100639         * lib/calloc.c: Likewise.
100640         * lib/canon-host.c: Likewise.
100641         * lib/canon-host.h: Likewise.
100642         * lib/canonicalize-lgpl.c: Likewise.
100643         * lib/canonicalize.c: Likewise.
100644         * lib/canonicalize.h: Likewise.
100645         * lib/ceil.c: Likewise.
100646         * lib/ceilf.c: Likewise.
100647         * lib/ceill.c: Likewise.
100648         * lib/chdir-long.c: Likewise.
100649         * lib/chdir-long.h: Likewise.
100650         * lib/chdir-safer.c: Likewise.
100651         * lib/chdir-safer.h: Likewise.
100652         * lib/chown.c: Likewise.
100653         * lib/classpath.c: Likewise.
100654         * lib/classpath.h: Likewise.
100655         * lib/clean-temp.c: Likewise.
100656         * lib/clean-temp.h: Likewise.
100657         * lib/cloexec.c: Likewise.
100658         * lib/close-stream.c: Likewise.
100659         * lib/closein.c: Likewise.
100660         * lib/closein.h: Likewise.
100661         * lib/closeout.c: Likewise.
100662         * lib/closeout.h: Likewise.
100663         * lib/concat-filename.c: Likewise.
100664         * lib/copy-file.c: Likewise.
100665         * lib/copy-file.h: Likewise.
100666         * lib/count-one-bits.h: Likewise.
100667         * lib/crc.c: Likewise.
100668         * lib/crc.h: Likewise.
100669         * lib/creat-safer.c: Likewise.
100670         * lib/csharpcomp.c: Likewise.
100671         * lib/csharpcomp.h: Likewise.
100672         * lib/csharpexec.c: Likewise.
100673         * lib/csharpexec.h: Likewise.
100674         * lib/cycle-check.c: Likewise.
100675         * lib/cycle-check.h: Likewise.
100676         * lib/diacrit.c: Likewise.
100677         * lib/diacrit.h: Likewise.
100678         * lib/diffseq.h: Likewise.
100679         * lib/dirchownmod.c: Likewise.
100680         * lib/dirent.in.h: Likewise.
100681         * lib/dirfd.c: Likewise.
100682         * lib/dirfd.h: Likewise.
100683         * lib/dirname.c: Likewise.
100684         * lib/dirname.h: Likewise.
100685         * lib/dummy.c: Likewise.
100686         * lib/dup-safer.c: Likewise.
100687         * lib/dup2.c: Likewise.
100688         * lib/eealloc.h: Likewise.
100689         * lib/error.c: Likewise.
100690         * lib/error.h: Likewise.
100691         * lib/euidaccess.c: Likewise.
100692         * lib/exclude.c: Likewise.
100693         * lib/exclude.h: Likewise.
100694         * lib/execute.c: Likewise.
100695         * lib/execute.h: Likewise.
100696         * lib/exitfail.c: Likewise.
100697         * lib/exitfail.h: Likewise.
100698         * lib/expl.c: Likewise.
100699         * lib/fatal-signal.c: Likewise.
100700         * lib/fatal-signal.h: Likewise.
100701         * lib/fbufmode.c: Likewise.
100702         * lib/fbufmode.h: Likewise.
100703         * lib/fchdir.c: Likewise.
100704         * lib/fchmodat.c: Likewise.
100705         * lib/fchownat.c: Likewise.
100706         * lib/fcntl--.h: Likewise.
100707         * lib/fcntl-safer.h: Likewise.
100708         * lib/fcntl.in.h: Likewise.
100709         * lib/fd-safer.c: Likewise.
100710         * lib/fflush.c: Likewise.
100711         * lib/file-has-acl.c: Likewise.
100712         * lib/file-set.c: Likewise.
100713         * lib/file-type.c: Likewise.
100714         * lib/file-type.h: Likewise.
100715         * lib/fileblocks.c: Likewise.
100716         * lib/filemode.c: Likewise.
100717         * lib/filemode.h: Likewise.
100718         * lib/filename.h: Likewise.
100719         * lib/filenamecat.c: Likewise.
100720         * lib/filenamecat.h: Likewise.
100721         * lib/findprog.c: Likewise.
100722         * lib/findprog.h: Likewise.
100723         * lib/float.in.h: Likewise.
100724         * lib/floor.c: Likewise.
100725         * lib/floorf.c: Likewise.
100726         * lib/floorl.c: Likewise.
100727         * lib/fopen-safer.c: Likewise.
100728         * lib/fopen.c: Likewise.
100729         * lib/fpending.c: Likewise.
100730         * lib/fpending.h: Likewise.
100731         * lib/fprintf.c: Likewise.
100732         * lib/fprintftime.h: Likewise.
100733         * lib/fpucw.h: Likewise.
100734         * lib/fpurge.c: Likewise.
100735         * lib/fpurge.h: Likewise.
100736         * lib/freadable.c: Likewise.
100737         * lib/freadable.h: Likewise.
100738         * lib/freadahead.c: Likewise.
100739         * lib/freadahead.h: Likewise.
100740         * lib/freading.c: Likewise.
100741         * lib/freading.h: Likewise.
100742         * lib/free.c: Likewise.
100743         * lib/freopen.c: Likewise.
100744         * lib/frexp.c: Likewise.
100745         * lib/frexpl.c: Likewise.
100746         * lib/fseek.c: Likewise.
100747         * lib/fseterr.c: Likewise.
100748         * lib/fseterr.h: Likewise.
100749         * lib/fstatat.c: Likewise.
100750         * lib/fstrcmp.c: Likewise.
100751         * lib/fstrcmp.h: Likewise.
100752         * lib/fsusage.c: Likewise.
100753         * lib/fsusage.h: Likewise.
100754         * lib/ftell.c: Likewise.
100755         * lib/ftello.c: Likewise.
100756         * lib/fts-cycle.c: Likewise.
100757         * lib/fts.c: Likewise.
100758         * lib/fts_.h: Likewise.
100759         * lib/full-read.c: Likewise.
100760         * lib/full-read.h: Likewise.
100761         * lib/full-write.c: Likewise.
100762         * lib/full-write.h: Likewise.
100763         * lib/fwritable.c: Likewise.
100764         * lib/fwritable.h: Likewise.
100765         * lib/fwriteerror.c: Likewise.
100766         * lib/fwriteerror.h: Likewise.
100767         * lib/fwriting.c: Likewise.
100768         * lib/fwriting.h: Likewise.
100769         * lib/gcd.c: Likewise.
100770         * lib/gcd.h: Likewise.
100771         * lib/getcwd.c: Likewise.
100772         * lib/getdate.h: Likewise.
100773         * lib/getdate.y: Likewise.
100774         * lib/getdomainname.c: Likewise.
100775         * lib/getdomainname.h: Likewise.
100776         * lib/getgroups.c: Likewise.
100777         * lib/gethostname.c: Likewise.
100778         * lib/gethrxtime.c: Likewise.
100779         * lib/gethrxtime.h: Likewise.
100780         * lib/getloadavg.c: Likewise.
100781         * lib/getndelim2.c: Likewise.
100782         * lib/getndelim2.h: Likewise.
100783         * lib/getnline.c: Likewise.
100784         * lib/getnline.h: Likewise.
100785         * lib/getopt.c: Likewise.
100786         * lib/getopt.in.h: Likewise.
100787         * lib/getopt1.c: Likewise.
100788         * lib/getopt_int.h: Likewise.
100789         * lib/getpagesize.h: Likewise.
100790         * lib/getsubopt.c: Likewise.
100791         * lib/gettime.c: Likewise.
100792         * lib/getugroups.c: Likewise.
100793         * lib/getugroups.h: Likewise.
100794         * lib/getusershell.c: Likewise.
100795         * lib/gl_anyavltree_list1.h: Likewise.
100796         * lib/gl_anyavltree_list2.h: Likewise.
100797         * lib/gl_anyhash_list1.h: Likewise.
100798         * lib/gl_anyhash_list2.h: Likewise.
100799         * lib/gl_anylinked_list1.h: Likewise.
100800         * lib/gl_anylinked_list2.h: Likewise.
100801         * lib/gl_anyrbtree_list1.h: Likewise.
100802         * lib/gl_anyrbtree_list2.h: Likewise.
100803         * lib/gl_anytree_list1.h: Likewise.
100804         * lib/gl_anytree_list2.h: Likewise.
100805         * lib/gl_anytree_oset.h: Likewise.
100806         * lib/gl_anytreehash_list1.h: Likewise.
100807         * lib/gl_anytreehash_list2.h: Likewise.
100808         * lib/gl_array_list.c: Likewise.
100809         * lib/gl_array_list.h: Likewise.
100810         * lib/gl_array_oset.c: Likewise.
100811         * lib/gl_array_oset.h: Likewise.
100812         * lib/gl_avltree_list.c: Likewise.
100813         * lib/gl_avltree_list.h: Likewise.
100814         * lib/gl_avltree_oset.c: Likewise.
100815         * lib/gl_avltree_oset.h: Likewise.
100816         * lib/gl_avltreehash_list.c: Likewise.
100817         * lib/gl_avltreehash_list.h: Likewise.
100818         * lib/gl_carray_list.c: Likewise.
100819         * lib/gl_carray_list.h: Likewise.
100820         * lib/gl_linked_list.c: Likewise.
100821         * lib/gl_linked_list.h: Likewise.
100822         * lib/gl_linkedhash_list.c: Likewise.
100823         * lib/gl_linkedhash_list.h: Likewise.
100824         * lib/gl_list.c: Likewise.
100825         * lib/gl_list.h: Likewise.
100826         * lib/gl_oset.c: Likewise.
100827         * lib/gl_oset.h: Likewise.
100828         * lib/gl_rbtree_list.c: Likewise.
100829         * lib/gl_rbtree_list.h: Likewise.
100830         * lib/gl_rbtree_oset.c: Likewise.
100831         * lib/gl_rbtree_oset.h: Likewise.
100832         * lib/gl_rbtreehash_list.c: Likewise.
100833         * lib/gl_rbtreehash_list.h: Likewise.
100834         * lib/gl_sublist.c: Likewise.
100835         * lib/gl_sublist.h: Likewise.
100836         * lib/group-member.c: Likewise.
100837         * lib/group-member.h: Likewise.
100838         * lib/hard-locale.c: Likewise.
100839         * lib/hard-locale.h: Likewise.
100840         * lib/hash-pjw.c: Likewise.
100841         * lib/hash-pjw.h: Likewise.
100842         * lib/hash-triple.c: Likewise.
100843         * lib/hash.c: Likewise.
100844         * lib/hash.h: Likewise.
100845         * lib/human.c: Likewise.
100846         * lib/human.h: Likewise.
100847         * lib/i-ring.c: Likewise.
100848         * lib/i-ring.h: Likewise.
100849         * lib/idcache.c: Likewise.
100850         * lib/imaxabs.c: Likewise.
100851         * lib/imaxdiv.c: Likewise.
100852         * lib/inet_pton.c: Likewise.
100853         * lib/inet_pton.h: Likewise.
100854         * lib/intprops.h: Likewise.
100855         * lib/inttostr.c: Likewise.
100856         * lib/inttostr.h: Likewise.
100857         * lib/inttypes.in.h: Likewise.
100858         * lib/isapipe.c: Likewise.
100859         * lib/isdir.c: Likewise.
100860         * lib/isnan.c: Likewise.
100861         * lib/isnan.h: Likewise.
100862         * lib/isnanf.c: Likewise.
100863         * lib/isnanf.h: Likewise.
100864         * lib/isnanl-nolibm.h: Likewise.
100865         * lib/isnanl.c: Likewise.
100866         * lib/isnanl.h: Likewise.
100867         * lib/javacomp.c: Likewise.
100868         * lib/javacomp.h: Likewise.
100869         * lib/javaexec.c: Likewise.
100870         * lib/javaexec.h: Likewise.
100871         * lib/javaversion.c: Likewise.
100872         * lib/javaversion.h: Likewise.
100873         * lib/javaversion.java: Likewise.
100874         * lib/lbrkprop.h: Likewise.
100875         * lib/lchmod.h: Likewise.
100876         * lib/lchown.c: Likewise.
100877         * lib/ldexpl.c: Likewise.
100878         * lib/linebreak.c: Likewise.
100879         * lib/linebreak.h: Likewise.
100880         * lib/linebuffer.c: Likewise.
100881         * lib/linebuffer.h: Likewise.
100882         * lib/locale.in.h: Likewise.
100883         * lib/logl.c: Likewise.
100884         * lib/long-options.c: Likewise.
100885         * lib/long-options.h: Likewise.
100886         * lib/lstat.c: Likewise.
100887         * lib/lstat.h: Likewise.
100888         * lib/math.in.h: Likewise.
100889         * lib/mbchar.c: Likewise.
100890         * lib/mbchar.h: Likewise.
100891         * lib/mbfile.h: Likewise.
100892         * lib/mbiter.h: Likewise.
100893         * lib/mbscasecmp.c: Likewise.
100894         * lib/mbscasestr.c: Likewise.
100895         * lib/mbschr.c: Likewise.
100896         * lib/mbscspn.c: Likewise.
100897         * lib/mbslen.c: Likewise.
100898         * lib/mbsncasecmp.c: Likewise.
100899         * lib/mbsnlen.c: Likewise.
100900         * lib/mbspbrk.c: Likewise.
100901         * lib/mbspcasecmp.c: Likewise.
100902         * lib/mbsrchr.c: Likewise.
100903         * lib/mbssep.c: Likewise.
100904         * lib/mbsspn.c: Likewise.
100905         * lib/mbsstr.c: Likewise.
100906         * lib/mbstok_r.c: Likewise.
100907         * lib/mbswidth.c: Likewise.
100908         * lib/mbswidth.h: Likewise.
100909         * lib/mbuiter.h: Likewise.
100910         * lib/memcasecmp.c: Likewise.
100911         * lib/memcasecmp.h: Likewise.
100912         * lib/memchr.c: Likewise.
100913         * lib/memcmp.c: Likewise.
100914         * lib/memcoll.c: Likewise.
100915         * lib/memcoll.h: Likewise.
100916         * lib/memcpy.c: Likewise.
100917         * lib/memrchr.c: Likewise.
100918         * lib/mkancesdirs.c: Likewise.
100919         * lib/mkdir-p.c: Likewise.
100920         * lib/mkdir-p.h: Likewise.
100921         * lib/mkdir.c: Likewise.
100922         * lib/mkdirat.c: Likewise.
100923         * lib/mkdtemp.c: Likewise.
100924         * lib/mkstemp-safer.c: Likewise.
100925         * lib/mkstemp.c: Likewise.
100926         * lib/modechange.c: Likewise.
100927         * lib/modechange.h: Likewise.
100928         * lib/mountlist.c: Likewise.
100929         * lib/mountlist.h: Likewise.
100930         * lib/mpsort.c: Likewise.
100931         * lib/nanosleep.c: Likewise.
100932         * lib/obstack.c: Likewise.
100933         * lib/obstack.h: Likewise.
100934         * lib/open-safer.c: Likewise.
100935         * lib/open.c: Likewise.
100936         * lib/openat-die.c: Likewise.
100937         * lib/openat-priv.h: Likewise.
100938         * lib/openat-proc.c: Likewise.
100939         * lib/openat.c: Likewise.
100940         * lib/openat.h: Likewise.
100941         * lib/pagealign_alloc.c: Likewise.
100942         * lib/pagealign_alloc.h: Likewise.
100943         * lib/physmem.c: Likewise.
100944         * lib/physmem.h: Likewise.
100945         * lib/pipe-safer.c: Likewise.
100946         * lib/pipe.c: Likewise.
100947         * lib/pipe.h: Likewise.
100948         * lib/posixtm.c: Likewise.
100949         * lib/posixtm.h: Likewise.
100950         * lib/posixver.c: Likewise.
100951         * lib/printf-frexp.c: Likewise.
100952         * lib/printf-frexp.h: Likewise.
100953         * lib/printf-frexpl.c: Likewise.
100954         * lib/printf-frexpl.h: Likewise.
100955         * lib/printf.c: Likewise.
100956         * lib/progname.c: Likewise.
100957         * lib/progname.h: Likewise.
100958         * lib/progreloc.c: Likewise.
100959         * lib/putenv.c: Likewise.
100960         * lib/quote.c: Likewise.
100961         * lib/quote.h: Likewise.
100962         * lib/quotearg.c: Likewise.
100963         * lib/quotearg.h: Likewise.
100964         * lib/raise.c: Likewise.
100965         * lib/readline.c: Likewise.
100966         * lib/readline.h: Likewise.
100967         * lib/readlink.c: Likewise.
100968         * lib/readtokens.c: Likewise.
100969         * lib/readtokens.h: Likewise.
100970         * lib/readtokens0.c: Likewise.
100971         * lib/readtokens0.h: Likewise.
100972         * lib/readutmp.c: Likewise.
100973         * lib/readutmp.h: Likewise.
100974         * lib/realloc.c: Likewise.
100975         * lib/relocwrapper.c: Likewise.
100976         * lib/rename-dest-slash.c: Likewise.
100977         * lib/rename.c: Likewise.
100978         * lib/rmdir.c: Likewise.
100979         * lib/rpmatch.c: Likewise.
100980         * lib/safe-read.c: Likewise.
100981         * lib/safe-read.h: Likewise.
100982         * lib/safe-write.c: Likewise.
100983         * lib/safe-write.h: Likewise.
100984         * lib/same-inode.h: Likewise.
100985         * lib/same.c: Likewise.
100986         * lib/same.h: Likewise.
100987         * lib/save-cwd.c: Likewise.
100988         * lib/save-cwd.h: Likewise.
100989         * lib/savedir.c: Likewise.
100990         * lib/savedir.h: Likewise.
100991         * lib/savewd.c: Likewise.
100992         * lib/savewd.h: Likewise.
100993         * lib/search.in.h: Likewise.
100994         * lib/setenv.c: Likewise.
100995         * lib/setenv.h: Likewise.
100996         * lib/settime.c: Likewise.
100997         * lib/sh-quote.c: Likewise.
100998         * lib/sh-quote.h: Likewise.
100999         * lib/sig2str.c: Likewise.
101000         * lib/sig2str.h: Likewise.
101001         * lib/signal.in.h: Likewise.
101002         * lib/signbitd.c: Likewise.
101003         * lib/signbitf.c: Likewise.
101004         * lib/signbitl.c: Likewise.
101005         * lib/sigprocmask.c: Likewise.
101006         * lib/sincosl.c: Likewise.
101007         * lib/sleep.c: Likewise.
101008         * lib/sprintf.c: Likewise.
101009         * lib/sqrtl.c: Likewise.
101010         * lib/stat-time.h: Likewise.
101011         * lib/stdio--.h: Likewise.
101012         * lib/stdio-safer.h: Likewise.
101013         * lib/stdlib--.h: Likewise.
101014         * lib/stdlib-safer.h: Likewise.
101015         * lib/stdlib.in.h: Likewise.
101016         * lib/stpcpy.c: Likewise.
101017         * lib/stpncpy.c: Likewise.
101018         * lib/strchrnul.c: Likewise.
101019         * lib/strcspn.c: Likewise.
101020         * lib/strerror.c: Likewise.
101021         * lib/strftime.c: Likewise.
101022         * lib/strftime.h: Likewise.
101023         * lib/striconveh.c: Likewise.
101024         * lib/striconveh.h: Likewise.
101025         * lib/striconveha.c: Likewise.
101026         * lib/striconveha.h: Likewise.
101027         * lib/stripslash.c: Likewise.
101028         * lib/strnlen1.c: Likewise.
101029         * lib/strnlen1.h: Likewise.
101030         * lib/strtod.c: Likewise.
101031         * lib/strtoimax.c: Likewise.
101032         * lib/strtok_r.c: Likewise.
101033         * lib/strtol.c: Likewise.
101034         * lib/strtoll.c: Likewise.
101035         * lib/strtoul.c: Likewise.
101036         * lib/strtoull.c: Likewise.
101037         * lib/sysexits.in.h: Likewise.
101038         * lib/tempname.c: Likewise.
101039         * lib/tempname.h: Likewise.
101040         * lib/timespec.h: Likewise.
101041         * lib/tls.c: Likewise.
101042         * lib/tls.h: Likewise.
101043         * lib/tmpdir.c: Likewise.
101044         * lib/tmpdir.h: Likewise.
101045         * lib/tmpfile-safer.c: Likewise.
101046         * lib/tmpfile.c: Likewise.
101047         * lib/trigl.c: Likewise.
101048         * lib/trigl.h: Likewise.
101049         * lib/trim.c: Likewise.
101050         * lib/trim.h: Likewise.
101051         * lib/trunc.c: Likewise.
101052         * lib/truncf.c: Likewise.
101053         * lib/truncl.c: Likewise.
101054         * lib/tsearch.c: Likewise.
101055         * lib/unicodeio.c: Likewise.
101056         * lib/unicodeio.h: Likewise.
101057         * lib/unistd--.h: Likewise.
101058         * lib/unistd-safer.h: Likewise.
101059         * lib/unistdio/ulc-fprintf.c: Likewise.
101060         * lib/unistdio/ulc-vfprintf.c: Likewise.
101061         * lib/unlinkdir.c: Likewise.
101062         * lib/unlinkdir.h: Likewise.
101063         * lib/unlocked-io.h: Likewise.
101064         * lib/unsetenv.c: Likewise.
101065         * lib/userspec.c: Likewise.
101066         * lib/utime.c: Likewise.
101067         * lib/utimecmp.c: Likewise.
101068         * lib/utimecmp.h: Likewise.
101069         * lib/utimens.c: Likewise.
101070         * lib/verify.h: Likewise.
101071         * lib/verror.c: Likewise.
101072         * lib/verror.h: Likewise.
101073         * lib/version-etc-fsf.c: Likewise.
101074         * lib/version-etc.c: Likewise.
101075         * lib/version-etc.h: Likewise.
101076         * lib/vfprintf.c: Likewise.
101077         * lib/vprintf.c: Likewise.
101078         * lib/vsprintf.c: Likewise.
101079         * lib/w32spawn.h: Likewise.
101080         * lib/wait-process.c: Likewise.
101081         * lib/wait-process.h: Likewise.
101082         * lib/wcwidth.c: Likewise.
101083         * lib/write-any-file.c: Likewise.
101084         * lib/xalloc-die.c: Likewise.
101085         * lib/xalloc.h: Likewise.
101086         * lib/xasprintf.c: Likewise.
101087         * lib/xgetcwd.c: Likewise.
101088         * lib/xgetcwd.h: Likewise.
101089         * lib/xgetdomainname.c: Likewise.
101090         * lib/xgetdomainname.h: Likewise.
101091         * lib/xgethostname.c: Likewise.
101092         * lib/xmalloc.c: Likewise.
101093         * lib/xmalloca.c: Likewise.
101094         * lib/xmalloca.h: Likewise.
101095         * lib/xmemcoll.c: Likewise.
101096         * lib/xnanosleep.c: Likewise.
101097         * lib/xreadlink.c: Likewise.
101098         * lib/xreadlink.h: Likewise.
101099         * lib/xsetenv.c: Likewise.
101100         * lib/xsetenv.h: Likewise.
101101         * lib/xstriconv.c: Likewise.
101102         * lib/xstriconv.h: Likewise.
101103         * lib/xstrndup.c: Likewise.
101104         * lib/xstrndup.h: Likewise.
101105         * lib/xstrtod.c: Likewise.
101106         * lib/xstrtod.h: Likewise.
101107         * lib/xstrtol-error.c: Likewise.
101108         * lib/xstrtol.c: Likewise.
101109         * lib/xstrtol.h: Likewise.
101110         * lib/xtime.h: Likewise.
101111         * lib/xvasprintf.c: Likewise.
101112         * lib/xvasprintf.h: Likewise.
101113         * lib/yesno.c: Likewise.
101114         * lib/yesno.h: Likewise.
101115         * posix-modules: Likewise.
101116         * tests/test-alloca-opt.c: Likewise.
101117         * tests/test-arcfour.c: Likewise.
101118         * tests/test-arctwo.c: Likewise.
101119         * tests/test-argmatch.c: Likewise.
101120         * tests/test-argp-2.sh: Likewise.
101121         * tests/test-argp.c: Likewise.
101122         * tests/test-arpa_inet.c: Likewise.
101123         * tests/test-array_list.c: Likewise.
101124         * tests/test-array_oset.c: Likewise.
101125         * tests/test-atexit.c: Likewise.
101126         * tests/test-avltree_list.c: Likewise.
101127         * tests/test-avltree_oset.c: Likewise.
101128         * tests/test-avltreehash_list.c: Likewise.
101129         * tests/test-base64.c: Likewise.
101130         * tests/test-binary-io.c: Likewise.
101131         * tests/test-byteswap.c: Likewise.
101132         * tests/test-c-ctype.c: Likewise.
101133         * tests/test-c-strcasecmp.c: Likewise.
101134         * tests/test-c-strcasestr.c: Likewise.
101135         * tests/test-c-strncasecmp.c: Likewise.
101136         * tests/test-c-strstr.c: Likewise.
101137         * tests/test-canonicalize-lgpl.c: Likewise.
101138         * tests/test-canonicalize.c: Likewise.
101139         * tests/test-carray_list.c: Likewise.
101140         * tests/test-ceilf.c: Likewise.
101141         * tests/test-ceill.c: Likewise.
101142         * tests/test-count-one-bits.c: Likewise.
101143         * tests/test-crc.c: Likewise.
101144         * tests/test-dirname.c: Likewise.
101145         * tests/test-fbufmode.c: Likewise.
101146         * tests/test-fcntl.c: Likewise.
101147         * tests/test-fflush.c: Likewise.
101148         * tests/test-floorf.c: Likewise.
101149         * tests/test-floorl.c: Likewise.
101150         * tests/test-fopen.c: Likewise.
101151         * tests/test-fprintf-posix.c: Likewise.
101152         * tests/test-fprintf-posix.h: Likewise.
101153         * tests/test-fpurge.c: Likewise.
101154         * tests/test-freadable.c: Likewise.
101155         * tests/test-freadahead.c: Likewise.
101156         * tests/test-freading.c: Likewise.
101157         * tests/test-freopen.c: Likewise.
101158         * tests/test-frexp.c: Likewise.
101159         * tests/test-frexpl.c: Likewise.
101160         * tests/test-fseek.c: Likewise.
101161         * tests/test-fseeko.c: Likewise.
101162         * tests/test-fseterr.c: Likewise.
101163         * tests/test-fstrcmp.c: Likewise.
101164         * tests/test-ftell.c: Likewise.
101165         * tests/test-ftello.c: Likewise.
101166         * tests/test-fwritable.c: Likewise.
101167         * tests/test-fwriting.c: Likewise.
101168         * tests/test-getaddrinfo.c: Likewise.
101169         * tests/test-getpass.c: Likewise.
101170         * tests/test-gettimeofday.c: Likewise.
101171         * tests/test-hmac-md5.c: Likewise.
101172         * tests/test-hmac-sha1.c: Likewise.
101173         * tests/test-iconv.c: Likewise.
101174         * tests/test-iconvme.c: Likewise.
101175         * tests/test-inttypes.c: Likewise.
101176         * tests/test-isnan.c: Likewise.
101177         * tests/test-isnanf.c: Likewise.
101178         * tests/test-isnanl-nolibm.c: Likewise.
101179         * tests/test-isnanl.c: Likewise.
101180         * tests/test-isnanl.h: Likewise.
101181         * tests/test-ldexpl.c: Likewise.
101182         * tests/test-linked_list.c: Likewise.
101183         * tests/test-linkedhash_list.c: Likewise.
101184         * tests/test-locale.c: Likewise.
101185         * tests/test-localename.c: Likewise.
101186         * tests/test-lock.c: Likewise.
101187         * tests/test-lseek.c: Likewise.
101188         * tests/test-malloca.c: Likewise.
101189         * tests/test-math.c: Likewise.
101190         * tests/test-mbscasecmp.c: Likewise.
101191         * tests/test-mbscasestr1.c: Likewise.
101192         * tests/test-mbscasestr2.c: Likewise.
101193         * tests/test-mbscasestr3.c: Likewise.
101194         * tests/test-mbscasestr4.c: Likewise.
101195         * tests/test-mbschr.c: Likewise.
101196         * tests/test-mbscspn.c: Likewise.
101197         * tests/test-mbsncasecmp.c: Likewise.
101198         * tests/test-mbspbrk.c: Likewise.
101199         * tests/test-mbspcasecmp.c: Likewise.
101200         * tests/test-mbsrchr.c: Likewise.
101201         * tests/test-mbsspn.c: Likewise.
101202         * tests/test-mbsstr1.c: Likewise.
101203         * tests/test-mbsstr2.c: Likewise.
101204         * tests/test-mbsstr3.c: Likewise.
101205         * tests/test-md5.c: Likewise.
101206         * tests/test-memmem.c: Likewise.
101207         * tests/test-netinet_in.c: Likewise.
101208         * tests/test-open.c: Likewise.
101209         * tests/test-printf-frexp.c: Likewise.
101210         * tests/test-printf-frexpl.c: Likewise.
101211         * tests/test-printf-posix.c: Likewise.
101212         * tests/test-printf-posix.h: Likewise.
101213         * tests/test-rbtree_list.c: Likewise.
101214         * tests/test-rbtree_oset.c: Likewise.
101215         * tests/test-rbtreehash_list.c: Likewise.
101216         * tests/test-read-file.c: Likewise.
101217         * tests/test-rijndael.c: Likewise.
101218         * tests/test-search.c: Likewise.
101219         * tests/test-signbit.c: Likewise.
101220         * tests/test-sleep.c: Likewise.
101221         * tests/test-snprintf-posix.c: Likewise.
101222         * tests/test-snprintf-posix.h: Likewise.
101223         * tests/test-snprintf.c: Likewise.
101224         * tests/test-sprintf-posix.c: Likewise.
101225         * tests/test-sprintf-posix.h: Likewise.
101226         * tests/test-stat-time.c: Likewise.
101227         * tests/test-stdbool.c: Likewise.
101228         * tests/test-stdint.c: Likewise.
101229         * tests/test-stdio.c: Likewise.
101230         * tests/test-stdlib.c: Likewise.
101231         * tests/test-stpncpy.c: Likewise.
101232         * tests/test-strcasestr.c: Likewise.
101233         * tests/test-striconv.c: Likewise.
101234         * tests/test-striconveh.c: Likewise.
101235         * tests/test-striconveha.c: Likewise.
101236         * tests/test-string.c: Likewise.
101237         * tests/test-sys_select.c: Likewise.
101238         * tests/test-sys_socket.c: Likewise.
101239         * tests/test-sys_stat.c: Likewise.
101240         * tests/test-sys_time.c: Likewise.
101241         * tests/test-sysexits.c: Likewise.
101242         * tests/test-time.c: Likewise.
101243         * tests/test-tls.c: Likewise.
101244         * tests/test-trunc.c: Likewise.
101245         * tests/test-truncf.c: Likewise.
101246         * tests/test-truncl.c: Likewise.
101247         * tests/test-unistd.c: Likewise.
101248         * tests/test-vasnprintf-posix.c: Likewise.
101249         * tests/test-vasnprintf-posix2.c: Likewise.
101250         * tests/test-vasnprintf.c: Likewise.
101251         * tests/test-vasprintf-posix.c: Likewise.
101252         * tests/test-vasprintf.c: Likewise.
101253         * tests/test-verify.c: Likewise.
101254         * tests/test-vfprintf-posix.c: Likewise.
101255         * tests/test-vprintf-posix.c: Likewise.
101256         * tests/test-vsnprintf-posix.c: Likewise.
101257         * tests/test-vsnprintf.c: Likewise.
101258         * tests/test-vsprintf-posix.c: Likewise.
101259         * tests/test-wchar.c: Likewise.
101260         * tests/test-wctype.c: Likewise.
101261         * tests/test-wcwidth.c: Likewise.
101262         * tests/test-xstrtol.c: Likewise.
101263         * tests/test-xvasprintf.c: Likewise.
101264         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101265         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101266         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101267         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101268         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101269         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101270         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101271         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101272         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101273         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101274         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101275         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101276         * tests/uniname/test-uninames.c: Likewise.
101277         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101278         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101279         * tests/unistdio/test-u16-printf1.h: Likewise.
101280         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101281         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101282         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101283         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101284         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101285         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101286         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101287         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101288         * tests/unistdio/test-u32-printf1.h: Likewise.
101289         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101290         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101291         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101292         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101293         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101294         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101295         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101296         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101297         * tests/unistdio/test-u8-printf1.h: Likewise.
101298         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101299         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101300         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101301         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101302         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101303         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101304         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101305         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101306         * tests/unistdio/test-ulc-printf1.h: Likewise.
101307         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101308         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101309         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101310         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101311         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101312         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101313         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101314         * tests/uniwidth/test-u16-width.c: Likewise.
101315         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101316         * tests/uniwidth/test-u32-width.c: Likewise.
101317         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101318         * tests/uniwidth/test-u8-width.c: Likewise.
101319         * tests/uniwidth/test-uc_width.c: Likewise.
101320         * config/srclist-update: Likewise.
101321         (fixlicense): Update to GPLv3+.
101323         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101324         * tests/test-tsearch.c: Change copyright notice.
101326         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101327         * lib/c-strcaseeq.h: Change copyright notice.
101328         * lib/streq.h: Likewise.
101329         * lib/uniconv.h: Likewise.
101330         * lib/uniconv/u-conv-from-enc.h: Likewise.
101331         * lib/uniconv/u-conv-to-enc.h: Likewise.
101332         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101333         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101334         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101335         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101336         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101337         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101338         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101339         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101340         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101341         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101342         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101343         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101344         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101345         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101346         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101347         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101348         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101349         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101350         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101351         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101352         * lib/uniname.h: Likewise.
101353         * lib/uniname/uniname.c: Likewise.
101354         * lib/unistdio.h: Likewise.
101355         * lib/unistdio/u-asnprintf.h: Likewise.
101356         * lib/unistdio/u-asprintf.h: Likewise.
101357         * lib/unistdio/u-printf-args.c: Likewise.
101358         * lib/unistdio/u-printf-args.h: Likewise.
101359         * lib/unistdio/u-printf-parse.h: Likewise.
101360         * lib/unistdio/u-snprintf.h: Likewise.
101361         * lib/unistdio/u-sprintf.h: Likewise.
101362         * lib/unistdio/u-vasprintf.h: Likewise.
101363         * lib/unistdio/u-vsnprintf.h: Likewise.
101364         * lib/unistdio/u-vsprintf.h: Likewise.
101365         * lib/unistdio/u16-asnprintf.c: Likewise.
101366         * lib/unistdio/u16-asprintf.c: Likewise.
101367         * lib/unistdio/u16-printf-parse.c: Likewise.
101368         * lib/unistdio/u16-snprintf.c: Likewise.
101369         * lib/unistdio/u16-sprintf.c: Likewise.
101370         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101371         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101372         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101373         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101374         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101375         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101376         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101377         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101378         * lib/unistdio/u16-vasnprintf.c: Likewise.
101379         * lib/unistdio/u16-vasprintf.c: Likewise.
101380         * lib/unistdio/u16-vsnprintf.c: Likewise.
101381         * lib/unistdio/u16-vsprintf.c: Likewise.
101382         * lib/unistdio/u32-asnprintf.c: Likewise.
101383         * lib/unistdio/u32-asprintf.c: Likewise.
101384         * lib/unistdio/u32-printf-parse.c: Likewise.
101385         * lib/unistdio/u32-snprintf.c: Likewise.
101386         * lib/unistdio/u32-sprintf.c: Likewise.
101387         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101388         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101389         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101390         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101391         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101392         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101393         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101394         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101395         * lib/unistdio/u32-vasnprintf.c: Likewise.
101396         * lib/unistdio/u32-vasprintf.c: Likewise.
101397         * lib/unistdio/u32-vsnprintf.c: Likewise.
101398         * lib/unistdio/u32-vsprintf.c: Likewise.
101399         * lib/unistdio/u8-asnprintf.c: Likewise.
101400         * lib/unistdio/u8-asprintf.c: Likewise.
101401         * lib/unistdio/u8-printf-parse.c: Likewise.
101402         * lib/unistdio/u8-snprintf.c: Likewise.
101403         * lib/unistdio/u8-sprintf.c: Likewise.
101404         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101405         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101406         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101407         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101408         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101409         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101410         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101411         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101412         * lib/unistdio/u8-vasnprintf.c: Likewise.
101413         * lib/unistdio/u8-vasprintf.c: Likewise.
101414         * lib/unistdio/u8-vsnprintf.c: Likewise.
101415         * lib/unistdio/u8-vsprintf.c: Likewise.
101416         * lib/unistdio/ulc-asnprintf.c: Likewise.
101417         * lib/unistdio/ulc-asprintf.c: Likewise.
101418         * lib/unistdio/ulc-printf-parse.c: Likewise.
101419         * lib/unistdio/ulc-snprintf.c: Likewise.
101420         * lib/unistdio/ulc-sprintf.c: Likewise.
101421         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101422         * lib/unistdio/ulc-vasprintf.c: Likewise.
101423         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101424         * lib/unistdio/ulc-vsprintf.c: Likewise.
101425         * lib/unistr.h: Likewise.
101426         * lib/unistr/u-cpy-alloc.h: Likewise.
101427         * lib/unistr/u-cpy.h: Likewise.
101428         * lib/unistr/u-endswith.h: Likewise.
101429         * lib/unistr/u-move.h: Likewise.
101430         * lib/unistr/u-set.h: Likewise.
101431         * lib/unistr/u-startswith.h: Likewise.
101432         * lib/unistr/u-stpcpy.h: Likewise.
101433         * lib/unistr/u-stpncpy.h: Likewise.
101434         * lib/unistr/u-strcat.h: Likewise.
101435         * lib/unistr/u-strcpy.h: Likewise.
101436         * lib/unistr/u-strcspn.h: Likewise.
101437         * lib/unistr/u-strdup.h: Likewise.
101438         * lib/unistr/u-strlen.h: Likewise.
101439         * lib/unistr/u-strncat.h: Likewise.
101440         * lib/unistr/u-strncpy.h: Likewise.
101441         * lib/unistr/u-strnlen.h: Likewise.
101442         * lib/unistr/u-strpbrk.h: Likewise.
101443         * lib/unistr/u-strspn.h: Likewise.
101444         * lib/unistr/u-strstr.h: Likewise.
101445         * lib/unistr/u-strtok.h: Likewise.
101446         * lib/unistr/u16-check.c: Likewise.
101447         * lib/unistr/u16-chr.c: Likewise.
101448         * lib/unistr/u16-cmp.c: Likewise.
101449         * lib/unistr/u16-cpy-alloc.c: Likewise.
101450         * lib/unistr/u16-cpy.c: Likewise.
101451         * lib/unistr/u16-endswith.c: Likewise.
101452         * lib/unistr/u16-mblen.c: Likewise.
101453         * lib/unistr/u16-mbsnlen.c: Likewise.
101454         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101455         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101456         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101457         * lib/unistr/u16-mbtouc.c: Likewise.
101458         * lib/unistr/u16-mbtoucr.c: Likewise.
101459         * lib/unistr/u16-move.c: Likewise.
101460         * lib/unistr/u16-next.c: Likewise.
101461         * lib/unistr/u16-prev.c: Likewise.
101462         * lib/unistr/u16-set.c: Likewise.
101463         * lib/unistr/u16-startswith.c: Likewise.
101464         * lib/unistr/u16-stpcpy.c: Likewise.
101465         * lib/unistr/u16-stpncpy.c: Likewise.
101466         * lib/unistr/u16-strcat.c: Likewise.
101467         * lib/unistr/u16-strchr.c: Likewise.
101468         * lib/unistr/u16-strcmp.c: Likewise.
101469         * lib/unistr/u16-strcpy.c: Likewise.
101470         * lib/unistr/u16-strcspn.c: Likewise.
101471         * lib/unistr/u16-strdup.c: Likewise.
101472         * lib/unistr/u16-strlen.c: Likewise.
101473         * lib/unistr/u16-strmblen.c: Likewise.
101474         * lib/unistr/u16-strmbtouc.c: Likewise.
101475         * lib/unistr/u16-strncat.c: Likewise.
101476         * lib/unistr/u16-strncmp.c: Likewise.
101477         * lib/unistr/u16-strncpy.c: Likewise.
101478         * lib/unistr/u16-strnlen.c: Likewise.
101479         * lib/unistr/u16-strpbrk.c: Likewise.
101480         * lib/unistr/u16-strrchr.c: Likewise.
101481         * lib/unistr/u16-strspn.c: Likewise.
101482         * lib/unistr/u16-strstr.c: Likewise.
101483         * lib/unistr/u16-strtok.c: Likewise.
101484         * lib/unistr/u16-to-u32.c: Likewise.
101485         * lib/unistr/u16-to-u8.c: Likewise.
101486         * lib/unistr/u16-uctomb-aux.c: Likewise.
101487         * lib/unistr/u16-uctomb.c: Likewise.
101488         * lib/unistr/u32-check.c: Likewise.
101489         * lib/unistr/u32-chr.c: Likewise.
101490         * lib/unistr/u32-cmp.c: Likewise.
101491         * lib/unistr/u32-cpy-alloc.c: Likewise.
101492         * lib/unistr/u32-cpy.c: Likewise.
101493         * lib/unistr/u32-endswith.c: Likewise.
101494         * lib/unistr/u32-mblen.c: Likewise.
101495         * lib/unistr/u32-mbsnlen.c: Likewise.
101496         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101497         * lib/unistr/u32-mbtouc.c: Likewise.
101498         * lib/unistr/u32-mbtoucr.c: Likewise.
101499         * lib/unistr/u32-move.c: Likewise.
101500         * lib/unistr/u32-next.c: Likewise.
101501         * lib/unistr/u32-prev.c: Likewise.
101502         * lib/unistr/u32-set.c: Likewise.
101503         * lib/unistr/u32-startswith.c: Likewise.
101504         * lib/unistr/u32-stpcpy.c: Likewise.
101505         * lib/unistr/u32-stpncpy.c: Likewise.
101506         * lib/unistr/u32-strcat.c: Likewise.
101507         * lib/unistr/u32-strchr.c: Likewise.
101508         * lib/unistr/u32-strcmp.c: Likewise.
101509         * lib/unistr/u32-strcpy.c: Likewise.
101510         * lib/unistr/u32-strcspn.c: Likewise.
101511         * lib/unistr/u32-strdup.c: Likewise.
101512         * lib/unistr/u32-strlen.c: Likewise.
101513         * lib/unistr/u32-strmblen.c: Likewise.
101514         * lib/unistr/u32-strmbtouc.c: Likewise.
101515         * lib/unistr/u32-strncat.c: Likewise.
101516         * lib/unistr/u32-strncmp.c: Likewise.
101517         * lib/unistr/u32-strncpy.c: Likewise.
101518         * lib/unistr/u32-strnlen.c: Likewise.
101519         * lib/unistr/u32-strpbrk.c: Likewise.
101520         * lib/unistr/u32-strrchr.c: Likewise.
101521         * lib/unistr/u32-strspn.c: Likewise.
101522         * lib/unistr/u32-strstr.c: Likewise.
101523         * lib/unistr/u32-strtok.c: Likewise.
101524         * lib/unistr/u32-to-u16.c: Likewise.
101525         * lib/unistr/u32-to-u8.c: Likewise.
101526         * lib/unistr/u32-uctomb.c: Likewise.
101527         * lib/unistr/u8-check.c: Likewise.
101528         * lib/unistr/u8-chr.c: Likewise.
101529         * lib/unistr/u8-cmp.c: Likewise.
101530         * lib/unistr/u8-cpy-alloc.c: Likewise.
101531         * lib/unistr/u8-cpy.c: Likewise.
101532         * lib/unistr/u8-endswith.c: Likewise.
101533         * lib/unistr/u8-mblen.c: Likewise.
101534         * lib/unistr/u8-mbsnlen.c: Likewise.
101535         * lib/unistr/u8-mbtouc-aux.c: Likewise.
101536         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
101537         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
101538         * lib/unistr/u8-mbtouc.c: Likewise.
101539         * lib/unistr/u8-mbtoucr.c: Likewise.
101540         * lib/unistr/u8-move.c: Likewise.
101541         * lib/unistr/u8-next.c: Likewise.
101542         * lib/unistr/u8-prev.c: Likewise.
101543         * lib/unistr/u8-set.c: Likewise.
101544         * lib/unistr/u8-startswith.c: Likewise.
101545         * lib/unistr/u8-stpcpy.c: Likewise.
101546         * lib/unistr/u8-stpncpy.c: Likewise.
101547         * lib/unistr/u8-strcat.c: Likewise.
101548         * lib/unistr/u8-strchr.c: Likewise.
101549         * lib/unistr/u8-strcmp.c: Likewise.
101550         * lib/unistr/u8-strcpy.c: Likewise.
101551         * lib/unistr/u8-strcspn.c: Likewise.
101552         * lib/unistr/u8-strdup.c: Likewise.
101553         * lib/unistr/u8-strlen.c: Likewise.
101554         * lib/unistr/u8-strmblen.c: Likewise.
101555         * lib/unistr/u8-strmbtouc.c: Likewise.
101556         * lib/unistr/u8-strncat.c: Likewise.
101557         * lib/unistr/u8-strncmp.c: Likewise.
101558         * lib/unistr/u8-strncpy.c: Likewise.
101559         * lib/unistr/u8-strnlen.c: Likewise.
101560         * lib/unistr/u8-strpbrk.c: Likewise.
101561         * lib/unistr/u8-strrchr.c: Likewise.
101562         * lib/unistr/u8-strspn.c: Likewise.
101563         * lib/unistr/u8-strstr.c: Likewise.
101564         * lib/unistr/u8-strtok.c: Likewise.
101565         * lib/unistr/u8-to-u16.c: Likewise.
101566         * lib/unistr/u8-to-u32.c: Likewise.
101567         * lib/unistr/u8-uctomb-aux.c: Likewise.
101568         * lib/unistr/u8-uctomb.c: Likewise.
101569         * lib/unitypes.h: Likewise.
101570         * lib/uniwidth.h: Likewise.
101571         * lib/uniwidth/cjk.h: Likewise.
101572         * lib/uniwidth/u16-strwidth.c: Likewise.
101573         * lib/uniwidth/u16-width.c: Likewise.
101574         * lib/uniwidth/u32-strwidth.c: Likewise.
101575         * lib/uniwidth/u32-width.c: Likewise.
101576         * lib/uniwidth/u8-strwidth.c: Likewise.
101577         * lib/uniwidth/u8-width.c: Likewise.
101578         * lib/uniwidth/width.c: Likewise.
101580 2007-10-07  Bruno Haible  <bruno@clisp.org>
101582         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
101583         The file is still under LGPL (see modules/inttypes).
101585 2007-10-06  Bruno Haible  <bruno@clisp.org>
101587         * modules/trunc (Dependencies): Add 'extensions'.
101588         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
101589         Reported by Ben Pfaff <blp@gnu.org>.
101591 2007-10-06  Bruno Haible  <bruno@clisp.org>
101593         * modules/freopen-tests: New file.
101594         * tests/test-freopen.c: New file.
101596         * modules/fopen-tests: New file.
101597         * tests/test-fopen.c: New file.
101599         * modules/fopen: New file.
101600         * lib/fopen.c: New file.
101601         * m4/fopen.m4: New file.
101602         * modules/freopen: New file.
101603         * lib/freopen.c: New file.
101604         * m4/freopen.m4: New file.
101605         * lib/stdio.in.h (fopen, freopen): New declarations.
101606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101607         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101608         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
101609         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101610         * doc/functions/fopen.texi: Mention the 'fopen' module.
101611         * doc/functions/freopen.texi: Mention the 'freopen' module.
101613 2007-10-06  Bruno Haible  <bruno@clisp.org>
101615         * modules/open-tests: New file.
101616         * tests/test-open.c: New file.
101618         * modules/open: New file.
101619         * lib/open.c: New file.
101620         * m4/open.m4: New file.
101621         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101622         lib/open.c does.
101623         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101624         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101625         macros.
101626         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101627         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101628         REPLACE_OPEN.
101629         * doc/functions/open.texi: Mention the 'open' module.
101631 2007-10-04  Bruno Haible  <bruno@clisp.org>
101633         * modules/ceill-tests: New file.
101634         * tests/test-ceill.c: New file.
101636         * modules/ceill: New file.
101637         * lib/ceill.c: Replace entire file.
101638         * m4/ceill.m4: New file.
101639         * lib/math.in.h (ceill): Replace declaration.
101640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101641         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101642         * doc/functions/ceill.texi: Mention the 'ceill' module.
101643         * modules/mathl (Files): Remove lib/ceill.c.
101644         (Depends-on): Add ceill.
101646 2007-10-04  Bruno Haible  <bruno@clisp.org>
101648         * modules/ceilf-tests: New file.
101649         * tests/test-ceilf.c: New file.
101651         * modules/ceilf: New file.
101652         * lib/ceil.c: New file.
101653         * lib/ceilf.c: New file.
101654         * m4/ceilf.m4: New file.
101655         * lib/math.in.h (ceilf): New declaration.
101656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101657         HAVE_DECL_CEILF.
101658         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101659         HAVE_DECL_CEILF.
101660         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101662 2007-10-04  Bruno Haible  <bruno@clisp.org>
101664         * modules/floorl-tests: New file.
101665         * tests/test-floorl.c: New file.
101667         * modules/floorl: New file.
101668         * lib/floorl.c: Replace entire file.
101669         * m4/floorl.m4: New file.
101670         * lib/math.in.h (floorl): Replace declaration.
101671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101672         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101673         * doc/functions/floorl.texi: Mention the 'floorl' module.
101674         * modules/mathl (Files): Remove lib/floorl.c.
101675         (Depends-on): Add floorl.
101677 2007-10-04  Bruno Haible  <bruno@clisp.org>
101679         * modules/floorf-tests: New file.
101680         * tests/test-floorf.c: New file.
101682         * modules/floorf: New file.
101683         * lib/floor.c: New file.
101684         * lib/floorf.c: New file.
101685         * m4/floorf.m4: New file.
101686         * lib/math.in.h (floorf): New declaration.
101687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101688         HAVE_DECL_FLOORF.
101689         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101690         HAVE_DECL_FLOORF.
101691         * doc/functions/floorf.texi: Mention the 'floorf' module.
101693 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101694             Bruno Haible  <bruno@clisp.org>
101696         Advertise for the Git server instead of the CVS server.
101697         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101698         repository instead of the CVS one.
101699         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101700         about all VCS systems generically.
101701         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101703 2007-10-04  Bruno Haible  <bruno@clisp.org>
101705         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101706         means.
101707         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101709 2007-10-04  Bruno Haible  <bruno@clisp.org>
101711         * modules/truncl-tests: New file.
101712         * tests/test-truncl.c: New file.
101714         * modules/truncl: New file.
101715         * lib/truncl.c: New file.
101716         * m4/truncl.m4: New file.
101717         * lib/math.in.h (truncl): New declaration.
101718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101719         HAVE_DECL_TRUNCL.
101720         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101721         HAVE_DECL_TRUNCL.
101722         * doc/functions/truncl.texi: Mention the 'truncl' module.
101724 2007-10-04  Bruno Haible  <bruno@clisp.org>
101726         * modules/truncf-tests: New file.
101727         * tests/test-truncf.c: New file.
101729         * modules/truncf: New file.
101730         * lib/trunc.c: Make paramerizable through USE_* macros.
101731         * lib/truncf.c: New file.
101732         * m4/truncf.m4: New file.
101733         * lib/math.in.h (truncf): New declaration.
101734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101735         HAVE_DECL_TRUNCF.
101736         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101737         HAVE_DECL_TRUNCF.
101738         * doc/functions/truncf.texi: Mention the 'truncf' module.
101740 2007-10-03  Bruno Haible  <bruno@clisp.org>
101742         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101743         augmentation also for tests modules.
101744         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101745         * modules/atexit-tests (Makefile.am): Likewise.
101746         * modules/binary-io-tests (Makefile.am): Likewise.
101747         * modules/c-strcase-tests (Makefile.am): Likewise.
101748         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101749         * modules/canonicalize-tests (Makefile.am): Likewise.
101750         * modules/closein-tests (Makefile.am): Likewise.
101751         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101752         * modules/freadahead-tests (Makefile.am): Likewise.
101753         * modules/fseek-tests (Makefile.am): Likewise.
101754         * modules/fseeko-tests (Makefile.am): Likewise.
101755         * modules/ftell-tests (Makefile.am): Likewise.
101756         * modules/ftello-tests (Makefile.am): Likewise.
101757         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101758         * modules/isnanl-tests (Makefile.am): Likewise.
101759         * modules/lseek-tests (Makefile.am): Likewise.
101760         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101761         * modules/mbscasestr-tests (Makefile.am): Likewise.
101762         * modules/mbschr-tests (Makefile.am): Likewise.
101763         * modules/mbscspn-tests (Makefile.am): Likewise.
101764         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101765         * modules/mbspbrk-tests (Makefile.am): Likewise.
101766         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101767         * modules/mbsrchr-tests (Makefile.am): Likewise.
101768         * modules/mbsspn-tests (Makefile.am): Likewise.
101769         * modules/mbsstr-tests (Makefile.am): Likewise.
101770         * modules/printf-posix-tests (Makefile.am): Likewise.
101771         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101772         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101773         * modules/tsearch-tests (Makefile.am): Likewise.
101774         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101775         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101776         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101777         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101778         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101779         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101780         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101781         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101782         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101783         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101784         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101785         * modules/xstrtol-tests (Makefile.am): Likewise.
101786         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101787         * modules/yesno-tests (Makefile.am): Likewise.
101789 2007-10-03  Bruno Haible  <bruno@clisp.org>
101791         * modules/trunc-tests: New file.
101792         * tests/test-trunc.c: New file.
101794         * modules/trunc: New file.
101795         * lib/trunc.c: New file.
101796         * m4/trunc.m4: New file.
101797         * lib/math.in.h (trunc): New declaration.
101798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101799         HAVE_DECL_TRUNC.
101800         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101801         HAVE_DECL_TRUNC.
101802         * doc/functions/trunc.texi: Mention the 'trunc' module.
101804 2007-10-03  Bruno Haible  <bruno@clisp.org>
101806         * tests/test-fpending.c: New file, mostly copied
101807         from coreutils/lib/t-fpending.c.
101808         * modules/fpending-tests: New file.
101810 2007-10-03  Bruno Haible  <bruno@clisp.org>
101812         Port the stdio extensions to QNX (untested).
101813         * lib/fseterr.c (fseterr): Add support for QNX.
101814         * lib/fbufmode.c (fbufmode): Likewise.
101815         * lib/freadable.c (freadable): Likewise.
101816         * lib/fwritable.c (fwritable): Likewise.
101817         * lib/freading.c (freading): Likewise.
101818         * lib/fwriting.c (fwriting): Likewise.
101819         * lib/freadahead.c (freadahed): Likewise.
101820         * lib/fpurge.c (fpurge): Likewise.
101821         * lib/fseeko.c (rpl_fseeko): Likewise.
101823 2007-10-03  Bruno Haible  <bruno@clisp.org>
101824             Jim Meyering  <jim@meyering.net>
101825             Eric Blake  <ebb9@byu.net>
101827         * doc/relocatable.texi: Use @command instead of @program.
101829 2007-10-02  Jim Meyering  <jim@meyering.net>
101831         Perform one more "_.h" -> ".in.h" substitution.
101832         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101833         instead of unistd_.h here, too.
101835 2007-10-01  Bruno Haible  <bruno@clisp.org>
101837         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101838         Needed for the alloca-opt module.
101840 2007-09-30  Bruno Haible  <bruno@clisp.org>
101842         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101843         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101844         alloca_.h.
101845         * lib/argz.in.h: Renamed from lib/argz_.h.
101846         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101847         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101848         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101849         byteswap_.h.
101850         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101851         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101852         dirent_.h.
101853         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101854         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101855         fcntl_.h.
101856         * lib/float.in.h: Renamed from lib/float_.h.
101857         * modules/float (Files, Makefile.am): Use float.in.h instead of
101858         float_.h.
101859         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101860         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101861         fnmatch_.h.
101862         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101863         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101864         getopt_.h.
101865         * lib/glob.in.h: Renamed from lib/glob_.h.
101866         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101867         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101868         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101869         iconv_.h.
101870         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101871         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101872         inttypes_.h.
101873         * lib/locale.in.h: Renamed from lib/locale_.h.
101874         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101875         locale_.h.
101876         * lib/math.in.h: Renamed from lib/math_.h.
101877         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101878         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101879         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101880         of netinet_in_.h. Add dependency.
101881         * lib/poll.in.h: Renamed from lib/poll_.h.
101882         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101883         * lib/search.in.h: Renamed from lib/search_.h.
101884         * modules/search (Files, Makefile.am): Use search.in.h instead of
101885         search_.h.
101886         * lib/signal.in.h: Renamed from lib/signal_.h.
101887         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101888         _signal.h.
101889         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101890         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101891         stdbool_.h.
101892         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101893         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101894         stdint_.h.
101895         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101896         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101897         stdio_.h.
101898         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101899         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101900         stdlib_.h.
101901         * lib/string.in.h: Renamed from lib/string_.h.
101902         * modules/string (Files, Makefile.am): Use string.in.h instead of
101903         string_.h.
101904         * doc/gnulib-tool.texi (Initial import): Update.
101905         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101906         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101907         of sys_select_.h. Add dependency.
101908         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101909         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101910         of sys_socket_.h.
101911         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101912         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101913         sys_stat_.h.
101914         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101915         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101916         sys_time_.h.
101917         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101918         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101919         sysexits_.h.
101920         * lib/time.in.h: Renamed from lib/time_.h.
101921         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101922         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101923         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101924         unistd_.h.
101925         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101926         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101927         wchar_.h.
101928         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101929         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101930         wctype_.h.
101931         * build-aux/bootstrap (slurp): Update.
101932         * lib/.cppi-disable: Update.
101934 2007-09-30  Bruno Haible  <bruno@clisp.org>
101936         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
101937         Needed on BeOS.
101939 2007-09-30  Bruno Haible  <bruno@clisp.org>
101941         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
101943 2007-09-29  Bruno Haible  <bruno@clisp.org>
101945         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101947 2007-09-29  Bruno Haible  <bruno@clisp.org>
101949         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101950         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101951         * build-aux/install-reloc: Compile also areadlink.c.
101952         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101954 2007-09-29  Bruno Haible  <bruno@clisp.org>
101956         * gnulib-tool (func_emit_initmacro_done): Indentation.
101958 2007-09-29  Bruno Haible  <bruno@clisp.org>
101960         * README: Add CVS checkout update instructions.
101961         Info from Bob Proulx <bob@proulx.com>.
101963 2007-09-28  Eric Blake  <ebb9@byu.net>
101965         Provide move-if-change.
101966         * build-aux/move-if-change: New file, based on best practice
101967         rather than any canonical upstream location.
101969 2007-09-28  Jim Meyering  <jim@meyering.net>
101971         Fix canonicalize loop-detection corner case.
101972         Do not attempt to stat the symlink values stored via seen_triple.
101973         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101974         on linux-2.6.18, (but not 2.6.22).
101975         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101976         triple_compare.  The former compares dev,ino,filename, while the latter
101977         would actually stat dirname(filename) when dev and ino were equal.
101978         * lib/hash-triple.c: Install <string.h>.
101979         (STREQ): Define.
101980         (triple_compare_ino_str): New function.
101981         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101983 2007-09-28  Eric Blake  <ebb9@byu.net>
101985         Enforce that AC_REPLACE_FUNCS files exist.
101986         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101987         override check for typos.
101989         Fix test-closein on Solaris 10.
101990         * tests/test-closein.c (main): Don't assume stdin can be inherited
101991         closed on all systems.
101992         * tests/test-closein.sh: Likewise.
101993         Reported by Piotr Tarnowski.
101995 2007-09-28  Jim Meyering  <jim@meyering.net>
101997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101999 2007-09-27  Jim Meyering  <jim@meyering.net>
102001         canonicalize: Avoid a false-positive cycle failure.
102002         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102003         Sort.  Remove cycle-check.
102004         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102005         not cycle-check.h.
102006         (seen_triple): New function.
102007         (canonicalize_filename_mode): Use it instead of cycle-check.
102008         * tests/test-canonicalize.c: Add a test for this bug.
102009         * tests/test-canonicalize.sh: Set up and run the test.
102011         New module, file-set, from coreutils.
102012         * modules/file-set: Define it.
102013         * lib/file-set.c, lib/file-set.h: Implement.
102015         New module, hash-triple, from coreutils.
102016         * modules/hash-triple: Define it.
102017         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102019 2007-09-25  Eric Blake  <ebb9@byu.net>
102021         Fix strerror on Interix.
102022         * lib/string_.h (strerror): Declare replacement.
102023         * doc/functions/strerror.texi (strerror): Document the Interix
102024         shortcoming.
102025         * modules/string (Makefile.am): Support new hooks.
102026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102027         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102028         gl_FUNC_STRERROR_SEPARATE.
102029         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102030         * lib/strerror.c (rpl_strerror): Provide replacement.
102031         * modules/strerror (Depends-on): Add string.
102032         (configure.ac): Detect use of module.
102033         * tests/test-strerror.c: New file.
102034         * modules/strerror-tests: New test module.
102035         * modules/argp (Depends-on): Add strerror.
102036         * modules/error (Depends-on): Likewise.
102037         Reported by Martin Koeppe.
102039 2007-09-24  Bruno Haible  <bruno@clisp.org>
102041         * README: Update git instructions.
102043 2007-09-24  Eric Blake  <ebb9@byu.net>
102045         Revert fpending breakage from 2007-09-08.
102046         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102047         __fpending.c.
102049 2007-09-24  Jim Meyering  <jim@meyering.net>
102051         filenamecat.c: Add a test.
102052         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102053         showing how the function works when DIR is the empty string.
102055 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102057         * tests/test-canonicalize.sh: Turn on executable bit.
102059 2007-09-19  Eric Blake  <ebb9@byu.net>
102061         * README: Update CVS instructions.
102063 2007-09-18  Bruno Haible  <bruno@clisp.org>
102065         * modules/areadlink: New file.
102066         * lib/areadlink.h (areadlink): New declaration.
102067         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102069 2007-09-17  Jim Meyering  <jim@meyering.net>
102071         * lib/savewd.c (ESTALE) [!defined]: Define.
102072         Reported to be required on Interix by Martin Koeppe.
102074 2007-09-17  Bruno Haible  <bruno@clisp.org>
102076         * gnulib-tool (func_version): Use $version.
102078 2007-09-16  Bruno Haible  <bruno@clisp.org>
102080         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102081         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102082         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102083         Reported by Greg Schafer <gschafer@zip.com.au>.
102085 2007-09-15  Bruno Haible  <bruno@clisp.org>
102087         * gnulib-tool (sed): Try a little harder to make bash understand the
102088         alias.
102089         Reported by Bruce Korb <bruce.korb@gmail.com>.
102091 2007-09-13  Eric Blake  <ebb9@byu.net>
102093         * ChangeLog: Remove conflict markers.
102095 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102097         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102098         Reported by Bruno Haible <bruno@clisp.org>.
102100 2007-09-12  Bruno Haible  <bruno@clisp.org>
102102         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102103         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102104         is not defined.
102106 2007-09-12  Eric Blake  <ebb9@byu.net>
102108         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102109         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102110         Autoconf definition.
102111         * modules/euidaccess (Depends-on): Add extensions, for
102112         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102113         * modules/fnmatch (Depends-on): Likewise.
102114         * modules/getaddrinfo (Depends-on): Likewise.
102115         * modules/getdelim (Depends-on): Likewise.
102116         * modules/getline (Depends-on): Likewise.
102117         * modules/getsubopt (Depends-on): Likewise.
102118         * modules/gettext (Depends-on): Likewise.
102119         * modules/group-member (Depends-on): Likewise.
102120         * modules/mbchar (Depends-on): Likewise.
102121         * modules/memmem (Depends-on): Likewise.
102122         * modules/mempcpy (Depends-on): Likewise.
102123         * modules/memrchr (Depends-on): Likewise.
102124         * modules/pagealign_alloc (Depends-on): Likewise.
102125         * modules/readutmp (Depends-on): Likewise.
102126         * modules/stpcpy (Depends-on): Likewise.
102127         * modules/stpncpy (Depends-on): Likewise.
102128         * modules/strchrnul (Depends-on): Likewise.
102129         * modules/strndup (Depends-on): Likewise.
102130         * modules/strsep (Depends-on): Likewise.
102131         * modules/strverscmp (Depends-on): Likewise.
102132         * modules/vasprintf (Depends-on): Likewise.
102133         * modules/wcwidth (Depends-on): Likewise.
102134         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102135         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102139         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102140         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102141         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102142         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102143         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102145         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102146         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102147         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102148         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102149         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102150         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102151         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102154         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102155         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102156         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102157         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102158         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102160         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102161         so that lock.m4 can be used in gettext without extensions module.
102163 2007-09-11  Bruno Haible  <bruno@clisp.org>
102165         * m4/isc-posix.m4: Remove file.
102166         Suggested by Eric Blake.
102168 2007-09-11  Eric Blake  <ebb9@byu.net>
102170         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102172 2007-09-10  Bruno Haible  <bruno@clisp.org>
102174         * posix-modules: Fix typo in error message.
102175         Reported by Matt <mkraai@beckman.com>.
102177 2007-09-09  Bruno Haible  <bruno@clisp.org>
102179         * doc/functions/getdelim.texi: Update list of platforms lacking the
102180         function.
102181         * doc/functions/getline.texi: Likewise.
102183 2007-09-09  Jim Meyering  <jim@meyering.net>
102185         * lib/hash.c (hash_initialize): Detect calloc failure.
102186         Reported by Bruno Haible.
102188 2007-09-09  Bruno Haible  <bruno@clisp.org>
102190         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102191         malloc or realloc fails.
102193 2007-09-09  Bruno Haible  <bruno@clisp.org>
102195         * modules/getcwd (Depends-on): Add malloc-posix.
102196         * modules/glob (Depends-on): Likewise.
102197         * modules/putenv (Depends-on): Likewise.
102198         * modules/strdup (Depends-on): Likewise.
102199         * modules/getdelim (Depends-on): Add realloc-posix.
102200         * modules/read-file (Depends-on): Likewise.
102202 2007-09-09  Bruno Haible  <bruno@clisp.org>
102204         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102205         (gl_FUNC_MALLOC_POSIX): Require it.
102206         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102207         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102208         * modules/realloc (Files): Add m4/malloc.m4.
102209         * modules/calloc (Files): Likewise.
102211 2007-09-09  Bruno Haible  <bruno@clisp.org>
102213         * modules/malloc-posix: New file.
102214         * modules/malloc (Depends-on): Add malloc-posix.
102215         * lib/malloc.c: Include errno.h.
102216         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102217         and a POSIX-compatible malloc into a single function. Set ENOMEM
102218         when returning NULL.
102219         * m4/malloc.m4: New file.
102220         * doc/functions/malloc.texi: Mention the malloc-posix module.
102221         * lib/stdlib_.h (malloc): New declaration.
102222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102223         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102224         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102225         and HAVE_MALLOC_POSIX.
102227 2007-09-09  Bruno Haible  <bruno@clisp.org>
102229         * modules/realloc-posix: New file.
102230         * modules/realloc (Depends-on): Add realloc-posix.
102231         * lib/realloc.c: Include errno.h.
102232         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102233         and a POSIX-compatible realloc into a single function. Set ENOMEM
102234         when returning NULL.
102235         * m4/realloc.m4: New file.
102236         * doc/functions/realloc.texi: Mention the realloc-posix module.
102237         * lib/stdlib_.h (realloc): New declaration.
102238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102239         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102240         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102241         and HAVE_REALLOC_POSIX.
102243 2007-09-09  Bruno Haible  <bruno@clisp.org>
102245         * modules/calloc-posix: New file.
102246         * modules/calloc (Depends-on): Add calloc-posix.
102247         * lib/calloc.c: Include errno.h.
102248         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102249         and a POSIX-compatible calloc into a single function. Set ENOMEM
102250         when returning NULL.
102251         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102252         * doc/functions/calloc.texi: Mention the calloc-posix module.
102253         * lib/stdlib_.h (calloc): New declaration.
102254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102255         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102256         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102257         and HAVE_CALLOC_POSIX.
102259 2007-09-09  Bruno Haible  <bruno@clisp.org>
102261         Allow for modules to show an arbitrary notice.
102262         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102263         * gnulib-tool: New option --extract-notice.
102264         (func_usage): Document it.
102265         (sed_extract_prog): Update.
102266         (func_get_notice): New function.
102267         (func_modules_notice): New function.
102268         (func_import, func_create_testdir): Invoke it.
102269         Suggested by Jim Meyering.
102271 2007-09-09  Bruno Haible  <bruno@clisp.org>
102273         * gnulib-tool: New options --verbose, --quiet.
102274         (func_usage): Document them.
102275         (verbose): New variable.
102276         (func_execute_command): New function.
102277         (func_import): Don't show the module list and the file list if
102278         $verbose < 0.
102279         (func_create_testdir): Likewise. Use func_execute_command.
102280         (func_create_megatestdir): Use func_execute_command.
102282 2007-09-08  Bruno Haible  <bruno@clisp.org>
102284         * gnulib-tool (func_import): Prefer rsync over wget when available,
102285         for fetching the PO files.
102287 2007-09-08  Bruno Haible  <bruno@clisp.org>
102289         * posix-modules: New file. Portions copied from gnulib-tool.
102290         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102292 2007-09-08  Jim Meyering  <jim@meyering.net>
102294         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102295         * lib/fpending.h: Rename from __fpending.h.
102296         * lib/fpending.c: Rename from __fpending.c.
102297         Include "fpending.h", not "__fpending.h".
102298         * lib/__fpending.h, lib/__fpending.c: Remove files.
102299         * modules/fpending (Files): Reflect new file names.
102300         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102302 2007-09-08  Bruno Haible  <bruno@clisp.org>
102304         * m4/inttypes-h.m4: Remove stub file.
102306 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102308         * doc/headers/stdint.texi: Discuss #include_next issue.
102310 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102312         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102314 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102316         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102317         in variable name.
102319 2007-09-03  Jim Meyering  <jim@meyering.net>
102321         New module: git-version-gen.
102322         * modules/git-version-gen: New file.
102324         Import changes from coreutils for bootstrap script.
102326         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102328         bootstrap: uses rsync to download the .po files
102329         * build-aux/bootstrap (po_download_command_format): New global.
102330         (download_po_files): Use rsync.
102331         (update_po_files): Don't remove .po files after download,
102332         so future rsync runs can take advantage of the copies.
102334         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102336         Solve the unnecessary-.po-file-regeneration problem once and for all.
102337         * build-aux/bootstrap (download_po_files): New function, renamed from
102338         get_translations.  Now, downloads, but doesn't update LINGUAS.
102339         (update_po_files): New function.
102341         bootstrap: Ignore more.
102342         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102343         uniwidth to e.g., lib/.gitignore.
102344         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102346         * build-aux/bootstrap: New setting: vc_ignore.
102347         (insert_sorted_if_absent): Create $file if absent.
102348         Adapt to new, possibly empty, list: $vc_ignore.
102350         bootstrap: generate more ignorable names
102351         * build-aux/bootstrap (slurp): When generating ignorable names,
102352         also map .sin to .sed, .gperf to .c, and .y to .c.
102354 2007-09-03  Jim Meyering  <jim@meyering.net>
102356         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102357         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102359 2007-09-02  Bruno Haible  <bruno@clisp.org>
102361         Fix mis-recognition of 'mcs' on QNX 6.
102362         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102363         output contains the string "Mono".
102364         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102365         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102367 2007-09-01  Bruno Haible  <bruno@clisp.org>
102369         Fix collision between uniwidth/* and linebreak modules.
102370         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102371         u32_width): Remove declarations.
102372         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102373         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102374         streq3, streq2, streq1, streq0): Remove functions.
102375         (STREQ): Remove macro.
102376         (is_cjk_encoding): Remove function.
102377         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102378         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102379         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102380         * NEWS: Document the change.
102382 2007-09-01  Bruno Haible  <bruno@clisp.org>
102384         * lib/streq.h: Add double-inclusion guard.
102386 2007-09-01  Karl Berry  <karl@gnu.org>
102388         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102390 2007-08-28  Jim Meyering  <jim@meyering.net>
102392         Rename mreadlink_with_size to areadlink_with_size.
102393         * NEWS: Document the change.
102394         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102395         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102396         * lib/mreadlink.h: Rename this to...
102397         * lib/areadlink.h: ...this.
102398         * modules/mreadlink-with-size: Rename this to...
102399         * modules/areadlink-with-size: ...this.
102400         * lib/canonicalize.c: Reflect the renaming.
102401         * modules/canonicalize: Likewise.
102403 2007-08-26  Bruno Haible  <bruno@clisp.org>
102405         * gnulib-tool (func_import): When deciding which files to remove,
102406         consider also dangling symbolic links.
102407         Reported by Eric Blake.
102409 2007-08-26  Bruno Haible  <bruno@clisp.org>
102411         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102413 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102415         * lib/readline.c: Don't include getline.h, the prototype is now
102416         found in stdio.h.
102418 2007-08-23  Jim Meyering  <jim@meyering.net>
102420         Getdelim touchup.
102421         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102422         around the funlockfile call, since funlockfile never sets errno.
102423         Don't set errno upon failed realloc.
102425 2007-08-22  Eric Blake  <ebb9@byu.net>
102427         Getline touchups.
102428         * lib/getdelim.c (getdelim): Revert regression that required *n to
102429         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102430         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102431         getdelim, rather than whether implementation is missing.
102432         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102433         * lib/stdio_.h (getline): Also declare if replacement is
102434         required.
102435         * doc/functions/getdelim.texi: New file.
102436         * doc/functions/getline.texi: Likewise.
102437         * doc/gnulib.texi (Function Substitutes): Add new files.
102438         Reported by Bruno Haible.
102440 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102442         * users.txt: Add Guile.
102444 2007-08-22  Eric Blake  <ebb9@byu.net>
102446         * tests/test-getdelim.c (main): Use remove, not unlink.
102447         * tests/test-getline.c (main): Likewise.
102449         Move getline and getdelim into stdio.h, per POSIX 200x.
102450         * modules/getline (Files): Remove getline.h.
102451         (Depends-on): Add stdio.
102452         (configure.ac): Add module indicator.
102453         * modules/getdelim (Files): Remove getdelim.h.
102454         (Depends-on): Add stdio.
102455         (configure.ac): Add module indicator.
102456         * modules/stdio (Makefile.am): Work with new indicators.
102457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102458         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102459         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102460         * lib/getdelim.h: Delete.
102461         * lib/getline.h: Delete.
102462         * lib/stdio_.h (getdelim, getline): Declare.
102463         * modules/getdelim-tests: New module.
102464         * modules/getline-tests: Likewise.
102465         * tests/test-getdelim.c: New file.
102466         * tests/test-getline.c: Likewise.
102467         * NEWS: Document the change.
102468         * lib/getline.c: Update choice of header.
102469         * lib/csharpcomp.c: Likewise.
102470         * lib/getpass.c: Likewise.
102471         * lib/javacomp.c: Likewise.
102472         * lib/javaversion.c: Likewise.
102473         * lib/yesno.c: Likewise.
102474         * lib/getdelim.c: Likewise.
102475         (getdelim): Set errno on failure, and avoid memory leak.
102477 2007-08-19  Bruno Haible  <bruno@clisp.org>
102479         * modules/closein (Depends-on): Add freadahead.
102480         * lib/closein.c: Include freadahead.h.
102481         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102482         is zero.
102484 2007-08-19  Bruno Haible  <bruno@clisp.org>
102486         * modules/freadahead-tests: New file.
102487         * tests/test-freadahead.sh: New file.
102488         * tests/test-freadahead.c: New file.
102490         * modules/freadahead: New file.
102491         * lib/freadahead.h: New file.
102492         * lib/freadahead.c: New file.
102493         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102494         fbufmode, fpurge, freadable, fwritable.
102496 2007-08-19  Eric Blake  <ebb9@byu.net>
102498         Test yesno in combination with closein.
102499         * lib/yesno.c (yesno): Document use of stdin.
102500         * modules/yesno-tests (Files): New module.
102501         * tests/test-yesno.c (main): New file.
102502         * tests/test-yesno.sh: Likewise.
102504 2007-08-19  Bruno Haible  <bruno@clisp.org>
102506         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102507         * lib/fseeko.c (rpl_fseeko): Likewise.
102508         * lib/fseterr.c (fseterr): Likewise.
102510 2007-08-19  Bruno Haible  <bruno@clisp.org>
102512         * tests/test-lseek.c (main): Disable a test for BeOS.
102513         * doc/functions/lseek.texi: Document the BeOS bug.
102515 2007-08-19  Bruno Haible  <bruno@clisp.org>
102516             Eric Blake  <ebb9@byu.net>
102518         * lib/lseek.c: Include <sys/stat.h>.
102519         (rpl_lseek): Add workaround code also for Unix platforms.
102520         Needed for BeOS.
102521         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
102522         * doc/functions/lseek.texi: Document BeOS definiency.
102524 2007-08-18  Bruno Haible  <bruno@clisp.org>
102526         * modules/fstrcmp-tests: New file.
102527         * tests/test-fstrcmp.c: New file.
102529 2007-08-18  Bruno Haible  <bruno@clisp.org>
102531         * modules/fstrcmp: New file, from GNU gettext with modifications.
102532         * lib/fstrcmp.h: New file, from GNU gettext.
102533         * lib/fstrcmp.c: New file, from GNU gettext.
102534         * MODULES.html.sh (String handling): Add fstrcmp.
102536 2007-08-18  Bruno Haible  <bruno@clisp.org>
102538         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
102539         'bool'.
102540         (diag, compareseq): Remove const from the ctxt argument.
102541         (USE_HEURISTIC): Undefine at the end.
102543 2007-08-18  Jim Meyering  <jim@meyering.net>
102545         New file: lib/idcache.h
102546         * NEWS: Mention the addition.
102547         * modules/idcache (Files): Add lib/idcache.h
102548         * lib/idcache.c: Include "idcache.h".
102549         Don't include <sys/types.h>.
102550         Add a FIXME comment.
102551         Move file-scoped "static" declarations to the top.
102552         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
102554 2007-08-17  Bruno Haible  <bruno@clisp.org>
102555         and Paul Eggert  <eggert@cs.ucla.edu>
102557         * MODULES.html.sh: Add diffseq.
102558         * modules/diffseq: New file.
102559         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
102560         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
102562 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102564         Import changes from coreutils for bootstrap script.
102566         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
102568         * build-aux/bootstrap (slurp): Work even in environments where
102569         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
102570         current code does not slurp files whose names start with ".", and
102571         this looks like it might be a troublesome area.
102573         2007-07-11  Jim Meyering  <jim@meyering.net>
102575         If there's a GPL vN copyright comment, require that N == 3.
102577         2007-07-08  Jim Meyering  <jim@meyering.net>
102579         Run the coreutils-specific code only if tests/Makefile.am.in exists.
102580         * build-aux/bootstrap (mam_template): Move definition out of loop.
102582         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
102584         * build-aux/bootstrap (symlink_to_dir): Rename function from
102585         symlink_to_gnulib.  Add a directory parameter.  Update all
102586         callers.
102587         (cp_mark_as_generated): Also check for -- and link to -- files in
102588         gl/.
102590         2007-07-08  Jim Meyering  <jim@meyering.net>
102592         Adapt to deeper hierarchy in gnulib.
102593         * build-aux/bootstrap (symlink_to_dir): If the destination
102594         directory doesn't exist, create it. This is required at least for
102595         "lib/uniwidth/cjk.h".
102597         2007-05-15  Jim Meyering  <jim@meyering.net>
102599         * build-aux/bootstrap: Now that generated Makefile.am files
102600         are no longer under version control, they must be created at
102601         bootstrap time.
102603 2007-08-14  Ben Pfaff  <blp@gnu.org>
102605         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102607 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
102609         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
102610         given the changes below.
102611         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102612         even on hosts that have padding bits beyond the supported 64.
102614 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102616         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102617         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102618         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102619         depends on it.
102620         (xstrtol_error): Remove.
102621         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102622         but with a different signature.
102623         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102624         * lib/xstrtol-error.c: Include exitfail.h.
102625         (xstrtol_fatal): New function, with a different signature from the
102626         old xstrtol_error, so that the caller need not worry about passing
102627         in an exit status, or about storage management of the option argument.
102628         (xstrtol_error): Now a static function.  Redo signature to
102629         implement xstrtol_fatal.  Output the correct number of hyphens in
102630         front of the option so that the caller need not worry about
102631         storage management.
102632         (N_): New macro.
102633         (_): Remove; not used now.
102634         * modules/xstrtol: Depend on getopt.
102635         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102636         of old STRTOL_FATAL_ERROR macro.
102637         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102638         of test program.
102639         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102640         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102642 2007-08-08  Eric Blake  <ebb9@byu.net>
102644         * lib/xstrtol-error.c: Add missing include.
102646         Move xstrtol messages into gnulib domain, when --pobase is used.
102647         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102648         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102649         * modules/xstrtol (Files): Distribute new file.
102650         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102651         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102652         * tests/test-xstrtol.c: ...into new file.
102653         * tests/test-xstrtoul.c: Also test xstrtoul.
102654         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102655         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102656         * tests/test-xstrtol.sh: Drive the tests.
102657         * tests/test-xstrtoimax.sh: Likewise.
102658         * tests/test-xstrtoumax.sh: Likewise.
102659         * modules/xstrtol-tests: New module.
102660         * modules/xstrtoimax-tests: Likewise.
102661         * modules/xstrtoumax-tests: Likewise.
102663 2007-08-08  Jim Meyering  <jim@meyering.net>
102665         New function: mfile_name_concat.
102666         * lib/filenamecat.c (mfile_name_concat): New function, just like
102667         file_name_concat, but return NULL upon failure rather than exiting
102668         with a diagnostic.
102669         * lib/filenamecat.h: Declare it.
102671 2007-08-07  Bruno Haible  <bruno@clisp.org>
102673         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102674         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102675         warning from gcc.
102676         Reported by Eric Blake.
102678 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102680         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102681         * modules/crypto/arcfour (License): Likewise.
102682         * modules/crypto/des-tests (License): Likewise.
102683         * modules/crypto/gc-arctwo-tests (License): Likewise.
102684         * modules/crypto/gc-des-tests (License): Likewise.
102685         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102686         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102687         * modules/crypto/gc-md2-tests (License): Likewise.
102688         * modules/crypto/gc-md4-tests (License): Likewise.
102689         * modules/crypto/gc-md5-tests (License): Likewise.
102690         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102691         * modules/crypto/gc-rijndael-tests (License): Likewise.
102692         * modules/crypto/gc-sha1-tests (License): Likewise.
102693         * modules/crypto/gc-tests (License): Likewise.
102694         * modules/crypto/hmac-md5 (License): Likewise.
102695         * modules/crypto/hmac-sha1 (License): Likewise.
102696         * modules/crypto/md2-tests (License): Likewise.
102697         * modules/crypto/md4-tests (License): Likewise.
102698         * modules/crypto/md5 (License): Likewise.
102699         * modules/crypto/rijndael (License): Likewise.
102700         * modules/crypto/sha1 (License): Likewise.
102701         * modules/memxor (License): Likewise.
102703 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102704         and Bruno Haible  <bruno@clisp.org>
102706         * NEWS: Describe interface changes to human, xstrtol.
102707         * lib/human.h: Include <xstrtol.h>.
102708         (human_options): Return enum strtol_error, not int.  Remove
102709         bool arg; take int * instead.
102710         * lib/human.c: Don't include "gettext.h".
102711         (_): Remove; no longer used.
102712         Don't include <xstrtol.h>, since human.h does it.
102713         (human_options): Adjust to abovementioned interface changes.
102714         Do not report error to stderr; that's now the caller's
102715         responsibility.
102716         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102717         interface change.
102718         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102719         Str, Argument_type_string.  All uses changed.  Put " argument"
102720         in diagnostics to make them clearer.  Change wording of suffix
102721         message for clarity.
102722         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102723         Argument_type_string.
102724         (STRTOL_FATAL_WARN): Remove; no longer used.
102725         * modules/human (Depends-on): Remove gettext-h.
102727 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102729         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102731 2007-07-31  Bruno Haible  <bruno@clisp.org>
102733         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102734         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102735         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102737 2007-07-31  Bruno Haible  <bruno@clisp.org>
102739         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102740         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102742 2007-07-30  Bruno Haible  <bruno@clisp.org>
102744         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102745         * modules/c-ctype (License): Likewise.
102746         * modules/c-strcase (License): Likewise.
102747         * modules/check-version (License): Likewise.
102748         * modules/iconv (License): Likewise.
102749         * modules/iconv_open (License): Likewise.
102750         * modules/read-file (License): Likewise.
102751         * modules/striconv (License): Likewise.
102752         * modules/strverscmp (License): Likewise.
102753         * modules/vasprintf (License): Likewise.
102754         * modules/crypto/des (License): Likewise.
102755         * modules/crypto/gc (License): Likewise.
102756         * modules/crypto/gc-arcfour (License): Likewise.
102757         * modules/crypto/gc-arctwo (License): Likewise.
102758         * modules/crypto/gc-des (License): Likewise.
102759         * modules/crypto/gc-hmac-md5 (License): Likewise.
102760         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102761         * modules/crypto/gc-md2 (License): Likewise.
102762         * modules/crypto/gc-md4 (License): Likewise.
102763         * modules/crypto/gc-md5 (License): Likewise.
102764         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102765         * modules/crypto/gc-random (License): Likewise.
102766         * modules/crypto/gc-rijndael (License): Likewise.
102767         * modules/crypto/gc-sha1 (License): Likewise.
102768         * modules/crypto/md2 (License): Likewise.
102769         * modules/crypto/md4 (License): Likewise.
102771 2007-07-30  Jim Meyering  <jim@meyering.net>
102773         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102774         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102775         it has valid stat data.  This bug would cause du not to count the
102776         sizes of inaccessible directories.
102777         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102778         in <http://bugzilla.redhat.com/250077>.
102780 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102781             Bruno Haible  <bruno@clisp.org>
102783         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102784         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102785         #include_next, gives a diagnostic about it, but reports no error in
102786         the exit code.
102787         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102789 2007-07-24  Ben Pfaff  <blp@gnu.org>
102791         Improve name: "count-one-bits" is better than "popcount".
102792         * MODULES.html.sh: Update name.
102793         * lib/popcount.h: Renamed lib/count-one-bits.h.
102794         (popcount): Renamed count_one_bits.
102795         (popcountl): Renamed count_one_bits_l.
102796         (popcountll): Renamed count_one_bits_ll.
102797         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102798         * modules/popcount: Renamed module/count-one-bits.
102799         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102800         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102802 2007-07-23  Ben Pfaff  <blp@gnu.org>
102804         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102805         better code generation, and add U to large constants to avoid
102806         warnings, in non-GCC case.
102807         Suggested by Bruno Haible.
102809 2007-07-23  Ben Pfaff  <blp@gnu.org>
102811         * lib/popcount.h: Use verify_true instead of if...abort.
102812         * modules/popcount: Depend on verify module.
102813         Suggested by Jim Meyering.
102815 2007-07-23  Bruno Haible  <bruno@clisp.org>
102817         * gnulib-tool (func_import): Create a .cvsignore file also when the
102818         directory is not yet in CVS but the toplevel directory is. When
102819         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102820         Reported by Karl Berry.
102822 2007-07-22  Ben Pfaff  <blp@gnu.org>
102824         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102825         case.
102826         Suggested by Eric Blake.
102828 2007-07-22  Ben Pfaff  <blp@gnu.org>
102830         New module: popcount.
102831         * MODULES.html.sh: Add popcount.
102832         * modules/popcount: New file.
102833         * modules/popcount-tests: New file.
102834         * tests/test-popcount.c: New file.
102835         * lib/popcount.h: New file.
102836         * m4/popcount.m4: New file.
102838 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102840         * build-aux/announce-gen: Update to GPLv3.
102842         * build-aux/config.guess: Update from config.
102844 2007-07-21  Bruno Haible  <bruno@clisp.org>
102846         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102847         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102849 2007-07-20  Jim Meyering  <jim@meyering.net>
102851         * check-module: Diagnose a self-dependency.
102853 2007-07-19  Bruno Haible  <bruno@clisp.org>
102855         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102856         empty.
102857         Reported by Eric Blake.
102859 2007-07-18  Bruno Haible  <bruno@clisp.org>
102861         * gnulib-tool: New options --po-base, --po-domain.
102862         (func_usage): Document them.
102863         (pobase, po_domain): New variables.
102864         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102865         DEFAULT_TEXT_DOMAIN.
102866         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102867         (func_import): Consider pobase and po_domain. Create a po/ directory.
102868         (func_create_testdir): Set pobase and po_domain to empty.
102869         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102870         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102872 2007-07-18  Bruno Haible  <bruno@clisp.org>
102874         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102875         EXTRA_DIST augmentation for files in build-aux/.
102877 2007-07-16  Bruno Haible  <bruno@clisp.org>
102879         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102880         * modules/getdelim (License): Likewise.
102882 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102884         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102885         * modules/d-type (License): Likewise.
102886         * modules/extensions (License): Likewise.
102887         * modules/fnmatch (License): Likewise.
102888         * modules/fseeko (License): Likewise.
102889         * modules/getaddrinfo (License): Likewise.
102890         * modules/getline (License): Likewise.
102891         * modules/getlogin_r (License): Likewise.
102892         * modules/getpass (License): Likewise.
102893         * modules/gettimeofday (License): Likewise.
102894         * modules/glob (License): Likewise.
102895         * modules/inet_ntop (License): Likewise.
102896         * modules/malloc (License): Likewise.
102897         * modules/malloca (License): Likewise.
102898         * modules/memmem (License): Likewise.
102899         * modules/mempcpy (License): Likewise.
102900         * modules/memset (License): Likewise.
102901         * modules/minmax (License): Likewise.
102902         * modules/mktime (License): Likewise.
102903         * modules/netinet_in (License): Likewise.
102904         * modules/pathmax (License): Likewise.
102905         * modules/poll (License): Likewise.
102906         * modules/regex (License): Likewise.
102907         * modules/snprintf (License): Likewise.
102908         * modules/stdbool (License): Likewise.
102909         * modules/stdint (License): Likewise.
102910         * modules/stdio (License): Likewise.
102911         * modules/strcase (License): Likewise.
102912         * modules/strcasestr (License): Likewise.
102913         * modules/strdup (License): Likewise.
102914         * modules/string (License): Likewise.
102915         * modules/strndup (License): Likewise.
102916         * modules/strnlen (License): Likewise.
102917         * modules/strpbrk (License): Likewise.
102918         * modules/strptime (License): Likewise.
102919         * modules/strsep (License): Likewise.
102920         * modules/sys_select (License): Likewise.
102921         * modules/sys_socket (License): Likewise.
102922         * modules/sys_stat (License): Likewise.
102923         * modules/sys_time (License): Likewise.
102924         * modules/time (License): Likewise.
102925         * modules/time_r (License): Likewise.
102926         * modules/timegm (License): Likewise.
102927         * modules/unistd (License): Likewise.
102928         * modules/vsnprintf (License): Likewise.
102929         * modules/wctype (License): Likewise.
102931 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102933         * modules/argz (License): LGPLv2+.
102935 2007-07-15  Karl Berry  <karl@gnu.org>
102937         * doc/gnulib.texi: revise node structure per new fdl.texi.
102939 2007-07-14  Bruno Haible  <bruno@clisp.org>
102941         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
102942         the output file.
102943         * lib/uniname/uninames.h: Regenerated.
102945 2007-07-14  Karl Berry  <karl@gnu.org>
102947         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102948         omitting sectioning and index commands.
102950 2007-07-13  Bruno Haible  <bruno@clisp.org>
102952         New gnulib-tool option --more-symlinks.
102953         * gnulib-tool (func_usage): Document --more-symlinks.
102954         (do_copyrights): New variable.
102955         Recognize option --more-symlinks.
102956         (func_import): Don't add a copyright notice transform to
102957         sed_transform_lib_file if do_copyrights is empty.
102959 2007-07-13  Bruno Haible  <bruno@clisp.org>
102961         * lib/vasnprintf.c (decimal_point_char): Define also if
102962         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102963         && !NEED_PRINTF_DIRECTIVE_A.
102964         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102965         Gary V. Vaughan <gary@gnu.org>.
102967 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102969         * lib/inttypes_.h: Undo previous change, since it was fixed
102970         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102972 2007-07-13  Bruno Haible  <bruno@clisp.org>
102974         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102975         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102977 2007-07-13  Jim Meyering  <jim@meyering.net>
102979         df: Don't fail for Tru64's "file-on-file mount".
102980         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102981         so we fall through and use statfs instead.  Details here:
102982         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102983         Reported by Albert Chin.
102985 2007-07-13  Bruno Haible  <bruno@clisp.org>
102987         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102988         * modules/configmake (License): Likewise.
102989         * modules/gettext (License): Likewise.
102990         * modules/gettext-h (License): Likewise.
102991         * modules/include_next (License): Likewise.
102992         * modules/link-warning (License): Likewise.
102993         * modules/localcharset (License): Likewise.
102994         * modules/localename (License): Likewise.
102995         * modules/lock (License): Likewise.
102996         * modules/relocatable-lib-lgpl (License): Likewise.
102997         * modules/size_max (License): Likewise.
102998         * modules/vasnprintf (License): Likewise.
102999         * modules/wchar (License): Likewise.
103000         * modules/xsize (License): Likewise.
103002 2007-07-13  Bruno Haible  <bruno@clisp.org>
103004         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103005         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103007 2007-07-12  Bruno Haible  <bruno@clisp.org>
103009         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103010         in the modules files.
103012 2007-07-11  Karl Berry  <karl@gnu.org>
103014         * MODULES.html.sh (func_module): use
103015          sed -e '\|^'"${includefile}"'$|d'
103016          instead of /.../d, to avoid errors on $includefile's containing /.
103018 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103020         * gnulib-tool (func_import): Avoid duplication of --avoid
103021         statements
103022         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103023         names to `_' in variable names.
103025 2007-07-10  Eric Blake  <ebb9@byu.net>
103027         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103028         * NEWS: Document this change.
103030 2007-07-08  Bruno Haible  <bruno@clisp.org>
103032         Update to Unicode 5.0.
103033         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103034         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103035         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103036         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103037         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103038         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103039         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103040         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103041         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103042         U+10A3F, U+1D242..U+1D244.
103043         (nonspacing_table_ind): Update.
103044         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103045         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103047 2007-07-08  Bruno Haible  <bruno@clisp.org>
103049         Update to Unicode 5.0.
103050         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103051         code transform. Extend the name index field of unicode_name_to_code and
103052         unicode_code_to_name from 16 to 24 bits.
103053         * lib/uniname/uniname.c (unicode_character_name,
103054         unicode_name_character): Add the range 0x12xxx to the code transform.
103055         * lib/uniname/uninames.h: Regenerated.
103056         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103058 2007-07-07  Bruno Haible  <bruno@clisp.org>
103060         * modules/wcwidth-tests: New file.
103061         * tests/test-wcwidth.c: New file.
103063         Work around MacOS X wcwidth() bug.
103064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103065         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103066         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103067         original wcwidth in non-UTF-8 locales.
103068         * modules/wcwidth (Depends-on): Add localcharset, streq,
103069         uniwidth/width.
103070         * doc/functions/wcwidth.texi: Update.
103072 2007-07-07  Bruno Haible  <bruno@clisp.org>
103074         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103075         (wcwidth): New declaration.
103076         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103077         macros.
103078         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103079         here. Prepare for creating <wchar.h> unconditionally.
103080         * modules/wchar (Depends-on): Add link-warning.
103081         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103082         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103083         * lib/wcwidth.h: Remove file.
103084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103085         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103086         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103087         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103088         (Include): Replace wcwidth.h with <wchar.h>.
103089         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103090         * lib/mbchar.h: Don't include wcwidth.h.
103091         * lib/mbswidth.c: Likewise.
103092         * NEWS: Mention the change.
103094 2007-07-07  Bruno Haible  <bruno@clisp.org>
103096         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103097         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103098         definition with an external declaration.
103099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103100         defined as a function. Remove AC_C_INLINE requirement.
103101         * modules/wcwidth (Files): Add lib/wcwidth.c.
103102         (Makefile.am): Remove redundant statement.
103104 2007-07-07  Bruno Haible  <bruno@clisp.org>
103106         * MODULES.html.sh (Unicode string functions): Add the new modules.
103108         * tests/uniwidth/test-u32-strwidth.c: New file.
103109         * modules/uniwidth/u32-strwidth-tests: New file.
103111         * lib/uniwidth/u32-strwidth.c: New file.
103112         * modules/uniwidth/u32-strwidth: New file.
103114         * tests/uniwidth/test-u16-strwidth.c: New file.
103115         * modules/uniwidth/u16-strwidth-tests: New file.
103117         * lib/uniwidth/u16-strwidth.c: New file.
103118         * modules/uniwidth/u16-strwidth: New file.
103120         * tests/uniwidth/test-u8-strwidth.c: New file.
103121         * modules/uniwidth/u8-strwidth-tests: New file.
103123         * lib/uniwidth/u8-strwidth.c: New file.
103124         * modules/uniwidth/u8-strwidth: New file.
103126         * tests/uniwidth/test-u32-width.c: New file.
103127         * modules/uniwidth/u32-width-tests: New file.
103129         * lib/uniwidth/u32-width.c: New file.
103130         * modules/uniwidth/u32-width: New file.
103132         * tests/uniwidth/test-u16-width.c: New file.
103133         * modules/uniwidth/u16-width-tests: New file.
103135         * lib/uniwidth/u16-width.c: New file.
103136         * modules/uniwidth/u16-width: New file.
103138         * tests/uniwidth/test-u8-width.c: New file.
103139         * modules/uniwidth/u8-width-tests: New file.
103141         * lib/uniwidth/u8-width.c: New file.
103142         * modules/uniwidth/u8-width: New file.
103144         * tests/uniwidth/test-uc_width.c: New file.
103145         * modules/uniwidth/width-tests: New file.
103147         * lib/uniwidth/width.c: New file, from GNU libiconv.
103148         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103149         * modules/uniwidth/width: New file.
103151         * lib/uniwidth.h: New file, from GNU libiconv.
103152         * modules/uniwidth/base: New file.
103154 2007-07-07  Bruno Haible  <bruno@clisp.org>
103156         * lib/uniname.h: New file, from GNU gettext.
103157         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103158         * lib/uniname/uninames.h: New file, from GNU gettext.
103159         * lib/uniname/uniname.c: New file, from GNU gettext.
103160         * tests/uniname/test-uninames.sh: New file.
103161         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103162         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103163         * modules/uniname/base: New file.
103164         * modules/uniname/uniname: New file.
103165         * modules/uniname/uniname-tests: New file.
103166         * MODULES.html.sh (Unicode string functions): Add the new modules.
103168 2007-07-06  Bruno Haible  <bruno@clisp.org>
103170         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103172 2007-07-06  Bruno Haible  <bruno@clisp.org>
103174         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103175         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103176         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103177         include <sys/time.h>.
103178         Reported by Eric Blake.
103180 2007-07-06  Eric Blake  <ebb9@byu.net>
103182         Fix testing canonicalize on cygwin.
103183         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103184         Revert patch from 2007-06-19.
103185         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103186         canonicalize module is also in use.
103187         * tests/test-canonicalize.c: New file.
103188         * tests/test-canonicalize.sh: Likewise.
103189         * modules/canonicalize-tests: Likewise.
103191 2007-07-06  Jim Meyering  <jim@meyering.net>
103193         * lib/getugroups.c (getugroups): Detect getgrent failure.
103194         Adjust comment to reflect reality: this function may return -1.
103196 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103198         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103199         the new TP address.
103200         (usage): Fix typo
103201         (gnulib_mk): New variable.
103203 2007-07-05  Jim Meyering  <jim@meyering.net>
103205         Don't let endgrent clobber errno, no matter how improbable.
103206         * lib/getugroups.c (getugroups): Save and restore errno around
103207         endgrent call.
103209         Close the group DB even when failing with 2^31 or more members.
103210         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103212 2007-07-04  Jim Meyering  <jim@meyering.net>
103214         * lib/getugroups.h: New file.
103215         * lib/getugroups.c: Include "getugroups.h".
103216         Remove uses of "register" keyword.
103217         Move local variable, "cp", down into scope where used.
103218         Give "username" parameter the "const" attribute.
103219         * modules/getugroups (Files): Add lib/getugroups.h
103221 2007-07-04  Karl Berry  <karl@gnu.org>
103223         * MODULES.html.sh (func_all_modules): Complete rename of
103224         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103226 2007-07-02  Bruno Haible  <bruno@clisp.org>
103228         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103229         mode, when inttypes.h comes from gnulib.
103230         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103232 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103234         * NEWS: Mention lgpl module name change.
103236         * modules/lgpl-2.1: Renamed from lgpl.
103238         * NEWS: Mention gpl module name change.
103240         * modules/gpl-3.0: New file, based on gpl-2.0.
103242         * modules/gpl-2.0: Renamed from gpl.
103244         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103245         doc/gpl-2.0.texi.
103247 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103249         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103250         #define __STDC_LIMIT_MACROS temporarily while including
103251         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103252         Problem reported by Joel E. Denny in
103253         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103255 2007-07-01  Bruno Haible  <bruno@clisp.org>
103257         * lib/unistdio.h: New file.
103258         * lib/unistdio/u-asnprintf.h: New file.
103259         * lib/unistdio/u-asprintf.h: New file.
103260         * lib/unistdio/u-printf-args.c: New file.
103261         * lib/unistdio/u-printf-args.h: New file.
103262         * lib/unistdio/u-printf-parse.h: New file.
103263         * lib/unistdio/u-snprintf.h: New file.
103264         * lib/unistdio/u-sprintf.h: New file.
103265         * lib/unistdio/u-vasprintf.h: New file.
103266         * lib/unistdio/u-vsnprintf.h: New file.
103267         * lib/unistdio/u-vsprintf.h: New file.
103268         * lib/unistdio/ulc-asnprintf.c: New file.
103269         * lib/unistdio/ulc-asprintf.c: New file.
103270         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103271         * lib/unistdio/ulc-printf-parse.c: New file.
103272         * lib/unistdio/ulc-snprintf.c: New file.
103273         * lib/unistdio/ulc-sprintf.c: New file.
103274         * lib/unistdio/ulc-vasnprintf.c: New file.
103275         * lib/unistdio/ulc-vasprintf.c: New file.
103276         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103277         * lib/unistdio/ulc-vsnprintf.c: New file.
103278         * lib/unistdio/ulc-vsprintf.c: New file.
103279         * lib/unistdio/u8-asnprintf.c: New file.
103280         * lib/unistdio/u8-asprintf.c: New file.
103281         * lib/unistdio/u8-printf-parse.c: New file.
103282         * lib/unistdio/u8-snprintf.c: New file.
103283         * lib/unistdio/u8-sprintf.c: New file.
103284         * lib/unistdio/u8-vasnprintf.c: New file.
103285         * lib/unistdio/u8-vasprintf.c: New file.
103286         * lib/unistdio/u8-vsnprintf.c: New file.
103287         * lib/unistdio/u8-vsprintf.c: New file.
103288         * lib/unistdio/u8-u8-asnprintf.c: New file.
103289         * lib/unistdio/u8-u8-asprintf.c: New file.
103290         * lib/unistdio/u8-u8-snprintf.c: New file.
103291         * lib/unistdio/u8-u8-sprintf.c: New file.
103292         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103293         * lib/unistdio/u8-u8-vasprintf.c: New file.
103294         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103295         * lib/unistdio/u8-u8-vsprintf.c: New file.
103296         * lib/unistdio/u16-asnprintf.c: New file.
103297         * lib/unistdio/u16-asprintf.c: New file.
103298         * lib/unistdio/u16-printf-parse.c: New file.
103299         * lib/unistdio/u16-snprintf.c: New file.
103300         * lib/unistdio/u16-sprintf.c: New file.
103301         * lib/unistdio/u16-vasnprintf.c: New file.
103302         * lib/unistdio/u16-vasprintf.c: New file.
103303         * lib/unistdio/u16-vsnprintf.c: New file.
103304         * lib/unistdio/u16-vsprintf.c: New file.
103305         * lib/unistdio/u16-u16-asnprintf.c: New file.
103306         * lib/unistdio/u16-u16-asprintf.c: New file.
103307         * lib/unistdio/u16-u16-snprintf.c: New file.
103308         * lib/unistdio/u16-u16-sprintf.c: New file.
103309         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103310         * lib/unistdio/u16-u16-vasprintf.c: New file.
103311         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103312         * lib/unistdio/u16-u16-vsprintf.c: New file.
103313         * lib/unistdio/u32-asnprintf.c: New file.
103314         * lib/unistdio/u32-asprintf.c: New file.
103315         * lib/unistdio/u32-printf-parse.c: New file.
103316         * lib/unistdio/u32-snprintf.c: New file.
103317         * lib/unistdio/u32-sprintf.c: New file.
103318         * lib/unistdio/u32-vasnprintf.c: New file.
103319         * lib/unistdio/u32-vasprintf.c: New file.
103320         * lib/unistdio/u32-vsnprintf.c: New file.
103321         * lib/unistdio/u32-vsprintf.c: New file.
103322         * lib/unistdio/u32-u32-asnprintf.c: New file.
103323         * lib/unistdio/u32-u32-asprintf.c: New file.
103324         * lib/unistdio/u32-u32-snprintf.c: New file.
103325         * lib/unistdio/u32-u32-sprintf.c: New file.
103326         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103327         * lib/unistdio/u32-u32-vasprintf.c: New file.
103328         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103329         * lib/unistdio/u32-u32-vsprintf.c: New file.
103330         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103331         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103332         * tests/unistdio/test-ulc-printf1.h: New file.
103333         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103334         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103335         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103336         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103337         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103338         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103339         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103340         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103341         * tests/unistdio/test-u8-asnprintf1.c: New file.
103342         * tests/unistdio/test-u8-asnprintf1.h: New file.
103343         * tests/unistdio/test-u8-printf1.h: New file.
103344         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103345         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103346         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103347         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103348         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103349         * tests/unistdio/test-u8-vasprintf1.c: New file.
103350         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103351         * tests/unistdio/test-u8-vsprintf1.c: New file.
103352         * tests/unistdio/test-u16-asnprintf1.c: New file.
103353         * tests/unistdio/test-u16-asnprintf1.h: New file.
103354         * tests/unistdio/test-u16-printf1.h: New file.
103355         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103356         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103357         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103358         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103359         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103360         * tests/unistdio/test-u16-vasprintf1.c: New file.
103361         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103362         * tests/unistdio/test-u16-vsprintf1.c: New file.
103363         * tests/unistdio/test-u32-asnprintf1.c: New file.
103364         * tests/unistdio/test-u32-asnprintf1.h: New file.
103365         * tests/unistdio/test-u32-printf1.h: New file.
103366         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103367         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103368         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103369         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103370         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103371         * tests/unistdio/test-u32-vasprintf1.c: New file.
103372         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103373         * tests/unistdio/test-u32-vsprintf1.c: New file.
103374         * modules/unistdio/base: New file.
103375         * modules/unistdio/u-printf-args: New file.
103376         * modules/unistdio/ulc-asnprintf: New file.
103377         * modules/unistdio/ulc-asprintf: New file.
103378         * modules/unistdio/ulc-fprintf: New file.
103379         * modules/unistdio/ulc-printf-parse: New file.
103380         * modules/unistdio/ulc-snprintf: New file.
103381         * modules/unistdio/ulc-sprintf: New file.
103382         * modules/unistdio/ulc-vasnprintf: New file.
103383         * modules/unistdio/ulc-vasprintf: New file.
103384         * modules/unistdio/ulc-vfprintf: New file.
103385         * modules/unistdio/ulc-vsnprintf: New file.
103386         * modules/unistdio/ulc-vsprintf: New file.
103387         * modules/unistdio/u8-asnprintf: New file.
103388         * modules/unistdio/u8-asprintf: New file.
103389         * modules/unistdio/u8-printf-parse: New file.
103390         * modules/unistdio/u8-snprintf: New file.
103391         * modules/unistdio/u8-sprintf: New file.
103392         * modules/unistdio/u8-vasnprintf: New file.
103393         * modules/unistdio/u8-vasprintf: New file.
103394         * modules/unistdio/u8-vsnprintf: New file.
103395         * modules/unistdio/u8-vsprintf: New file.
103396         * modules/unistdio/u8-u8-asnprintf: New file.
103397         * modules/unistdio/u8-u8-asprintf: New file.
103398         * modules/unistdio/u8-u8-snprintf: New file.
103399         * modules/unistdio/u8-u8-sprintf: New file.
103400         * modules/unistdio/u8-u8-vasnprintf: New file.
103401         * modules/unistdio/u8-u8-vasprintf: New file.
103402         * modules/unistdio/u8-u8-vsnprintf: New file.
103403         * modules/unistdio/u8-u8-vsprintf: New file.
103404         * modules/unistdio/u16-asnprintf: New file.
103405         * modules/unistdio/u16-asprintf: New file.
103406         * modules/unistdio/u16-printf-parse: New file.
103407         * modules/unistdio/u16-snprintf: New file.
103408         * modules/unistdio/u16-sprintf: New file.
103409         * modules/unistdio/u16-vasnprintf: New file.
103410         * modules/unistdio/u16-vasprintf: New file.
103411         * modules/unistdio/u16-vsnprintf: New file.
103412         * modules/unistdio/u16-vsprintf: New file.
103413         * modules/unistdio/u16-u16-asnprintf: New file.
103414         * modules/unistdio/u16-u16-asprintf: New file.
103415         * modules/unistdio/u16-u16-snprintf: New file.
103416         * modules/unistdio/u16-u16-sprintf: New file.
103417         * modules/unistdio/u16-u16-vasnprintf: New file.
103418         * modules/unistdio/u16-u16-vasprintf: New file.
103419         * modules/unistdio/u16-u16-vsnprintf: New file.
103420         * modules/unistdio/u16-u16-vsprintf: New file.
103421         * modules/unistdio/u32-asnprintf: New file.
103422         * modules/unistdio/u32-asprintf: New file.
103423         * modules/unistdio/u32-printf-parse: New file.
103424         * modules/unistdio/u32-snprintf: New file.
103425         * modules/unistdio/u32-sprintf: New file.
103426         * modules/unistdio/u32-vasnprintf: New file.
103427         * modules/unistdio/u32-vasprintf: New file.
103428         * modules/unistdio/u32-vsnprintf: New file.
103429         * modules/unistdio/u32-vsprintf: New file.
103430         * modules/unistdio/u32-u32-asnprintf: New file.
103431         * modules/unistdio/u32-u32-asprintf: New file.
103432         * modules/unistdio/u32-u32-snprintf: New file.
103433         * modules/unistdio/u32-u32-sprintf: New file.
103434         * modules/unistdio/u32-u32-vasnprintf: New file.
103435         * modules/unistdio/u32-u32-vasprintf: New file.
103436         * modules/unistdio/u32-u32-vsnprintf: New file.
103437         * modules/unistdio/u32-u32-vsprintf: New file.
103438         * modules/unistdio/ulc-asnprintf-tests: New file.
103439         * modules/unistdio/ulc-vasnprintf-tests: New file.
103440         * modules/unistdio/ulc-vasprintf-tests: New file.
103441         * modules/unistdio/ulc-vsnprintf-tests: New file.
103442         * modules/unistdio/ulc-vsprintf-tests: New file.
103443         * modules/unistdio/u8-asnprintf-tests: New file.
103444         * modules/unistdio/u8-vasnprintf-tests: New file.
103445         * modules/unistdio/u8-vasprintf-tests: New file.
103446         * modules/unistdio/u8-vsnprintf-tests: New file.
103447         * modules/unistdio/u8-vsprintf-tests: New file.
103448         * modules/unistdio/u16-asnprintf-tests: New file.
103449         * modules/unistdio/u16-vasnprintf-tests: New file.
103450         * modules/unistdio/u16-vasprintf-tests: New file.
103451         * modules/unistdio/u16-vsnprintf-tests: New file.
103452         * modules/unistdio/u16-vsprintf-tests: New file.
103453         * modules/unistdio/u32-asnprintf-tests: New file.
103454         * modules/unistdio/u32-vasnprintf-tests: New file.
103455         * modules/unistdio/u32-vasprintf-tests: New file.
103456         * modules/unistdio/u32-vsnprintf-tests: New file.
103457         * modules/unistdio/u32-vsprintf-tests: New file.
103458         * MODULES.html.sh (Unicode string functions): Add the new modules.
103460 2007-07-01  Bruno Haible  <bruno@clisp.org>
103462         * lib/sprintf.c (sprintf): Limit the available length estimation,
103463         to avoid address wraparound.
103464         * lib/vsprintf.c (vsprintf): Likewise.
103465         * modules/sprintf-posix (Dependencies): Add stdint.
103466         * modules/vsprintf-posix (Dependencies): Likewise.
103468 2007-07-01  Bruno Haible  <bruno@clisp.org>
103470         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103471         Windows PATH as well. Conservative double-quoting. Comments.
103473 2007-07-01  Bruno Haible  <bruno@clisp.org>
103474             Eric Blake  <ebb9@byu.net>
103475             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103477         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103478         empty components in $PATH, denoting '.'.
103480 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103482         * gnulib-tool: Fix indentation.
103483         (func_create_megatestdir): Likewise.
103484         Report by Bruno Haible.
103486 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103488         Sync from Automake.
103489         * build-aux/gnupload: Fix shell portability issues with for loops.
103490         Report by Karl Berry.
103492 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103494         * build-aux/maint.mk (POURL): Use translationproject.org.
103496 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103497             Bruno Haible  <bruno@clisp.org>
103499         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103500         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103501         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103502         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103503         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103505 2007-06-27  Bruno Haible  <bruno@clisp.org>
103507         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103508         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103510 2007-06-26  Karl Berry  <karl@gnu.org>
103512         * MODULES.html.sh: remove xreadlink-with-size.
103514 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103516         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
103517         method that I hope also handles the double-include problem noted
103518         by Bruno Haible in
103519         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
103521 2007-06-23  Bruno Haible  <bruno@clisp.org>
103523         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103524         Don't let the 'mostlyclean' target fail if the last subdirectory could
103525         not be removed.
103526         Reported by Karl Berry.
103528 2007-06-23  Bruno Haible  <bruno@clisp.org>
103530         * gnulib-tool (echo): Add a speedier workaround for ksh.
103531         * tests/test-echo.sh: Likewise.
103533 2007-06-23  Bruno Haible  <bruno@clisp.org>
103535         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
103536         * tests/test-echo.sh: Likewise.
103538 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103540         * gnulib-tool (IFS): Initialize early, so we don't set it to
103541         empty later.
103542         (self_abspathname): Rewrite algorithm to set it, reindent.
103543         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
103544         (func_create_megatestdir): Merge some sed scripts.
103546 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103548         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
103549         exposed by Sun Studio 11 cc on Solaris 8.
103551 2007-06-22  Bruno Haible  <bruno@clisp.org>
103553         * gnulib-tool (echo): Ensure the echo primitive does not interpret
103554         backslashes.
103555         * tests/test-echo.sh: New file.
103557 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103559         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
103560         simplify `sed_replace_build_aux' scripts, they are portable but
103561         echoing them with `echo' is not.
103562         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
103564 2007-06-21  Karl Berry  <karl@gnu.org>
103566         * config/srclist.txt: guess we can't handle the licenses via
103567         srclist at the moment.
103569 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
103571         * MODULES.html.sh: Add include_next.
103572         * modules/include_next: New file.
103574 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
103576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
103577         INCLUDE_NEXT.
103578         (gl_CHECK_NEXT_HEADERS): New macro.
103579         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
103580         the obsolescent gl_ABSOLUTE_HEADER.
103581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
103582         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
103583         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
103584         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
103585         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
103586         * m4/math_h.m4 (gl_MATH_H): Likewise.
103587         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
103588         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
103589         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
103590         * m4/stdint.m4 (gl_STDINT_H): Likewise.
103591         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103592         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103594         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103598         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103599         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103600         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103601         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103602         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103603         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103604         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103605         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103606         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103607         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103608         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
103609         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
103610         * lib/float_.h: Likewise.
103611         * lib/inttypes_.h: Likewise.
103612         * lib/math_.h: Likewise.
103613         * lib/search_.h: Likewise.
103614         * lib/signal_.h: Likewise.
103615         * lib/stdint_.h: Likewise.
103616         * lib/stdio_.h: Likewise.
103617         * lib/stdlib_.h: Likewise.
103618         * lib/string_.h: Likewise.
103619         * lib/sys_stat_.h: Likewise.
103620         * lib/sys_time_.h: Likewise.
103621         * lib/time_.h: Likewise.
103622         * lib/unistd_.h: Likewise.
103623         * lib/wchar_.h: Likewise.
103624         * lib/wctype_.h: Likewise.
103625         * lib/dirent_.h: Likewise.
103626         * lib/iconv_.h: Likewise.
103627         * lib/locale_.h: Likewise.
103628         * lib/netinet_in_.h: Likewise.
103629         * lib/sys_select_.h: Likewise.
103630         * lib/sys_socket_.h: Likewise.
103631         * lib/sysexits_.h: Likewise.
103632         * modules/fcntl (Depends-on): Depend on include_next, not
103633         absolute_header.
103634         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103635         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103636         * modules/fchdir: Likewise.
103637         * modules/float: Likewise.
103638         * modules/iconv_open: Likewise.
103639         * modules/inttypes: Likewise.
103640         * modules/locale: Likewise.
103641         * modules/math: Likewise.
103642         * modules/netinet_in: Likewise.
103643         * modules/search: Likewise.
103644         * modules/signal: Likewise.
103645         * modules/stdint: Likewise.
103646         * modules/stdio: Likewise.
103647         * modules/stdlib: Likewise.
103648         * modules/string: Likewise.
103649         * modules/sys_select: Likewise.
103650         * modules/sys_socket: Likewise.
103651         * modules/sys_stat: Likewise.
103652         * modules/sys_time: Likewise.
103653         * modules/sysexits: Likewise.
103654         * modules/time: Likewise.
103655         * modules/unistd: Likewise.
103656         * modules/wchar: Likewise.
103657         * modules/wctype: Likewise.
103658         * modules/sys_stat: Change maintainer to "all".
103659         * modules/unistd: Likewise.
103661 2007-06-20  Karl Berry  <karl@gnu.org>
103663         * config/srclist.txt: track www changes in license files.
103665 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103667         * build-aux/bootstrap: Remove stray dot.
103668         Make sure build_aux settings are honored when linking
103669         gnulib_extra_files.
103671 2007-06-19  Eric Blake  <ebb9@byu.net>
103673         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103674         Allow compilation on cygwin.
103676 2007-06-19  Jim Meyering  <jim@meyering.net>
103678         xreadlink-with-size: Remove module.  No longer used.
103679         Ex-callers now use xreadlink or mreadlink-with-size.
103680         * modules/xreadlink-with-size: Remove module.
103681         * lib/xreadlink-with-size.c: Remove file.
103682         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103683         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103684         just before the function definition *is* accurate.
103686         Eliminate one way canonicalize_filename_mode could exit.
103687         * lib/canonicalize.c (canonicalize_filename_mode):
103688         Use mreadlink_with_size, not xreadlink_with_size.
103690 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103692         Detect porting problems to FreeBSD/arm, which has time_t wider than
103693         long int.  Original problem reported for GNU diff by Xin Li in
103694         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103695         * modules/getdate (Depends-on): Add intprops, verify.
103696         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103697         is an integer type no wider than long int.
103699 2007-06-18  Jim Meyering  <jim@meyering.net>
103701         New module: mreadlink-with-size.
103702         * MODULES.html.sh: Add mreadlink-with-size.
103703         * modules/mreadlink-with-size: New module
103704         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103705         not xreadlink-with-size.
103706         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103708 2007-06-16  Bruno Haible  <bruno@clisp.org>
103710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103711         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103712         Reported by Gary V. Vaughan <gary@gnu.org>.
103714 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103716         Revamp lchown so that it lives in unistd.h where it belongs.
103717         * lib/lchown.h: Remove.
103718         * lib/dirchownmod.c: Don't include lib/lchown.h.
103719         * lib/fchownat.c: Likewise.
103720         * lib/openat.c: Likewise.
103721         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103722         does not follow symlinks.
103723         (EOPNOTSUPP): Define if not defined.
103724         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103725         is defined to 0.
103726         (lchown): New decl.
103727         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103728         Do not check for lchown decl.
103729         Set REPLACE_LCHOWN.
103730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103731         REPLACE_LCHOWN.
103732         * modules/chown: Make it clear it follows symlinks.
103733         * modules/lchown: Make it clear it doesn't follow symlinks.
103734         (Files): Remove lib/lchown.h
103735         (Depends-on): Add unistd.
103736         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103737         (Include): Include <unistd.h>, not "lchown.h".
103738         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103739         REPLACE_LCHOWN.
103741 2007-06-15  Jim Meyering  <jim@meyering.net>
103743         Change license (GPL to LGPL) of fsusage and dependents.
103744         * modules/fsusage (License): Change to LGPL.
103745         * modules/full-read (License): Likewise.
103746         * modules/full-write (License): Likewise.
103747         * modules/safe-read (License): Likewise.
103748         * modules/safe-write (License): Likewise.
103750 2007-06-14  Ben Pfaff  <blp@gnu.org>
103752         Missing part of allocsa -> malloca transition.
103753         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103754         gl_MALLOCA.
103756 2007-06-12  Bruno Haible  <bruno@clisp.org>
103758         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103759         to ia64, x86_64, i386.
103760         Reported by Eric Blake.
103762 2007-06-12  Bruno Haible  <bruno@clisp.org>
103764         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103765         cross-compiling to x86_64.
103767 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103769         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103770         glitch reported by Ralf Wildenhues in
103771         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103773         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103774         Vin Shelton.
103776 2007-06-11  Bruno Haible  <bruno@clisp.org>
103778         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103779         replacement string.
103780         Reported by Eric Blake.
103782 2007-06-10  Bruno Haible  <bruno@clisp.org>
103784         Prepare vasnprintf code for use with Unicode strings.
103785         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103786         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103787         TYPE_U32_STRING.
103788         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103789         a_u32_string variants.
103790         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103791         * lib/printf-args.c: Don't include config.h and the specification
103792         header if PRINTF_FETCHARGS is already defined.
103793         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103794         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103795         TYPE_U16_STRING, TYPE_U32_STRING.
103796         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103797         u16_directive, u16_directives, u32_directive, u32_directives): New
103798         types.
103799         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103800         New declarations.
103801         * lib/printf-parse.c: Don't include config.h and the specification
103802         header if PRINTF_PARSE is already defined. Eliminate the set of
103803         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103804         them now. Include c-ctype.h.
103805         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103806         directive and CHAR_T_ONLY_ASCII.
103807         * lib/vasnprintf.c: Don't include config.h and the specification header
103808         if VASNPRINTF is already defined.
103809         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103810         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103811         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103812         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103813         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103814         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103815         code accordingly.
103816         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103817         pad_ourselves also in this case, with the 'c' and 's' directives, and
103818         with a different notion of "width".
103819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103821 2007-06-10  Bruno Haible  <bruno@clisp.org>
103823         * modules/unistr/u32-mbsnlen: New file.
103824         * lib/unistr/u32-mbsnlen.c: New file.
103826         * modules/unistr/u16-mbsnlen: New file.
103827         * lib/unistr/u16-mbsnlen.c: New file.
103829         * modules/unistr/u8-mbsnlen: New file.
103830         * lib/unistr/u8-mbsnlen.c: New file.
103832         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103833         declarations.
103835 2007-06-10  Bruno Haible  <bruno@clisp.org>
103837         * lib/string_.h (mbsnlen): New declaration.
103838         * lib/mbsnlen.c: New file.
103839         * m4/mbsnlen.m4: New file.
103840         * modules/mbsnlen: New file.
103841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103842         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103843         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103845 2007-06-10  Bruno Haible  <bruno@clisp.org>
103847         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103849 2007-06-10  Bruno Haible  <bruno@clisp.org>
103851         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103852         * lib/mbuiter.h: Likewise.
103854 2007-06-10  Bruno Haible  <bruno@clisp.org>
103856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103857         declaration.
103859 2007-06-10  Karl Berry  <karl@gnu.org>
103861         * config/srclist.txt: remove gettext entries, Bruno prefers
103862         to update individually.
103864 2007-06-10  Bruno Haible  <bruno@clisp.org>
103866         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103867         'maxlen'. Ensure only length + width bytes are allocated, not
103868         length + 1 + width.
103870 2007-06-09  Bruno Haible  <bruno@clisp.org>
103872         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103873         (CHAR_T): Remove macro.
103874         (VASNPRINTF): Update.
103876 2007-06-09  Bruno Haible  <bruno@clisp.org>
103878         * MODULES.html.sh (Unicode string functions): Add the new modules.
103880         * modules/uniconv/u32-conv-to-enc: New file.
103881         * lib/uniconv/u32-conv-to-enc.c: New file.
103882         * modules/uniconv/u32-conv-to-enc-tests: New file.
103883         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103885         * modules/uniconv/u16-conv-to-enc: New file.
103886         * lib/uniconv/u16-conv-to-enc.c: New file.
103887         * lib/uniconv/u-conv-to-enc.h: New file.
103888         * modules/uniconv/u16-conv-to-enc-tests: New file.
103889         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103891         * modules/uniconv/u8-conv-to-enc: New file.
103892         * lib/uniconv/u8-conv-to-enc.c: New file.
103893         * modules/uniconv/u8-conv-to-enc-tests: New file.
103894         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103896         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103897         u32_conv_to_encoding): New declarations.
103899 2007-06-09  Bruno Haible  <bruno@clisp.org>
103901         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103903 2007-06-09  Bruno Haible  <bruno@clisp.org>
103905         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103906         * modules/malloca: Renamed from modules/allocsa, updated.
103907         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103908         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103909         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103910         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103911         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103912         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103913         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103914         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103915         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103916         * modules/c-strcasestr (Depends-on): Update.
103917         * lib/c-strcasestr.c: Update.
103918         * modules/c-strstr (Depends-on): Update.
103919         * lib/c-strstr.c: Update.
103920         * modules/canonicalize-lgpl (Depends-on): Update.
103921         * lib/canonicalize-lgpl.c: Update.
103922         * modules/clean-temp (Depends-on): Update.
103923         * lib/clean-temp.c: Update.
103924         * modules/csharpcomp (Depends-on): Update.
103925         * lib/csharpcomp.c: Update.
103926         * modules/csharpexec (Depends-on): Update.
103927         * lib/csharpexec.c: Update.
103928         * modules/javacomp (Depends-on): Update.
103929         * lib/javacomp.c: Update.
103930         * modules/javaexec (Depends-on): Update.
103931         * lib/javaexec.c: Update.
103932         * modules/mbscasestr (Depends-on): Update.
103933         * lib/mbscasestr.c: Update.
103934         * modules/mbsstr (Depends-on): Update.
103935         * lib/mbsstr.c: Update.
103936         * modules/setenv (Depends-on): Update.
103937         * lib/setenv.c: Update.
103938         * modules/strcasestr (Depends-on): Update.
103939         * lib/strcasestr.c: Update.
103940         * modules/striconveha (Depends-on): Update.
103941         * lib/striconveha.c: Update.
103942         * modules/relocatable-prog-wrapper (Files): Update.
103943         * lib/relocwrapper.c: Update.
103944         * build-aux/install-reloc: Update.
103945         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103947 2007-06-08  Bruno Haible  <bruno@clisp.org>
103949         Port to uClibc.
103950         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103951         * lib/fpurge.c (fpurge): Likewise.
103952         * lib/freading.c (freading): Likewise.
103953         * lib/fseeko.c (rpl_fseeko): Likewise.
103954         * lib/fseterr.c (fseterr): Likewise.
103955         * lib/fwriting.c (fwriting): Likewise.
103956         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103958 2007-06-08  Bruno Haible  <bruno@clisp.org>
103960         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103961         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103962         * modules/gettext (Files): Add m4/intlmacosx.m4.
103964 2007-06-07  Bruno Haible  <bruno@clisp.org>
103966         * modules/localename-tests: New file.
103967         * tests/test-localename.c: New file.
103969         New module 'localename'.
103970         * lib/localename.h: New file.
103971         * lib/localename.c: New file, from GNU gettext.
103972         * m4/localename.m4: New file.
103973         * modules/localename: New file.
103975 2007-06-07  Bruno Haible  <bruno@clisp.org>
103977         Work around the lack of <wchar.h> on some builds of uClibc.
103978         * doc/headers/wchar.texi: Update.
103979         * lib/wchar_.h: Include <wchar.h> only if it exists.
103980         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103981         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103982         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103983         doesn't exist.
103984         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103985         * modules/mbfile (Depends-on): Add wchar.
103986         * modules/mbiter (Depends-on): Likewise.
103987         * modules/mbuiter (Depends-on): Likewise.
103988         Reported by Simon Josefsson.
103990 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103992         Work around problem reported by Steven M. Schweda in
103993         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103994         Tru64 5.1B with the Compaq compiler environment installed declares
103995         an 'isblank' function but does not define it in the C library.
103996         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103997         * lib/regex_internal.h (isblank): Likewise.
103998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103999         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104001 2007-06-05  Bruno Haible  <bruno@clisp.org>
104003         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104004         ia64.
104005         * modules/printf-safe: New file.
104006         * modules/fprintf-posix (Depends-on): Add printf-safe.
104007         * modules/printf-posix (Depends-on): Likewise.
104008         * modules/snprintf-posix (Depends-on): Likewise.
104009         * modules/sprintf-posix (Depends-on): Likewise.
104010         * modules/vasnprintf-posix (Depends-on): Likewise.
104011         * modules/vasprintf-posix (Depends-on): Likewise.
104012         * modules/vfprintf-posix (Depends-on): Likewise.
104013         * modules/vprintf-posix (Depends-on): Likewise.
104014         * modules/vsnprintf-posix (Depends-on): Likewise.
104015         * modules/vsprintf-posix (Depends-on): Likewise.
104016         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104017         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104018         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104019         "no" on i386, x86_64, ia64.
104020         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104021         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104022         on i386, x86_64, ia64.
104023         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104024         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104025         on i386, x86_64, ia64.
104026         * tests/test-vasnprintf-posix.c: Include float.h.
104027         (LDBL80_WORDS): New macro.
104028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104029         on i386, x86_64, ia64.
104030         * tests/test-vasprintf-posix.c: Include float.h.
104031         (LDBL80_WORDS): New macro.
104032         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104033         on i386, x86_64, ia64.
104034         * tests/test-snprintf-posix.c: Include float.h.
104035         * tests/test-sprintf-posix.c: Likewise.
104036         * tests/test-vsnprintf-posix.c: Likewise.
104037         * tests/test-vsprintf-posix.c: Likewise.
104039 2007-06-05  Bruno Haible  <bruno@clisp.org>
104041         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104042         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104043         non-IEEE numbers on i386, x86_64, ia64.
104044         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104045         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104046         * tests/test-isnanl.h: Include float.h.
104047         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104049 2007-06-05  Bruno Haible  <bruno@clisp.org>
104051         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104052         also the %a / %A. Handle the %a / %A code before this extra handling.
104054 2007-06-05  Bruno Haible  <bruno@clisp.org>
104056         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104057         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104059 2007-06-05  Bruno Haible  <bruno@clisp.org>
104061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104062         typo in variable name.
104064 2007-06-05  Eric Blake  <ebb9@byu.net>
104066         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104067         Reported by Simon Josefsson.
104069 2007-06-04  Bruno Haible  <bruno@clisp.org>
104071         Avoid test failures on some PowerPC platforms.
104072         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104073         Define differently for PowerPC.
104074         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104075         Reported by Gary V. Vaughan <gary@gnu.org>.
104077 2007-06-02  Bruno Haible  <bruno@clisp.org>
104079         Fix test-stdint failure on FreeBSD/ia64.
104080         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104081         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104082         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104083         * doc/headers/stdint.texi: Update.
104085 2007-06-01  Bruno Haible  <bruno@clisp.org>
104087         * tests/test-binary-io.c (main): Pass a third argument to open().
104088         Reported by Gary V. Vaughan <gary@gnu.org>.
104090 2007-06-01  Bruno Haible  <bruno@clisp.org>
104092         * doc/functions/frexpl.texi: Update for mingw.
104094 2007-06-01  Bruno Haible  <bruno@clisp.org>
104096         * tests/test-lseek.c (main): Disable test of errno for invalid third
104097         argument.
104098         * doc/functions/lseek.texi: Update.
104099         Reported by Gary V. Vaughan <gary@gnu.org>.
104101 2007-05-28  Bruno Haible  <bruno@clisp.org>
104103         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104105 2007-05-31  Eric Blake  <ebb9@byu.net>
104107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104108         cross compiling.
104110 2007-05-30  Eric Blake  <ebb9@byu.net>
104111         and Bruno Haible  <bruno@clisp.org>
104113         Work around mingw test failures exposed by m4-1.4.9b.
104114         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104115         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104116         moment.
104118 2007-05-30  Bruno Haible  <bruno@clisp.org>
104120         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104121         assuming that they are closed. Needed on HP-UX 11.
104123 2007-05-29  Bruno Haible  <bruno@clisp.org>
104125         Fix a problem with #include_next.
104126         * lib/dirent_.h: Split the double-inclusion guard.
104127         * lib/fcntl_.h: Likewise.
104128         * lib/float_.h: Likewise.
104129         * lib/iconv_.h: Likewise.
104130         * lib/inttypes_.h: Likewise.
104131         * lib/locale_.h: Likewise.
104132         * lib/math_.h: Likewise.
104133         * lib/netinet_in_.h: Likewise.
104134         * lib/search_.h: Likewise.
104135         * lib/signal_.h: Likewise.
104136         * lib/stdint_.h: Likewise.
104137         * lib/stdio_.h: Likewise.
104138         * lib/stdlib_.h: Likewise.
104139         * lib/string_.h: Likewise.
104140         * lib/sys_select_.h: Likewise.
104141         * lib/sys_socket_.h: Likewise.
104142         * lib/sys_stat_.h: Likewise.
104143         * lib/sys_time_.h: Likewise.
104144         * lib/sysexits_.h: Likewise.
104145         * lib/time_.h: Likewise.
104146         * lib/unistd_.h: Likewise.
104147         * lib/wchar_.h: Likewise.
104148         * lib/wctype_.h: Likewise.
104150 2007-05-29  Bruno Haible  <bruno@clisp.org>
104152         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104153         for the moment.
104155 2007-05-29  Bruno Haible  <bruno@clisp.org>
104157         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104158         invocation.
104159         Reported by Eric Blake.
104161 2007-05-29  Bruno Haible  <bruno@clisp.org>
104163         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104164         compiling case.
104166 2007-05-29  Eric Blake  <ebb9@byu.net>
104167             Bruno Haible  <bruno@clisp.org>
104169         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104170         cross compiles.
104172 2007-05-28  Eric Blake  <ebb9@byu.net>
104174         * modules/closein-tests (test_closein_LDADD): Support test on
104175         cygwin with libtool.
104177 2007-05-28  Bruno Haible  <bruno@clisp.org>
104179         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104180         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104181         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104182         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104183         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104184         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104185         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104186         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104187         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104189 2007-05-28  Eric Blake  <ebb9@byu.net>
104191         Unconditionally include <config.h> in unit tests.
104192         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104193         * tests/test-allocsa.c, tests/test-arcfour.c,
104194         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104195         tests/test-array_list.c, tests/test-array_oset.c,
104196         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104197         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104198         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104199         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104200         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104201         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104202         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104203         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104204         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104205         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104206         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104207         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104208         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104209         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104210         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104211         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104212         test-md5.c, test-memmem.c, test-printf-posix.c,
104213         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104214         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104215         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104216         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104217         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104218         test-vasnprintf-posix2.c, test-vasnprintf.c,
104219         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104220         test-vfprintf-posix.c, test-vprintf-posix.c,
104221         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104222         test-xvasprintf.c: Likewise.
104224 2007-05-28  Bruno Haible  <bruno@clisp.org>
104226         * gnulib-tool (func_import): Remember the --with-tests command-line
104227         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104228         Reported by Eric Blake.
104230 2007-05-28  Bruno Haible  <bruno@clisp.org>
104232         * modules/ftell-tests: New file.
104233         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104234         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104236         * lib/ftell.c: New file.
104237         * modules/ftell: New file.
104238         * m4/ftell.m4: New file.
104239         * doc/functions/ftell.texi: Update.
104240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104241         REPLACE_FTELL.
104242         * lib/stdio_.h (rpl_ftell): New declaration.
104243         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104244         REPLACE_FTELL.
104246 2007-05-28  Eric Blake  <ebb9@byu.net>
104248         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104250 2007-05-28  Bruno Haible  <bruno@clisp.org>
104252         * modules/fseek-tests: New file.
104253         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104254         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104256         * lib/fseek.c: New file.
104257         * modules/fseek: New file.
104258         * m4/fseek.m4: New file.
104259         * doc/functions/fseek.texi: Update.
104260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104261         REPLACE_FSEEK.
104262         * lib/stdio_.h (rpl_fseek): New declaration.
104263         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104264         REPLACE_FSEEK.
104266 2007-05-28  Bruno Haible  <bruno@clisp.org>
104268         * lib/stdio_.h (fflush): More comments.
104270 2007-05-28  Bruno Haible  <bruno@clisp.org>
104272         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104273         runtime test.
104275 2007-05-28  Eric Blake  <ebb9@byu.net>
104277         Improve lseek module.
104278         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104279         * lib/unistd_.h (lseek): Scale back link warning message.
104280         * tests/test-lseek.c: Beef up test.
104281         * tests/test-lseek.sh: Exercise more facets of lseek.
104282         Reported by Bruno Haible.
104284 2007-05-28  Bruno Haible  <bruno@clisp.org>
104286         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104287         to define.
104289 2007-05-27  Bruno Haible  <bruno@clisp.org>
104291         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104293 2007-05-27  Bruno Haible  <bruno@clisp.org>
104295         * modules/openmp: New file.
104296         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104297         Noah Misch.
104299 2007-05-26  Bruno Haible  <bruno@clisp.org>
104301         * modules/chdir-long (Depends-on): Add fchdir.
104302         * modules/chdir-safer (Depends-on): Likewise.
104303         * modules/fts (Depends-on): Likewise.
104304         * modules/fts-lgpl (Depends-on): Likewise.
104305         * modules/openat (Depends-on): Likewise.
104306         * modules/savewd (Depends-on): Likewise.
104308 2007-05-24  Eric Blake  <ebb9@byu.net>
104310         Fix lseek on mingw.
104311         * modules/lseek: New module.
104312         * m4/lseek.m4: New file.
104313         * lib/lseek.c: New file.
104314         * modules/lseek-tests: New file.
104315         * tests/test-lseek.c: New file.
104316         * tests/test-lseek.sh: New file.
104317         * MODULES.html.sh: Document lseek module.
104318         * modules/fflush (Depends-on): Add lseek, fseeko.
104319         * modules/fseeko (Depends-on): Likewise.
104320         * modules/ftello (Depends-on): Likewise.
104321         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104322         broken.
104323         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104324         broken.
104325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104326         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104327         * lib/ftello.c (rpl_ftello): Likewise.
104328         * tests/test-fseeko.c (main): Test this.
104329         * tests/test-fseeko.sh: Likewise.
104330         * tests/test-ftello.c (main): Likewise.
104331         * tests/test-ftello.sh: Likewise.
104332         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104333         implies replacing fseek.
104334         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104335         HAVE_FTELLO.
104336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104337         * modules/unistd (Makefile.am): Likewise.
104338         * lib/unistd_.h (lseek): Declare a replacement.
104339         * doc/functions/lseek.texi (lseek): Document this fix.
104340         * doc/functions/fseek.texi (fseek): Likewise.
104341         * doc/functions/ftell.texi (ftell): Likewise.
104343 2007-05-24  Bruno Haible  <bruno@clisp.org>
104345         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104346         in the printed representation of a NaN.
104347         * tests/test-vasprintf-posix.c (test_function): Likewise.
104348         * tests/test-snprintf-posix.h (test_function): Likewise.
104349         * tests/test-sprintf-posix.h (test_function): Likewise.
104350         Reported by Eric Blake.
104352 2007-05-23  Eric Blake  <ebb9@byu.net>
104354         Fix fseeko/ftello on cygwin 1.5.24.
104355         * doc/functions/fseeko.texi (fseeko): Document the fix.
104356         * doc/functions/ftello.texi (ftello): Document the fix.
104357         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104358         * doc/functions/stdout.text (stdout): New file.
104359         * doc/functions/stderr.text (stderr): New file.
104360         * doc/gnulib.texi (Function Substitutes): Use new files.
104361         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104362         prior to 1.7.0.
104363         * tests/test-ftello.c (main): Likewise for ftello.
104364         * tests/test-fseeko.sh: New file.
104365         * tests/test-ftello.sh: New file.
104366         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104367         with seekable stdin.
104368         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104370         (gl_REPLACE_FSEEKO): New macro.
104371         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104372         * modules/fseeko (Files): Distribute fseeko.c.
104373         * modules/ftello (Files): Distribute ftello.c.
104374         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104375         mode.
104376         * lib/ftello.c (rpl_ftello): New file.
104377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104378         fseeko, ftello.
104379         (gl_STDIN_LARGE_OFFSET): New macro.
104380         * modules/stdio (Makefile.am): Perform the replacement.
104381         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104383 2007-05-23  Bruno Haible  <bruno@clisp.org>
104385         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104386         GNULIB_POSIXCHECK is defined.
104388 2007-05-21  Bruno Haible  <bruno@clisp.org>
104390         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104391         Check also the output for NaN arguments. When cross-compiling, guess
104392         no on IRIX.
104393         * lib/vasnprintf.c: Update comments.
104394         * tests/test-vasnprintf-posix.c (strisnan): New function.
104395         (test_function): Use it.
104396         * tests/test-vasprintf-posix.c (strisnan): New function.
104397         (test_function): Use it.
104398         * tests/test-snprintf-posix.h (strisnan): New function.
104399         (test_function): Use it.
104400         * tests/test-sprintf-posix.h (strisnan): New function.
104401         (test_function): Use it.
104402         Reported by Eric Blake.
104404 2007-05-20  Bruno Haible  <bruno@clisp.org>
104406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104407         numbers that fails on BeOS.
104408         * doc/functions/frexpl.texi: Update.
104410 2007-05-20  Jim Meyering  <jim@meyering.net>
104412         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104413         forced upon us by glibc-2.6.
104415 2007-05-20  Bruno Haible  <bruno@clisp.org>
104417         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104418         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104419         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104420         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104421         NEED_PRINTF_INFINITE.
104422         (is_infinitel): New function.
104423         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104425         gl_PREREQ_VASNPRINTF_INFINITE.
104426         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104428         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104429         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104430         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104431         gl_PREREQ_VASNPRINTF_INFINITE.
104432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104439         * doc/functions/fprintf.texi: Update.
104440         * doc/functions/printf.texi: Update.
104441         * doc/functions/snprintf.texi: Update.
104442         * doc/functions/sprintf.texi: Update.
104443         * doc/functions/vfprintf.texi: Update.
104444         * doc/functions/vprintf.texi: Update.
104445         * doc/functions/vsnprintf.texi: Update.
104446         * doc/functions/vsprintf.texi: Update.
104448 2007-05-20  Bruno Haible  <bruno@clisp.org>
104450         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104451         was not found in libc.
104452         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104454 2007-05-20  Bruno Haible  <bruno@clisp.org>
104456         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104457         printed as "-nan" instead of "nan".
104458         * tests/test-vasprintf-posix.c (test_function): Likewise.
104459         * tests/test-snprintf-posix.h (test_function): Likewise.
104460         * tests/test-sprintf-posix.h (test_function): Likewise.
104461         Needed for HP-UX 11.
104463 2007-05-20  Jim Meyering  <jim@meyering.net>
104465         Fix buggy test for the fchownat-deref bug.
104466         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104467         symlink required for the run-test.  Without it, this test would
104468         always declare that fchownat doesn't work, and client code would
104469         unnecessarily use the replacement function with fixed libc.
104470         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104471         Reported by Greg Schafer.
104473 2007-05-19  Bruno Haible  <bruno@clisp.org>
104475         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104476         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104477         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104478         Needed for IRIX 6.5 and Solaris 2.5.1.
104480 2007-05-19  Bruno Haible  <bruno@clisp.org>
104482         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104483         (test_function): Skip tests involving -0.0 on platforms where
104484         -0.0 = 0.0.
104485         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104486         (test_function): Skip tests involving -0.0 on platforms where
104487         -0.0 = 0.0.
104488         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104489         (test_function): Skip tests involving -0.0 on platforms where
104490         -0.0 = 0.0.
104491         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104492         (test_function): Skip tests involving -0.0 on platforms where
104493         -0.0 = 0.0.
104494         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104495         tests.
104496         * tests/test-printf-posix.h (test_function): Likewise.
104497         * tests/test-printf-posix.output: Remove all -0.0 related results.
104498         Needed for IRIX 6.5.
104500 2007-05-19  Bruno Haible  <bruno@clisp.org>
104502         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104503         printed as "nan0x7fffffff" instead of "nan".
104504         * tests/test-vasprintf-posix.c (test_function): Likewise.
104505         * tests/test-snprintf-posix.h (test_function): Likewise.
104506         * tests/test-sprintf-posix.h (test_function): Likewise.
104507         * tests/test-fprintf-posix.h (NaN): Remove macro.
104508         (test_function): Remove all NaN related tests.
104509         * tests/test-printf-posix.h (NaN): Remove macro.
104510         (test_function): Remove all NaN related tests.
104511         * tests/test-printf-posix.output: Remove all NaN related results.
104512         Needed for IRIX 6.5.
104514 2007-05-19  Bruno Haible  <bruno@clisp.org>
104516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
104517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
104519 2007-05-19  Bruno Haible  <bruno@clisp.org>
104521         * lib/float_.h: New file.
104522         * m4/float_h.m4: New file.
104523         * modules/float: New file.
104524         * modules/isnanl (Dependencies): Add float.
104525         * modules/isnanl-nolibm (Dependencies): Likewise.
104526         * modules/mathl (Dependencies): Likewise.
104527         * modules/printf-frexpl (Dependencies): Likewise.
104528         * modules/signbit (Dependencies): Likewise.
104529         * modules/vasnprintf (Dependencies): Likewise.
104530         * doc/headers/float.texi: Update.
104532 2007-05-19  Jim Meyering  <jim@meyering.net>
104534         * lib/utimens.c (gl_futimens): Rename from futimens,
104535         now that glibc-2.6 declares futimens.
104536         * lib/utimens.h: Likewise.
104538 2007-05-19  Bruno Haible  <bruno@clisp.org>
104540         Avoid test failures on mingw.
104541         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
104542         * tests/test-printf-posix.sh: Likewise.
104543         * tests/test-vfprintf-posix.sh: Likewise.
104544         * tests/test-vprintf-posix.sh: Likewise.
104546 2007-05-19  Bruno Haible  <bruno@clisp.org>
104548         Fix *printf result for NaN, Inf, -0.0 on mingw.
104549         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
104550         * lib/vasnprintf.c: Include math.h and isnan.h.
104551         (is_infinite_or_zero): New function.
104552         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
104553         values in the %f, %F, %e, %E, %g, %G directives.
104554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
104555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104556         gl_PRINTF_INFINITE and test its result. Invoke
104557         gl_PREREQ_VASNPRINTF_INFINITE.
104558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104565         * doc/functions/fprintf.texi: Update.
104566         * doc/functions/printf.texi: Update.
104567         * doc/functions/snprintf.texi: Update.
104568         * doc/functions/sprintf.texi: Update.
104569         * doc/functions/vfprintf.texi: Update.
104570         * doc/functions/vprintf.texi: Update.
104571         * doc/functions/vsnprintf.texi: Update.
104572         * doc/functions/vsprintf.texi: Update.
104574 2007-05-19  Bruno Haible  <bruno@clisp.org>
104576         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
104577         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
104578         Instead of multiplying with 10^k, set extra_zeroes to k.
104579         (scale10_round_long_double): Remove function.
104581 2007-05-18  Bruno Haible  <bruno@clisp.org>
104583         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
104584         introduced on 2007-05-06.
104586 2007-05-18  Bruno Haible  <bruno@clisp.org>
104588         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
104589         %g directives.
104590         * tests/test-vasprintf-posix.c (test_function): Likewise.
104591         * tests/test-snprintf-posix.h (test_function): Likewise.
104592         * tests/test-sprintf-posix.h (test_function): Likewise.
104594 2007-05-18  Bruno Haible  <bruno@clisp.org>
104596         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104597         (strmatch): New function.
104598         (test_function): Test the %f directive on numbers of various exponents.
104599         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104600         (strmatch): New function.
104601         (test_function): Test the %f directive on numbers of various exponents.
104602         * tests/test-snprintf-posix.h (strmatch): New function.
104603         (test_function): Test the %f directive on numbers of various exponents.
104604         * tests/test-sprintf-posix.h (strmatch): New function.
104605         (test_function): Test the %f directive on numbers of various exponents.
104606         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104607         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104608         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
104609         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
104611 2007-05-18  Bruno Haible  <bruno@clisp.org>
104613         Add support for 'long double' number output.
104614         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104615         * lib/vasnprintf.c: Include math.h and float+.h.
104616         (mp_limb_t): New type.
104617         (GMP_LIMB_BITS): New macro.
104618         (mp_twolimb_t): New type.
104619         (GMP_TWOLIMB_BITS): New macro.
104620         (mpn_t): New type.
104621         (multiply, divide, convert_to_decimal, decode_long_double,
104622         scale10_round_long_double, scale10_round_decimal_long_double,
104623         floorlog10l): New functions.
104624         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104625         for the %f, %F, %e, %E, %g, %G directives.
104626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104628         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104629         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104637         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104638         * modules/snprintf-posix (Depends-on): Likewise.
104639         * modules/sprintf-posix (Depends-on): Likewise.
104640         * modules/vasnprintf-posix (Depends-on): Likewise.
104641         * modules/vasprintf-posix (Depends-on): Likewise.
104642         * modules/vfprintf-posix (Depends-on): Likewise.
104643         * modules/vsnprintf-posix (Depends-on): Likewise.
104644         * modules/vsprintf-posix (Depends-on): Likewise.
104645         * modules/vasnprintf (Files): Add lib/float+.h.
104646         * doc/functions/fprintf.texi: Update.
104647         * doc/functions/printf.texi: Update.
104648         * doc/functions/snprintf.texi: Update.
104649         * doc/functions/sprintf.texi: Update.
104650         * doc/functions/vfprintf.texi: Update.
104651         * doc/functions/vprintf.texi: Update.
104652         * doc/functions/vsnprintf.texi: Update.
104653         * doc/functions/vsprintf.texi: Update.
104655 2007-05-18  Bruno Haible  <bruno@clisp.org>
104657         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104659 2007-05-18  Bruno Haible  <bruno@clisp.org>
104661         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104662         for printing 64-bit integers. Needed for mingw.
104664 2007-05-18  Bruno Haible  <bruno@clisp.org>
104666         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104667         gl_FUNC_FREXPL_WORKS.
104668         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104670 2007-05-18  Bruno Haible  <bruno@clisp.org>
104672         * modules/frexpl-nolibm-tests: New file.
104674         * modules/frexpl-nolibm: New file.
104675         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104677 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104679         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104680         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104681         GCC 4.2, which otherwise issues a lot of warnings.
104682         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104683         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104684         Likewise.
104685         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104686         * modules/iconv_open (iconv.h): Likewise.
104687         * modules/locale (locale.h): Likewise.
104688         * modules/netinet_in (netinet/in.h): Likewise.
104689         * modules/sys_select (sys_select.h): Likewise.
104690         * modules/sys_socket (sys/socket.h): Likewise.
104691         * modules/sys_stat (sys/stat.h): Likewise.
104692         * modules/sysexits (sysexits.h): Likewise.
104693         * modules/unistd (unistd.h): Likewise.
104695 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104697         * modules/closein-tests (Makefile.am): Distribute
104698         `test-closein.sh'.
104700 2007-05-17  Bruno Haible  <bruno@clisp.org>
104702         * tests/test-printf-posix.output: Renamed from
104703         tests/test-fprintf-posix.out.
104704         * modules/fprintf-posix-tests: Update.
104705         * modules/printf-posix-tests: Update.
104706         * modules/vfprintf-posix-tests: Update.
104707         * modules/vprintf-posix-tests: Update.
104708         * tests/test-fprintf-posix.sh: Update.
104709         * tests/test-printf-posix.sh: Update.
104710         * tests/test-vfprintf-posix.sh: Update.
104711         * tests/test-vprintf-posix.sh: Update.
104712         Reported by Ralf Wildenhues.
104714 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104716         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104717         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104718         GCC 4.2, which otherwise issues a lot of warnings.
104719         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104720         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104721         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104722         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104723         it should no longer be needed.
104724         * lib/string_.h: Likewise.
104725         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104726         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104727         * modules/inttypes (inttypes.h): Likewise.
104728         * modules/math (math.h): Likewise.
104729         * modules/search (search.h): Likewise.
104730         * modules/signal (signal.h): Likewise.
104731         * modules/stdint (stdint.h): Likewise.
104732         * modules/stdio (stdio.h): Likewise.
104733         * modules/stdlib (stdlib.h): Likewise.
104734         * modules/string (string.h): Likewise.
104735         * modules/sys_time (sys/time.h): Likewise.
104736         * modules/time (time.h): Likewise.
104737         * modules/wchar (wchar.h): Likewise.
104738         * modules/wctype (wtype.h): Likewise.
104740 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104742         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104744 2007-05-13  Bruno Haible  <bruno@clisp.org>
104746         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104747         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104748         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104749         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104750         (gl_PREREQ_STRTOK_R): Don't require it here.
104752 2007-05-13  Bruno Haible  <bruno@clisp.org>
104754         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104755         when used in C++ mode.
104757 2007-05-12  Bruno Haible  <bruno@clisp.org>
104759         * lib/linebuffer.h: Tweak doc.
104760         * lib/linebuffer.c: Likewise.
104762 2007-05-12  James Youngman  <jay@gnu.org>
104764         * lib/linebuffer.c (readlinebuffer_delim): New function,
104765         like readlinebuffer, but use a caller-specified delimiter.
104766         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104767         as the delimiter.
104768         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104770 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104772         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104773         * modules/openat (Files): Remove openat-die.c.
104774         (Depends-on): Add openat-die.
104775         * modules/openat-die: New module.
104777 2007-05-06  Bruno Haible  <bruno@clisp.org>
104779         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104780         Update with info about Cygwin.
104781         * doc/functions/fprintf.texi: Update.
104782         * doc/functions/printf.texi: Update.
104783         * doc/functions/snprintf.texi: Update.
104784         * doc/functions/sprintf.texi: Update.
104785         * doc/functions/vfprintf.texi: Update.
104786         * doc/functions/vprintf.texi: Update.
104787         * doc/functions/vsnprintf.texi: Update.
104788         * doc/functions/vsprintf.texi: Update.
104789         Reported by Eric Blake.
104791 2007-05-06  Bruno Haible  <bruno@clisp.org>
104793         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104794         padding ourselves for the floating-point directives.
104795         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104798         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104799         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104807         * tests/test-snprintf-posix.h (test_function): Also check the width
104808         and some flags in the %f directive.
104809         * tests/test-sprintf-posix.h (test_function): Likewise.
104810         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104811         * tests/test-vasprintf-posix.c (test_function): Likewise.
104812         * doc/functions/fprintf.texi: Update.
104813         * doc/functions/printf.texi: Update.
104814         * doc/functions/snprintf.texi: Update.
104815         * doc/functions/sprintf.texi: Update.
104816         * doc/functions/vfprintf.texi: Update.
104817         * doc/functions/vprintf.texi: Update.
104818         * doc/functions/vsnprintf.texi: Update.
104819         * doc/functions/vsprintf.texi: Update.
104821 2007-05-06  Bruno Haible  <bruno@clisp.org>
104823         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104824         pass the ' flag character to sprintf or snprintf.
104825         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104828         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104829         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104837         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104838         flag.
104839         * tests/test-sprintf-posix.h (test_function): Likewise.
104840         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104841         * tests/test-vasprintf-posix.c (test_function): Likewise.
104842         * doc/functions/fprintf.texi: Update.
104843         * doc/functions/printf.texi: Update.
104844         * doc/functions/snprintf.texi: Update.
104845         * doc/functions/sprintf.texi: Update.
104846         * doc/functions/vfprintf.texi: Update.
104847         * doc/functions/vprintf.texi: Update.
104848         * doc/functions/vsnprintf.texi: Update.
104849         * doc/functions/vsprintf.texi: Update.
104851 2007-05-01  Bruno Haible  <bruno@clisp.org>
104853         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104855 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104857         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104858         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104860 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104863         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104864         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104866 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104868         * lib/argp-help.c (struct hol_entry): New member `ord'.
104869         (HOL_ENTRY_PTRCMP): Use ord for comparison
104870         (hol_sort): Initialize ord.
104872 2007-05-01  Bruno Haible  <bruno@clisp.org>
104874         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104875         Reported by Eric Blake.
104876         * doc/gnulib.texi (Function Substitutes): Update.
104878 2007-05-01  Bruno Haible  <bruno@clisp.org>
104880         * doc/functions.texi: Remove file, now redundant through
104881         doc/functions/*.texi.
104883 2007-05-01  Bruno Haible  <bruno@clisp.org>
104885         * modules/argp (Depends-on): Add sleep.
104887 2007-05-01  Bruno Haible  <bruno@clisp.org>
104889         * modules/sleep-tests: New file.
104890         * tests/test-sleep.c: New file.
104892         * modules/sleep: New file.
104893         * lib/sleep.c: New file.
104894         * m4/sleep.m4: New file.
104895         * lib/unistd_.h (sleep): New declaration.
104896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104897         HAVE_SLEEP.
104898         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104899         * doc/functions/sleep.texi: Document the sleep module.
104901 2007-05-01  Bruno Haible  <bruno@clisp.org>
104903         * lib/sigprocmask.h: Remove file.
104904         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104905         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104906         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104907         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104909         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104910         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104911         HAVE_SIGSET_T as a shell variable.
104912         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104913         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104914         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104915         (Depends-on): Add signal. Remove verify.
104916         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104917         (Include): Mention <signal.h> instead of sigprocmask.h.
104918         * NEWS: Mention the change.
104919         * lib/fatal-signal.c: Don't include sigprocmask.h.
104921 2007-05-01  Bruno Haible  <bruno@clisp.org>
104923         * modules/signal: New file.
104924         * lib/signal_.h: New file.
104925         * m4/signal_h.m4: New file.
104927 2007-05-01  Bruno Haible  <bruno@clisp.org>
104929         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104930         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104931         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104932         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104934 2007-05-01  Bruno Haible  <bruno@clisp.org>
104936         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
104937         configure time.
104938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
104939         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
104940         * modules/sys_stat (Makefile.am): Substitute their values into
104941         sys/stat.h.
104943 2007-05-01  Bruno Haible  <bruno@clisp.org>
104945         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
104946         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104947         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104949 2007-05-01  Bruno Haible  <bruno@clisp.org>
104951         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104952         'assert' module here.
104954 2007-05-01  Bruno Haible  <bruno@clisp.org>
104956         * doc/functions/*.texi: New files.
104957         * doc/functions/google-ranking.txt: New file.
104958         * doc/gnulib.texi (Function Substitutes): New chapter.
104959         (ctime, inet_ntoa): Remove sections.
104960         * doc/ctime.texi: Remove file.
104961         * doc/inet_ntoa.texi: Remove file.
104962         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104963         dependencies.
104964         (%.info): New rule, specifying a --reference-limit.
104966 2007-05-01  Bruno Haible  <bruno@clisp.org>
104968         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104970 2007-05-01  Bruno Haible  <bruno@clisp.org>
104972         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104973         the portability of 'mkdir' to mingw systems.
104975 2007-05-01  Bruno Haible  <bruno@clisp.org>
104977         * doc/headers/google-ranking.txt: New file.
104979 2007-04-30  Eric Blake  <ebb9@byu.net>
104981         Prefer fseeko to fseek.
104982         * modules/getpass (Depends-on): Add fseeko.
104983         * lib/getpass.c (getpass): Use fseeko, not fseek.
104985 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104987         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104988         assumes the sorting is stable, while most qsort implementations
104989         are not.  Use argument addresses to ensure they never compare as
104990         equal.
104992         * tests/test-argp-2.sh (usage-indent test): Fix output
104993         (func_compare): Restore diff options
104994         * tests/test-argp.c: Restore #include "progname.h"
104996 2007-04-29  Bruno Haible  <bruno@clisp.org>
104998         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105000         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105002         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105003         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105004         (TESTS, check_PROGRAMS): Add test-snprintf.
105005         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105006         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105007         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105008         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105009         assertions that fail on HP-UX, OSF/1, or IRIX.
105010         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105012 2007-04-29  Bruno Haible  <bruno@clisp.org>
105014         * MODULES.html.sh (posix_functions): Remove 'contents'.
105016 2007-04-29  Karl Berry  <karl@gnu.org>
105018         * config/srclist.txt (gendocs_template_min): new entry.
105020 2007-04-29  Bruno Haible  <bruno@clisp.org>
105022         Work around fpurge bug on BSD systems.
105023         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105024         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105025         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105026         fpurge to rpl_fpurge if the system already has this function.
105027         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105028         the case where the system already has this function. Correct invariants
105029         on BSD systems.
105030         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105031         BSD systems.
105033 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105035         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105036         proposed by Sven Verdoolaege.
105038         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105039         options.
105040         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105041         (usage and help tests): Update
105043 2007-04-29  Bruno Haible  <bruno@clisp.org>
105045         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105046         Print more information in case of failure. Disable a test on BeOS.
105048 2007-04-29  Bruno Haible  <bruno@clisp.org>
105050         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105051         This helps debugging on systems on which no gdb is available.
105053 2007-04-29  Bruno Haible  <bruno@clisp.org>
105055         * lib/freading.h: Improve comments.
105056         * lib/fwriting.h: Likewise.
105057         * tests/test-freading.c (main): Don't check freading immediately after
105058         repositioning. Needed for glibc.
105060 2007-04-29  Bruno Haible  <bruno@clisp.org>
105062         * lib/freading.c (freading): Trivial simplification.
105064 2007-04-28  Bruno Haible  <bruno@clisp.org>
105066         * tests/test-fwriting.c (main): Also test the interaction between
105067         fflush and fwriting.
105068         * modules/fwriting-tests (Depends-on): Add fflush.
105070         * tests/test-freading.c (main): Also test the interaction between
105071         fflush and freading.
105072         * modules/freading-tests (Depends-on): Add fflush.
105074 2007-04-28  Bruno Haible  <bruno@clisp.org>
105076         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105077         fseeko and ftello.
105078         Suggested by Eric Blake.
105080 2007-04-28  Jim Meyering  <jim@meyering.net>
105082         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105083         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105084         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105086 2007-04-27  Eric Blake  <ebb9@byu.net>
105088         * doc/headers/assert.texi (assert.h): Document assert module use.
105090 2007-04-27  Bruno Haible  <bruno@clisp.org>
105092         * doc/headers/*.texi: New files.
105093         * doc/gnulib.texi (Header File Substitutes): New chapter.
105094         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105095         dependencies.
105096         (standards.info ,standards.html, standards.dvi): Update dependencies.
105097         (mostlyclean, clean): New targets.
105099 2007-04-27  Bruno Haible  <bruno@clisp.org>
105101         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105102         * modules/sysexits (Files, Makefile.am): Update.
105104         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105105         * modules/sys_socket (Files, Makefile.am): Update.
105107         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105108         * modules/sys_stat (Files, Makefile.am): Update.
105110 2007-04-27  Eric Blake  <ebb9@byu.net>
105112         * lib/freading.h: Improve comments.
105113         * lib/fwriting.h: Likewise.
105114         * lib/fflush.c: Likewise.
105116         Fix closein for mingw.
105117         * modules/closein-tests: Add tests for closein.
105118         * tests/test-closein.c: New file.
105119         * tests/test-closein.sh: Likewise.
105120         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105121         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105123 2007-04-27  Bruno Haible  <bruno@clisp.org>
105125         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105126         version is < 6.
105127         * lib/math_.h [__DECC]: Likewise.
105128         * lib/stdio_.h [__DECC]: Likewise.
105129         * lib/stdlib_.h [__DECC]: Likewise.
105130         * lib/string_.h [__DECC]: Likewise.
105131         * lib/time_.h [__DECC]: Likewise.
105132         * lib/wchar_.h [__DECC]: Likewise.
105133         * lib/wctype_.h [__DECC]: Likewise.
105135 2007-04-27  Bruno Haible  <bruno@clisp.org>
105137         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105139 2007-04-27  Bruno Haible  <bruno@clisp.org>
105141         * lib/fflush.c: Add comments.
105142         * modules/fpurge-tests (Depends-on): Add fflush.
105143         * modules/freadable-tests (Depends-on): Likewise.
105144         * modules/fwritable-tests (Depends-on): Likewise.
105146 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105148         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105149         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105150         Report by Bruno Haible <bruno@clisp.org>.
105152 2007-04-26  Eric Blake  <ebb9@byu.net>
105154         Fix fflush on mingw.
105155         * modules/fflush (Depends-on): Add freading.
105156         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105157         but unread data.
105159 2007-04-26  Eric Blake  <ebb9@byu.net>
105160         and Bruno Haible  <bruno@clisp.org>
105162         Implement freading and fwriting.
105163         * lib/freading.c: New file.
105164         * lib/freading.h: Likewise.
105165         * m4/freading.m4: Likewise.
105166         * modules/freading: Likewise.
105167         * modules/freading-tests: Likewise.
105168         * tests/test-freading.c: Likewise.
105169         * lib/fwriting.c: New file.
105170         * lib/fwriting.h: Likewise.
105171         * m4/fwriting.m4: Likewise.
105172         * modules/fwriting: Likewise.
105173         * modules/fwriting-tests: Likewise.
105174         * tests/test-fwriting.c: Likewise.
105175         * MODULES.html.sh (File stream based Input/Output): Mention them.
105177 2007-04-26  Bruno Haible  <bruno@clisp.org>
105179         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105180         'long' when we assume it.
105181         Suggested by Eric Blake.
105183 2007-04-26  Bruno Haible  <bruno@clisp.org>
105185         Ensure fseeko, ftello are declared on glibc systems.
105186         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105187         * modules/fseeko (configure.ac-early): Likewise.
105188         * modules/ftello (configure.ac-early): Likewise.
105189         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105190         AC_FUNC_FSEEKO for this.
105191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105192         (gl_CHECK_FSEEKO): Remove macro.
105194 2007-04-26  Bruno Haible  <bruno@clisp.org>
105196         * tests/test-fflush.c (main): Also check the ftell result after
105197         fflush and fseek/fseeko.
105198         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105199         file descriptor position cache in the stream.
105200         * lib/fseeko.c (rpl_fseeko): Likewise.
105202 2007-04-26  Bruno Haible  <bruno@clisp.org>
105204         * modules/fflush-tests (Depends-on): Add fseeko.
105206 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105207             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105209         * lib/argz_.h: ensure error_t definition is obtained in same
105210         mechanism system argz.h would have.
105211         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105212         argz facilities are known bad.  Err on the side of caution if
105213         cross-compiling.
105215 2007-04-25  Eric Blake  <ebb9@byu.net>
105217         * lib/fpurge.c (includes): Use stdlib.h for free.
105218         * tests/test-fflush.c (main): Also test fflush-fseeko.
105220 2007-04-25  Bruno Haible  <bruno@clisp.org>
105222         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105223         * lib/fseeko.c: New file.
105224         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105225         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105226         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105227         gl_FUNC_FSEEKO.
105228         (gl_FUNC_FSEEKO): Invoke it.
105229         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105230         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105231         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105233 2007-04-25  Bruno Haible  <bruno@clisp.org>
105235         * modules/fflush (Depends-on): Add ftello.
105237 2007-04-25  Bruno Haible  <bruno@clisp.org>
105239         * modules/ftello-tests: New file.
105240         * tests/test-ftello.c: New file.
105242         * modules/ftello: New file.
105243         * m4/ftello.m4: New file.
105244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105245         HAVE_FTELLO.
105246         * lib/stdio_.h (ftello): New declaration.
105247         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105248         HAVE_FTELLO.
105250 2007-04-25  Bruno Haible  <bruno@clisp.org>
105252         * modules/fseeko-tests: New file.
105253         * tests/test-fseeko.c: New file.
105255         * modules/fseeko: New file.
105256         * m4/fseeko.m4: New file.
105257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105258         HAVE_FSEEKO.
105259         * lib/stdio_.h (fseeko): New declaration.
105260         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105261         HAVE_FSEEKO.
105263 2007-04-25  Bruno Haible  <bruno@clisp.org>
105265         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105267 2007-04-25  Bruno Haible  <bruno@clisp.org>
105269         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105270         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105271         * tests/test-unistd.c: Likewise.
105272         * tests/test-fcntl.c: Likewise.
105274 2007-04-23  Eric Blake  <ebb9@byu.net>
105276         * lib/fflush.c: Fix missing include.
105277         Reported by Bruno Haible.
105279 2007-04-23  Bruno Haible  <bruno@clisp.org>
105281         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105282         Reported by Eric Blake.
105284 2007-04-23  Bruno Haible  <bruno@clisp.org>
105286         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105288 2007-04-23  Bruno Haible  <bruno@clisp.org>
105290         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105292 2007-04-23  Bruno Haible  <bruno@clisp.org>
105294         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105295         Needed on HP-UX 11.
105297 2007-04-16  Eric Blake  <ebb9@byu.net>
105299         Make fflush rely on fpurge.
105300         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105301         open coding all variants.
105302         * modules/fflush (Depends-on): Add fpurge and unistd.
105303         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105306         Fix --with-tests compilation on cygwin.
105307         * modules/argmatch-tests (Makefile.am): List gnulib library first
105308         in LDADD.
105309         * modules/argp-tests (Makefile.am): Likewise.
105310         * modules/array-list-tests (Makefile.am): Likewise.
105311         * modules/array-oset-tests (Makefile.am): Likewise.
105312         * modules/avltree-list-tests (Makefile.am): Likewise.
105313         * modules/avltree-oset-tests (Makefile.am): Likewise.
105314         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105315         * modules/carray-list-tests (Makefile.am): Likewise.
105316         * modules/dirname-tests (Makefile.am): Likewise.
105317         * modules/frexp-tests (Makefile.am): Likewise.
105318         * modules/isnanl-tests (Makefile.am): Likewise.
105319         * modules/linked-list-tests (Makefile.am): Likewise.
105320         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105321         * modules/lock-tests (Makefile.am): Likewise.
105322         * modules/rbtree-list-tests (Makefile.am): Likewise.
105323         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105324         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105325         * modules/tls-tests (Makefile.am): Likewise.
105326         * modules/tsearch-tests (Makefile.am): Likewise.
105327         * modules/xvasprintf-tests (Makefile.am): Likewise.
105329         Fix fpurge for cygwin.
105330         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105331         value.
105332         * modules/fpurge-tests (Depends-on): Clean up trash.
105334 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105336         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105338         * m4/autobuild.m4: Re-indent.
105340 2007-04-13  Bruno Haible  <bruno@clisp.org>
105342         * modules/fpurge-tests: New file.
105343         * tests/test-fpurge.c: New file.
105345         * modules/fpurge: New file.
105346         * lib/fpurge.h: New file.
105347         * lib/fpurge.c: New file.
105348         * m4/fpurge.m4: New file.
105350 2007-04-13  Bruno Haible  <bruno@clisp.org>
105352         * modules/fbufmode-tests: New file.
105353         * tests/test-fbufmode.c: New file.
105355         * modules/fbufmode: New file.
105356         * lib/fbufmode.h: New file.
105357         * lib/fbufmode.c: New file.
105358         * m4/fbufmode.m4: New file.
105360 2007-04-13  Bruno Haible  <bruno@clisp.org>
105362         * modules/fwritable-tests: New file.
105363         * tests/test-fwritable.c: New file.
105365         * modules/fwritable: New file.
105366         * lib/fwritable.h: New file.
105367         * lib/fwritable.c: New file.
105368         * m4/fwritable.m4: New file.
105370 2007-04-13  Bruno Haible  <bruno@clisp.org>
105372         * modules/freadable-tests: New file.
105373         * tests/test-freadable.c: New file.
105375         * modules/freadable: New file.
105376         * lib/freadable.h: New file.
105377         * lib/freadable.c: New file.
105378         * m4/freadable.m4: New file.
105380 2007-04-13  Bruno Haible  <bruno@clisp.org>
105382         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105383         MOSTLYCLEANFILES.
105385 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105387         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105388         gzip bootstrap.conf to avoid dragging in i18n machinery.
105389         (gnulib_tool_option): Use it.
105391 2007-04-13  Bruno Haible  <bruno@clisp.org>
105393         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105394         %F directives.
105395         * tests/test-vasprintf-posix.c (test_function): Likewise.
105396         * tests/test-snprintf-posix.h (test_function): Likewise.
105397         * tests/test-sprintf-posix.h (test_function): Likewise.
105398         * tests/test-fprintf-posix.h (test_function): Likewise.
105399         * tests/test-printf-posix.h (test_function): Likewise.
105400         * tests/test-fprintf-posix.out: Likewise.
105402 2007-04-13  Bruno Haible  <bruno@clisp.org>
105404         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105405         * modules/tls-tests (configure.ac): Likewise.
105406         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105408 2007-04-13  Bruno Haible  <bruno@clisp.org>
105410         * lib/tls.c (glthread_tls_get): Fix return type.
105411         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105413 2007-04-12  Eric Blake  <ebb9@byu.net>
105415         * modules/gettime (Depends-on): Remove gettime.
105416         Reported by Dmitry V. Levin.
105418 2007-04-12  Bruno Haible  <bruno@clisp.org>
105420         * modules/fflush (Include): Mention <stdio.h>.
105421         * modules/strtoimax (Include): Mention <inttypes.h>.
105422         * modules/strtoumax (Include): Likewise.
105424 2007-04-12  Eric Blake  <ebb9@byu.net>
105426         * .cvsignore: New file.
105427         * .gitignore: Likewise.
105429 2007-04-12  Bruno Haible  <bruno@clisp.org>
105431         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105432         not before, since $(LDADD) often contains libgnu.a.
105433         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105434         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105435         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105436         Needed on Cygwin.
105438 2007-04-12  Eric Blake  <ebb9@byu.net>
105440         Work around glibc's failure to flush stdin on fclose.
105441         * lib/closein.c (close_stdin): Flush stdin before closing.
105443         Work around glibc's failure to reset seekable stdin on exit.
105444         * modules/closein: New module.
105445         * lib/closein.c: New file.
105446         * lib/closein.h: Likewise.
105447         * m4/closein.m4: Likewise.
105448         * MODULES.html.sh (File stream based Input/Output): Document it.
105450 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105452         * gnulib-tool: Rename generated 'autobuild' script to
105453         'do-autobuild' in --create-megatestdir output.
105455         * doc/gnulib.texi (Build robot for gnulib): Fix.
105457 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105459         * modules/sysexits (Depends-on): Add absolute-header.
105461 2007-04-12  Eric Blake  <ebb9@byu.net>
105463         No need to preserve errno on success.
105464         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105465         Reported by Bruno Haible.
105467 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105469         * MODULES.html.sh (Support for maintaining and releasing
105470         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105474         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105476 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105478         * modules/autobuild: New module.
105480         * m4/autobuild.m4: New file.
105482 2007-04-11  Bruno Haible  <bruno@clisp.org>
105484         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105485         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105498         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105499         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105501         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105502         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105504         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105505         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105507         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105508         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105510         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105511         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105512         Reported by Eric Blake.
105514 2007-04-11  Bruno Haible  <bruno@clisp.org>
105516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
105518 2007-04-10  Bruno Haible  <bruno@clisp.org>
105520         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
105521         for NaN and Infinity. Needed on FreeBSD 6.1.
105522         * tests/test-vasnprintf-posix.c (test_function): Undo last change
105523         regarding results for "%010a" of Infinity and NaN.
105524         * tests/test-vasprintf-posix.c (test_function): Likewise.
105525         * tests/test-snprintf-posix.h (test_function): Likewise.
105526         * tests/test-sprintf-posix.h (test_function): Likewise.
105527         * tests/test-fprintf-posix.h (test_function): Likewise.
105528         * tests/test-printf-posix.h (test_function): Likewise.
105529         * tests/test-fprintf-posix.out: Likewise.
105531 2007-04-10  Bruno Haible  <bruno@clisp.org>
105533         * modules/locale-tests: New file.
105534         * tests/test-locale.c: New file.
105536         * modules/locale: New file.
105537         * lib/locale_.h: New file.
105538         * m4/locale_h.m4: New file.
105540 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
105541             Bruno Haible  <bruno@clisp.org>
105543         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
105544         be determined, test for availability of the copysignf, copysign,
105545         copysignl functions.
105546         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
105547         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
105548         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
105550 2007-04-09  Eric Blake  <ebb9@byu.net>
105552         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
105553         * modules/stdio (Makefile.am): Support fflush.
105554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
105555         * modules/fflush: New file.
105556         * lib/fflush.c: Likewise.
105557         * m4/fflush.m4: Likewise.
105558         * modules/fflush-tests: New test.
105559         * tests/test-fflush.c: Likewise.
105560         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
105562 2007-04-06  Bruno Haible  <bruno@clisp.org>
105564         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
105565         (VASNPRINTF): Use signbit for faster determination whether to print a
105566         minus sign.
105567         * modules/vasnprintf (Files): Remove lib/float+.h.
105568         * modules/fprintf-posix (Depends-on): Add signbit.
105569         * modules/snprintf-posix (Depends-on): Likewise.
105570         * modules/sprintf-posix (Depends-on): Likewise.
105571         * modules/vasnprintf-posix (Depends-on): Likewise.
105572         * modules/vasprintf-posix (Depends-on): Likewise.
105573         * modules/vfprintf-posix (Depends-on): Likewise.
105574         * modules/vsnprintf-posix (Depends-on): Likewise.
105575         * modules/vsprintf-posix (Depends-on): Likewise.
105577 2007-04-06  Bruno Haible  <bruno@clisp.org>
105579         * tests/test-frexp.c (main): Test also the sign bit of zero results.
105580         * tests/test-frexpl.c (main): Likewise.
105581         * tests/test-ldexpl.c (main): Likewise.
105582         * modules/frexp-tests (Depends-on): Add signbit.
105583         * modules/frexpl-tests (Depdends-on): Likewise.
105584         * modules/ldexpl-tests (Depdends-on): Likewise.
105586 2007-04-06  Bruno Haible  <bruno@clisp.org>
105588         * modules/signbit-tests: New file.
105589         * tests/test-signbit.c: New file.
105591         * modules/signbit: New file.
105592         * lib/signbitf.c: New file.
105593         * lib/signbitd.c: New file.
105594         * lib/signbitl.c: New file.
105595         * m4/signbit.m4: New file.
105596         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105597         (signbit): New macro.
105598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105599         REPLACE_SIGNBIT.
105600         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105601         REPLACE_FREXPL into math.h.
105603 2007-04-06  Bruno Haible  <bruno@clisp.org>
105605         * modules/isnanf-nolibm-tests: New file.
105606         * tests/test-isnanf.c: New file.
105608         * modules/isnanf-nolibm: New file.
105609         * lib/isnanf.h: New file.
105610         * lib/isnanf.c: New file.
105611         * lib/isnan.c: Consider the USE_FLOAT macro.
105612         * m4/isnanf.m4: New file.
105614 2007-04-06  Bruno Haible  <bruno@clisp.org>
105616         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105617         (Link): New section.
105619         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105621 2007-04-06  Bruno Haible  <bruno@clisp.org>
105623         Assume the 'long double' type.
105624         * m4/longdouble.m4: Remove file.
105625         * config/srclist.txt: Don't mention longdouble.m4.
105626         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105627         * lib/float+.h: Likewise.
105628         * lib/frexp.c: Likewise.
105629         * lib/printf-args.h: Likewise.
105630         * lib/printf-args.c: Likewise.
105631         * lib/printf-frexp.c: Likewise.
105632         * lib/printf-parse.c: Likewise.
105633         * lib/vasnprintf.c: Likewise.
105634         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105635         * m4/intl.m4: Likewise.
105636         * m4/isnanl.m4: Likewise.
105637         * m4/printf.m4: Likewise.
105638         * m4/printf-frexpl.m4: Likewise.
105639         * m4/vasnprintf.m4: Likewise.
105640         * modules/allocsa (Files): Remove m4/longdouble.m4.
105641         * modules/gettext (Files): Likewise.
105642         * modules/relocatable-prog-wrapper (Files): Likewise.
105643         * modules/vasnprintf (Files): Likewise.
105644         * modules/isnanl (Files): Likewise.
105645         (Include): Simplify.
105646         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105647         (Include): Simplify.
105648         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105649         (Include): Simplify.
105650         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105652         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105654         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105656         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105658         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105659         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105660         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105661         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105662         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105663         * tests/test-isnanl.c: Likewise.
105664         * tests/test-snprintf-posix.h: Likewise.
105665         * tests/test-sprintf-posix.h: Likewise.
105666         * tests/test-vasnprintf-posix.c: Likewise.
105667         * tests/test-vasnprintf-posix2.c: Likewise.
105668         * tests/test-vasprintf-posix.c: Likewise.
105670 2007-04-06  Bruno Haible  <bruno@clisp.org>
105672         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105673         * lib/math_.h [__DECC]: Include the overridden include file through
105674         #include_next, outside the double-inclusion guard.
105675         * lib/stdio_.h [__DECC]: Likewise.
105676         * lib/stdlib_.h [__DECC]: Likewise.
105677         * lib/string_.h [__DECC]: Likewise.
105678         * lib/time_.h [__DECC]: Likewise.
105679         * lib/wchar_.h [__DECC]: Likewise.
105680         * lib/wctype_.h [__DECC]: Likewise.
105681         * lib/inttypes_.h [__DECC]: Likewise.
105682         Reported by Albert Chin <china@thewrittenword.com> in
105683         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105685 2007-04-04  Eric Blake  <ebb9@byu.net>
105687         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105688         1.5.x.
105690 2007-04-04  Bruno Haible  <bruno@clisp.org>
105692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105693         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105695 2007-04-04  Bruno Haible  <bruno@clisp.org>
105697         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105698         results for "%010a" of Infinity and NaN.
105699         * tests/test-vasprintf-posix.c (test_function): Likewise.
105700         * tests/test-snprintf-posix.h (test_function): Likewise.
105701         * tests/test-sprintf-posix.h (test_function): Likewise.
105702         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105703         * tests/test-printf-posix.h (test_function): Likewise.
105704         * tests/test-fprintf-posix.out: Update.
105705         Needed for FreeBSD 6.1.
105707 2007-04-04  Bruno Haible  <bruno@clisp.org>
105709         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105710         directly used by the gnulib modules nor by gnulib-tool.
105712 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105714         * DEPENDENCIES: Give overall description of version dependency
105715         desirability.  Use more-typical names for apps.
105716         Add shell, coreutils, diffutils, grep, tar, gzip.
105718 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105720         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105722 2007-04-04  Karl Berry  <karl@gnu.org>
105724         * MODULES.html.sh (func_module): missing '.
105726 2007-04-03  Bruno Haible  <bruno@clisp.org>
105728         * modules/argmatch-tests (Makefile.am): New variable
105729         test_argmatch_LDADD.
105730         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105731         * modules/array-list-tests (Makefile.am): New variable
105732         test_array_list_LDADD.
105733         * modules/array-oset-tests (Makefile.am): New variable
105734         test_array_oset_LDADD.
105735         * modules/avltree-list-tests (Makefile.am): New variable
105736         test_avltree_list_LDADD.
105737         * modules/avltree-oset-tests (Makefile.am): New variable
105738         test_avltree_oset_LDADD.
105739         * modules/avltreehash-list-tests (Makefile.am): New variable
105740         test_avltreehash_list_LDADD.
105741         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105742         test_canonicalize_lgpl_LDADD.
105743         * modules/carray-list-tests (Makefile.am): New variable
105744         test_carray_list_LDADD.
105745         * modules/dirname-tests (Makefile.am): New variable
105746         test_dirname_LDADD.
105747         * modules/linked-list-tests (Makefile.am): New variable
105748         test_linked_list_LDADD.
105749         * modules/linkedhash-list-tests (Makefile.am): New variable
105750         test_linkedhash_list_LDADD.
105751         * modules/rbtree-list-tests (Makefile.am): New variable
105752         test_rbtree_list_LDADD.
105753         * modules/rbtree-oset-tests (Makefile.am): New variable
105754         test_rbtree_oset_LDADD.
105755         * modules/rbtreehash-list-tests (Makefile.am): New variable
105756         test_rbtreehash_list_LDADD.
105757         * modules/xvasprintf-tests (Makefile.am): New variable
105758         test_xvasprintf_LDADD.
105759         Reported by Eric Blake.
105761 2007-04-03  Eric Blake  <ebb9@byu.net>
105763         * DEPENDENCIES: Weaken m4 requirements.
105765 2007-04-03  Bruno Haible  <bruno@clisp.org>
105767         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105768         * modules/isnanl-tests (configure.ac): Likewise.
105770 2007-04-03  Ben Pfaff  <blp@gnu.org>
105772         * modules/iconv_open: Add $(srcdir)/ to source directory
105773         references in Makefile fragments that call gperf, to fix VPATH
105774         builds.
105776 2007-04-03  Bruno Haible  <bruno@clisp.org>
105778         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105779         * lib/ldexpl.c: Undo last change.
105781 2007-04-03  Bruno Haible  <bruno@clisp.org>
105783         * modules/printf-frexpl (Depends-on): Undo last change.
105784         (Files): Add m4/ldexpl.m4.
105786 2007-04-03  Bruno Haible  <bruno@clisp.org>
105788         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105789         * modules/isnanl (Link): New section.
105791         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105792         * modules/frexp (Link): New section.
105794         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105795         * modules/frexpl (Link): New section.
105797         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105798         * modules/ldexpl (Link): New section.
105800 2007-04-03  Bruno Haible  <bruno@clisp.org>
105802         * modules/TEMPLATE-EXTENDED: New file.
105803         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105805 2007-04-03  Bruno Haible  <bruno@clisp.org>
105807         * DEPENDENCIES: New file.
105808         Suggested by Simon Josefsson.
105810 2007-04-03  Bruno Haible  <bruno@clisp.org>
105812         * doc/gnulib.texi: Escape @.
105814 2007-04-03  James Youngman  <jay@gnu.org>
105815         and Paul Eggert  <eggert@cs.ucla.edu>
105817         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105818         birthtime on all systems that have birthtime, not just those which
105819         use st_birthtimensec rather than st_birthtim.  Putting zero in
105820         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105821         that the birth time is not available for files on an NFS mount.
105823 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105825         * modules/memxor: Move back from crypto/, suggested by Bruno.
105826         * modules/crypto/hmac-sha1: Fix memxor dependency.
105828         * modules/crypto/gc: Moved from ../.
105830 2007-04-02  Eric Blake  <ebb9@byu.net>
105832         * lib/ldexpl.c (includes): Avoid libm.
105834         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105836 2007-04-02  Bruno Haible  <bruno@clisp.org>
105838         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105839         on IRIX.
105841 2007-04-02  Bruno Haible  <bruno@clisp.org>
105843         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105844         x86 or x86_64 platforms running MacOS X.
105845         Reported by Ryan Schmidt <@ryandesign.com>.
105847 2007-04-02  Bruno Haible  <bruno@clisp.org>
105849         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105850         i386.
105852 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105854         * modules/crypto/arcfour: Moved from ../.
105855         * modules/crypto/arcfour-tests: Moved from ../.
105856         * modules/crypto/arctwo: Moved from ../.
105857         * modules/crypto/arctwo-tests: Moved from ../.
105858         * modules/crypto/des: Moved from ../.
105859         * modules/crypto/des-tests: Moved from ../.
105860         * modules/crypto/gc-arcfour: Moved from ../.
105861         * modules/crypto/gc-arcfour-tests: Moved from ../.
105862         * modules/crypto/gc-arctwo: Moved from ../.
105863         * modules/crypto/gc-arctwo-tests: Moved from ../.
105864         * modules/crypto/gc-des: Moved from ../.
105865         * modules/crypto/gc-des-tests: Moved from ../.
105866         * modules/crypto/gc-hmac-md5: Moved from ../.
105867         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105868         * modules/crypto/gc-hmac-sha1: Moved from ../.
105869         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105870         * modules/crypto/gc-md2: Moved from ../.
105871         * modules/crypto/gc-md2-tests: Moved from ../.
105872         * modules/crypto/gc-md4: Moved from ../.
105873         * modules/crypto/gc-md4-tests: Moved from ../.
105874         * modules/crypto/gc-md5: Moved from ../.
105875         * modules/crypto/gc-md5-tests: Moved from ../.
105876         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105877         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105878         * modules/crypto/gc-random: Moved from ../.
105879         * modules/crypto/gc-rijndael: Moved from ../.
105880         * modules/crypto/gc-rijndael-tests: Moved from ../.
105881         * modules/crypto/gc-sha1: Moved from ../.
105882         * modules/crypto/gc-sha1-tests: Moved from ../.
105883         * modules/crypto/gc-tests: Moved from ../.
105884         * modules/crypto/hmac-md5: Moved from ../.
105885         * modules/crypto/hmac-md5-tests: Moved from ../.
105886         * modules/crypto/hmac-sha1: Moved from ../.
105887         * modules/crypto/hmac-sha1-tests: Moved from ../.
105888         * modules/crypto/md2: Moved from ../.
105889         * modules/crypto/md2-tests: Moved from ../.
105890         * modules/crypto/md4: Moved from ../.
105891         * modules/crypto/md4-tests: Moved from ../.
105892         * modules/crypto/md5: Moved from ../.
105893         * modules/crypto/md5-tests: Moved from ../.
105894         * modules/crypto/memxor: Moved from ../.
105895         * modules/crypto/rijndael: Moved from ../.
105896         * modules/crypto/rijndael-tests: Moved from ../.
105897         * modules/crypto/sha1: Moved from ../.
105899 2007-03-30  James Youngman  <jay@gnu.org>
105901         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105902         rename() to change the ctime of a file (because ctime is unaffected
105903         by rename on jfs2 on AIX 5.1).
105904         (main): Start by doing cleanup, in case a previous run failed leaving
105905         test files behind.
105907 2007-03-31  Bruno Haible  <bruno@clisp.org>
105909         Support old proprietary implementations of iconv.
105910         * modules/iconv_open: New file.
105911         * lib/iconv_.h: New file.
105912         * m4/iconv_h.m4: New file.
105913         * lib/iconv_open.c: New file.
105914         * lib/iconv_open-aix.gperf: New file.
105915         * lib/iconv_open-hpux.gperf: New file.
105916         * lib/iconv_open-irix.gperf: New file.
105917         * lib/iconv_open-osf.gperf: New file.
105918         * m4/iconv_open.m4: New file.
105919         * modules/linebreak (Depends-on): Add iconv_open.
105920         * modules/striconv (Depends-on): Likewise.
105921         * modules/striconveh (Depends-on): Likewise.
105922         * modules/unicodeio (Depends-on): Likewise.
105923         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105924         (iconv_t)(-1).
105925         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105926         conversion if cd is (iconv_t)(-1).
105927         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105928         is not possible.
105930 2007-03-31  Bruno Haible  <bruno@clisp.org>
105932         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105933         work on Solaris either. Protect also second use of "autodetect_jp".
105935 2007-03-31  Bruno Haible  <bruno@clisp.org>
105937         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
105938         the function is not present.
105940 2007-03-31  Bruno Haible  <bruno@clisp.org>
105942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
105943         the function is not present.
105945 2007-03-31  Bruno Haible  <bruno@clisp.org>
105947         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105948         a bug in HP-UX iconv_open().
105950 2007-03-31  Bruno Haible  <bruno@clisp.org>
105952         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105953         (Mathematics <math.h>): New section, add fpieee.
105954         (Input/output <stdio.h>): Add fseterr.
105955         (Mathematics <math.h>): New section, add printf-frexp.
105956         (Container data structures): Add sublist.
105957         (Core language properties): Add fpucw, inline.
105958         (Functions for greatest-width integer types <inttypes.h>): Add
105959         imaxabs, imaxdiv, inttypes.
105960         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105961         isnanl-nolibm, ldexp.
105962         (Mathematics <math.h>): New section, add printf-frexpl.
105963         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105964         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105965         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105966         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105967         (Unicode string functions): Add unistr/u*-mbtoucr.
105968         (Java): Add javacomp-script, javaexec-script.
105969         (C#): Add csharpcomp-script, csharpexec-script.
105970         (Support for building libraries and executables): Add havelib,
105971         relocatable-*.
105972         (Support for maintaining and releasing projects): Renamed from
105973         'Support for maintaining and release projects'. Add announce-gen.
105975 2007-03-31  Bruno Haible  <bruno@clisp.org>
105977         * README: Talk primarily about git.
105978         (git and CVS): Renamed from CVS.
105979         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105980         gnulib is available through git.
105981         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105983 2007-03-30  Bruno Haible  <bruno@clisp.org>
105985         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105986         * lib/poll_.h: Likewise.
105987         * lib/stat_.h: Likewise.
105988         * lib/sys_time_.h: Likewise.
105989         * lib/sysexit_.h: Likewise.
105990         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105991         * lib/stdbool_.h: Likewise.
105992         * lib/byteswap_.h: Add double-inclusion guard.
105994 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105996         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105998 2007-03-30  Karl Berry  <karl@gnu.org>
106000         * config/srclist-update: double space after USA in the license
106001         substitution, since that's how it's usually (?) written.
106003 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106005         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106006         reported by Bruno Haible.
106008 2007-03-29  Bruno Haible  <bruno@clisp.org>
106010         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106011         a bug in AIX iconv().
106013 2007-03-29  Bruno Haible  <bruno@clisp.org>
106015         * modules/ldexpl-tests: New file.
106016         * tests/test-ldexpl.c: New file.
106018 2007-03-29  Bruno Haible  <bruno@clisp.org>
106020         * lib/ldexpl.c: Include fpucw.h.
106021         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106022         multiplication.
106023         * modules/ldexpl (Depends-on): Add fpucw.
106025 2007-03-29  Bruno Haible  <bruno@clisp.org>
106027         * modules/ldexpl: New file.
106028         * m4/ldexpl.m4: New file.
106029         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106030         set.
106031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106032         REPLACE_LDEXPL.
106033         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106034         REPLACE_LDEXPL.
106035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106036         gl_FUNC_LDEXPL_WORKS.
106037         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106038         * modules/mathl (Files): Remove lib/ldexpl.c.
106039         (Depends-on): Add ldexpl.
106041 2007-03-29  Bruno Haible  <bruno@clisp.org>
106043         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106045 2007-03-29  Bruno Haible  <bruno@clisp.org>
106047         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106048         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106049         and possibly also HP-UX.
106050         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106051         work on AIX, IRIX, HP-UX, OSF/1.
106052         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106053         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106054         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106055         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106056         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106057         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106059 2007-03-29  Bruno Haible  <bruno@clisp.org>
106061         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106063 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106065         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106066         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106068 2007-03-29  Eric Blake  <ebb9@byu.net>
106070         * lib/acl-internal.h: Remove redundant include.
106071         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106072         Cygwin when a file is locked.
106074 2007-03-29  Bruno Haible  <bruno@clisp.org>
106076         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106077         file.
106078         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106080 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106083         try to remove a parent directory if the child couldn't be removed
106084         (except for the first rmdir, which could fail because the child
106085         doesn't exist).  Problem reported by Jeff Blaine in
106086         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106088 2007-03-28  Bruno Haible  <bruno@clisp.org>
106090         * lib/striconveh.c (utf8conv_carefully): New function.
106091         (mem_cd_iconveh_internal): Invoke it.
106093 2007-03-28  Bruno Haible  <bruno@clisp.org>
106095         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106096         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106097         input.
106098         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106099         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106100         unistr/u8-uctomb.
106102 2007-03-28  Bruno Haible  <bruno@clisp.org>
106104         * modules/unistr/u8-mbtoucr: New file.
106105         * lib/unistr/u8-mbtoucr.c: New file.
106106         * modules/unistr/u16-mbtoucr: New file.
106107         * lib/unistr/u16-mbtoucr.c: New file.
106108         * modules/unistr/u16-mbtoucr: New file.
106109         * lib/unistr/u16-mbtoucr.c: New file.
106110         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106112 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106113             Bruno Haible  <bruno@clisp.org>
106115         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106116         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106117         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106119         * m4/stdio_h.m4: Add stubs for vasprintf too.
106121         * modules/stdio: Support vasprintf in sed command.
106123         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106124         vasprintf.h.  Add stdio module indicator.
106126         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106127         vasprintf.h.
106129         * lib/vasprintf.h: File removed.
106131         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106132         * lib/vasprintf.c: Ditto.
106133         * lib/xvasprintf.c: Ditto.
106134         * tests/test-vasprintf-posix.c: Ditto.
106135         * tests/test-vasprintf.c: Ditto.
106137 2007-03-27  Bruno Haible  <bruno@clisp.org>
106139         Make vasnprintf multithread-safe.
106140         * lib/vasnprintf.c (decimal_point_char): New function.
106141         (VASNPRINTF): Use it.
106142         Suggested by Simon Josefsson.
106144 2007-03-27  Eric Blake  <ebb9@byu.net>
106146         Support sub-second birthtime on cygwin.
106147         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106148         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106149         (get_stat_birthtime): Also work with st_birthtim.
106151 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106153         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106154         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106155         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106156         (get_stat_birthtime_ns): Simplify compile-time tests.
106157         (get_stat_birthtime): Change the API to look like
106158         get_stat_mtime etc., except return a negative tv_nsec on error.
106159         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106160         Don't check for "spare" fields.
106161         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106162         or for struct stat.st_birthtime, as these tests aren't used.
106163         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106165 2007-03-27  Bruno Haible  <bruno@clisp.org>
106167         * lib/stat-time.h: Include <sys/stat.h>.
106169 2007-03-27  James Youngman  <jay@gnu.org>
106171         * lib/stat-time.h (get_stat_birthtime): New function for
106172           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106173         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106174           and its variants.
106175         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106176         * modules/stat-time-test: New file.
106177         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106179 2007-03-26  Bruno Haible  <bruno@clisp.org>
106181         Better support of signalling NaNs.
106182         * lib/atanl.c: Include isnanl.h.
106183         (atanl): Perform test for NaN at the beginning of the function and
106184         through a call to isnanl.
106185         * lib/cosl.c: Include isnanl.h.
106186         (cosl): Perform test for NaN at the beginning of the function and
106187         through a call to isnanl.
106188         * lib/ldexpl.c: Include isnanl.h.
106189         (ldexpl): Perform test for NaN through a call to isnanl.
106190         * lib/logl.c: Include isnanl.h.
106191         (logl): Perform test for NaN at the beginning of the function and
106192         through a call to isnanl.
106193         * lib/sinl.c: Include isnanl.h.
106194         (sinl): Perform test for NaN at the beginning of the function and
106195         through a call to isnanl.
106196         * lib/sqrtl.c: Include isnanl.h.
106197         (sqrtl): Perform test for NaN at the beginning of the function and
106198         through a call to isnanl.
106199         * lib/tanl.c: Include isnanl.h.
106200         (tanl): Perform test for NaN at the beginning of the function and
106201         through a call to isnanl.
106202         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106203         * modules/mathl (Depends-on): Add isnanl.
106205 2007-03-26  Eric Blake  <ebb9@byu.net>
106207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106208         regression in logic sense of previous patch.
106210 2007-03-26  Bruno Haible  <bruno@clisp.org>
106212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106213         unportable shell command "if ! ...".
106214         Reported by Ralf Wildenhues.
106216 2007-03-25  Bruno Haible  <bruno@clisp.org>
106218         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106219         <sysexits.h> file, and only add EX_CONFIG.
106220         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106221         absolute file name and whether it is sufficient. Substitute also
106222         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106223         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106224         ABSOLUTE_SYSEXITS_H into sysexits.h.
106226 2007-03-25  Bruno Haible  <bruno@clisp.org>
106228         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106229         hints is NULL.
106231 2007-03-25  Bruno Haible  <bruno@clisp.org>
106233         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106234         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106236 2007-03-25  Bruno Haible  <bruno@clisp.org>
106238         * lib/vasnprintf.c: Include langinfo.h.
106239         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106240         multithread-safe.
106241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106250         Reported by Simon Josefsson.
106252 2007-03-25  Bruno Haible  <bruno@clisp.org>
106254         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106255         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106256         * modules/vasnprintf (Depends-on): Add stdint.
106258 2007-03-25  Bruno Haible  <bruno@clisp.org>
106260         * modules/fpieee: New file.
106261         * m4/fpieee.m4: New file.
106262         * modules/isnan-nolibm (Depends-on): Add fpieee.
106263         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106264         * modules/isnanl (Depends-on): Add fpieee.
106266 2007-03-25  Bruno Haible  <bruno@clisp.org>
106268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106270 2007-03-25  Bruno Haible  <bruno@clisp.org>
106272         Avoid test failures on IRIX 6.5.
106273         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106274         (main): Use it.
106275         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106276         macros.
106277         (main): Use them.
106279 2007-03-25  Bruno Haible  <bruno@clisp.org>
106281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106282         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106283         exists but doesn't work.
106284         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106285         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106287         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106288         math.h.
106290 2007-03-25  Bruno Haible  <bruno@clisp.org>
106292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106293         returns inf. Needed on IRIX 6.5.
106295 2007-03-25  Bruno Haible  <bruno@clisp.org>
106297         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106298         (main): Use isnanl instead of x != x idiom.
106299         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106301         * tests/test-frexp.c: Include isnan.h.
106302         (main): Use isnan instead of x != x idiom.
106303         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106305 2007-03-25  Bruno Haible  <bruno@clisp.org>
106307         * tests/test-frexp.c (NaN): New function/macro.
106308         (main): Use it instead of 0.0 / 0.0.
106309         * tests/test-isnan.c (NaN): New function/macro.
106310         (main): Use it instead of 0.0 / 0.0.
106311         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106312         (test_function): Use it instead of 0.0 / 0.0.
106313         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106314         (test_function): Use it instead of 0.0 / 0.0.
106315         * tests/test-snprintf-posix.h (NaN): New function/macro.
106316         (test_function): Use it instead of 0.0 / 0.0.
106317         * tests/test-sprintf-posix.h (NaN): New function/macro.
106318         (test_function): Use it instead of 0.0 / 0.0.
106319         * tests/test-fprintf-posix.h (NaN): New function/macro.
106320         (test_function): Use it instead of 0.0 / 0.0.
106321         * tests/test-printf-posix.h (NaN): New function/macro.
106322         (test_function): Use it instead of 0.0 / 0.0.
106324         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106326 2007-03-25  Bruno Haible  <bruno@clisp.org>
106328         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106330 2007-03-25  Bruno Haible  <bruno@clisp.org>
106332         * lib/regexec.c (merge_state_with_log): Make static.
106334 2007-03-25  Bruno Haible  <bruno@clisp.org>
106336         * lib/trigl.c (kernel_rem_pio2): Make static.
106338 2007-03-25  Bruno Haible  <bruno@clisp.org>
106340         * lib/sincosl.c (sincosl_table): Make static.
106342 2007-03-25  Bruno Haible  <bruno@clisp.org>
106344         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106345         if the compiler does not support C99.
106347 2007-03-25  Bruno Haible  <bruno@clisp.org>
106349         * modules/time (Makefile.am): Ensure all rule action lines start with a
106350         tab.
106352 2007-03-24  Bruno Haible  <bruno@clisp.org>
106354         * modules/tsearch-tests: New file.
106355         * tests/test-tsearch.sh: New file.
106356         * tests/test-tsearch.c: New file, mostly copied from glibc.
106358         * modules/search-tests: New file.
106359         * tests/test-search.c: New file.
106361         * modules/search: New file.
106362         * lib/search_.h: New file, incorporating lib/tsearch.h.
106363         * m4/search_h.m4: New file.
106364         * lib/tsearch.h: Remove file.
106365         * lib/tsearch.c: Include search.h instead of tsearch.h.
106366         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106367         HAVE_TSEARCH.
106368         * modules/tsearch (Files): Remove lib/tsearch.h.
106369         (Depends-on): Add search.
106370         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106371         (Include): Change tsearch.h into search.h.
106373 2007-03-24  Bruno Haible  <bruno@clisp.org>
106375         * modules/fpucw: New file.
106376         * lib/fpucw.h: New file.
106377         * lib/frexp.c: Include fpucw.h.
106378         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106379         (FUNC): Use them.
106380         * lib/printf-frexp.c: Include fpucw.h.
106381         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106382         (FUNC): Use them.
106383         * lib/vasnprintf.c: Include fpucw.h.
106384         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106385         'long double' calculations.
106386         * tests/test-frexpl.c: Include fpucw.h.
106387         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106388         * tests/test-printf-frexpl.c: Include fpucw.h.
106389         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106390         * modules/frexpl (Depends-on): Add fpucw.
106391         * modules/printf-frexpl (Depends-on): Likewise.
106392         * modules/fprintf-posix (Depends-on): Likewise.
106393         * modules/snprintf-posix (Depends-on): Likewise.
106394         * modules/sprintf-posix (Depends-on): Likewise.
106395         * modules/vasnprintf-posix (Depends-on): Likewise.
106396         * modules/vasprintf-posix (Depends-on): Likewise.
106397         * modules/vfprintf-posix (Depends-on): Likewise.
106398         * modules/vsnprintf-posix (Depends-on): Likewise.
106399         * modules/vsprintf-posix (Depends-on): Likewise.
106400         * modules/frexpl-tests (Depends-on): Likewise.
106401         * modules/printf-frexpl-tests (Depends-on): Likewise.
106403 2007-03-24  Bruno Haible  <bruno@clisp.org>
106405         * lib/float+.h: New file.
106406         * lib/isnan.c: Include float+.h.
106407         (SIZE): New macro.
106408         (FUNC): Compare only SIZE bytes of the value.
106409         * lib/vasnprintf.c: Include float+.h.
106410         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106411         SIZEOF_LDBL or SIZEOF_DBL bytes.
106412         * modules/isnan-nolibm (Files): Add lib/float+.h.
106413         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106414         * modules/isnanl (Files): Add lib/float+.h.
106415         * modules/vasnprintf (Files): Add lib/float+.h.
106417 2007-03-24  Bruno Haible  <bruno@clisp.org>
106419         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106420         include isnanl-nolibm.h.
106422 2007-03-24  Bruno Haible  <bruno@clisp.org>
106424         * tests/test-read-file.c (main): Don't produce spurious output for
106425         expected situations. Make the test fail if it encountered unexpected
106426         results.
106428 2007-03-24  Bruno Haible  <bruno@clisp.org>
106430         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106431         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106433 2007-03-24  Bruno Haible  <bruno@clisp.org>
106435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106437 2007-03-24  Bruno Haible  <bruno@clisp.org>
106439         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106440         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106442         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106443         * modules/utf8-ucs4: Turn into a symbolic link to module
106444         unistr/u8-mbtouc.
106446         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106447         utf8-ucs4-unsafe.
106448         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106449         unistr/u8-mbtouc-unsafe.
106451         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106452         * modules/utf16-ucs4: Turn into a symbolic link to module
106453         unistr/u16-mbtouc.
106455         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106456         utf16-ucs4-unsafe.
106457         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106458         unistr/u16-mbtouc-unsafe.
106460         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106461         * modules/ucs4-utf8: Turn into a symbolic link to module
106462         unistr/u8-ubtomb.
106464         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106465         * modules/ucs4-utf16: Turn into a symbolic link to module
106466         unistr/u16-ubtomb.
106468 2007-03-24  Bruno Haible  <bruno@clisp.org>
106470         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106471         Enable the function only if HAVE_INLINE.
106472         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106473         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106474         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106475         Enable the function only if HAVE_INLINE.
106476         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106477         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106478         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106479         Enable the function only if HAVE_INLINE.
106480         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106481         Enable the function only if HAVE_INLINE.
106482         * modules/utf8-ucs4: Update.
106483         * modules/utf8-ucs4-unsafe: Update.
106484         * modules/utf16-ucs4: Update.
106485         * modules/utf16-ucs4-unsafe: Update.
106486         * modules/ucs4-utf8: Update.
106487         * modules/ucs4-utf16: Update.
106489 2007-03-24  Bruno Haible  <bruno@clisp.org>
106491         * lib/utf8-ucs4.h: Remove file.
106492         * lib/utf8-ucs4-unsafe.h: Remove file.
106493         * lib/utf16-ucs4.h: Remove file.
106494         * lib/utf16-ucs4-unsafe.h: Remove file.
106495         * lib/ucs4-utf8.h: Remove file.
106496         * lib/ucs4-utf16.h: Remove file.
106497         * lib/unistr.h: Include their previous contents.
106498         * m4/utf-ucs4.m4: Remove file.
106499         * m4/ucs4-utf.m4: Remove file.
106500         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106501         (Depends-on): Add unistr/base.
106502         (configure.ac): Remove gl_UTF_UCS4.
106503         (Makefile.am): Update.
106504         (Include): Change to unistr.h.
106505         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106506         (Depends-on): Add unistr/base.
106507         (configure.ac): Remove gl_UTF_UCS4.
106508         (Makefile.am): Update.
106509         (Include): Change to unistr.h.
106510         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106511         (Depends-on): Add unistr/base.
106512         (configure.ac): Remove gl_UTF_UCS4.
106513         (Makefile.am): Update.
106514         (Include): Change to unistr.h.
106515         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
106516         (Depends-on): Add unistr/base.
106517         (configure.ac): Remove gl_UTF_UCS4.
106518         (Makefile.am): Update.
106519         (Include): Change to unistr.h.
106520         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
106521         (Depends-on): Add unistr/base.
106522         (configure.ac): Remove gl_UCS4_UTF.
106523         (Makefile.am): Update.
106524         (Include): Change to unistr.h.
106525         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
106526         (Depends-on): Add unistr/base.
106527         (configure.ac): Remove gl_UCS4_UTF.
106528         (Makefile.am): Update.
106529         (Include): Change to unistr.h.
106530         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
106531         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
106532         utf8-ucs4-unsafe.h.
106533         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
106534         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
106535         utf16-ucs4-unsafe.h.
106536         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
106537         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
106538         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
106539         * lib/unistr/u8-strchr.c: Likewise.
106540         * lib/unistr/u8-strrchr.c: Likewise.
106541         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
106542         * lib/unistr/u16-strchr.c: Likewise.
106543         * lib/unistr/u16-strrchr.c: Likewise.
106544         * lib/striconveh.c: Update.
106545         * lib/linebreak.c: Update.
106547 2007-03-24  Bruno Haible  <bruno@clisp.org>
106549         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
106550         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
106552 2007-03-22  Bruno Haible  <bruno@clisp.org>
106554         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
106556 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106558         * MODULES.html.sh (File system functions): New module write-any-file.
106559         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
106560         * m4/write-any-file.m4: New files.
106562 2007-03-23  Eric Blake  <ebb9@byu.net>
106564         * gnulib-tool: Rearrange space-tab sequences, since some editors
106565         like to eat them.
106567 2007-03-23  Eric Blake  <ebb9@byu.net>
106569         * lib/version-etc.c (version_etc_va): Update license wording to
106570         be more concise.  Recommended by Richard Stallman.
106572 2007-03-22  Bruno Haible  <bruno@clisp.org>
106574         * lib/poll.c (MSG_PEEK): New fallback definition.
106576 2007-03-22  Bruno Haible  <bruno@clisp.org>
106578         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
106579         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
106580         (main): Update.
106581         Fixes a compilation error on BeOS.
106583 2007-03-22  Bruno Haible  <bruno@clisp.org>
106585         * modules/frexpl-tests: New file.
106586         * tests/test-frexpl.c: New file.
106588         * modules/frexpl: New file.
106589         * m4/frexpl.m4: New file.
106590         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
106591         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106593         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106594         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106595         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106597 2007-03-22  Bruno Haible  <bruno@clisp.org>
106599         * lib/frexpl.c: Share code with lib/frexp.c.
106600         * modules/mathl (Files): Add lib/frexp.c.
106601         (Depends-on): Add isnanl-nolibm.
106603 2007-03-22  Bruno Haible  <bruno@clisp.org>
106605         * modules/printf-frexp (Files): Add m4/frexp.m4.
106606         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106607         only if the found frexp function actually works.
106609 2007-03-22  Bruno Haible  <bruno@clisp.org>
106611         * lib/frexp.c: Remove older implementation that uses divisions.
106613 2007-03-21  Bruno Haible  <bruno@clisp.org>
106615         * modules/frexp-tests: New file.
106616         * tests/test-frexp.c: New file.
106618         * modules/frexp: New file.
106619         * lib/frexp.c: New file.
106620         * m4/frexp.m4: New file.
106621         * lib/math_.h (frexp): New declaration.
106622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106623         REPLACE_FREXP.
106624         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106626 2007-03-21  Bruno Haible  <bruno@clisp.org>
106628         * modules/isnanl-tests: New file.
106629         * tests/test-isnanl.c: New file.
106631         * modules/isnanl: New file.
106632         * lib/isnanl.h: New file.
106633         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106634         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106635         gl_FUNC_ISNANL_WORKS.
106636         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106637         New macros.
106639 2007-03-21  Bruno Haible  <bruno@clisp.org>
106641         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106642         lib/isnanl.h.
106643         (Include): Update.
106644         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106645         * lib/vasnprintf.c: Update.
106646         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106647         tests/test-isnanl.h, remove tests/test-isnanl.c.
106648         (Makefile.am): Update.
106649         * tests/test-isnanl-nolibm.c: New file.
106650         * tests/test-isnanl.h: New file.
106651         * tests/test-isnanl.c: Remove file.
106653 2007-03-21  Jim Meyering  <jim@meyering.net>
106655         When trying to open ".", treat ESTALE like EACCES.
106656         * lib/savewd.c (savewd_save): Resort to forking not just upon
106657         failure with EACCES, but also when errno is ESTALE.
106659 2007-03-20  Bruno Haible  <bruno@clisp.org>
106661         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106662         Needed on AIX 5.1. Reported by Matthew Woehlke.
106664 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106666         Suggestions by Bruno Haible:
106667         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106668         our own.
106669         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106670         * modules/acl (Depends-on): Add gettext.
106672 2007-03-19  Bruno Haible  <bruno@clisp.org>
106674         * modules/iconvme: Remove file.
106675         * lib/iconvme.h: Remove file.
106676         * lib/iconvme.c: Remove file.
106677         * m4/iconvme.m4: Remove file.
106679 2007-03-19  Bruno Haible  <bruno@clisp.org>
106681         * doc/relocatable-maint.texi: Break long shell script line.
106682         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106684 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106686         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106687         handle file_has_acl.
106688         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106689         * lib/acl.c: Move header inclusions and related macro defns into
106690         lib/acl-internal.h.
106691         (S_ISLNK): Remove defn, since that's now done for us.
106692         (file_has_acl): Move to lib/file-has-acl.c.
106693         Call acl_trivial if available.  This is the crucial part of the fix.
106694         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106695         shared within the library.  Rewrite a bit, partly to make it compatible
106696         with the GNU coding style.
106697         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106698         Remove unnecessary double-quotes.
106699         Don't test for acl_to_text; the build will catch that.
106700         Replace acl_entries if it doesn't exist and it is needed.
106701         Check for -lsec and acl_trivial (as used on Solaris 10).
106702         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106703         lib/file-has-acl.c.
106704         (Depends-on): Add sys_stat, for S_ISLNK.
106706 2007-03-19  Ben Pfaff  <blp@gnu.org>
106708         * doc/gnulib.texi: Fix typos.
106709         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106711 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106713         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106714         If size is zero here, buf must be zero.
106716 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106718         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106719         <bruno@clisp.org>.
106721 2007-03-18  Bruno Haible  <bruno@clisp.org>
106723         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106724         Suggested by Eric Blake.
106726 2007-03-18  Ben Pfaff  <blp@gnu.org>
106728         * doc/relocatable.texi: Recommend using as prefix a directory
106729         that does not exist and will never be created.  Based on
106730         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106731         and others.
106733 2007-03-17  Bruno Haible  <bruno@clisp.org>
106735         * lib/fchownat.c: Include lchown.h.
106737 2007-03-17  Bruno Haible  <bruno@clisp.org>
106739         Fix endless loop when the given allocated size was > INT_MAX.
106740         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106741         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106742         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106743         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106744         * lib/sprintf.c (sprintf): Likewise.
106746 2007-03-17  Bruno Haible  <bruno@clisp.org>
106748         * tests/test-argp-2.sh (func_compare): Output a context diff.
106750 2007-03-17  Bruno Haible  <bruno@clisp.org>
106752         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106753         locale's decimal-point character.
106755 2007-03-17  Bruno Haible  <bruno@clisp.org>
106757         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106758         before comparing it. Needed because on some platforms (e.g. x86) a
106759         'long double' occupies less bytes than sizeof (long double).
106761 2007-03-17  Bruno Haible  <bruno@clisp.org>
106763         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106764         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106765         * tests/test-getaddrinfo.c (simple): Likewise.
106766         * tests/test-read-file.c (main): Likewise.
106768 2007-03-17  Bruno Haible  <bruno@clisp.org>
106770         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106772 2007-03-17  Bruno Haible  <bruno@clisp.org>
106774         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106775         unused variable.
106777 2007-03-17  Bruno Haible  <bruno@clisp.org>
106779         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106780         * tests/test-c-strncasecmp.c: Likewise.
106782 2007-03-17  Bruno Haible  <bruno@clisp.org>
106784         * modules/stdlib (Depends-on): Add unistd.
106785         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106786         Needed for MacOS X 10.3.
106788 2007-03-17  Bruno Haible  <bruno@clisp.org>
106790         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106792 2007-03-17  Bruno Haible  <bruno@clisp.org>
106794         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106796 2007-03-17  Bruno Haible  <bruno@clisp.org>
106798         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106799         to reflect files copied from gnulib (with or without modifications).
106800         Suggested by Jim Meyering.
106802 2007-03-17  Eric Blake  <ebb9@byu.net>
106804         * NEWS: Document stdlib change from 2007-02-18.
106806 2007-03-17  Jim Meyering  <jim@meyering.net>
106808         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106809         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106810         someone uses a name containing shell meta-characters.
106811         Reported by Alfred M. Szmidt.
106813         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106815 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106817         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106818         and copy gettext configuration files only if configure.ac contains
106819         a use of AM_GNU_GETTEXT_VERSION.
106821 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106823         * build-aux/bootstrap (gnulib_name): New variable.
106824         (gnulib_tool_options): Use it.
106826 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106828         * tests/test-des.c: Use new namespace.
106830 2007-03-15  Bruno Haible  <bruno@clisp.org>
106832         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106833         Reported by James Youngman <jay@gnu.org>.
106835 2007-03-15  Bruno Haible  <bruno@clisp.org>
106837         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106838         declared prototype. Needed with cc on OSF/1 5.1.
106840 2007-03-15  Bruno Haible  <bruno@clisp.org>
106842         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106843         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106844         (struct gl_list_implementation): Add dispose_fn argument to the
106845         'create_empty', 'create' methods.
106846         (struct gl_list_impl_base): Add field 'dispose_fn'.
106847         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106848         argument.
106849         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106850         dispose_fn argument.
106851         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106852         dispose_fn on the dropped values.
106853         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106854         dispose_fn argument.
106855         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106856         dropped values.
106857         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106858         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106859         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106860         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106861         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106862         argument.
106863         (gl_tree_list_free): Call dispose_fn on the dropped values.
106864         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106865         the dropped values.
106866         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106867         Add dispose_fn argument.
106868         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106869         Call dispose_fn on the dropped values.
106870         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106871         Add dispose_fn argument.
106872         (gl_sublist_create): Initialize the 'dispose_fn' field.
106873         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106874         * tests/test-array_list.c (main): Update.
106875         * tests/test-carray_list.c (main): Update.
106876         * tests/test-avltree_list.c (main): Update.
106877         * tests/test-rbtree_list.c (main): Update.
106878         * tests/test-avltreehash_list.c (main): Update.
106879         * tests/test-rbtreehash_list.c (main): Update.
106880         * tests/test-linked_list.c (main): Update.
106881         * tests/test-linkedhash_list.c (main): Update.
106882         * tests/test-array_oset.c (main): Update.
106884 2007-03-15  Bruno Haible  <bruno@clisp.org>
106886         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106887         (gl_oset_create_empty): Add dispose_fn argument.
106888         (struct gl_oset_implementation): Add dispose_fn argument to
106889         'create_empty' method.
106890         (struct gl_oset_impl_base): Add dispose_fn field.
106891         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106892         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106893         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106894         values.
106895         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106896         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106897         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106898         dropped value.
106899         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106900         dropped value.
106901         * tests/test-array_oset.c (main): Update.
106902         * tests/test-avltree_oset.c (main): Update.
106903         * tests/test-rbtree_oset.c (main): Update.
106904         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106906 2007-03-13  Bruno Haible  <bruno@clisp.org>
106908         * tests/test-stdbool.c (i): Update after last patch.
106910 2007-03-12  Bruno Haible  <bruno@clisp.org>
106912         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106913         the iswprint macro. Needed on Solaris 2.5.1.
106915 2007-03-12  Bruno Haible  <bruno@clisp.org>
106917         * tests/test-printf-frexp.c (main): Declare x as volatile.
106919 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106921         * doc/gnulib.texi (Build robot for gnulib): New section.
106923 2007-03-12  Jim Meyering  <jim@meyering.net>
106925         * build-aux/bootstrap: New file.
106926         * build-aux/bootstrap.conf: New file, from coreutils.
106928 2007-03-11  Bruno Haible  <bruno@clisp.org>
106930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106932 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106934         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106935         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
106936         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
106938 2007-03-11  Bruno Haible  <bruno@clisp.org>
106940         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
106941         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
106943 2007-03-11  Bruno Haible  <bruno@clisp.org>
106945         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
106946         formula. Needed for SunPRO C 5.0.
106948 2007-03-11  Bruno Haible  <bruno@clisp.org>
106950         * modules/long-options (Depends-on): Add getopt.
106952 2007-03-11  Bruno Haible  <bruno@clisp.org>
106954         * modules/modechange (Depends-on): Add stdbool.
106956 2007-03-11  Bruno Haible  <bruno@clisp.org>
106958         * modules/i-ring (Depends-on): Add stdbool.
106960 2007-03-11  Bruno Haible  <bruno@clisp.org>
106962         * modules/gc-des (Depends-on): Add stdbool.
106964 2007-03-11  Bruno Haible  <bruno@clisp.org>
106966         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106968 2007-03-11  Bruno Haible  <bruno@clisp.org>
106970         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106972 2007-03-11  Bruno Haible  <bruno@clisp.org>
106974         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106976 2007-03-11  Bruno Haible  <bruno@clisp.org>
106978         * lib/vasnprintf.c (sprintf): Undefine.
106980 2007-03-11  Bruno Haible  <bruno@clisp.org>
106982         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106983         initializers in SunPRO C and Compaq C compilers.
106985 2007-03-11  Bruno Haible  <bruno@clisp.org>
106987         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106988         decrementing code ANSI C compliant.
106990 2007-03-11  Bruno Haible  <bruno@clisp.org>
106992         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106993         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106995 2007-03-11  Bruno Haible  <bruno@clisp.org>
106997         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106998         <stdbool.h> substitute doesn't pass.
107000 2007-03-11  Bruno Haible  <bruno@clisp.org>
107002         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107004 2007-03-11  Bruno Haible  <bruno@clisp.org>
107006         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107007         script, for submission to autobuild.josefsson.org.
107009 2007-03-10  Bruno Haible  <bruno@clisp.org>
107011         * modules/canonicalize-lgpl-tests: New file.
107012         * tests/test-canonicalize-lgpl.sh: New file.
107013         * tests/test-canonicalize-lgpl.c: New file.
107015         * modules/c-strcase-tests: New file.
107016         * tests/test-c-strcase.sh: New file.
107017         * tests/test-c-strcasecmp.c: New file.
107018         * tests/test-c-strncasecmp.c: New file.
107020         * modules/atexit-tests: New file.
107021         * tests/test-atexit.sh: New file.
107022         * tests/test-atexit.c: New file.
107024 2007-03-10  Bruno Haible  <bruno@clisp.org>
107026         * tests/test-binary-io.sh: Use temporary filenames that are not so
107027         likely to clash with those of other tests (in a parallel make).
107028         * tests/test-binary-io.c: Likewise.
107030 2007-03-10  Bruno Haible  <bruno@clisp.org>
107032         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107033         fallback; use #error instead.
107034         Suggested by Simon Josefsson.
107036 2007-03-10  Bruno Haible  <bruno@clisp.org>
107038         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107039         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107040         first and the last.
107042 2007-03-10  Bruno Haible  <bruno@clisp.org>
107044         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107046 2007-03-10  Bruno Haible  <bruno@clisp.org>
107048         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107049         "make distcheck".
107050         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107051         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107052         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107054 2007-03-10  Bruno Haible  <bruno@clisp.org>
107056         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107057         variable.
107058         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107059         variable.
107061 2007-03-09  Eric Blake  <ebb9@byu.net>
107062         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107064         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107065         types are not being provided by gnulib.
107066         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107067         types are supported.
107069 2007-03-10  Bruno Haible  <bruno@clisp.org>
107071         * lib/stdio_.h (__attribute__): New macro.
107072         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107073         vsprintf): Specify __attribute__ __format__ for GCC.
107074         Suggested by Eric Blake.
107076 2007-03-09  Bruno Haible  <bruno@clisp.org>
107078         * modules/printf-posix-tests: New file.
107079         * tests/test-printf-posix.sh: New file.
107080         * tests/test-printf-posix.c: New file.
107082         * modules/printf-posix: New file.
107083         * lib/printf.c: New file.
107084         * m4/printf-posix-rpl.m4: New file.
107085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107086         REPLACE_PRINTF.
107087         * lib/stdio_.h (printf): New declaration.
107088         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107089         ____strfmon____): New macros.
107090         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107091         REPLACE_PRINTF.
107093 2007-03-09  Bruno Haible  <bruno@clisp.org>
107095         * tests/test-vasnprintf-posix2.sh: New file.
107096         * tests/test-vasnprintf-posix2.c: New file.
107097         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107098         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107099         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107101         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107102         a locale dependent decimal point, rather than always '.'.
107104 2007-03-09  Eric Blake  <ebb9@byu.net>
107106         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107107         spite of platforms like Tandem/NSK that define it to -1.
107109 2007-03-08  Bruno Haible  <bruno@clisp.org>
107111         * modules/vprintf-posix-tests: New file.
107112         * tests/test-vprintf-posix.sh: New file.
107113         * tests/test-vprintf-posix.c: New file.
107114         * tests/test-printf-posix.h: New file.
107116         * modules/vprintf-posix: New file.
107117         * lib/vprintf.c: New file.
107118         * m4/vprintf-posix.m4: New file.
107119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107120         REPLACE_VPRINTF.
107121         * lib/stdio_.h (vprintf): New declaration.
107122         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107123         REPLACE_VPRINTF.
107125 2007-03-08  Bruno Haible  <bruno@clisp.org>
107127         * modules/fprintf-posix-tests: New file.
107128         * tests/test-fprintf-posix.sh: New file.
107129         * tests/test-fprintf-posix.c: New file.
107131         * modules/fprintf-posix: New file.
107132         * lib/fprintf.c: New file.
107133         * m4/fprintf-posix.m4: New file.
107134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107135         REPLACE_FPRINTF.
107136         * lib/stdio_.h (fprintf): New declaration.
107137         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107138         REPLACE_FPRINTF.
107140 2007-03-08  Bruno Haible  <bruno@clisp.org>
107142         * modules/vfprintf-posix-tests: New file.
107143         * tests/test-vfprintf-posix.sh: New file.
107144         * tests/test-vfprintf-posix.c: New file.
107145         * tests/test-fprintf-posix.h: New file.
107146         * tests/test-fprintf-posix.out: New file.
107148         * modules/vfprintf-posix: New file.
107149         * lib/vfprintf.c: New file.
107150         * m4/vfprintf-posix.m4: New file.
107151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107152         REPLACE_VFPRINTF.
107153         * lib/stdio_.h (vfprintf): New declaration.
107154         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107155         REPLACE_VFPRINTF.
107157 2007-03-08  Bruno Haible  <bruno@clisp.org>
107159         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107161 2007-03-08  Bruno Haible  <bruno@clisp.org>
107163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107164         instead of 'expr' invocations.
107165         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107170         Suggested by Paul Eggert.
107172 2007-03-08  Bruno Haible  <bruno@clisp.org>
107174         * modules/fseterr-tests: New file.
107175         * tests/test-fseterr.c: New file.
107177         * modules/fseterr: New file.
107178         * lib/fseterr.h: New file.
107179         * lib/fseterr.c: New file.
107181 2007-03-08  Bruno Haible  <bruno@clisp.org>
107183         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107184         * lib/getopt_.h: Likewise.
107185         * lib/mbswidth.h: Likewise.
107186         * lib/setenv.h: Likewise.
107187         * lib/vasnprintf.h: Likewise.
107188         * lib/vasprintf.h: Likewise.
107189         * lib/verror.h: Likewise.
107190         * lib/xsetenv.h: Likewise.
107191         * lib/xvasprintf.h: Likewise.
107193 2007-03-08  Jim Meyering  <jim@meyering.net>
107195         * users.txt: Add parted.
107197         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107199 2007-03-07  Bruno Haible  <bruno@clisp.org>
107201         * m4/printf.m4: Make the shell script snippets copy&pastable.
107203 2007-03-02  Bruno Haible  <bruno@clisp.org>
107205         * lib/netinet_in_.h: New file.
107206         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107207         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107208         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107209         (Depends-on): Add absolute-header.
107210         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107211         into netinet/in.h.
107213 2007-03-03  Bruno Haible  <bruno@clisp.org>
107215         * lib/sys_select_.h: New file.
107216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107217         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107218         * modules/sys_select (Files): Add lib/sys_select_.h.
107219         (Depends-on): Add absolute-header.
107220         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107221         into sys/select.h.
107223 2007-03-02  Bruno Haible  <bruno@clisp.org>
107225         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107226         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107227         values.
107228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107229         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107230         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107231         * modules/sys_socket (Depends-on): Add absolute-header.
107232         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107233         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107234         (Include): Remove requirement of inclusion of <sys/types.h>.
107236 2007-03-02  Bruno Haible  <bruno@clisp.org>
107238         * lib/byteswap_.h (bswap_32): Fix formula.
107240 2007-03-06  Bruno Haible  <bruno@clisp.org>
107242         * modules/sprintf-posix-tests: New file.
107243         * tests/test-sprintf-posix.c: New file.
107245         * modules/sprintf-posix: New file.
107246         * lib/sprintf.c: New file.
107247         * m4/sprintf-posix.m4: New file.
107248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107249         REPLACE_SPRINTF.
107250         * lib/stdio_.h (sprintf): New declaration.
107251         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107252         REPLACE_SPRINTF.
107254 2007-03-06  Bruno Haible  <bruno@clisp.org>
107256         * modules/vsprintf-posix-tests: New file.
107257         * tests/test-vsprintf-posix.c: New file.
107258         * tests/test-sprintf-posix.h: New file.
107260         * modules/vsprintf-posix: New file.
107261         * lib/vsprintf.c: New file.
107262         * m4/vsprintf-posix.m4: New file.
107263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107264         REPLACE_VSPRINTF.
107265         * lib/stdio_.h (vsprintf): New declaration.
107266         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107267         REPLACE_VSPRINTF.
107269 2007-03-06  Bruno Haible  <bruno@clisp.org>
107271         * modules/vsnprintf (Depend-on): Remove minmax.
107273 2007-03-06  Bruno Haible  <bruno@clisp.org>
107275         * modules/snprintf-posix-tests: New file.
107276         * tests/test-snprintf-posix.c: New file.
107278         * modules/snprintf-posix: New file.
107279         * m4/snprintf-posix.m4: New file.
107280         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107281         gl_FUNC_SNPRINTF.
107282         (gl_FUNC_SNPRINTF): Invoke it.
107283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107284         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107285         is set.
107286         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107288 2007-03-06  Bruno Haible  <bruno@clisp.org>
107290         * modules/vsnprintf-posix-tests: New file.
107291         * tests/test-vsnprintf-posix.c: New file.
107292         * tests/test-snprintf-posix.h: New file.
107294         * modules/vsnprintf-posix: New file.
107295         * m4/vsnprintf-posix.m4: New file.
107296         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107297         gl_FUNC_VSNPRINTF.
107298         (gl_FUNC_VSNPRINTF): Invoke it.
107299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107300         * lib/stdio_.h (vsnprintf): Define as a replacement if
107301         REPLACE_VSNPRINTF is set.
107302         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107304 2007-03-06  Bruno Haible  <bruno@clisp.org>
107306         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107309 2007-03-06  Bruno Haible  <bruno@clisp.org>
107311         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107312         (asinl): Declare also if HAVE_DECL_ASINL is set.
107313         (atanl): Declare also if HAVE_DECL_ATANL is set.
107314         (ceill): Declare also if HAVE_DECL_CEILL is set.
107315         (cosl): Declare also if HAVE_DECL_COSL is set.
107316         (expl): Declare also if HAVE_DECL_EXPL is set.
107317         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107318         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107319         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107320         (logl): Declare also if HAVE_DECL_LOGL is set.
107321         (sinl): Declare also if HAVE_DECL_SINL is set.
107322         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107323         (tanl): Declare also if HAVE_DECL_TANL is set.
107324         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107327         declaration of frexpl, ldexpl.
107328         * modules/printf-frexpl (Depends-on): Add math.
107329         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107331 2007-03-05  Bruno Haible  <bruno@clisp.org>
107333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107334         frexpl and ldexpl are declared.
107335         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107337 2007-03-05  Bruno Haible  <bruno@clisp.org>
107339         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107340         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107342 2007-03-05  Bruno Haible  <bruno@clisp.org>
107344         * lib/stdio_.h: Include <stddef.h>.
107346 2007-03-05  Bruno Haible  <bruno@clisp.org>
107348         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107350 2007-03-05  Bruno Haible  <bruno@clisp.org>
107352         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107353         NetBSD 4, from Ralf Wildenhues.
107355 2007-03-04  Bruno Haible  <bruno@clisp.org>
107357         * lib/vasprintf.h: Update #if logic for the case when the functions
107358         exist but are overridden.
107360 2007-03-04  Bruno Haible  <bruno@clisp.org>
107362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107363         implementations: glibc-2.4 and MacOS X 10.3.
107364         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107365         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107366         * tests/test-vasprintf-posix.c (test_function): Likewise.
107368 2007-03-04  Bruno Haible  <bruno@clisp.org>
107370         * modules/vasprintf-posix-tests: New file.
107371         * tests/test-vasprintf-posix.c: New file.
107373         * modules/vasprintf-posix: New file.
107374         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107375         defined.
107376         * m4/vasprintf-posix.m4: New file.
107377         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107378         gl_FUNC_VASPRINTF.
107379         (gl_FUNC_VASPRINTF): Invoke it.
107380         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107381         here.
107382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107384 2007-03-04  Bruno Haible  <bruno@clisp.org>
107386         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107387         REPLACE_GETTIMEOFDAY.
107388         * modules/sys_time (Makefile.am): Likewise.
107389         * m4/sys_time_h.m4: Likewise.
107390         * m4/gettimeofday.m4: Likewise.
107392 2007-03-04  Bruno Haible  <bruno@clisp.org>
107394         * modules/vasnprintf-posix-tests: New file.
107395         * tests/test-vasnprintf-posix.c: New file.
107397         * modules/vasnprintf-posix: New file.
107398         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107399         printf-frexpl.h.
107400         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107401         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107402         REPLACE_VASNPRINTF is defined.
107403         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107404         gl_FUNC_VASNPRINTF.
107405         (gl_FUNC_VASNPRINTF): Invoke it.
107406         * m4/vasnprintf-posix.m4: New file.
107407         * m4/printf.m4: New file.
107409 2007-03-04  Bruno Haible  <bruno@clisp.org>
107411         Compile progreloc.c only if --enable-relocatable is specified.
107412         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107413         if --enable-relocatable was specified.
107414         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107415         lib_SOURCES.
107417 2007-03-04  Jim Meyering  <jim@meyering.net>
107419         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107420         Use it consistently, rather than enumerating errno constants.
107422 2007-03-04  Bruno Haible  <bruno@clisp.org>
107424         * modules/xvasprintf-tests: New file.
107425         * tests/test-xvasprintf.c: New file.
107427         * modules/vasprintf-tests: New file.
107428         * tests/test-vasprintf.c: New file.
107430         * modules/vasnprintf-tests: New file.
107431         * tests/test-vasnprintf.c: New file.
107433         * modules/vsnprintf-tests: New file.
107434         * tests/test-vsnprintf.c: New file.
107436         * modules/snprintf-tests: New file.
107437         * tests/test-snprintf.c: New file.
107439 2007-03-04  Bruno Haible  <bruno@clisp.org>
107441         Compile relocatable.c only if --enable-relocatable is specified.
107442         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107443         gl_RELOCATABLE_LIBRARY.
107444         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107445         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107446         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107447         gl_RELOCATABLE_LIBRARY.
107448         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107449         (Makefile.am): Remove lib_SOURCES.
107450         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107451         gl_RELOCATABLE_LIBRARY.
107452         (Makefile.am): Remove lib_SOURCES.
107453         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107454         always.
107455         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107456         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107458 2007-03-04  Bruno Haible  <bruno@clisp.org>
107460         * modules/argmatch-tests: New file.
107461         * tests/test-argmatch.c: New file.
107463         * tests/test-allocsa.c (main): Halve the number of loop runs.
107465         * modules/alloca-opt-tests: New file.
107466         * tests/test-alloca-opt.c: New file.
107468 2007-03-04  Jim Meyering  <jim@meyering.net>
107470         Work around difference between Linux ACLs and Solaris 10 ZFS.
107471         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107472         for EINVAL.
107474 2007-03-03  Bruno Haible  <bruno@clisp.org>
107476         * modules/relocatable-prog (Depends-on): Add back progreloc's
107477         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107479 2007-03-03  Bruno Haible  <bruno@clisp.org>
107481         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107482         * modules/relocatable-lib: New file.
107484 2007-03-03  Bruno Haible  <bruno@clisp.org>
107486         * modules/relocatable-prog: Renamed from modules/relocatable.
107487         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107489 2007-03-03  Bruno Haible  <bruno@clisp.org>
107491         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107492         m4/relocatable-lib.m4.
107493         (Depends-on): Remove 'relocatable'.
107494         (configure.ac): Add gl_RELOCATABLE_NOP.
107496 2007-03-03  Bruno Haible  <bruno@clisp.org>
107498         * modules/relocatable-prog-wrapper: New file.
107499         * modules/relocatable (Depends-on): Add it. Remove all other
107500         dependencies except progname.
107501         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107504         (gl_FUNC_STRERROR): Nop.
107505         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107507         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107508         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107510         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107511         (gl_FUNC_READLINK): Update.
107513         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
107515 2007-03-03  Bruno Haible  <bruno@clisp.org>
107517         * lib/xreadlink.c: Include <unistd.h> unconditionally.
107518         * modules/xreadlink (Depends-on): Add unistd.
107519         * modules/xreadlink-with-size (Depends-on): Likewise.
107521 2007-03-03  Bruno Haible  <bruno@clisp.org>
107523         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
107524         extracted from gt_FUNC_SETENV.
107525         (gt_FUNC_SETENV): Remove macro.
107526         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
107527         remove gt_FUNC_SETENV.
107529 2007-03-03  Bruno Haible  <bruno@clisp.org>
107531         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
107532         ENABLE_RELOCATABLE here.
107533         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
107535 2007-03-03  Bruno Haible  <bruno@clisp.org>
107537         * modules/rbtreehash-list-tests (Depends-on): Add progname.
107538         * tests/test-rbtreehash_list.c: Include progname.h.
107539         (main): Call set_program_name.
107541         * modules/rbtree-oset-tests (Depends-on): Add progname.
107542         * tests/test-rbtree_oset.c: Include progname.h.
107543         (main): Call set_program_name.
107545         * modules/rbtree-list-tests (Depends-on): Add progname.
107546         * tests/test-rbtree_list.c: Include progname.h.
107547         (main): Call set_program_name.
107549         * modules/linked-list-tests (Depends-on): Add progname.
107550         * tests/test-linked_list.c: Include progname.h.
107551         (main): Call set_program_name.
107553 2007-03-03  Bruno Haible  <bruno@clisp.org>
107555         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
107556         All uses of __restrict changed to _Restrict_.
107557         * lib/glob_.h (__restrict): Remove macro.
107559 2007-03-02  Bruno Haible  <bruno@clisp.org>
107561         * modules/gettext (configure.ac): Require gettext infrastructure
107562         from version 0.16.1.
107564 2007-03-02  Bruno Haible  <bruno@clisp.org>
107566         * modules/linkedhash-list-tests (Depends-on): Add progname.
107567         * tests/test-linkedhash_list.c: Include progname.h.
107568         (main): Call set_program_name.
107570         * modules/carray-list-tests (Depends-on): Add progname.
107571         * tests/test-carray_list.c: Include progname.h.
107572         (main): Call set_program_name.
107574         * modules/avltreehash-list-tests (Depends-on): Add progname.
107575         * tests/test-avltreehash_list.c: Include progname.h.
107576         (main): Call set_program_name.
107578         * modules/avltree-oset-tests (Depends-on): Add progname.
107579         * tests/test-avltree_oset.c: Include progname.h.
107580         (main): Call set_program_name.
107582         * modules/avltree-list-tests (Depends-on): Add progname.
107583         * tests/test-avltree_list.c: Include progname.h.
107584         (main): Call set_program_name.
107586         * modules/array-oset-tests (Depends-on): Add progname.
107587         * tests/test-array_oset.c: Include progname.h.
107588         (main): Call set_program_name.
107590         * modules/array-list-tests (Depends-on): Add progname.
107591         * tests/test-array_list.c: Include progname.h.
107592         (main): Call set_program_name.
107594         * modules/argp-tests (Depends-on): Add progname.
107595         * tests/test-argp.c: Include argp.h first. Include progname.h.
107596         (main): Call set_program_name.
107598 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107600         * doc/gnulib-tool.texi (Initial import): Reword description of
107601         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107602         limited effect even if defined after the first system include.
107604 2007-03-01  Bruno Haible  <bruno@clisp.org>
107606         * build-aux/config.libpath: Update to libtool-1.5.22.
107607         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
107609 2007-03-01  Bruno Haible  <bruno@clisp.org>
107611         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107612         foo_CFLAGS.
107613         Reported by Ralf Wildenhues.
107615 2007-03-01  Bruno Haible  <bruno@clisp.org>
107617         * build-aux/install-reloc: Remove object files left over by some
107618         compilers.
107619         Reported by Ralf Wildenhues.
107621 2007-03-01  Bruno Haible  <bruno@clisp.org>
107623         * build-aux/install-reloc: Break long lines.
107625 2007-03-01  Bruno Haible  <bruno@clisp.org>
107627         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107628         Reported by Ralf Wildenhues.
107630 2007-03-01  Bruno Haible  <bruno@clisp.org>
107632         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107633         include ordering constraints.
107635 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107637         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107638         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107639         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107640         as another example.
107641         * lib/time_.h: Fix misspelling.
107642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107643         Require gl_HEADER_TIME_H_DEFAULTS.
107644         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107645         * m4/time_r.m4 (gl_TIME_R): Likewise.
107646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107648 2007-03-01  Bruno Haible  <bruno@clisp.org>
107650         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107651         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107653 2007-03-01  Jim Meyering  <jim@meyering.net>
107655         * modules/xreadlink (Maintainer): Add my name.
107656         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107658 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107659             Bruno Haible  <bruno@clisp.org>
107661         * build-aux/install-reloc: Compile also c-ctype.c.
107662         * build-aux/relocatable.sh.in: New file.
107663         * doc/relocatable.texi: New file.
107664         * doc/relocatable-maint.texi: New file.
107665         * doc/gnulib.texi: Include relocatable-maint.texi.
107666         * lib/progreloc.c: Include unistd.h unconditionally.
107667         * lib/relocwrapper.c: Include unistd.h unconditionally.
107668         Include c-ctype.h.
107669         (add_dotbin): Use c_tolower.
107670         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107671         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107672         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107673         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107674         to m4/relocatable-lib.m4.
107675         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107676         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107677         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107678         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107679         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107680         * modules/relocatable: New file.
107681         * modules/relocatable-lib: New file.
107682         * modules/relocatable-script: New file.
107684 2007-02-28  Bruno Haible  <bruno@clisp.org>
107686         Import --enable-relocatable infrastructure.
107687         * build-aux/config.libpath: New file, from GNU gettext.
107688         * build-aux/install-reloc: New file, from GNU gettext.
107689         * build-aux/reloc-ldflags: New file, from GNU gettext.
107690         * lib/relocatable.h: New file, from GNU gettext.
107691         * lib/relocatable.c: New file, from GNU gettext.
107692         * lib/relocwrapper.c: New file, from GNU gettext.
107693         * m4/relocatable.m4: New file, from GNU gettext.
107695 2007-02-28  Bruno Haible  <bruno@clisp.org>
107697         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107699         * modules/xreadlink: New file, from GNU gettext with modifications.
107700         * lib/xreadlink.c: New file, from GNU gettext.
107701         * lib/xreadlink.h: Add comments.
107702         (xreadlink): New declaration.
107704         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107705         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107706         lib/xreadlink-with-size.c.
107707         (configure.ac): Remove gl_XREADLINK invocation.
107708         (Makefile.am): Augment lib_SOURCES.
107709         * m4/xreadlink.m4: Remove file.
107710         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107711         (xreadlink_with_size): Renamed from xreadink.
107712         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107713         * modules/canonicalize (Depends-on): Replace xreadlink with
107714         xreadlink-with-size.
107715         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107717 2007-02-25  Jim Meyering  <jim@meyering.net>
107719         * build-aux/announce-gen: When complaining about excess arguments,
107720         list them.
107722 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107724         * README: Document signed integer overflow situation more
107725         accurately.
107727 2007-02-25  Bruno Haible  <bruno@clisp.org>
107729         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107730         'a' or 'A' conversion.
107732 2007-02-25  Bruno Haible  <bruno@clisp.org>
107734         * modules/filename: Renamed from modules/pathname.
107735         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107736         lib/concatpath.c with lib/concat-filename.c.
107737         (Makefile.am): Update.
107738         (Include): Replace pathname.h with filename.h.
107739         * lib/filename.h: Renamed from lib/pathname.h.
107740         (concatenated_filename): Renamed from concatenated_pathname.
107741         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107742         (concatenated_filename): Renamed from concatenated_pathname.
107743         * lib/findprog.c: Include filename.h instead of pathname.h.
107744         (find_in_path): Update.
107745         * lib/javacomp.c: Include filename.h instead of pathname.h.
107746         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107747         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107748         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107749         is_oldgcj_14_13_usable, is_javac_usable): Update.
107750         * lib/javaexec.c: Include filename.h instead of pathname.h.
107751         (execute_java_class): Update.
107752         * modules/findprog: Update.
107753         * modules/javacomp: Update.
107754         * modules/javaexec: Update.
107755         * MODULES.html.sh (File system functions): Add 'filename', remove
107756         'pathname'.
107758 2007-02-25  Bruno Haible  <bruno@clisp.org>
107760         * modules/printf-frexpl-tests: New file.
107761         * tests/test-printf-frexpl.c: New file.
107763         * modules/printf-frexpl: New file.
107764         * lib/printf-frexpl.h: New file.
107765         * lib/printf-frexpl.c: New file.
107766         * m4/printf-frexpl.m4: New file.
107768 2007-02-25  Bruno Haible  <bruno@clisp.org>
107770         * modules/printf-frexp-tests: New file.
107771         * tests/test-printf-frexp.c: New file.
107773         * modules/printf-frexp: New file.
107774         * lib/printf-frexp.h: New file.
107775         * lib/printf-frexp.c: New file.
107776         * m4/printf-frexp.m4: New file.
107778 2007-02-25  Bruno Haible  <bruno@clisp.org>
107780         Assume automake >= 1.10 for the tests.
107781         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107782         * modules/arctwo-tests: Likewise.
107783         * modules/argp-tests: Likewise.
107784         * modules/avltree-list-tests: Likewise.
107785         * modules/avltree-oset-tests: Likewise.
107786         * modules/avltreehash-list-tests: Likewise.
107787         * modules/carray-list-tests: Likewise.
107788         * modules/crc-tests: Likewise.
107789         * modules/des-tests: Likewise.
107790         * modules/gc-arcfour-tests: Likewise.
107791         * modules/gc-arctwo-tests: Likewise.
107792         * modules/gc-des-tests: Likewise.
107793         * modules/gc-hmac-md5-tests: Likewise.
107794         * modules/gc-hmac-sha1-tests: Likewise.
107795         * modules/gc-md2-tests: Likewise.
107796         * modules/gc-md4-tests: Likewise.
107797         * modules/gc-md5-tests: Likewise.
107798         * modules/gc-pbkdf2-sha1-tests: Likewise.
107799         * modules/gc-rijndael-tests: Likewise.
107800         * modules/gc-sha1-tests: Likewise.
107801         * modules/gc-tests: Likewise.
107802         * modules/getaddrinfo-tests: Likewise.
107803         * modules/hmac-md5-tests: Likewise.
107804         * modules/hmac-sha1-tests: Likewise.
107805         * modules/linked-list-tests: Likewise.
107806         * modules/linkedhash-list-tests: Likewise.
107807         * modules/lock-tests: Likewise.
107808         * modules/md2-tests: Likewise.
107809         * modules/md4-tests: Likewise.
107810         * modules/md5-tests: Likewise.
107811         * modules/rbtree-list-tests: Likewise.
107812         * modules/rbtree-oset-tests: Likewise.
107813         * modules/rbtreehash-list-tests: Likewise.
107814         * modules/read-file-tests: Likewise.
107815         * modules/rijndael-tests: Likewise.
107816         * modules/stdint-tests: Likewise.
107817         * modules/tls-tests: Likewise.
107819 2007-02-24  Bruno Haible  <bruno@clisp.org>
107821         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107822         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107823         function; instead check whether isnan with a double argument links.
107824         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107825         function; instead check whether isnan with a 'long double' argument
107826         links.
107827         Reported by Eric Blake <ebb9@byu.net>.
107829 2007-02-24  Bruno Haible  <bruno@clisp.org>
107831         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107832         defined.
107833         * lib/isnanl.c: Remove all code. Just include isnan.c.
107834         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107836 2007-02-25  Jim Meyering  <jim@meyering.net>
107838         Avoid conflicting types for 'unsetenv' on FreeBSD.
107839         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107840         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107841         in stdlib.h.
107843 2007-02-24  Bruno Haible  <bruno@clisp.org>
107845         * modules/isnanl-nolibm-tests: New file.
107846         * tests/test-isnanl.c: New file.
107848         * modules/isnanl-nolibm: New file.
107849         * lib/isnanl.h: New file.
107850         * lib/isnanl.c: New file.
107851         * m4/isnanl.m4: New file.
107853 2007-02-24  Bruno Haible  <bruno@clisp.org>
107855         * modules/isnan-nolibm-tests: New file.
107856         * tests/test-isnan.c: New file.
107858         * modules/isnan-nolibm: New file.
107859         * lib/isnan.h: New file.
107860         * lib/isnan.c: New file.
107861         * m4/isnan.m4: New file.
107863 2007-02-24  Bruno Haible  <bruno@clisp.org>
107865         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107866         assume that an exponent fits in 20 bits.
107868 2007-02-24  Jim Meyering  <jim@meyering.net>
107870         * m4/regex.m4: Update the description of the configure-time option,
107871         --without-included-regex, to state accurately what the defaults are,
107872         and perhaps to give people an idea why using this option is risky.
107874 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107877         loops on small arguments.  This attempts to avoid the problem
107878         Bruno Haible reported for AIX 4.3.2 in
107879         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107881 2007-02-23  Bruno Haible  <bruno@clisp.org>
107883         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107884         Needed for help2man.
107886 2007-02-23  Karl Berry  <karl@gnu.org>
107888         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107889         exists, foo.h should be cvs-ignored, not committed.
107891 2007-02-23  Eric Blake  <ebb9@byu.net>
107893         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107894         * lib/stat-time.h (includes): Likewise.
107895         * lib/utimecmp.c (includes): Likewise.
107896         * lib/utimens.h (includes): Likewise.
107897         * lib/getdate.y (includes): Also include "timespec.h" for use
107898         internal to the module.
107899         * modules/utimens (Depends-on): Revert yesterday's patch.
107900         * modules/nanosleep (Depends-on): Add missing dependency.
107902 2007-02-22  Bruno Haible  <bruno@clisp.org>
107904         * lib/glob.c: Don't include getlogin_r.h.
107906 2007-02-22  Jim Meyering  <jim@meyering.net>
107908         * modules/utimens (Depends-on): Add timespec, required for
107909         utimens.h's inclusion of timespec.h.
107911 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107913         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107914         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107915         Schwab in
107916         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107917         I'll try to think of a better way to fix the Solaris problem.
107919         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107920         like glibc; on Solaris 10, it fails with errno == EINVAL.
107921         POSIX says the behavior is unspecified if the first argument is NULL,
107922         so play it safe and never pass NULL to the system getcwd.
107924 2007-02-21  Jim Meyering  <jim@meyering.net>
107926         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107927         of gettimeofday.  It would conflict with the one now always
107928         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107929         an IRIX 6.5 build failure.
107931 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107933         Minor fixups to port to Solaris 10 with Sun C 5.8.
107934         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107935         * modules/getcwd (Depends-on): Add dirfd.
107936         * lib/putenv.c (putenv): #undef it.
107937         (rpl_putenv): New decl.
107938         (malloc, free): Include <stdlib.h> rather than prototyping separately.
107940 2007-02-20  Bruno Haible  <bruno@clisp.org>
107942         * modules/stdio-tests: New file.
107943         * tests/test-stdio.c: New file.
107945         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
107946         (Depends-on): Add stdio.
107947         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107948         (Include): Use <stdio.h> instead of vsnprintf.h.
107949         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107950         HAVE_DECL_VSNPRINTF.
107951         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107953         * modules/snprintf (Files): Remove lib/snprintf.h.
107954         (Depends-on): Add stdio.
107955         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107956         (Include): Use <stdio.h> instead of snprintf.h.
107957         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107958         HAVE_DECL_SNPRINTF.
107959         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107960         * lib/getaddrinfo.c: Likewise.
107962         * modules/stdio: New file.
107963         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107964         * lib/snprintf.h: Remove file.
107965         * lib/vsnprintf.h: Remove file.
107966         * lib/.cppi-disable: Remove snprintf.h.
107967         * m4/stdio_h.m4: New file.
107968         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107970 2007-02-20  Jim Meyering  <jim@meyering.net>
107972         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107973         used by e.g., mingw.  From Bruno Haible.
107975 2007-02-19  Bruno Haible  <bruno@clisp.org>
107977         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107978         warnings.
107979         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107981 2007-02-19  Bruno Haible  <bruno@clisp.org>
107983         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107984         from mingw users.
107986 2007-02-19  Bruno Haible  <bruno@clisp.org>
107988         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107989         warnings.
107990         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107992 2007-02-19  Jim Meyering  <jim@meyering.net>
107994         Don't use FD after a successful "fdopendir (fd)".
107995         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107996         Reset it by calling dirfd on the just-obtained DIR*.
107998         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107999         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108001 2007-02-18  Bruno Haible  <bruno@clisp.org>
108003         * lib/readlink.c: Include <unistd.h>.
108004         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108005         HAVE_READLINK.
108006         * modules/readlink (Depends-on): Add unistd.
108007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108008         (Include): Add <unistd.h>.
108010         * lib/getlogin_r.h: Remove file.
108011         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108012         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108013         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108014         HAVE_DECL_GETLOGIN_R.
108015         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108017         (Include): Use <unistd.h> instead of getlogin_r.h.
108019         * lib/getcwd.h: Remove file.
108020         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108021         * lib/xgetcwd.c: Likewise.
108022         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108023         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108024         * modules/getcwd (Files): Remove lib/getcwd.h.
108025         (Depends-on): Add unistd.
108026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108027         (Include): Use <unistd.h> instad of getcwd.h.
108029         * lib/ftruncate.c: Include <unistd.h> first.
108030         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108031         Set HAVE_FTRUNCATE.
108032         * modules/ftruncate (Depends-on): Add unistd.
108033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108035         * lib/fchdir.c: Include <unistd.h> first.
108036         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108038         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108039         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108040         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108042         * lib/dup2.c: Include <unistd.h> first.
108043         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108044         HAVE_DUP2.
108045         * modules/dup2 (Depends-on): Add unistd.
108046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108048         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108049         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108050         REPLACE_CHOWN. Don't define chown as a macro here.
108051         * modules/chown (Depends-on): Add unistd.
108052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108054         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108055         Add definition for GL_LINK_WARNING.
108056         (chown, dup2): New declarations.
108057         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108058         link warning.
108059         (ftruncate): New declaration.
108060         (getcwd): New declaration, taken from old getcwd.h.
108061         (getlogin_r): New declaration, taken from old getlogin_r.h.
108062         (readlink): New declaration.
108063         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108064         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108065         (gl_PREREQ_UNISTD): Remove macro.
108066         (gl_UNISTD_MODULE_INDICATOR): New macro.
108067         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108068         many new variables. Don't set UNISTD_H.
108069         * modules/unistd (Description): Change.
108070         (Depends-on): Add link-warning.
108071         (configure.ac): Update.
108072         (Makefile.am): Create unistd.h always. Substitute many new variables
108073         into it.
108075 2007-02-18  Bruno Haible  <bruno@clisp.org>
108077         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108078         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108079         HAVE_GETSUBOPT.
108080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108081         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108082         * lib/getsubopt.h: Remove file.
108083         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108084         (Depends-on): Add stdlib.
108085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108086         (Includes): Use <stdlib.h> instead of getsubopt.h.
108087         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108088         Set HAVE_GETSUBOPT.
108089         * lib/getsubopt.c: Don't include getsubopt.h.
108091 2007-02-18  Bruno Haible  <bruno@clisp.org>
108093         * modules/fchdir (Depends-on): Add dup2.
108095 2007-02-18  Bruno Haible  <bruno@clisp.org>
108097         * lib/stdlib_.h: Handle glibc's special invocation convention
108098         specially.
108100 2007-02-18  Bruno Haible  <bruno@clisp.org>
108102         * modules/stdlib-tests: New file.
108103         * tests/test-stdlib.c: New file.
108105         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108106         (Depends-on): Add stdlib.
108107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108108         (Includes): Use <stdlib.h> instead of mkstemp.h.
108109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108110         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108111         * lib/mkstemp.c: Don't include mkstemp.h.
108112         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108113         * lib/stdlib--.h: Don't include mkstemp.h.
108115         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108116         (Depends-on): Add stdlib.
108117         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108118         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108119         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108120         HAVE_MKDTEMP.
108121         * lib/mkdtemp.c: Don't include mkdtemp.h.
108122         * lib/clean-temp.c: Don't include mkdtemp.h.
108124         * modules/exit (Files): Remove lib/exit.h.
108125         (Depends-on): Add stdlib.
108126         (Makefile.am): Remove lib_SOURCES.
108127         (Include): Use <stdlib.h> instead of exit.h.
108128         * lib/argmatch.c: Don't include exit.h.
108129         * lib/execute.c: Likewise.
108130         * lib/pagealign_alloc.c: Likewise.
108131         * lib/pipe.c: Likewise.
108132         * lib/wait-process.c: Likewise.
108133         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108134         * lib/exitfail.c: Likewise.
108135         * lib/savewd.c: Likewise.
108136         * lib/xsetenv.c: Likewise.
108138         * modules/stdlib: New file.
108139         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108140         and extra comments about mkstemp().
108141         * lib/exit.h: Remove file.
108142         * lib/mkdtemp.h: Remove file.
108143         * lib/mkstemp.h: Remove file.
108144         * m4/stdlib_h.m4: New file.
108145         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108147 2007-02-18  Bruno Haible  <bruno@clisp.org>
108149         * modules/math-tests: New file.
108150         * tests/test-math.c: New file.
108152         * modules/math: New file.
108153         * modules/mathl (Files): Remove lib/mathl.h.
108154         (Depends-on): Add math.
108155         (Makefile.am): Don't mention mathl.h.
108156         (Include): Use <math.h> instead of mathl.h.
108157         * lib/math_.h: New file.
108158         * lib/mathl.h: Remove file.
108159         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108160         mathl.h.
108161         * lib/asinl.c: Likewise.
108162         * lib/atanl.c: Likewise.
108163         * lib/ceill.c: Likewise.
108164         * lib/cosl.c: Likewise.
108165         * lib/expl.c: Likewise.
108166         * lib/floorl.c: Likewise.
108167         * lib/frexpl.c: Likewise.
108168         * lib/ldexpl.c: Likewise.
108169         * lib/logl.c: Likewise.
108170         * lib/sincosl.c: Likewise.
108171         * lib/sinl.c: Likewise.
108172         * lib/sqrtl.c: Likewise.
108173         * lib/tanl.c: Likewise.
108174         * lib/trigl.c: Likewise.
108175         * m4/math_h.m4: New file.
108176         * MODULES.html.sh (Mathematics): Add math.
108178 2007-02-17  Bruno Haible  <bruno@clisp.org>
108180         * modules/wctype-tests: New file.
108181         * tests/test-wctype.c: New file.
108183         * modules/wchar-tests: New file.
108184         * tests/test-wchar.c: New file.
108186         * modules/unistd-tests: New file.
108187         * tests/test-unistd.c: New file.
108189         * modules/time-tests: New file.
108190         * tests/test-time.c: New file.
108192         * modules/sysexits-tests: New file.
108193         * tests/test-sysexits.c: New file.
108195         * modules/sys_time-tests: New file.
108196         * tests/test-sys_time.c: New file.
108198         * modules/sys_stat-tests: New file.
108199         * tests/test-sys_stat.c: New file.
108201         * modules/sys_socket-tests: New file.
108202         * tests/test-sys_socket.c: New file.
108204         * modules/sys_select-tests: New file.
108205         * tests/test-sys_select.c: New file.
108207         * modules/string-tests: New file.
108208         * tests/test-string.c: New file.
108210         * modules/stdbool-tests: New file.
108211         * tests/test-stdbool.c: New file.
108213         * modules/netinet_in-tests: New file.
108214         * tests/test-netinet_in.c: New file.
108216         * modules/inttypes-tests: New file.
108217         * tests/test-inttypes.c: New file.
108219         * modules/fcntl-tests: New file.
108220         * tests/test-fcntl.c: New file.
108222         * modules/byteswap-tests: New file.
108223         * tests/test-byteswap.c: New file.
108225         * modules/arpa_inet-tests: New file.
108226         * tests/test-arpa_inet.c: New file.
108228 2007-02-17  Bruno Haible  <bruno@clisp.org>
108230         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108231         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108232         if the corresponding module is not enabled. Emit link warnings if
108233         the function is used nevertheless.
108234         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108235         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108236         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108237         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108238         * modules/inttypes (Depends-on): Add link-warning.
108239         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108240         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108241         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108242         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108243         * modules/imaxdiv (configure.ac): Likewise.
108244         * modules/strtoimax (configure.ac): Likewise.
108245         * modules/strtoumax (configure.ac): Likewise.
108247 2007-02-17  Bruno Haible  <bruno@clisp.org>
108249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108250         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108251         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108252         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108254 2007-02-17  Bruno Haible  <bruno@clisp.org>
108256         * modules/link-warning: New file.
108257         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108258         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108259         * modules/string (Depends-on): Add link-warning.
108260         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108261         string.h.
108262         * MODULES.html.sh (Support for building libraries and executables): Add
108263         link-warning.
108265 2007-02-17  Bruno Haible  <bruno@clisp.org>
108267         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108268         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108269         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108270         long lines.
108272 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108273             Bruno Haible  <bruno@clisp.org>
108275         * modules/tmpfile: New file.
108276         * lib/tmpfile.c: New file.
108277         * m4/tmpfile.m4: New file.
108278         * MODULES.html.sh (func_all_modules): New section "Input/output".
108280 2007-02-15  Bruno Haible  <bruno@clisp.org>
108282         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108283         (supports_delete_on_close): New function.
108284         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108286 2007-02-14  Bruno Haible  <bruno@clisp.org>
108288         * modules/mbspcasecmp-tests: New file.
108289         * tests/test-mbspcasecmp.sh: New file.
108290         * tests/test-mbspcasecmp.c: New file.
108292         New module mbspcasecmp.
108293         * modules/mbspcasecmp: New file.
108294         * lib/mbspcasecmp.c: New file.
108295         * lib/string_.h (strncasecmp): Change warning message.
108296         (mbspcasecmp): New declaration.
108297         * m4/mbspcasecmp.m4: New file.
108298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108299         GNULIB_MBSPCASECMP.
108300         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108301         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108303 2007-02-14  Bruno Haible  <bruno@clisp.org>
108305         * modules/mbsncasecmp-tests: New file.
108306         * tests/test-mbsncasecmp.sh: New file.
108307         * tests/test-mbsncasecmp.c: New file.
108309         New module mbsncasecmp.
108310         * modules/mbsncasecmp: New file.
108311         * lib/mbsncasecmp.c: New file.
108312         * lib/string_.h (mbsncasecmp): New declaration.
108313         * m4/mbsncasecmp.m4: New file.
108314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108315         GNULIB_MBSNCASECMP.
108316         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108317         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108319 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108321         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108322         Verify that it doesn't overlap with our flags.
108323         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108324         do not have the desired effect in multibyte locales; instead, use
108325         mbscasecmp.
108326         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108327         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108328         we don't require GNU fnmatch ourselves (if our users require it, they
108329         should do so explicitly).
108331         Fix regex code so it doesn't rely on strcasecmp.
108332         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108333         Otherwise, include gnulib's langinfo.h.
108334         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108335         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108336         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108337         * modules/regex (FILES): Remove m4/codeset.m4.
108338         (Depends-on): Add localcharset.  Remove strcase.
108340 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108342         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108343         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108345 2007-02-13  Bruno Haible  <bruno@clisp.org>
108347         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108350 2007-02-12  Bruno Haible  <bruno@clisp.org>
108352         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108353         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108354         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108355         time warning rather than a link error.
108357 2007-02-12  Bruno Haible  <bruno@clisp.org>
108359         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108363 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108365         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108366         args, not 2.
108368 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108370         New module 'time', so that apps can include <time.h> as per
108371         POSIX and GNU instead of separate include files like time_r.h
108372         and timegm.h.  This implementation tries out a simpler approach
108373         for replacing decls in standard include files (as compared to
108374         the string module), somewhat as an experiment.
108376         * config/srclist.txt: Comment out mktime.c for now.
108377         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108378         since it doesn't apply any more.  Use generic wording instead.
108379         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108380         'time'.
108381         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108382         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108383         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108384         Don't include <sys/types.h>; no longer needed since we assume C89.
108385         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108386         * lib/strftime.c: Likewise.
108387         * lib/time_r.c: Likewise.
108388         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108389         * lib/nanosleep.c: Include <time.h> first, to check interface.
108390         * lib/strptime.c: Likewise.
108391         * lib/time_r.c: Likewise.
108392         * lib/timegm.c: Likewise.
108393         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108394         needed.
108395         * lib/timegm.c: Don't include timegm.h; no longer needed.
108396         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108397         time.h now handles any problems in that area.
108398         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108399         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108400         that time.h defines struct timespec.
108401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108402         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108403         handles that.
108404         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108405         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108406         needed.  Set REPLACE_LOCALTIME.
108407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108408         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108409         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108410         nanosleep; time_h.m4 now does that.  Don't require
108411         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108412         module handles this now.
108413         * modules/getdate (Depends-on): Remove timespec.  Add time.
108414         * modules/nanosleep (Depends-on): Likewise.
108415         * modules/stat-time (Depends-on): Likewise.
108416         * modules/nanosleep (Include): Include time.h, not timespec.h.
108417         * modules/strptime (Files): Remove lib/strptime.h.
108418         (Depends-on): Add extensions, time.
108419         (Include): Include time.h, not strptime.h.
108420         * modules/time_r (Files): Remove lib/time_r.h.
108421         (Depends-on): Add time.
108422         (Include): Include time.h, not time_r.h.
108423         * modules/timegm: Likewise.
108424         * modules/timespec (Description): Now does timespec-related decls
108425         of our own, instead of struct timespec itself.
108426         (Depends-on): Add time; remove extensions.
108427         (Maintainer): Add self.
108428         * modules/utimecmp (Depends-on): Add time; remove timespec.
108429         * modules/utimens (Depends-on): Likewise.
108430         * modules/xnanosleep (Depends-on): Likewise.
108432 2007-02-11  Bruno Haible  <bruno@clisp.org>
108434         * lib/c-strstr.c: Include allocsa.h.
108435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108436         * lib/c-strcasestr.c: Include allocsa.h.
108437         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108438         * lib/strcasestr.c: Include allocsa.h.
108439         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108440         * lib/mbsstr.c: Include allocsa.h.
108441         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108442         allocsa/freesa instead of malloc/free.
108443         * lib/mbscasestr.c: Include allocsa.h.
108444         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108445         allocsa/freesa instead of malloc/free.
108446         * modules/c-strstr (Depends-on): Add allocsa.
108447         * modules/c-strcasestr (Depends-on): Likewise.
108448         * modules/strcasestr (Depends-on): Likewise.
108449         * modules/mbsstr (Depends-on): Likewise.
108450         * modules/mbscasestr (Depends-on): Likewise.
108452 2007-02-11  Bruno Haible  <bruno@clisp.org>
108454         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108456         * modules/mbsspn-tests: New file.
108457         * tests/test-mbsspn.sh: New file.
108458         * tests/test-mbsspn.c: New file.
108460 2007-02-11  Bruno Haible  <bruno@clisp.org>
108462         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108464         * modules/mbspbrk-tests: New file.
108465         * tests/test-mbspbrk.sh: New file.
108466         * tests/test-mbspbrk.c: New file.
108468 2007-02-11  Bruno Haible  <bruno@clisp.org>
108470         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108471         unneeded cast.
108473         * modules/mbscspn-tests: New file.
108474         * tests/test-mbscspn.sh: New file.
108475         * tests/test-mbscspn.c: New file.
108477 2007-02-11  Bruno Haible  <bruno@clisp.org>
108479         * modules/mbscasecmp-tests: New file.
108480         * tests/test-mbscasecmp.sh: New file.
108481         * tests/test-mbscasecmp.c: New file.
108483 2007-02-11  Bruno Haible  <bruno@clisp.org>
108485         Ensure O(n) worst-case complexity of mbscasestr.
108486         * lib/mbscasestr.c: Include stdbool.h.
108487         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108488         functions.
108489         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108490         the bookkeeping indicates that it's worth it.
108491         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108493         * modules/mbscasestr-tests: New file.
108494         * tests/test-mbscasestr1.c: New file.
108495         * tests/test-mbscasestr2.sh: New file.
108496         * tests/test-mbscasestr2.c: New file.
108497         * tests/test-mbscasestr3.sh: New file.
108498         * tests/test-mbscasestr3.c: New file.
108499         * tests/test-mbscasestr4.sh: New file.
108500         * tests/test-mbscasestr4.c: New file.
108501         * m4/locale-tr.m4: New file.
108503 2007-02-11  Bruno Haible  <bruno@clisp.org>
108505         Ensure O(n) worst-case complexity of mbsstr.
108506         * lib/mbsstr.c: Include stdbool.h.
108507         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108508         functions.
108509         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108510         bookkeeping indicates that it's worth it.
108511         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108513         * modules/mbsstr-tests: New file.
108514         * tests/test-mbsstr1.c: New file.
108515         * tests/test-mbsstr2.sh: New file.
108516         * tests/test-mbsstr2.c: New file.
108517         * tests/test-mbsstr3.sh: New file.
108518         * tests/test-mbsstr3.c: New file.
108519         * m4/locale-fr.m4: New file.
108521 2007-02-11  Bruno Haible  <bruno@clisp.org>
108523         * lib/mbsrchr.c (mbsrchr): Fix bug.
108525         * modules/mbsrchr-tests: New file.
108526         * tests/test-mbsrchr.sh: New file.
108527         * tests/test-mbsrchr.c: New file.
108529 2007-02-11  Bruno Haible  <bruno@clisp.org>
108531         * lib/mbschr.c (mbschr): Fix bug.
108533         * modules/mbschr-tests: New file.
108534         * tests/test-mbschr.sh: New file.
108535         * tests/test-mbschr.c: New file.
108536         * m4/locale-zh.m4: New file.
108538 2007-02-11  Bruno Haible  <bruno@clisp.org>
108540         Support for copying multibyte string iterators.
108541         * lib/mbiter.h: Include <string.h>.
108542         (mbiter_multi_copy): New function.
108543         (mbi_copy): New macro.
108544         * lib/mbuiter.h: Include <string.h>.
108545         (mbuiter_multi_copy): New function.
108546         (mbui_copy): New macro.
108548 2007-02-11  Bruno Haible  <bruno@clisp.org>
108550         New module mbslen.
108551         * modules/mbslen: New file.
108552         * lib/mbslen.c: New file.
108553         * lib/string_.h (mbslen): New declaration.
108554         * m4/mbslen.m4: New file.
108555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108556         GNULIB_MBSLEN.
108557         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
108558         * MODULES.html.sh (Internationalization functions): Add mbslen.
108560 2007-02-11  Bruno Haible  <bruno@clisp.org>
108562         Ensure O(n) worst-case complexity of strcasestr substitute.
108563         * lib/strcasestr.c: Include stdbool.h.
108564         (knuth_morris_pratt): New function.
108565         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108566         bookkeeping indicates that it's worth it.
108567         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
108569         * modules/strcasestr-tests: New file.
108570         * tests/test-strcasestr.c: New file.
108572 2007-02-11  Bruno Haible  <bruno@clisp.org>
108574         Ensure O(n) worst-case complexity of c_strcasestr.
108575         * lib/c-strcasestr.c: Include stdbool.h, string.h.
108576         (knuth_morris_pratt): New function.
108577         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
108578         the bookkeeping indicates that it's worth it.
108579         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
108581         * modules/c-strcasestr-tests: New file.
108582         * tests/test-c-strcasestr.c: New file.
108584 2007-02-11  Bruno Haible  <bruno@clisp.org>
108586         Ensure O(n) worst-case complexity of c_strstr.
108587         * lib/c-strstr.c: Include stdbool.h, string.h.
108588         (knuth_morris_pratt): New function.
108589         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108590         bookkeeping indicates that it's worth it.
108591         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108593         * lib/c-strstr.c: Complete rewrite for maintainability.
108595         * modules/c-strstr-tests: New file.
108596         * tests/test-c-strstr.c: New file.
108598 2007-02-11  Bruno Haible  <bruno@clisp.org>
108600         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108601         5.2.1 and earlier, whereby \055 was treated just like the range
108602         delimiter '-'.
108603         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108605 2007-02-08  Bruno Haible  <bruno@clisp.org>
108607         * modules/regex (Depends-on): Add stdbool.
108608         Reported by Dalibor Topic <robilad@kaffe.org>.
108610 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108612         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108613         Prefer returning from main to exiting from it.
108614         Remove unnecessary parens after sizeof.
108616 2007-02-05  Bruno Haible  <bruno@clisp.org>
108618         New module mbssep.
108619         * modules/mbssep: New file.
108620         * lib/mbssep.c: New file.
108621         * lib/string_.h (strsep): Add a conditional link warning.
108622         (mbssep): New declaration.
108623         * m4/mbssep.m4: New file.
108624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108625         GNULIB_MBSSEP.
108626         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108627         * MODULES.html.sh (Internationalization functions): Add mbssep.
108629 2007-02-05  Bruno Haible  <bruno@clisp.org>
108631         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108632         Optimize search in case of 1 delimiter.
108634 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108636         * lib/acl.h: Include sys/types.h before sys/acl.h.
108638 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108640         Merge upstream fix for glibc bugzilla #3957:
108642         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108644         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108645         bit for RE_HAT_LISTS_NOT_NEWLINE.
108646         (build_charclass_op): Remove bogus comment.
108648 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108650         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108652 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108654         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108655         * lib/memmem.c [!defined _LIBC]: Include config.h.
108657 2007-02-04  Bruno Haible  <bruno@clisp.org>
108659         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108660         warning message.
108662 2007-02-04  Bruno Haible  <bruno@clisp.org>
108664         New module mbstok_r.
108665         * modules/mbstok_r: New file.
108666         * lib/mbstok_r.c: New file.
108667         * lib/string_.h (strtok_r): Change argument names to match the
108668         comments. Add a conditional link warning.
108669         (mbstok_r): New declaration.
108670         * m4/mbstok_r.m4: New file.
108671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108672         GNULIB_MBSTOK_R.
108673         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108674         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108676 2007-02-04  Bruno Haible  <bruno@clisp.org>
108678         New module mbsspn.
108679         * modules/mbsspn: New file.
108680         * lib/mbsspn.c: New file.
108681         * lib/string_.h (strspn): Add a conditional link warning.
108682         (mbsspn): New declaration.
108683         * m4/mbsspn.m4: New file.
108684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108685         GNULIB_MBSSPN.
108686         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108687         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108689 2007-02-04  Bruno Haible  <bruno@clisp.org>
108691         New module mbspbrk.
108692         * modules/mbspbrk: New file.
108693         * lib/mbspbrk.c: New file.
108694         * lib/string_.h (strpbrk): Add a conditional link warning.
108695         (mbspbrk): New declaration.
108696         * m4/mbspbrk.m4: New file.
108697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108698         GNULIB_MBSPBRK.
108699         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108700         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108702 2007-02-04  Bruno Haible  <bruno@clisp.org>
108704         New module mbscspn.
108705         * modules/mbscspn: New file.
108706         * lib/mbscspn.c: New file.
108707         * lib/string_.h (strcspn): Add a conditional link warning.
108708         (mbscspn): New declaration.
108709         * m4/mbscspn.m4: New file.
108710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108711         GNULIB_MBSCSPN.
108712         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108713         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108715 2007-02-04  Bruno Haible  <bruno@clisp.org>
108717         New module mbscasestr, reduced goal of strcasestr.
108718         * modules/mbscasestr: New file.
108719         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108720         (mbscasestr): Renamed from strcasestr.
108721         * lib/strcasestr.c: Don't include mbuiter.h.
108722         (strcasestr): Remove support for multibyte locales.
108723         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108724         Change the conditional link warning.
108725         (mbscasestr): New declaration.
108726         * m4/mbscasestr.m4: New file.
108727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108728         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108729         REPLACE_STRCASESTR.
108730         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108732         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108733         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108734         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108735         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108736         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108737         (Depends-on): Remove mbuiter.
108738         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108740 2007-02-04  Bruno Haible  <bruno@clisp.org>
108742         Simplify handling of strncasecmp.
108743         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108744         the conditional link warning.
108745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108746         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108747         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108748         * modules/strcase (configure.ac): Don't invoke
108749         gl_STRING_MODULE_INDICATOR.
108750         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108752 2007-02-04  Bruno Haible  <bruno@clisp.org>
108754         New module mbscasecmp, reduced goal of strcasecmp.
108755         * modules/mbscasecmp: New file.
108756         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108757         (mbscasecmp): Renamed from strcasecmp.
108758         * lib/strcasecmp.c: Don't include mbuiter.h.
108759         (strcasecmp): Remove support for multibyte locales.
108760         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108761         Change the conditional link warning.
108762         (mbscasecmp): New declaration.
108763         * m4/mbscasecmp.m4: New file.
108764         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108765         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108766         REPLACE_STRCASECMP.
108767         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108769         GNULIB_MBSCASECMP.
108770         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108771         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108772         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108773         (Depends-on): Remove mbuiter.
108774         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108776 2007-02-04  Bruno Haible  <bruno@clisp.org>
108778         New module mbsstr. Remove module strstr.
108779         * modules/mbsstr: New file.
108780         * modules/strstr: Remove file.
108781         * lib/mbsstr.c: Renamed from lib/strstr.c.
108782         (mbsstr): Renamed from strstr.
108783         * lib/string_.h (strstr): Remove declaration. Change the conditional
108784         link warning.
108785         (mbsstr): New declaration.
108786         * m4/mbsstr.m4: New file.
108787         * m4/strstr.m4: Remove file.
108788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108789         REPLACE_STRSTR.
108790         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108791         Don't initialize GNULIB_STRSTR.
108792         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108793         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108794         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108795         (Support for systems lacking ANSI C 89): Remove strstr.
108797 2007-02-04  Bruno Haible  <bruno@clisp.org>
108799         New module mbsrchr.
108800         * modules/mbsrchr: New file.
108801         * lib/mbsrchr.c: New file.
108802         * lib/string_.h (strrchr): Add a conditional link warning.
108803         (mbsrchr): New declaration.
108804         * m4/mbsrchr.m4: New file.
108805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108806         GNULIB_MBSRCHR.
108807         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108808         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108810 2007-02-04  Bruno Haible  <bruno@clisp.org>
108812         New module mbschr.
108813         * modules/mbschr: New file.
108814         * lib/mbschr.c: New file.
108815         * lib/string_.h (strchr): Add a conditional link warning.
108816         (mbschr): New declaration.
108817         * m4/mbschr.m4: New file.
108818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108819         GNULIB_MBSCHR.
108820         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108821         * MODULES.html.sh (Internationalization functions): Add mbschr.
108823 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108825         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108827         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108829 2007-02-04  Bruno Haible  <bruno@clisp.org>
108831         New module description section 'configure.ac-early'.
108832         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108833         (func_get_autoconf_early_snippet): New function.
108834         (func_import, func_create_testdir): Use it. Remove special cases for
108835         modules 'extensions' and 'lock'.
108836         * modules/extensions (configure.ac-early): Require
108837         gl_USE_SYSTEM_EXTENSIONS.
108838         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108840 2007-02-04  Bruno Haible  <bruno@clisp.org>
108842         Make use of gcj-4.3's -fsource and -ftarget option.
108843         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108844         and if so try the options -fsource and -ftarget.
108845         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108846         source_version, ftarget_option, target_version arguments.
108847         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108848         (is_envjavac_oldgcj_14_14_usable): Renamed from
108849         is_envjavac_gcj_14_14_usable.
108850         (is_envjavac_oldgcj_14_13_usable): Renamed from
108851         is_envjavac_gcj_14_13_usable.
108852         (is_gcj_present): Update.
108853         (is_gcj_43, is_gcj43_usable): New functions.
108854         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108855         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108856         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108857         try the options -fsource and -ftarget.
108859 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108861         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108862         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108863         larger value.
108865 2007-02-03  Jim Meyering  <jim@meyering.net>
108867         Give tools a better chance to allocate space for very large buffers.
108868         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108870         Make pwd and readlink work also when run with an unreadable parent dir
108871         on systems with openat support.
108872         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108873         provided getcwd function, even when we have openat support.
108874         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108876 2007-02-02  Bruno Haible  <bruno@clisp.org>
108878         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108879         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108880         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108881         portability problems if one of these functions is only used on specific
108882         platforms.
108883         Reported by Paul Eggert.
108885 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108887         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108888         is causing more trouble than it's curing.
108889         * lib/regex_internal.h (__mempcpy): Remove.
108890         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108891         (and make the code a tad smaller to boot).
108892         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108894 2007-02-02  Jim Meyering  <jim@meyering.net>
108896         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108897         section, not in the Makefile.am: one.
108899 2007-02-02  Eric Blake  <ebb9@byu.net>
108901         * lib/strchrnul.c: Always include config.h first.
108903         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108904         gnulib strstr is not necessary here.
108906 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108908         * m4/socklen.m4: Fix typo.
108910 2007-02-02  Eric Blake  <ebb9@byu.net>
108912         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108913         * modules/netinet_in (Makefile.am): Likewise.
108915 2007-02-01  Bruno Haible  <bruno@clisp.org>
108917         * lib/string_.h (GL_LINK_WARNING): New macro.
108918         (strcasecmp, strstr, strcasestr): If provided by the system,
108919         conditionally define as a macro that leads to a warning instead of to
108920         an error.
108921         (strncasecmp): Conditionally define as a macro that leads to a warning.
108923 2007-02-01  Karl Berry  <karl@gnu.org>
108925         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108927 2007-02-01  Bruno Haible  <bruno@clisp.org>
108929         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108930         renamings.
108932 2007-02-01  Eric Blake  <ebb9@byu.net>
108934         * modules/regex (Depends-on): Revert dependence on mempcpy.
108935         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
108936         module's definition of mempcpy.
108937         Reported by Paul Eggert.
108939 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
108941         * lib/string_.h: If the gnulib module XYZ is not present, undefine
108942         the symbol XYZ before redefining it.  This fixes a problem with
108943         programs that don't use XYZ, when compiled on systems that define
108944         XYZ to something else.
108946 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108948         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108949         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108950         writeable to group or other and (2) is intended to have a special
108951         mode bit that is set or cleared.  In such a case, the directory
108952         should be neither group- nor other-writeable until the special
108953         mode bits are right.
108955 2007-01-31  Eric Blake  <ebb9@byu.net>
108957         * modules/mountlist (Depends-on): Add strstr.
108959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108960         bug.
108961         * modules/string (Makefile.am): Remove redundant replacement.
108962         * modules/regex (Depends-on): Add mempcpy.
108964 2007-01-31  Bruno Haible  <bruno@clisp.org>
108966         New module description field 'Link'.
108967         * gnulib-tool (func_usage): Document --extract-link-directive.
108968         (sed_extract_prog): Recognize 'Link' directive.
108969         (func_get_link_directive): New function.
108970         (func_import): Show summary of link directives.
108971         Handle --extract-link-directive option.
108972         * modules/acl (Link): New section.
108973         * modules/clock-time (Link): New section.
108974         * modules/euidaccess (Link): New section.
108975         * modules/gettext (Link): New section.
108976         * modules/iconv (Link): New section.
108977         * modules/lock (Link): New section.
108978         * modules/nanosleep (Link): New section.
108979         * modules/readline (Link): New section.
108981 2007-01-27  Bruno Haible  <bruno@clisp.org>
108983         Enforce the use of gnulib modules for unportable <string.h> functions.
108984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108985         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108986         (gl_HEADER_STRING_H_BODY): Require it.
108987         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108988         the symbol XYZ to one that gives a link error.
108989         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108990         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108991         * modules/mempcpy (configure.ac): Likewise.
108992         * modules/memrchr (configure.ac): Likewise.
108993         * modules/stpcpy (configure.ac): Likewise.
108994         * modules/stpncpy (configure.ac): Likewise.
108995         * modules/strcase (configure.ac): Likewise.
108996         * modules/strcasestr (configure.ac): Likewise.
108997         * modules/strchrnul (configure.ac): Likewise.
108998         * modules/strdup (configure.ac): Likewise.
108999         * modules/strndup (configure.ac): Likewise.
109000         * modules/strnlen (configure.ac): Likewise.
109001         * modules/strpbrk (configure.ac): Likewise.
109002         * modules/strsep (configure.ac): Likewise.
109003         * modules/strstr (configure.ac): Likewise.
109004         * modules/strtok_r (configure.ac): Likewise.
109006 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109008         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109010 2007-01-30  Jim Meyering  <jim@meyering.net>
109012         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109014 2007-01-29  Bruno Haible  <bruno@clisp.org>
109016         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109017         * lib/execute.c: Likewise.
109018         * lib/pipe.c: Likewise.
109019         * lib/printf-args.h: Likewise.
109020         * lib/printf-args.c: Likewise.
109021         * lib/printf-parse.c: Likewise.
109022         * lib/vasnprintf.c: Likewise.
109024 2007-01-29  Eric Blake  <ebb9@byu.net>
109026         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109027         declaration.
109029 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109031         * lib/strptime.h (strptime): Use 'restrict' for args where
109032         POSIX requires this.
109033         * lib/strptime.c (strptime): Likewise.
109034         Change license notice from LGPL to GPL, since gnulib-tool will
109035         change this as needed.
109036         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109037         defined.
109038         Include "strptime.h" first, to check interface.
109039         Do not #undef _LIBC and _NL_CURRENT.
109040         Do not include <stdlib.h>; no longer needed.
109041         Include "time_r.h" and declare ptime_locale_status
109042         only if _LIBC is not defined.
109043         (__P): Remove unused macro.
109044         (match_string): Bring back glibc version, but use it only if _LIBC
109045         is defined.
109046         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109047         Remove unnecessary assertion and abort() call.
109048         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109049         * m4/strptime.m4: Fix serial number comment.
109050         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109051         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109052         (Depends-on): Add time_r.
109054 2007-01-29  Bruno Haible  <bruno@clisp.org>
109056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109057         strptime.
109058         * modules/strptime (Depends-on): Add stdbool.
109059         * lib/strptime.h: Include <time.h> always. Add comments.
109061 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109063         * modules/strptime: New file.
109064         * lib/strptime.h: New file.
109065         * lib/strptime.c: New file.
109066         * m4/strptime.m4: New file.
109068 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109070         * MODULES.html.sh: New module mpsort.
109071         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109073         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109074         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109075         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109076         All uses changed.
109077         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109078         All uses changed.
109079         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109080         to _Restrict_.
109081         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109082         the parameter matches the prototype.
109084 2007-01-28  Jim Meyering  <jim@meyering.net>
109086         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109087         sys/time.h here, reverting that part of the previous patch:
109088         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109090 2007-01-28  Bruno Haible  <bruno@clisp.org>
109092         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109093         value of $(SYS_TIME_H).
109094         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109095         remove it conditionally, too. [added by Jim Meyering]
109096         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109098         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109099         GETTIMEOFDAY_REPLACEMENT to 1.
109101 2007-01-28  Bruno Haible  <bruno@clisp.org>
109103         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109104         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109106         Set UNISTD_H instead of UNISTD_H2.
109107         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109109 2007-01-28  Bruno Haible  <bruno@clisp.org>
109111         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109112         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109114 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109116         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109117         (func_create_testdir): Ensure C locale for `grep' and `tr'
109118         character ranges.
109119         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109120         ACLOCAL_AMFLAGS parsing state machine.
109122 2007-01-27  Bruno Haible  <bruno@clisp.org>
109124         * modules/unistr/base: Update.
109126 2007-01-27  Bruno Haible  <bruno@clisp.org>
109128         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109129         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109130         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109131         modules/unistr/u32-mbtouc.
109132         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109133         * lib/unistr.h: Update.
109134         * lib/linebreak.c: Update.
109135         * modules/unistr/u32-mbtouc: Renamed from
109136         modules/unistr/u32-mbtouc-safe.
109137         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109138         * lib/unistr.h: Update.
109139         * lib/unistr/u32-to-u8.c: Update.
109140         * lib/unistr/u32-to-u16.c: Update.
109142 2007-01-27  Bruno Haible  <bruno@clisp.org>
109144         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109145         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109146         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109147         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109148         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109149         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109150         modules/unistr/u16-mbtouc.
109151         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109152         * lib/unistr.h: Update.
109153         * lib/linebreak.c: Update.
109154         * modules/linebreak: Update.
109155         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109156         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109157         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109158         * modules/unistr/u16-mbtouc: Renamed from
109159         modules/unistr/u16-mbtouc-safe.
109160         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109161         * lib/unistr.h: Update.
109162         * lib/unistr/u16-to-u8.c: Update.
109163         * modules/unistr/u16-to-u8: Update.
109164         * lib/unistr/u16-to-u32.c: Update.
109165         * modules/unistr/u16-to-u32: Update.
109167 2007-01-27  Bruno Haible  <bruno@clisp.org>
109169         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109170         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109171         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109172         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109173         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109174         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109175         modules/unistr/u8-mbtouc.
109176         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109177         * lib/unistr.h: Update.
109178         * lib/striconveh.c: Update.
109179         * modules/striconveh: Update.
109180         * lib/linebreak.c: Update.
109181         * modules/linebreak: Update.
109182         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109183         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109184         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109185         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109186         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109187         * lib/unistr.h: Update.
109188         * lib/striconveh.c: Update.
109189         * modules/striconveh: Update.
109190         * lib/unistr/u8-to-u16.c: Update.
109191         * modules/unistr/u8-to-u16: Update.
109192         * lib/unistr/u8-to-u32.c: Update.
109193         * modules/unistr/u8-to-u32: Update.
109195 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109197         Sync from Libtool.
109198         * lib/argz.c: Do not include strings.h nor memory.h, include
109199         string.h unconditionally.  Patch by Simon Josefsson.
109201 2007-01-27  Bruno Haible  <bruno@clisp.org>
109203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109204         from gl_HEADER_STRING_H_BODY.
109205         (gl_HEADER_STRING_H_BODY): Require it.
109206         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109211         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109213         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109214         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109215         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109216         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109217         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109218         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109219         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109220         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109222 2007-01-27  Bruno Haible  <bruno@clisp.org>
109224         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109225         check_PROGRAMS into noinst_PROGRAMS.
109226         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109227         check_PROGRAMS in this case.
109228         (func_import): Set for_test to false.
109229         (func_create_testdir): Set for_test to true.
109231 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109232             Bruno Haible  <bruno@clisp.org>
109234         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109235         (Depends-on): Add string.
109236         (Includes): Use <string.h> instead of strcasestr.h.
109237         * modules/string (Makefile.am): Also substitute the value of
109238         REPLACE_STRCASESTR.
109239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109240         assume strcasestr is declared in <string.h> not <strings.h>. Also
109241         set REPLACE_STRCASESTR.
109242         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109243         REPLACE_STRCASESTR.
109244         * lib/strcasestr.h: Remove file.
109245         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109246         * lib/string_.h (strcasestr): New declaration.
109248 2007-01-27  Bruno Haible  <bruno@clisp.org>
109250         * lib/string_.h: Use 'extern'.
109252 2007-01-27  Jim Meyering  <jim@meyering.net>
109254         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109255         of set-but-not-used local, "q".
109257         * lib/mempcpy.c: Include <config.h> before <string.h>.
109258         This fixes a compilation error on HP-UX, due to the system's
109259         "restrict"-using mempcpy prototype.
109261 2007-01-26  Bruno Haible  <bruno@clisp.org>
109263         Small optimization.
109264         * lib/javacomp.c: Include c-strstr.h.
109265          (is_envjavac_gcj): Use c_strstr instead of strstr.
109266         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109268 2007-01-26  Bruno Haible  <bruno@clisp.org>
109270         * MODULES.html.sh (Unicode string functions): Add the new modules.
109272         * modules/uniconv/u32-strconv-to-locale: New file.
109273         * lib/uniconv/u32-strconv-to-locale.c: New file.
109275         * modules/uniconv/u16-strconv-to-locale: New file.
109276         * lib/uniconv/u16-strconv-to-locale.c: New file.
109278         * modules/uniconv/u8-strconv-to-locale: New file.
109279         * lib/uniconv/u8-strconv-to-locale.c: New file.
109281         * modules/uniconv/u32-strconv-from-locale: New file.
109282         * lib/uniconv/u32-strconv-from-locale.c: New file.
109284         * modules/uniconv/u16-strconv-from-locale: New file.
109285         * lib/uniconv/u16-strconv-from-locale.c: New file.
109287         * modules/uniconv/u8-strconv-from-locale: New file.
109288         * lib/uniconv/u8-strconv-from-locale.c: New file.
109290         * modules/uniconv/u32-strconv-to-enc: New file.
109291         * lib/uniconv/u32-strconv-to-enc.c: New file.
109292         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109293         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109295         * modules/uniconv/u16-strconv-to-enc: New file.
109296         * lib/uniconv/u16-strconv-to-enc.c: New file.
109297         * lib/uniconv/u-strconv-to-enc.h: New file.
109298         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109299         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109301         * modules/uniconv/u8-strconv-to-enc: New file.
109302         * lib/uniconv/u8-strconv-to-enc.c: New file.
109303         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109304         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109306         * modules/uniconv/u32-strconv-from-enc: New file.
109307         * lib/uniconv/u32-strconv-from-enc.c: New file.
109308         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109309         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109311         * modules/uniconv/u16-strconv-from-enc: New file.
109312         * lib/uniconv/u16-strconv-from-enc.c: New file.
109313         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109314         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109316         * modules/uniconv/u8-strconv-from-enc: New file.
109317         * lib/uniconv/u8-strconv-from-enc.c: New file.
109318         * lib/uniconv/u-strconv-from-enc.h: New file.
109319         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109320         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109322         * modules/uniconv/u32-conv-from-enc: New file.
109323         * lib/uniconv/u32-conv-from-enc.c: New file.
109324         * modules/uniconv/u32-conv-from-enc-tests: New file.
109325         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109327         * modules/uniconv/u16-conv-from-enc: New file.
109328         * lib/uniconv/u16-conv-from-enc.c: New file.
109329         * lib/uniconv/u-conv-from-enc.h: New file.
109330         * modules/uniconv/u16-conv-from-enc-tests: New file.
109331         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109333         * modules/uniconv/u8-conv-from-enc: New file.
109334         * lib/uniconv/u8-conv-from-enc.c: New file.
109335         * modules/uniconv/u8-conv-from-enc-tests: New file.
109336         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109338         * modules/uniconv/base: New file.
109339         * lib/uniconv.h: New file.
109341 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109343         * doc/gnulib-tool.texi (Initial import): Update to match current
109344         behavior with strdup module.
109345         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109346         * lib/memmem.h: Remove; all uses removed.  This is now done
109347         by <string.h>.
109348         * lib/mempcpy.h: Likewise.
109349         * lib/memrchr.h: Likewise.
109350         * lib/stpcpy.h: Likewise.
109351         * lib/stpncpy.h: Likewise.
109352         * lib/strcase.h: Likewise.
109353         * lib/strchrnul.h: Likewise.
109354         * lib/strdup.h: Likewise.
109355         * lib/strndup.h: Likewise.
109356         * lib/strnlen.h: Likewise.
109357         * lib/strpbrk.h: Likewise.
109358         * lib/strsep.h: Likewise.
109359         * lib/strstr.h: Likewise.
109360         * lib/strtok_r.h: Likewise.
109361         * lib/string_.h: New file.
109362         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109363         Rely on <string.h> instead.
109364         * lib/canon-host.c: Likewise.
109365         * lib/chdir-long.c: Likewise.
109366         * lib/concatpath.c: Likewise.
109367         * lib/exclude.c: Likewise.
109368         * lib/fchdir.c: Likewise.
109369         * lib/getaddrinfo.c: Likewise.
109370         * lib/getcwd.c: Likewise.
109371         * lib/getsubopt.c: Likewise.
109372         * lib/glob.c: Likewise.
109373         * lib/hard-locale.c: Likewise.
109374         * lib/iconvme.c: Likewise.
109375         * lib/javacomp.c: Likewise.
109376         * lib/mempcpy.c: Likewise.
109377         * lib/memrchr.c: Likewise.
109378         * lib/regex_internal.h: Likewise.
109379         * lib/stpncpy.c: Likewise.
109380         * lib/strcasecmp.c: Likewise.
109381         * lib/strchrnul.c: Likewise.
109382         * lib/strdup.c: Likewise.
109383         * lib/striconv.c: Likewise.
109384         * lib/striconveh.c: Likewise.
109385         * lib/striconveha.c: Likewise.
109386         * lib/strncasecmp.c: Likewise.
109387         * lib/strndup.c: Likewise.
109388         * lib/strnlen.c: Likewise.
109389         * lib/strsep.c: Likewise.
109390         * lib/strstr.c: Likewise.
109391         * lib/strtok_r.c: Likewise.
109392         * lib/userspec.c: Likewise.
109393         * lib/w32spawn.h: Likewise.
109394         * lib/xstrndup.c: Likewise.
109395         * lib/mountlist.c (strstr): Remove decl.
109396         * m4/string_h.m4: New file.
109397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109398         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109399         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109400         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109401         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109402         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109403         Set REPLACE_STRCASECMP if necessary.
109404         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109405         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109406         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109408         HAVE_DECL_STRDUP if necessary.
109409         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109410         since gl_FUNC_STRNDUP does that now.
109411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109412         Check for decl here...
109413         (gl_PREREQ_STRNLEN): ... not here.
109414         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109415         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109416         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109417         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109418         necessary.
109419         * modules/string: New file.
109420         * modules/memmem (Files): Remove special-purpose include file.
109421         (Depends-on): Add string.
109422         (Include): Include <string.h>, not the removed file.
109423         * modules/mempcpy: Likewise.
109424         * modules/memrchr: Likewise.
109425         * modules/stpcpy: Likewise.
109426         * modules/stpncpy: Likewise.
109427         * modules/strcase: Likewise.
109428         * modules/strchrnul: Likewise.
109429         * modules/strdup: Likewise.
109430         * modules/strndup: Likewise.
109431         * modules/strnlen: Likewise.
109432         * modules/strpbrk: Likewise.
109433         * modules/strsep: Likewise.
109434         * modules/strstr: Likewise.
109435         * modules/strtok_r: Likewise.
109436         * tests/test-dirname.c: Don't include "strdup.h", since
109437         <string.h> now suffices.
109438         * tests/test-memmem.c: Don't include "memmem.h", since
109439         <string.h> now suffices.
109441 2007-01-25  Bruno Haible  <bruno@clisp.org>
109443         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109444         *resultp is 0.
109446         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109447         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109448         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109449         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109451         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109452         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109453         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109454         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109455         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109456         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109458 2007-01-24  Bruno Haible  <bruno@clisp.org>
109460         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109461         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109462         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109463         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109464         gl_FUNC_FTS_CORE.
109465         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109466         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109467         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109468         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109469         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109470         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109471         gl_FUNC_FCHOWNAT.
109472         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109473         gl_FUNC_STRFTIME.
109474         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109475         Reported by Ralf Wildenhues.
109477 2007-01-24  Bruno Haible  <bruno@clisp.org>
109479         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109480         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109481         gl_GETADDRINFO.
109482         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109483         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109484         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109486 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109488         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109489         Don't use 'exit'; just return from 'main'.
109490         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109492         * lib/fnmatch_.h: Readjust white space and comments to match
109493         glibc, to avoid spurious diffs.
109495 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109497         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109498         2004-12-01 change by Jakub Jelinek, since this code won't compile
109499         if !LIBC.  Problem reported by Bob Proulx.
109501 2007-01-23  Bruno Haible  <bruno@clisp.org>
109503         * lib/striconveh.c: Include c-strcaseeq.h.
109504         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109505         * modules/striconveh (Depends-on): Add c-strcaseeq.
109507 2007-01-23  Bruno Haible  <bruno@clisp.org>
109509         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109511         * modules/c-strcaseeq: New file.
109512         * lib/c-strcaseeq.h: New file.
109514         * modules/streq: New file.
109515         * lib/streq.h: New file.
109517 2007-01-23  Bruno Haible  <bruno@clisp.org>
109519         * modules/striconveha-tests: New file.
109520         * tests/test-striconveha.c: New file.
109522         * lib/striconveha.h: Include <stdbool.h>.
109523         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
109524         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
109525         (mem_iconveha_notranslit): Renamed from mem_iconveha.
109526         (mem_iconveha): New function.
109527         (str_iconveha_notranslit): Renamed from str_iconveha.
109528         (str_iconveha): New function.
109529         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
109530         c-strcase.
109532 2007-01-23  Bruno Haible  <bruno@clisp.org>
109534         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
109535         encodings without forgiving before trying any encoding with handler.
109536         (str_iconveha): Try all encodings without forgiving before trying any
109537         encoding with handler.
109539 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109541         Import the following changes from libc.
109543         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109545         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
109547         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
109549         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
109550         normal_bracket label.
109552         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
109554         [BZ #361]
109555         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
109556         to normal_bracket after fetching the next character.
109558 2007-01-22  Bruno Haible  <bruno@clisp.org>
109560         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
109561         argument.
109562         * lib/striconveh.c (iconv_carefully_1): New function.
109563         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
109564         argument.
109565         (str_cd_iconveh): Update.
109566         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
109567         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
109568         * tests/test-striconveh.c (MAGIC): New macro.
109569         (new_offsets): New function.
109570         (main): Test call with and without offsets.
109572 2007-01-22  Bruno Haible  <bruno@clisp.org>
109574         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
109575         * modules/sys_select (Makefile.am): Likewise.
109576         * modules/sys_socket (Makefile.am): Likewise.
109577         * modules/sys_time (Makefile.am): Likewise.
109579 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109581         * modules/gettimeofday (License): Change from GPL to LGPL, since
109582         gettimeofday is a library function.
109584 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109586         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
109588 2007-01-21  Bruno Haible  <bruno@clisp.org>
109590         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109592 2007-01-21  Bruno Haible  <bruno@clisp.org>
109594         * modules/striconveha: New file.
109595         * lib/striconveha.h: New file.
109596         * lib/striconveha.c: New file.
109597         * MODULES.html.sh (Internationalization functions): Add striconveha.
109598         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109599         string.
109600         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109602 2007-01-21  Bruno Haible  <bruno@clisp.org>
109604         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109605         * lib/striconveh.c (str_iconveh): Likewise.
109607 2007-01-21  Bruno Haible  <bruno@clisp.org>
109609         * lib/striconveh.h (mem_iconveh): New declaration.
109610         * lib/striconveh.c (mem_iconveh): New function.
109611         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109613 2007-01-21  Bruno Haible  <bruno@clisp.org>
109615         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109617         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109618         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109619         original result buffer.
109620         (str_cd_iconveh): Update.
109621         * tests/test-striconveh.c (main): Update.
109623         * lib/striconv.h (mem_cd_iconv): Change specification.
109624         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109625         result buffer.
109626         (str_cd_iconv): Update.
109627         * tests/test-striconv.c (main): Update.
109629 2007-01-21  Bruno Haible  <bruno@clisp.org>
109631         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109633 2007-01-20  Jim Meyering  <jim@meyering.net>
109635         * lib/userspec.c (parse_with_separator): If a user or group string
109636         starts with "+", skip the corresponding name-to-ID look-up, since
109637         such a look-up must fail: user and group names may not include "+".
109639 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109641         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109642         since we now assume the sys_time module.
109643         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109644         check for sys/time.h; no longer needed.
109645         * modules/poll (Depends-on): Depend on sys_time.
109647 2007-01-18  Bruno Haible  <bruno@clisp.org>
109649         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109650         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109652         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109653         gettimeofday.
109655         * tests/test-gettimeofday.c: Include <time.h>.
109656         (dummy): Remove variable.
109658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109659         gl_HEADER_SYS_TIME_H.
109660         (gl_HEADER_SYS_TIME_H): New macro.
109662         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109663         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109665         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109666         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109667         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109668         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109669         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109670         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109671         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109672         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109674         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109675         last change; it caused a compilation error when cross-compiling to
109676         Cygwin.
109678 2007-01-18  Jim Meyering  <jim@meyering.net>
109680         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109681         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109682         than the race-prone "test -d sys || mkdir sys".
109683         (configure.ac): Use AC_PROG_MKDIR_P.
109684         * modules/sys_select: Likewise.
109685         * modules/sys_socket: Likewise.
109686         * modules/sys_time: Likewise.
109688 2007-01-18  Eric Blake  <ebb9@byu.net>
109690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109691         replace gettimeofday.
109692         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109693         name, to avoid infinite recursion.
109695 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109697         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109698         module sys_time.
109699         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109700         assume timespec.h defines struct timeval.
109701         * lib/settime.c: Likewise.
109702         * lib/utimens.c: Likewise.
109703         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109704         since we now assume the gettimeofday module.
109705         * lib/tempname.c (__gen_tempname): Likewise.
109706         * lib/gettimeofday.h: Remove.
109707         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109708         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109709         Include <time.h>, for 'time()'.
109710         (localtime_buffer_addr): Also use this workaround if
109711         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109712         to simplify the uses.  All uses changed.
109713         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109714         that #undef is inside {}, and 'const' follows type name consistently.
109715         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109716         (gettimeofday): Do not use the maximum possible value for
109717         tv->tv_usec, since that might break usages other than ls.c.
109718         Instead, we'll leave ls.c alone.  This undoes today's patch
109719         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109720         we've never observed the problem but might as well keep the
109721         canary.
109722         * lib/nanosleep.c: Include timespec.h first, for interface check.
109723         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109724         now assume the sys_time module.
109725         * lib/tempname.c: Likewise.
109726         * lib/timespec.h: Likewise.
109727         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109728         needed.
109729         * lib/strftime.c: Likewise.
109730         * lib/timespec.h: Likewise.
109731         * lib/posixtm.c: Include posixtm.h first, for interface check.
109732         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109733         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109734         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109735         * lib/sys_time_.h: New file.
109736         * lib/timespec.h (struct timespec): Use long int, not long.
109737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109738         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109739         Remove obsolescent call to AC_HEADER_TIME.
109740         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109743         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109744         Likewise.
109745         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109746         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109748         into the sys_time module.  Check for gettimeofday just once.
109749         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109750         for gettimeofday signature to just check the signature.  Merely
109751         compile it, since linking doesn't test signature.  Improve test for
109752         whether gettimeofday.o is actually needed.
109753         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109754         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109755         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109756         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109757         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109758         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109759         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109760         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109761         than worrying about sys/time.h.
109762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109763         Don't bother worrying about TIME_WITH_SYS_TIME.
109764         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109765         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109766         * m4/sys_time_h.m4: New file.
109767         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109768         Don't include sys/time.h.  Return from main rather than exiting.
109769         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109770         all uses changed.
109771         * modules/gethrxtime (Depends-on): Add sys_time.
109772         * modules/gettime (Depends-on): Likewise.
109773         * modules/gettimeofday (Depends-on): Likewise.
109774         * modules/nanosleep (Depends-on): Likewise.
109775         * modules/settime (Depends-on): Likewise.
109776         * modules/tempname (Depends-on): Likewise.
109777         * modules/utimens (Depends-on): Likewise.
109778         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109779         (Include): Change back to <sys/time.h>.
109780         (Maintainer): Add self.
109781         * modules/sys_time: New file.
109782         * modules/tempname (Depends-on): Add gettimeofday.
109783         * tests/test-gettimeofday.c: Include <sys/time.h>
109784         rather than gettimeofday.h.
109786 2007-01-17  Bruno Haible  <bruno@clisp.org>
109788         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109789         the license default to GPL.
109790         (func_create_testdir): Don't complain if a module is LGPL and its
109791         tests module depends on GPLed modules.
109793 2007-01-17  Bruno Haible  <bruno@clisp.org>
109795         * lib/gettimeofday.c (gettimeofday): Add code for the case
109796         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109797         maximum possible value for tv->tv_usec, rather than the minimum one.
109799 2005-10-08  Martin Lambers  <marlam@marlam.de>
109800 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109801 2007-01-16  Bruno Haible  <bruno@clisp.org>
109803         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109804         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109805         gl_FUNC_GETTIMEOFDAY.
109806         (Include): Add gettimeofday.h.
109807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109808         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109809         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109810         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109811         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109812         * lib/gettimeofday.h: New file.
109813         * lib/gettimeofday.c: Include <sys/timeb.h>.
109814         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109815         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109816         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109817         fall back on time().
109819         * tests/test-gettimeofday.c: New file.
109820         * modules/gettimeofday-tests: New file.
109822 2007-01-16  Eric Blake  <ebb9@byu.net>
109824         * modules/fnmatch (Depends-on): Depend on wchar.
109825         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109826         * m4/fnmatch.m4: Likewise.
109827         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109828         * m4/mbchar.m4: Likewise.
109829         * modules/mbswidth (Depends-on): Depend on wchar.
109830         * lib/mbswidth.c: Assume <wchar.h>.
109831         * m4/mbswidth.m4: Likewise.
109832         * modules/quotearg (Depends-on): Depend on wchar.
109833         * lib/quotearg.c: Assume <wchar.h>.
109834         * m4/quotearg.m4: Likewise.
109835         * modules/regex (Depends-on): Depend on wchar.
109836         * lib/regex_internal.h: Assume <wchar.h>.
109837         * m4/regex.m4: Likewise.
109838         * modules/stdint (Depends-on): Depend on wchar.
109839         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109840         * m4/stdint.m4: Likewise.
109841         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109842         * modules/strftime (Depends-on): Depend on wchar.
109843         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109844         * modules/strtol (Depends-on): Depend on wchar.
109845         * lib/strtol.c: Assume <wchar.h>.
109846         * modules/wcwidth (Depends-on): Depend on wchar.
109847         * lib/wcwidth.h: Assume <wchar.h>.
109848         * m4/wcwidth.m4: Likewise.
109850 2007-01-16  Bruno Haible  <bruno@clisp.org>
109852         * modules/csharpexec-script: New, created from...
109853         * modules/csharpexec: ... this.
109855 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109857         * modules/javaexec-script: New, created from...
109858         * modules/javaexec: ... this.
109860 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109862         * modules/poll (Dependencies): Add sys_select.
109864 2007-01-15  Jim Meyering  <jim@meyering.net>
109866         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109867         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109868         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109869         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109871 2007-01-15  Bruno Haible  <bruno@clisp.org>
109873         * modules/striconveh: New file.
109874         * lib/striconveh.h: New file.
109875         * lib/striconveh.c: New file.
109876         * MODULES.html.sh (Internationalization functions): Add striconveh.
109878         * modules/striconveh-tests: New file.
109879         * tests/test-striconveh.c: New file.
109881 2007-01-15  Bruno Haible  <bruno@clisp.org>
109883         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109884         not from GNU libiconv or GNU libc.
109886 2007-01-15  Bruno Haible  <bruno@clisp.org>
109888         * doc/gnulib-intro.texi (Copyright): Explain the different license
109889         terms for module descriptions, autoconf macros, tests, documentation.
109891 2007-01-14  Bruno Haible  <bruno@clisp.org>
109893         * modules/striconv-tests: New file.
109894         * tests/test-striconv.c: New file.
109896 2007-01-14  Bruno Haible  <bruno@clisp.org>
109898         * modules/iconv-tests: New file.
109899         * tests/test-iconv.c: New file.
109901 2007-01-14  Bruno Haible  <bruno@clisp.org>
109903         * gnulib-tool (func_get_license): For test modules, use the license of
109904         the main module.
109906 2007-01-14  Bruno Haible  <bruno@clisp.org>
109908         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109909         if iconv is found to exist.
109911 2007-01-14  Bruno Haible  <bruno@clisp.org>
109913         * modules/c-ctype-tests: New file.
109914         * tests/test-c-ctype.c: New file.
109916 2007-01-14  Bruno Haible  <bruno@clisp.org>
109918         * modules/binary-io-tests: New file.
109919         * tests/test-binary-io.sh: New file.
109920         * tests/test-binary-io.c: New file.
109922 2007-01-14  Bruno Haible  <bruno@clisp.org>
109924         * modules/array-oset-tests: New file.
109925         * tests/test-array_oset.c: New file.
109927 2007-01-14  Bruno Haible  <bruno@clisp.org>
109929         * modules/array-list-tests: New file.
109930         * tests/test-array_list.c: New file.
109932 2007-01-14  Bruno Haible  <bruno@clisp.org>
109934         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109935         and make.
109936         Reported by Simon Josefsson in
109937         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
109939 2007-01-14  Bruno Haible  <bruno@clisp.org>
109941         * modules/allocsa-tests: New file.
109942         * tests/test-allocsa.c: New file.
109944 2007-01-14  Bruno Haible  <bruno@clisp.org>
109946         * modules/fchdir (Depends-on): Add absolute-header.
109947         * modules/unistd (Depends-on): Likewise.
109949 2006-12-30  Bruno Haible  <bruno@clisp.org>
109951         * modules/fchdir: New file.
109952         * modules/unistd (Files): Add lib/unistd_.h.
109953         (Makefile.am): Generate unistd.h from unistd_.h.
109954         * lib/fchdir.c: New file.
109955         * lib/dirent_.h: New file.
109956         * lib/unistd_.h: New file.
109957         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109958         * m4/fchdir.m4: New file.
109959         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109960         (gl_HEADER_UNISTD): Invoke it.
109961         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109962         function.
109963         * lib/backupfile.c (opendir, closedir): Undefine.
109964         * lib/chown.c (open, close): Undefine.
109965         * lib/clean-temp.c (open, close): Undefine.
109966         * lib/copy-file.c (open, close): Undefine.
109967         * lib/execute.c (open, close): Undefine.
109968         * lib/fsusage.c (open, close): Undefine.
109969         * lib/gc-gnulib.c (open, close): Undefine.
109970         * lib/getcwd.c (opendir, closedir): Undefine.
109971         * lib/glob.c (opendir, closedir): Undefine.
109972         * lib/javacomp.c (open, close): Undefine.
109973         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109974         * lib/openat-proc.c (open, close): Undefine.
109975         * lib/pagealign_alloc.c (open, close): Undefine.
109976         * lib/pipe.c (open, close): Undefine.
109977         * lib/progreloc.c (open, close): Undefine.
109978         * lib/savedir.c (opendir, closedir): Undefine.
109979         * lib/utime.c (open, close): Undefine.
109980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109982 2007-01-10  Bruno Haible  <bruno@clisp.org>
109984         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109986 2007-01-12  Eric Blake  <ebb9@byu.net>
109988         Provide a robust <wchar.h>.  Further simplifications are now
109989         possible in other modules, but not included here.
109990         * modules/wchar: New module.
109991         * m4/wchar.m4: New file.
109992         * lib/wchar_.h: Likewise.
109993         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109994         of the new module.
109995         * MODULES.html.sh (Extended multibyte and wide character utilities):
109996         New section.
109998 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110000         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110001         to a reasonable default for memory allocation.
110002         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110003         file system that reports garbage st_size values for symlinks.
110004         Problem reported by Liyang Hu.
110006 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110008         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110009         Emacs .#* auto-save files).
110011 2007-01-11  Bruno Haible  <bruno@clisp.org>
110013         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110014         directory.
110016 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110018         Use @...@ consistently in lib/wctype_.h.
110019         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110020         on it being set to 1 or 0.
110021         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110022         go back to AC_SUBSTing it.
110023         * modules/wctype (Makefile.am): Undo previous change.
110025 2007-01-10  Eric Blake  <ebb9@byu.net>
110027         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110028         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110029         * modules/wctype (Makefile.am): Likewise.
110030         Reported by Chris McGuire.
110032 2007-01-10  Jim Meyering  <jim@meyering.net>
110034         fts.c: a small readability/maintainability improvement
110035         * lib/fts.c (fts_read): Make this code slightly more readable and
110036         maintainable by hoisting the "sp->fts_cur = p" assignments to
110037         immediately follow the statements that set P.  Derived from
110038         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110040 2007-01-10  Eric Blake  <ebb9@byu.net>
110042         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110043         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110045         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110046         Reported by Chris McGuire.
110048 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110050         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110051         in sed script.
110053 2007-01-09  Bruno Haible  <bruno@clisp.org>
110055         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110056         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110057         variables.
110058         (func_module): Use them.
110060 2007-01-09  Bruno Haible  <bruno@clisp.org>
110062         * modules/unistr/base: New file.
110063         * lib/unistr.h: New file.
110065         * modules/unistr/u8-to-u16: New file.
110066         * lib/unistr/u8-to-u16.c: New file.
110068         * modules/unistr/u8-to-u32: New file.
110069         * lib/unistr/u8-to-u32.c: New file.
110071         * modules/unistr/u16-to-u8: New file.
110072         * lib/unistr/u16-to-u8.c: New file.
110074         * modules/unistr/u16-to-u32: New file.
110075         * lib/unistr/u16-to-u32.c: New file.
110077         * modules/unistr/u32-to-u8: New file.
110078         * lib/unistr/u32-to-u8.c: New file.
110080         * modules/unistr/u32-to-u16: New file.
110081         * lib/unistr/u32-to-u16.c: New file.
110083         * modules/unistr/u8-check: New file.
110084         * modules/unistr/u16-check: New file.
110085         * modules/unistr/u32-check: New file.
110086         * lib/unistr/u8-check.c: New file.
110087         * lib/unistr/u16-check.c: New file.
110088         * lib/unistr/u32-check.c: New file.
110090         * modules/unistr/u8-chr: New file.
110091         * modules/unistr/u16-chr: New file.
110092         * modules/unistr/u32-chr: New file.
110093         * lib/unistr/u8-chr.c: New file.
110094         * lib/unistr/u16-chr.c: New file.
110095         * lib/unistr/u32-chr.c: New file.
110097         * modules/unistr/u8-cmp: New file.
110098         * modules/unistr/u16-cmp: New file.
110099         * modules/unistr/u32-cmp: New file.
110100         * lib/unistr/u8-cmp.c: New file.
110101         * lib/unistr/u16-cmp.c: New file.
110102         * lib/unistr/u32-cmp.c: New file.
110104         * modules/unistr/u8-cpy: New file.
110105         * modules/unistr/u16-cpy: New file.
110106         * modules/unistr/u32-cpy: New file.
110107         * lib/unistr/u8-cpy.c: New file.
110108         * lib/unistr/u16-cpy.c: New file.
110109         * lib/unistr/u32-cpy.c: New file.
110110         * lib/unistr/u-cpy.h: New file.
110112         * modules/unistr/u8-cpy-alloc: New file.
110113         * modules/unistr/u16-cpy-alloc: New file.
110114         * modules/unistr/u32-cpy-alloc: New file.
110115         * lib/unistr/u8-cpy-alloc.c: New file.
110116         * lib/unistr/u16-cpy-alloc.c: New file.
110117         * lib/unistr/u32-cpy-alloc.c: New file.
110118         * lib/unistr/u-cpy-alloc.h: New file.
110120         * modules/unistr/u8-endswith: New file.
110121         * modules/unistr/u16-endswith: New file.
110122         * modules/unistr/u32-endswith: New file.
110123         * lib/unistr/u8-endswith.c: New file.
110124         * lib/unistr/u16-endswith.c: New file.
110125         * lib/unistr/u32-endswith.c: New file.
110126         * lib/unistr/u-endswith.h: New file.
110128         * modules/unistr/u8-mblen: New file.
110129         * modules/unistr/u16-mblen: New file.
110130         * modules/unistr/u32-mblen: New file.
110131         * lib/unistr/u8-mblen.c: New file.
110132         * lib/unistr/u16-mblen.c: New file.
110133         * lib/unistr/u32-mblen.c: New file.
110135         * modules/unistr/u8-mbtouc: New file.
110136         * modules/unistr/u16-mbtouc: New file.
110137         * modules/unistr/u32-mbtouc: New file.
110138         * lib/unistr/u8-mbtouc.c: New file.
110139         * lib/unistr/u16-mbtouc.c: New file.
110140         * lib/unistr/u32-mbtouc.c: New file.
110142         * modules/unistr/u8-mbtouc-safe: New file.
110143         * modules/unistr/u16-mbtouc-safe: New file.
110144         * modules/unistr/u32-mbtouc-safe: New file.
110145         * lib/unistr/u8-mbtouc-safe.c: New file.
110146         * lib/unistr/u16-mbtouc-safe.c: New file.
110147         * lib/unistr/u32-mbtouc-safe.c: New file.
110149         * modules/unistr/u8-move: New file.
110150         * modules/unistr/u16-move: New file.
110151         * modules/unistr/u32-move: New file.
110152         * lib/unistr/u8-move.c: New file.
110153         * lib/unistr/u16-move.c: New file.
110154         * lib/unistr/u32-move.c: New file.
110155         * lib/unistr/u-move.h: New file.
110157         * modules/unistr/u8-next: New file.
110158         * modules/unistr/u16-next: New file.
110159         * modules/unistr/u32-next: New file.
110160         * lib/unistr/u8-next.c: New file.
110161         * lib/unistr/u16-next.c: New file.
110162         * lib/unistr/u32-next.c: New file.
110164         * modules/unistr/u8-prev: New file.
110165         * modules/unistr/u16-prev: New file.
110166         * modules/unistr/u32-prev: New file.
110167         * lib/unistr/u8-prev.c: New file.
110168         * lib/unistr/u16-prev.c: New file.
110169         * lib/unistr/u32-prev.c: New file.
110171         * modules/unistr/u8-set: New file.
110172         * modules/unistr/u16-set: New file.
110173         * modules/unistr/u32-set: New file.
110174         * lib/unistr/u8-set.c: New file.
110175         * lib/unistr/u16-set.c: New file.
110176         * lib/unistr/u32-set.c: New file.
110177         * lib/unistr/u-set.h: New file.
110179         * modules/unistr/u8-startswith: New file.
110180         * modules/unistr/u16-startswith: New file.
110181         * modules/unistr/u32-startswith: New file.
110182         * lib/unistr/u8-startswith.c: New file.
110183         * lib/unistr/u16-startswith.c: New file.
110184         * lib/unistr/u32-startswith.c: New file.
110185         * lib/unistr/u-startswith.h: New file.
110187         * modules/unistr/u8-stpcpy: New file.
110188         * modules/unistr/u16-stpcpy: New file.
110189         * modules/unistr/u32-stpcpy: New file.
110190         * lib/unistr/u8-stpcpy.c: New file.
110191         * lib/unistr/u16-stpcpy.c: New file.
110192         * lib/unistr/u32-stpcpy.c: New file.
110193         * lib/unistr/u-stpcpy.h: New file.
110195         * modules/unistr/u8-stpncpy: New file.
110196         * modules/unistr/u16-stpncpy: New file.
110197         * modules/unistr/u32-stpncpy: New file.
110198         * lib/unistr/u8-stpncpy.c: New file.
110199         * lib/unistr/u16-stpncpy.c: New file.
110200         * lib/unistr/u32-stpncpy.c: New file.
110201         * lib/unistr/u-stpncpy.h: New file.
110203         * modules/unistr/u8-strcat: New file.
110204         * modules/unistr/u16-strcat: New file.
110205         * modules/unistr/u32-strcat: New file.
110206         * lib/unistr/u8-strcat.c: New file.
110207         * lib/unistr/u16-strcat.c: New file.
110208         * lib/unistr/u32-strcat.c: New file.
110209         * lib/unistr/u-strcat.h: New file.
110211         * modules/unistr/u8-strchr: New file.
110212         * modules/unistr/u16-strchr: New file.
110213         * modules/unistr/u32-strchr: New file.
110214         * lib/unistr/u8-strchr.c: New file.
110215         * lib/unistr/u16-strchr.c: New file.
110216         * lib/unistr/u32-strchr.c: New file.
110218         * modules/unistr/u8-strcmp: New file.
110219         * modules/unistr/u16-strcmp: New file.
110220         * modules/unistr/u32-strcmp: New file.
110221         * lib/unistr/u8-strcmp.c: New file.
110222         * lib/unistr/u16-strcmp.c: New file.
110223         * lib/unistr/u32-strcmp.c: New file.
110225         * modules/unistr/u8-strcpy: New file.
110226         * modules/unistr/u16-strcpy: New file.
110227         * modules/unistr/u32-strcpy: New file.
110228         * lib/unistr/u8-strcpy.c: New file.
110229         * lib/unistr/u16-strcpy.c: New file.
110230         * lib/unistr/u32-strcpy.c: New file.
110231         * lib/unistr/u-strcpy.h: New file.
110233         * modules/unistr/u8-strcspn: New file.
110234         * modules/unistr/u16-strcspn: New file.
110235         * modules/unistr/u32-strcspn: New file.
110236         * lib/unistr/u8-strcspn.c: New file.
110237         * lib/unistr/u16-strcspn.c: New file.
110238         * lib/unistr/u32-strcspn.c: New file.
110239         * lib/unistr/u-strcspn.h: New file.
110241         * modules/unistr/u8-strdup: New file.
110242         * modules/unistr/u16-strdup: New file.
110243         * modules/unistr/u32-strdup: New file.
110244         * lib/unistr/u8-strdup.c: New file.
110245         * lib/unistr/u16-strdup.c: New file.
110246         * lib/unistr/u32-strdup.c: New file.
110247         * lib/unistr/u-strdup.h: New file.
110249         * modules/unistr/u8-strlen: New file.
110250         * modules/unistr/u16-strlen: New file.
110251         * modules/unistr/u32-strlen: New file.
110252         * lib/unistr/u8-strlen.c: New file.
110253         * lib/unistr/u16-strlen.c: New file.
110254         * lib/unistr/u32-strlen.c: New file.
110255         * lib/unistr/u-strlen.h: New file.
110257         * modules/unistr/u8-strmblen: New file.
110258         * modules/unistr/u16-strmblen: New file.
110259         * modules/unistr/u32-strmblen: New file.
110260         * lib/unistr/u8-strmblen.c: New file.
110261         * lib/unistr/u16-strmblen.c: New file.
110262         * lib/unistr/u32-strmblen.c: New file.
110264         * modules/unistr/u8-strmbtouc: New file.
110265         * modules/unistr/u16-strmbtouc: New file.
110266         * modules/unistr/u32-strmbtouc: New file.
110267         * lib/unistr/u8-strmbtouc.c: New file.
110268         * lib/unistr/u16-strmbtouc.c: New file.
110269         * lib/unistr/u32-strmbtouc.c: New file.
110271         * modules/unistr/u8-strncat: New file.
110272         * modules/unistr/u16-strncat: New file.
110273         * modules/unistr/u32-strncat: New file.
110274         * lib/unistr/u8-strncat.c: New file.
110275         * lib/unistr/u16-strncat.c: New file.
110276         * lib/unistr/u32-strncat.c: New file.
110277         * lib/unistr/u-strncat.h: New file.
110279         * modules/unistr/u8-strncmp: New file.
110280         * modules/unistr/u16-strncmp: New file.
110281         * modules/unistr/u32-strncmp: New file.
110282         * lib/unistr/u8-strncmp.c: New file.
110283         * lib/unistr/u16-strncmp.c: New file.
110284         * lib/unistr/u32-strncmp.c: New file.
110286         * modules/unistr/u8-strncpy: New file.
110287         * modules/unistr/u16-strncpy: New file.
110288         * modules/unistr/u32-strncpy: New file.
110289         * lib/unistr/u8-strncpy.c: New file.
110290         * lib/unistr/u16-strncpy.c: New file.
110291         * lib/unistr/u32-strncpy.c: New file.
110292         * lib/unistr/u-strncpy.h: New file.
110294         * modules/unistr/u8-strnlen: New file.
110295         * modules/unistr/u16-strnlen: New file.
110296         * modules/unistr/u32-strnlen: New file.
110297         * lib/unistr/u8-strnlen.c: New file.
110298         * lib/unistr/u16-strnlen.c: New file.
110299         * lib/unistr/u32-strnlen.c: New file.
110300         * lib/unistr/u-strnlen.h: New file.
110302         * modules/unistr/u8-strpbrk: New file.
110303         * modules/unistr/u16-strpbrk: New file.
110304         * modules/unistr/u32-strpbrk: New file.
110305         * lib/unistr/u8-strpbrk.c: New file.
110306         * lib/unistr/u16-strpbrk.c: New file.
110307         * lib/unistr/u32-strpbrk.c: New file.
110308         * lib/unistr/u-strpbrk.h: New file.
110310         * modules/unistr/u8-strrchr: New file.
110311         * modules/unistr/u16-strrchr: New file.
110312         * modules/unistr/u32-strrchr: New file.
110313         * lib/unistr/u8-strrchr.c: New file.
110314         * lib/unistr/u16-strrchr.c: New file.
110315         * lib/unistr/u32-strrchr.c: New file.
110317         * modules/unistr/u8-strspn: New file.
110318         * modules/unistr/u16-strspn: New file.
110319         * modules/unistr/u32-strspn: New file.
110320         * lib/unistr/u8-strspn.c: New file.
110321         * lib/unistr/u16-strspn.c: New file.
110322         * lib/unistr/u32-strspn.c: New file.
110323         * lib/unistr/u-strspn.h: New file.
110325         * modules/unistr/u8-strstr: New file.
110326         * modules/unistr/u16-strstr: New file.
110327         * modules/unistr/u32-strstr: New file.
110328         * lib/unistr/u8-strstr.c: New file.
110329         * lib/unistr/u16-strstr.c: New file.
110330         * lib/unistr/u32-strstr.c: New file.
110331         * lib/unistr/u-strstr.h: New file.
110333         * modules/unistr/u8-strtok: New file.
110334         * modules/unistr/u16-strtok: New file.
110335         * modules/unistr/u32-strtok: New file.
110336         * lib/unistr/u8-strtok.c: New file.
110337         * lib/unistr/u16-strtok.c: New file.
110338         * lib/unistr/u32-strtok.c: New file.
110339         * lib/unistr/u-strtok.h: New file.
110341         * modules/unistr/u8-uctomb: New file.
110342         * modules/unistr/u16-uctomb: New file.
110343         * modules/unistr/u32-uctomb: New file.
110344         * lib/unistr/u8-uctomb.c: New file.
110345         * lib/unistr/u16-uctomb.c: New file.
110346         * lib/unistr/u32-uctomb.c: New file.
110348         * MODULES.html.sh (Unicode string functions): Add the new modules.
110350 2007-01-08  Bruno Haible  <bruno@clisp.org>
110352         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110353         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110354         subdirectories.
110356 2007-01-08  Karl Berry  <karl@gnu.org>
110358         * doc/error.texi: mention that main() fns must set program_name
110359         when progname is used.
110361 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110363         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110364         WCTYPE_H is empty, for the benefit of builds from non-distclean
110365         directories.  Problem reported by Eric Blake in
110366         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110368 2007-01-08  Bruno Haible  <bruno@clisp.org>
110370         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110371         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110372         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110373         PROVIDE_CANONICALIZE_FILENAME_MODE.
110374         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110376 2007-01-08  Bruno Haible  <bruno@clisp.org>
110378         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110379         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110380         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110381         * lib/fts.c: Likewise.
110382         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110384 2006-12-25  Bruno Haible  <bruno@clisp.org>
110386         * modules/utf8-ucs4-safe: New file.
110387         * lib/utf8-ucs4-safe.h: New file.
110388         * lib/unistr/utf8-ucs4-safe.c: New file.
110390         * modules/utf16-ucs4-safe: New file.
110391         * lib/utf16-ucs4-safe.h: New file.
110392         * lib/unistr/utf16-ucs4-safe.c: New file.
110394         * MODULES.html.sh (Unicode string functions): Add the new modules.
110396 2007-01-08  Bruno Haible  <bruno@clisp.org>
110398         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110399         (Depends-on): Add unitypes.
110400         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110401         (u8_mbtouc_aux): Move out to separate file.
110402         (u8_mbtouc): Use ucs4_t, uint8_t types.
110403         * lib/unistr/utf8-ucs4.c: New file.
110405         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110406         (Depends-on): Add unitypes.
110407         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110408         (u16_mbtouc_aux): Move out to separate file.
110409         (u16_mbtouc): Use ucs4_t, uint16_t types.
110410         * lib/unistr/utf16-ucs4.c: New file.
110412         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110413         (Depends-on): Add unitypes.
110414         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110415         (u8_uctomb_aux): Move out to separate file.
110416         (u8_uctomb): Use ucs4_t, uint8_t types.
110417         * lib/unistr/ucs4-utf8.c: New file.
110419         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110420         (Depends-on): Add unitypes.
110421         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110422         (u16_uctomb_aux): Move out to separate file.
110423         (u16_uctomb): Use ucs4_t, uint16_t types.
110424         * lib/unistr/ucs4-utf16.c: New file.
110426 2006-12-25  Bruno Haible  <bruno@clisp.org>
110428         * modules/unitypes: New file.
110429         * lib/unitypes.h: New file.
110430         * MODULES.html.sh (func_all_modules): New section "Unicode string
110431         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110432         this section. Add unitypes.
110434 2007-01-08  Bruno Haible  <bruno@clisp.org>
110436         Avoid variable names that conflict with those from libtool.
110437         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110438         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110439         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110440         library_names_spec to acl_library_names_spec, hardcode_* to
110441         acl_hardcode_*.
110442         Reported by Ralf Wildenhues.
110444 2007-01-08  Bruno Haible  <bruno@clisp.org>
110446         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110447         definition.
110448         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110449         definition.
110450         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110451         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110452         definition.
110453         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110454         definition.
110455         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110456         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110457         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110458         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110459         definition.
110460         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110461         definition.
110462         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110463         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110464         GC_USE_<algorithm>.
110465         * lib/gc-libgcrypt.c: Likewise.
110466         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110467         * modules/gc-arctwo (configure.ac): Likewise.
110468         * modules/gc-des (configure.ac): Likewise.
110469         * modules/gc-hmac-md5 (configure.ac): Likewise.
110470         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110471         * modules/gc-md2 (configure.ac): Likewise.
110472         * modules/gc-md4 (configure.ac): Likewise.
110473         * modules/gc-md5 (configure.ac): Likewise.
110474         * modules/gc-random (configure.ac): Likewise.
110475         * modules/gc-rijndael (configure.ac): Likewise.
110476         * modules/gc-sha1 (configure.ac): Likewise.
110478 2007-01-08  Bruno Haible  <bruno@clisp.org>
110480         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110481         macro definition.
110482         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110483         definition.
110484         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110485         definition.
110486         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110487         * modules/fcntl-safer (configure.ac): Likewise.
110488         * modules/fopen-safer (configure.ac): Likewise.
110489         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110490         GNULIB_FWRITEERROR macro definition.
110492 2007-01-08  Bruno Haible  <bruno@clisp.org>
110494         * m4/gnulib-common.m4: New file.
110495         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110496         (func_get_filelist): Add m4/gnulib-common.m4.
110498 2007-01-08  Bruno Haible  <bruno@clisp.org>
110500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110501         command.
110503 2007-01-08  Jim Meyering  <jim@meyering.net>
110505         Use a more robust test for a "can't happen" condition.
110506         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110507         narrowed the st_size value.  Presuming the "can't happen" condition
110508         is true, that narrowing could conceivably convert an invalid st_size
110509         value into a valid one.  Instead, use a change based on Matthew
110510         Woehlke's original patch.
110512         Slight readability improvement: use an assert-like macro
110513         in place of literal "abort ()" uses.
110514         * lib/fts.c (fts_assert): Define.
110515         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
110516         Use this macro instead of a bare 'abort'.
110518 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110520         Don't worry about using IRIX 5.3's wctype.h broken definitions;
110521         simply work around them.
110522         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
110523         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
110524         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
110525         declaring.
110526         Don't bother to define as macros, since the standard doesn't require it.
110527         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
110528         longer worry about IRIX 5.3.
110529         (HAVE_WCTYPE_CTMP_BUG): Remove.
110531 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110533         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
110534         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
110535         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
110536         Problems reported by Georg Schwarz for IRIX 5.3.
110538         * gnulib-tool (autoconf_minversion): Take the maximum version number
110539         found, not the minimum.  Problem reported by James Youngman.
110541 2007-01-03  Karl Berry  <karl@gnu.org>
110543         * doc/error.texi: new file, explaining interaction with progname.
110544         * doc/gnulib.texi: include it.  Update copyright.
110546 2007-01-03  Simon Josefsson  <simon@josefsson.org>
110548         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
110549         AC_CANONICAL_HOST, to improve autobuild outputs.
110551 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
110552             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
110554         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
110555         sockets, server sockets, and other file descriptors.  Count errors
110556         to compute the return value.  Reorder the code a bit to be easier
110557         to follow.  Don't set event bits that were not requested (except
110558         POLLERR and POLLHUP).
110560 2007-01-01  Bruno Haible  <bruno@clisp.org>
110562         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
110564 2007-01-03  Jim Meyering  <jim@meyering.net>
110566         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
110568 2007-01-02  Bruno Haible  <bruno@clisp.org>
110570         * modules/settime (Include): Require timespec.h.
110571         * modules/nanosleep (Include): Likewise.
110573 2007-01-01  Bruno Haible  <bruno@clisp.org>
110575         * gnulib-tool (func_emit_copyright_notice): Bump year.
110576         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
110578 2007-01-01  Bruno Haible  <bruno@clisp.org>
110580         Improve support for OpenBSD.
110581         * build-aux/config.rpath (libname_spec): Export.
110582         (library_names_spec): New variable. Export.
110583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
110584         library_names_spec from the config.rpath output. Locate shared library
110585         through the name pattern in library_names_spec.
110587 2007-01-01  Eric Blake  <ebb9@byu.net>
110589         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
110591 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110593         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110594         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110595         assume the C locale, and avoid an "eval" that could cause trouble.
110596         Problem with SORT reported by Bob Proulx.
110598         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110599         Define.  Trivial patch from Henning Nielsen Lund, originally
110600         sent to bug-grep@gnu.org today.
110602 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110604         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110605         struct stat.  Problem reported by Henning Nielsen Lund.
110606         * lib/acl.c: Include acl.h first, to check interface.  Don't
110607         bother to include sys/types.h and sys/stat.h again.
110609 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
110611         Import the following change from libc; problem reported by
110612         Sven Verdoolaege.
110614         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110616         [BZ #1373]
110617         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110619 2006-12-28  Jim Meyering  <jim@meyering.net>
110621         * build-aux/announce-gen: Do not assume that the package
110622         builds any of tar.gz, tar.bz2, and .xdelta files.
110623         Suggestion from Simon Josefsson.
110625 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110627         * modules/announce-gen: New file.
110629 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110631         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110632         handles its gotchas now.
110633         * lib/mbswidth.c: Likewise.
110634         * lib/wcwidth.h: Likewise.
110635         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110636         and iswcntrl; the wctype module does this stuff now.
110637         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110639         * modules/mbchar (Depends-on): Add wctype.
110640         * modules/mbswidth (Depends-on): Likewise.
110641         * modules/wcwidth (Depends-on): Likewise.
110643 2006-12-27  Eric Blake  <ebb9@byu.net>
110645         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110646         module uses more than what <wctype.h> is required to provide.
110648 2006-12-26  Eric Blake  <ebb9@byu.net>
110650         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110652 2006-12-26  Eric Blake  <ebb9@byu.net>
110654         * modules/absolute-header: New module.
110655         * modules/fcntl (Depends-on): Depend on it.
110656         * modules/inttypes (Depends-on): Likewise.
110657         * modules/stdint (Depends-on): Likewise.
110658         * modules/sys_stat (Depends-on): Likewise.
110659         * modules/wctype (Depends-on): Likewise.
110660         * MODULES.html.sh (Support for building libraries and
110661         executables): Document it.
110663 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110665         * gnulib-tool (SED): Remove, undoing previous change.
110666         The problem was that it broke coreutils on Solaris, because
110667         "sed --posix" leaked into a makefile.
110668         (sed): New alias, if 'alias' and GNU sed.
110670 2006-12-24  Jim Meyering  <jim@meyering.net>
110672         Work around an fchownat bug in glibc-2.4:
110673         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110674         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110675         in spite of the -P option.
110676         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110677         New macros.
110678         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110679         * modules/openat (Files): Add lib/fchownat.c.
110680         * lib/openat.c (fchownat): Don't define here.  Move to...
110681         * lib/fchownat.c: ...this new file.
110683 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110685         Fix bug reported by Bruno Haible in
110686         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110687         where quotearg.c didn't compile on Mac OS X 10.2 because it
110688         lacks <wchar.h> and wint_t.
110689         * lib/wctype_.h (__wctype_wint_t): New type.
110690         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110691         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110692         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110693         Arg is now of type __wctype_wint_t, not wint_t.
110694         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110695         substitute HAVE_WINT_T.
110696         * modules/wctype (Files): Add m4/wint_t.m4.
110697         (wctype.h): Substitute HAVE_WINT_T.
110699 2006-12-23  Bruno Haible  <bruno@clisp.org>
110701         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110703 2006-12-23  Bruno Haible  <bruno@clisp.org>
110705         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110706         S_ISLNK.
110707         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110708         mingw.
110710 2006-12-22  Bruno Haible  <bruno@clisp.org>
110712         * lib/copy-file.c: Include acl.h.
110713         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110714         Close the file descriptors only after being done with copy_acl.
110715         * modules/copy-file (Depends-on): Add acl.
110717 2006-12-22  Bruno Haible  <bruno@clisp.org>
110719         * gnulib-tool (SED): New variable.
110720         Use $SED instead of sed everywhere.
110722 2006-12-22  Bruno Haible  <bruno@clisp.org>
110724         * modules/no-c++: New file.
110725         * m4/no-c++.m4: New file.
110726         * MODULES.html.sh (Support for building libraries and executables):
110727         Add no-c++.
110729 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110731         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110732         Include <limits.h>, and use its INT_MAX to rewrite the
110733         j loop so that it does not overflow 'int'.  Problem reported by
110734         Ralf Wildenhues in
110735         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110736         Play it safe by shifting left by 1 rather than multiplying by 2,
110737         as GCC is less likely to optimize this away when the value
110738         is signed (when it assumes overflow leads to undefined behavior).
110739         Also, don't assume time_t uses two's complement.
110741 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110743         * MODULES.html.sh: New module wctype.
110744         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110745         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110746         <wctype.h>, since the new wctype module should fix this.
110747         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110748         the wctype module should arrange for it.
110749         * lib/regex_internal.h: Likewise.
110750         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110751         since the wctype module should handle this now.
110752         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110753         * modules/fnmatch (Depends-on): Add wctype.
110754         * modules/quotearg (Depends-on): Likewise.
110755         * modules/regex (Depends-on): Likewise.
110757 2006-12-19  Bruno Haible  <bruno@clisp.org>
110759         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110760         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110762 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110764         * modules/savewd (Depends-on): Fix dependency on fcntl.
110766 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110768         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110769         conforms to C99, rather than relying on the user's environment
110770         setting of STDINT_H.
110772 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110773         and Eric Blake  <ebb9@byu.net>
110775         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110776         This is more consistent with the other defines here.
110777         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110778         Port to z/OS.  Problem reported by Paul Gilmartin.
110779         Change local vars to use gl_ prefix rather than ac_.
110780         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110781         with other defines.
110782         * modules/double-slash-root: New module.
110783         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110784         (Depends-on): Add double-slash-root.
110785         * MODULES.html.sh (File system functions): Mention new module.
110787 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110789         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110790         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110791         This is for the benefit of gzip, which doesn't do i18n.
110793 2006-12-12  Jim Meyering  <jim@meyering.net>
110795         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110796         Reported by Andreas Schwab <schwab@suse.de>.
110798 2006-12-12  Bruno Haible  <bruno@clisp.org>
110800         Merge these changes.
110801         2006-09-05  Bruno Haible  <bruno@clisp.org>
110802         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110803         iconv_alloc succeeded.
110804         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110805         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110806         test for " && dest " at the end - dest is always != NULL there. Call
110807         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110808         with 2xNULL arguments, also to flush the state storage. Handle the
110809         IRIX iconv behaviour. Realloc the final result, to throw away unused
110810         memory.
110812 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110815         and fchmodat unconditionally, since glibc 2.4 has them.
110816         Problem reported by Arkadiusz Miskiewicz.
110818 2006-12-10  Bruno Haible  <bruno@clisp.org>
110820         * gnulib-tool (func_import): Show the include files only for those
110821         modules that are copied and specified.
110822         Reported by Karl Berry.
110824 2006-12-08  Jim Meyering  <jim@meyering.net>
110826         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110827         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110829         * build-aux/announce-gen: Add two new options, both optional:
110830         --bootstrap-tools=TOOL_LIST
110831               a comma-separated list of tools, e.g.,
110832               autoconf,automake,bison,gnulib
110833         --gnulib-snapshot-date=DATE
110834               if gnulib is in the bootstrap tool list,
110835               then report this as the snapshot date.
110836               If not specified, use the current date/time.
110837               If you specify a date here, be sure it's UTC.
110839 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110841         * tests/test-argp-2.sh: Fix test to match actual output.
110842         (func_compare): Fix sed script to be portable.
110844 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110846         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110847         workaround for this case.  It is not autoconfigured now; offhand
110848         it's hard to see how to autoconfigure it.
110850 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110852         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110853         a directory that is about to be chowned.  Such a directory's
110854         initial file permissions should permit the owner only and this
110855         should not be changed until after the chown, since the group and
110856         other bits would be incorrect if they granted permission before
110857         the chown.
110859         Fix porting problem for iswctype reported by Georg Schwarz in:
110860         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110861         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110862         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110864         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110866 2006-12-03  Jim Meyering  <jim@meyering.net>
110868         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110869         p->fts_statp may not yet be defined.
110870         (fts_read): Instead, set it in the caller, once p->fts_statp is
110871         sure to be defined, and corresponds to a top-level directory.
110872         This bug made du -x fail.  Here's the coreutils test case:
110873         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110874         Reported by Mike Frysinger.
110876 2006-12-01  Jim Meyering  <jim@meyering.net>
110878         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110879         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110880         Reported by Simon Josefsson.
110882 2006-11-30  Jim Meyering  <jim@meyering.net>
110884         * m4/warning.m4: Use the all-permissive copyright notice
110885         recommended by RMS (rather than LGPL).
110886         * m4/vararrays.m4: Likewise.
110887         * m4/flexmember.m4: Likewise.
110889 2006-11-29  Bruno Haible  <bruno@clisp.org>
110891         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110892         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110893         using +=.
110894         Reported by Simon Josefsson <simon@josefsson.org>.
110896 2006-11-28  James Youngman  <jay@gnu.org>
110898         * README: Advise users that they might find the bug-gnulib@gnu.org
110899         and autotools-announce@gnu.org mailing lists useful.
110901 2006-11-28  Bruno Haible  <bruno@clisp.org>
110903         * m4/ptrdiff_max.m4: Remove file.
110905 2006-11-21  Bruno Haible  <bruno@clisp.org>
110907         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110908         _AC_COMPUTE_INT.
110909         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110910         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110911         _AC_COMPUTE_INT.
110912         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110913         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110914         _AC_COMPUTE_INT.
110915         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110917 2006-11-28  Jim Meyering  <jim@meyering.net>
110919         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110920         warning from "gcc -Wshadow" about shadowing the builtin.
110922 2006-11-27  Bruno Haible  <bruno@clisp.org>
110924         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110925         _AC_COMPUTE_INT.
110926         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110928 2006-11-27  Bruno Haible  <bruno@clisp.org>
110929             Paul Eggert  <eggert@cs.ucla.edu>
110931         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110933 2006-11-26  Bruno Haible  <bruno@clisp.org>
110935         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110936         noinst_LTLIBRARIES.
110938 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
110939             Bruno Haible  <bruno@clisp.org>
110941         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
110942         if compiling with "gcc -ansi".
110944 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
110946         Fix some incompatibilities with gcc -ansi -pedantic.
110947         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110948         if compiling pedantically with GCC, unless it's C99 or later.
110949         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110950         it mishandles gcc -ansi -pedantic as well.
110951         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110952         if gcc -pedantic.
110953         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110954         initializers for struct if -pedantic, unless it's C99 or later.
110956 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110958         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110959         Don't close an fd more than once. Identical atimes indicate
110960         success, not failure.
110962 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110964         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110966 2006-11-23  Jim Meyering  <jim@meyering.net>
110968         * build-aux/announce-gen: New file.  From coreutils.
110970 2006-11-22  Jim Meyering  <jim@meyering.net>
110972         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110973         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110974         (fts_read): Use a temporary to narrow the overused st_size member
110975         before using it in a switch statement.  Reported by Matthew Woehlke.
110977         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110978         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110980 2006-11-20  Bruno Haible  <bruno@clisp.org>
110982         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110983         changequote instead of pairs of brackets.
110984         Reported by Andreas Schwab <schwab@suse.de>.
110986 2006-11-21  Jim Meyering  <jim@meyering.net>
110988         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110989         so as to remain compatible with older compilers.
110990         Patch from Michael Deutschmann.
110992 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110994         * MODULES.html.sh (File system functions): Add openat.
110996         * lib/openat.h (rpl_fstatat): New macro, if
110997         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110998         (fstatat): Define to rpl_fstatat under the same conditions,
110999         unless COMPILING_FSTATAT.
111000         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111001         seems to have the bug.
111002         * lib/fstatat.c: New file.
111003         * modules/openat (Files): Add it.
111005 2006-11-20  Bruno Haible  <bruno@clisp.org>
111007         * Makefile: New file.
111009 2006-11-20  Jim Meyering  <jim@meyering.net>
111011         The beginnings of syntax-related checks for gnulib.
111012         * lib/Makefile: New file.
111013         * lib/t-idcache: New script.  Ensure that the two halves of
111014         idcache.c stay in sync.
111016         * lib/idcache.c: Adjust comments in user- and group- portions to
111017         be more accurate, and to be consistent with one another.
111019 2006-11-20  Jim Meyering  <jim@meyering.net>
111021         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111022         continue using the flexible array member (thus, this module performs
111023         half as many malloc calls), with the addition that...
111024         (getgroup, getuser): Consistently record a non-match via an empty
111025         "name" string, and map an empty string match to a NULL return value.
111026         * modules/idcache (Depends-on): Re-add flexmember.
111028         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111029         (getuidbyname, getgroup, getgidbyname): Likewise.
111031         Use cleaner syntax: NULL rather than 0.
111032         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111034 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111036         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111037         It mishandled the case where the group was missing.
111038         Problem reported by Greg Schafer.
111039         * modules/idcache: Likewise.
111041 2006-11-18  Jim Meyering  <jim@meyering.net>
111043         * check-module (%exempt_header): Add exception for some
111044         conditionally-included headers.
111046         * modules/i-ring (Depends-on): Add verify.
111047         (License): Change to LGPL.
111049 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111051         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111052         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111053         and inttostr.h.  Use snprintf rather than uinttostr, so that
111054         LGPLed code doesn't depend on GPLed.
111056 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111058         * modules/inline (License): Change from GPL to LGPL.
111060 2006-11-17  Jim Meyering  <jim@meyering.net>
111062         * modules/d-type (License): Switch to LGPL.
111064 2006-11-15  Bruno Haible  <bruno@clisp.org>
111066         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111068 2006-11-15  Eric Blake  <ebb9@byu.net>
111070         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111071         the module dependency.
111073 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111074             Bruno Haible  <bruno@clisp.org>
111076         * gnulib-tool (func_create_testdir): Add license consistency check.
111078 2006-11-15  Eric Blake  <ebb9@byu.net>
111080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111081         random "(cached)" in configure output.
111083 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111085         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111086         test for conforming inttypes.h is both announced and cached.
111088         * MODULES.html.sh (seen_modules, seen_files): New variables.
111089         (func_module): Rewrite to use a few less gnulib-tool and sed
111090         invocations.  Avoid a couple of quadratic algorithms for ...
111091         (missed_modules, missed_files): ... these, with ...
111092         (func_append, func_tmpdir): ... these new functions, from
111093         gnulib-tool.  Analogously, install traps for cleanup.
111095         * tests/test-gc.c (main): Remove unused variables.
111096         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111098 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111100         * modules/inttostr (License): Change to LGPL.
111102 2006-11-14  Eric Blake  <ebb9@byu.net>
111104         * modules/tempname (License): Change to LGPL.
111106 2006-11-14  Eric Blake  <ebb9@byu.net>
111108         * doc/functions.texi (Function Portability): *printf functions on
111109         Cygwin now understand all POSIX size specifiers.
111111 2006-11-14  Bruno Haible  <bruno@clisp.org>
111113         * modules/c-ctype (License): Change to LGPL.
111115 2006-11-12  Bruno Haible  <bruno@clisp.org>
111117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111118         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111119         for GNOME libraries, for which the include files are installed in
111120         subdirectories of $prefix/include.
111122 2006-11-12  Bruno Haible  <bruno@clisp.org>
111124         * m4/lib-link.m4: Require at least autoconf-2.54.
111125         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111126         name to underscores for the --with option.
111128 2006-11-13  Bruno Haible  <bruno@clisp.org>
111130         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111131         the tests directory.
111132         Reported by Ralf Wildenhues.
111134 2006-11-13  Bruno Haible  <bruno@clisp.org>
111136         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111137         (func_emit_initmacro_end): Undo the override here.
111138         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111139         Works around the famous automake error in coreutils.
111141 2006-11-13  Eric Blake  <ebb9@byu.net>
111143         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111144         element, not its node.
111146 2006-11-12  Bruno Haible  <bruno@clisp.org>
111148         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111149         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111151 2006-11-12  Bruno Haible  <bruno@clisp.org>
111153         * gnulib-tool: New option --local-symlink.
111154         (func_usage): Document it.
111155         (lsymbolic): New variable.
111156         (func_import, func_create_testdir): If --symlink was not specified,
111157         test whether --local-symlink was specified and the file comes from
111158         the local_gnulib_dir.
111160 2006-11-12  Bruno Haible  <bruno@clisp.org>
111162         * gnulib-tool (func_ln): New function.
111163         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111165 2006-11-12  Bruno Haible  <bruno@clisp.org>
111167         Finish support for source files in subdirectories.
111168         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111169         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111170         AUTOMAKE_OPTIONS.
111171         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111173 2006-11-12  Bruno Haible  <bruno@clisp.org>
111175         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111176         EXTRA_lib_SOURCES augmentation.
111177         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111179 2006-11-12  Jim Meyering  <jim@meyering.net>
111181         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111182         file descriptors.  This also averts a failure on systems with
111183         native openat support when a traversed directory lacks "x" access.
111184         * lib/fts_.h: Include "i-ring.h"
111185         (struct FTS) [fts_fd_ring]: New member.
111186         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111187         (FCHDIR): Add parentheses.
111188         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111189         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111190         When descending, rather than simply closing the previous
111191         fts_cwd_fd value, push that file descriptor onto the ring.
111192         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111193         (fts_open): Initialize the new fd_ring member.
111194         (fts_close): Clear the ring.
111195         (fts_safe_changedir): When possible, use our new fd_ring to skip
111196         the diropen and fstat and dev/ino comparison that would normally
111197         accompany a virtual `chdir ("..")'.
111199         * modules/fts (Depends-on): Add i-ring.
111200         * modules/i-ring: New module.
111201         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111202         * m4/i-ring.m4: New file.
111204 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111206         * gnulib-tool (func_create_testdir): Fix replacement of
111207         `build-aux' in configure.ac.  Run autotools in gltests
111208         subdirectory.
111209         (func_create_testdir, func_create_megatestdir, test): There is
111210         no need for '--force' in most autotool invocations in a new
111211         tree.  Actually fail the whole test if any of the tools, or the
111212         configure or make stages fail.
111214         Sync from Automake.
111215         * build-aux/gnupload: Revert last change.  Add pointer to upload
111216         instructions of the GNU Maintenance Instructions.
111217         Suggestion by Karl Berry.
111219 2006-11-10  Jim Meyering  <jim@meyering.net>
111221         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111223 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111225         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111226         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111227         (bind_textdomain_codeset) [! ENABLE_NLS]:
111228         Evaluate all the arguments.  That way, callers get compatible behavior
111229         if the arguments have side effects.  Also, it avoids some GCC
111230         diagnostics in some cases; Joel E. Denny reported problems when Bison
111231         was configured with --enable-gcc-warnigs.
111233 2006-11-10  Jim Meyering  <jim@meyering.net>
111235         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111236         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111237         account.
111239 2006-11-10  Jim Meyering  <jim@meyering.net>
111241         * modules/inline: New file/module.
111242         * modules/xalloc (Files): Remove m4/inline.m4.
111243         (Depends-on): Add inline, instead.
111244         * modules/oset: Likewise.
111245         * modules/list: Likewise.
111247 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111249         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111250         Problem reported by Matthew Woehlke.
111252 2006-11-09  Bruno Haible  <bruno@clisp.org>
111254         * lib/tempname.c (gen_tempname): Remove variant that invokes
111255         __gen_tempname.
111256         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111257         __gen_tempname.
111259 2006-11-08  Bruno Haible  <bruno@clisp.org>
111261         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111262         to 'yes' instead of 'cross-compiling'.
111264 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111266         * lib/quotearg.h (quotearg_free): New decl.
111267         * lib/quotearg.c (quotearg_free): New function.
111268         (slot0, nslots, slotvec0, slotvec):
111269         Now file-scope so that quotearg_free can get at them.
111271 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111273         Sync from Automake.
111274         * build-aux/gnupload: Add missing 'gnu' to example URL.
111275         Report by Karl Berry.
111277 2006-11-08  Bruno Haible  <bruno@clisp.org>
111279         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111280         Suggested by Paul Eggert.
111282 2006-11-08  Jim Meyering  <jim@meyering.net>
111284         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111285         It's already included if !_LIBC.
111286         (fts_safe_changedir): Add a comment.
111288 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111290         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111291         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111292         Matthew Woehlke.
111294         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111295         definitions up, to avoid colliding with change below.
111296         (static_inline) [HAVE_INLINE]: New macro.
111297         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111298         Provide extern decls when !HAVE_INLINE.  Do not define unless
111299         static_inline is defined, either by us or by xmalloc.c.  Use
111300         static_inline rather than static inline.
111301         (XCALLOC): Optimize sizeof(T) = 1 case.
111302         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111304 2006-11-07  Bruno Haible  <bruno@clisp.org>
111306         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111307         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111308         AC_C_INLINE.
111309         * modules/xalloc (Files): Add m4/inline.m4.
111311 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111313         * README: Fix typo.
111314         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111315         (Miscellanous Notes): ...from this.
111317 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111319         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111320         Mention that offsetof should be used instead of sizeof.
111321         From Bruno Haible.
111323 2006-11-07  Bruno Haible  <bruno@clisp.org>
111325         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111327 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111329         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111330         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111331         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111332         (gl_tree_add_before, gl_tree_add_after):
111333         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111334         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111335         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111336         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111337         (gl_linked_add_after, gl_linked_add_at): Likewise.
111338         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111339         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111340         (gl_tree_add_before, gl_tree_add_after): Likewise.
111341         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111342         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111343         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111345 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111347         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111349 2006-11-06  Bruno Haible  <bruno@clisp.org>
111351         * m4/inline.m4: New file.
111352         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111353         * modules/list (Files): Add m4/inline.m4.
111354         * modules/oset (Files): Likewise.
111356 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111358         * lib/idcache.c: Include <stddef.h>, for offsetof.
111359         (struct userid.name): Change from char * to a flexible array member.
111360         All uses changed.
111361         * modules/idcache (Depends-on): Add flexmember.
111363         * MODULES.html.sh (Core language properties): New module flexmember.
111364         * modules/flexmember, m4/flexmember.m4: New files.
111366         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111367         inline functions that are identical with the old xnmalloc_inline,
111368         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111369         that we can avoid some unnecessary integer multiplications and
111370         divisions in the common case where the element size is known at
111371         compile time.
111372         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111373         needed.
111374         (xnboundedmalloc): Remove.
111375         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111376         arguments, for consistency with rest of this header.
111377         (xcharalloc): Rewrite using XNMALLOC.
111378         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111379         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111380         versions have been moved to lib/xalloc.h and renamed to be the
111381         non-*_inline versions.
111382         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111383         and xnrealloc functions, since those functions are now inline and
111384         now call us.
111385         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111386         renaming described above.
111387         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111388         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111389         captures the dependency in AC_C_INLINE.
111391         New module canonicalize-lgpl, proposed by Charles Wilson in
111392         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111393         with a few small changes afterwards.
111394         * MODULES.html.sh (File system functions): New module
111395         canonicalize-lgpl.
111396         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111397         and canonicalize_file_name.
111398         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111399         * modules/canonicalize-lgpl: New files.
111401 2006-11-05  Bruno Haible  <bruno@clisp.org>
111403         * gnulib-tool (func_import, func_create_testdir): Create directories
111404         also for files in subdirectories of lib/.
111406 2006-11-05  Bruno Haible  <bruno@clisp.org>
111408         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111409         ANSI C compliant.
111411 2006-11-03  Bruno Haible  <bruno@clisp.org>
111413         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111414         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111415         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111416         (xnboundedmalloc): New inline function.
111417         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111418         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111419         xmalloc.
111420         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111421         xmalloc.
111422         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111423         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111424         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111425         xmalloc.
111426         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111427         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111428         xmalloc.
111429         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111430         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111431         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111432         xmalloc.
111433         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111434         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111435         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111436         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111437         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111438         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111439         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111441 2006-11-03  Bruno Haible  <bruno@clisp.org>
111443         * lib/c-ctype.h [C++]: Define functions without name mangling.
111444         * lib/fwriteerror.h [C++]: Likewise.
111445         * lib/gcd.h [C++]: Likewise.
111446         * lib/linebreak.h [C++]: Likewise.
111448 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111450         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111451         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111452         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111454         Check for functions and headers just once.
111455         Check for declaration of canonicalize_file_name.
111456         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111458 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111460         * gnulib-tool (func_import): Fix typo in actioncmd.
111462 2006-11-02  Bruno Haible  <bruno@clisp.org>
111464         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111465         newline sequence in the Makefile.am snippet as a space, like "make"
111466         does.
111467         Reported by Roger Persson <perrog@gmail.com>.
111469 2006-11-01  Bruno Haible  <bruno@clisp.org>
111471         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111472         already declared in <string.h>.
111473         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111475 2006-11-01  Bruno Haible  <bruno@clisp.org>
111477         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111478         * lib/strcase.h: Include <string.h>.
111479         (strcasecmp): Define to rpl_strcasecmp here.
111481 2006-11-01  Bruno Haible  <bruno@clisp.org>
111483         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111485 2006-11-01  Eric Blake  <ebb9@byu.net>
111487         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111491 2006-10-29  Bruno Haible  <bruno@clisp.org>
111493         Make it compile in C++ mode.
111494         * lib/full-write.c (full_rw): Add a cast.
111496 2006-11-01  Bruno Haible  <bruno@clisp.org>
111498         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111499         be POSIX compliant.
111500         Reported by Roger Persson <perrog@gmail.com>.
111502 2006-11-01  Eric Blake  <ebb9@byu.net>
111504         * lib/getopt_.h: Fix comments.
111506 2006-10-31  Eric Blake  <ebb9@byu.net>
111508         * modules/tmpdir (Depends-on): Add sys_stat.
111509         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111510         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111511         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111512         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111513         tempname.
111515 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
111517         Avoid some C++ diagnostics reported by Bruno Haible.
111518         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
111519         xmalloc.
111520         (quotearg_alloc): Use xcharalloc rather than xmalloc.
111521         (struct slotvec): Move to top level.
111522         (quotearg_n_options): Rewrite to avoid xmalloc.
111523         * lib/xalloc.h (xcharalloc): New function.
111524         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
111525         [defined __cplusplus]: Add function template that provides result
111526         type propagation.  This part of the change is from Bruno Haible.
111528 2006-10-29  Bruno Haible  <bruno@clisp.org>
111530         Make it compile in C++ mode.
111531         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
111532         * lib/strnlen1.c (strnlen1): Cast memchr result.
111533         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
111534         * lib/clean-temp.c (string_equals, string_hash): Add casts.
111535         (create_temp_dir): Rename local variable 'template'.
111536         (compile_csharp_using_sscli): Add cast.
111537         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
111538         * lib/findprog.c (find_in_path): Likewise.
111539         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
111540         * lib/wait-process.c (register_slave_subprocess): Likewise.
111542 2006-10-22  Bruno Haible  <bruno@clisp.org>
111544         * modules/tsearch: New file.
111545         * lib/tsearch.h: New file.
111546         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
111547         * m4/tsearch.m4: New file.
111548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
111550 2006-10-29  Eric Blake  <ebb9@byu.net>
111552         * lib/arcfour.c: Assume config.h.
111553         * lib/arctwo.c: Likewise.
111554         * lib/base64.c: Likewise.
111555         * lib/check-version.c: Likewise.
111556         * lib/crc.c: Likewise.
111557         * lib/des.c: Likewise.
111558         * lib/gc-gnulib.c: Likewise.
111559         * lib/gc-libgcrypt.c: Likewise.
111560         * lib/gc-pbkdf2-sha1.c: Likewise.
111561         * lib/getaddrinfo.c: Likewise.
111562         * lib/getdelim.c: Likewise.
111563         * lib/getline.c: Likewise.
111564         * lib/hmac-md5.c: Likewise.
111565         * lib/hmac-sha1.c: Likewise.
111566         * lib/iconvme.c: Likewise.
111567         * lib/md2.c: Likewise.
111568         * lib/md4.c: Likewise.
111569         * lib/memxor.c: Likewise.
111570         * lib/read-file.c: Likewise.
111571         * lib/readline.c: Likewise.
111572         * lib/rijndael-alg-fst.c: Likewise.
111573         * lib/rijndael-api-fst.c: Likewise.
111574         * lib/xgetdomainname.c: Likewise.
111576 2006-10-28  Eric Blake  <ebb9@byu.net>
111578         * lib/xstrndup.c: Assume config.h.
111580 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
111582         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
111583         stat-macros.h is now for our own macros, whereas stat_h is for
111584         macros in the <sys/stat.h> name space.
111585         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
111586         (STAT_MACROS_H): Remove.
111587         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
111588         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
111589         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
111590         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
111591         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111592         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111593         Move these macros to ...
111594         * lib/stat_.h: here.  Don't include stat-macros.h.
111595         * lib/canonicalize.c: Don't include stat-macros.h.
111596         * lib/chown.c: Likewise.
111597         * lib/euidaccess.c: Likewise.
111598         * lib/file-type.c: Likewise.
111599         * lib/filemode.c: Likewise.
111600         * lib/glob.c: Likewise.
111601         * lib/isapipe.c: Likewise.
111602         * lib/lchown.c: Likewise.
111603         * lib/lstat.c: Likewise.
111604         * lib/mkdir-p.c: Likewise.
111605         * lib/rmdir.c: Likewise.
111606         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111608         unless mkdir isn't declared, to speed up 'configure'.
111609         Always create sys/stat.h, since it's unlikely any real sys/stat.h
111610         would define all the S_* symbols.
111611         * modules/canonicalize (Depends-on):
111612         Depend on sys_stat, not stat-macros.
111613         * modules/chown: Likewise.
111614         * modules/euidaccess: Likewise.
111615         * modules/filemode: Likewise.
111616         * modules/file-type: Likewise.
111617         * modules/glob: Likewise.
111618         * modules/isapipe: Likewise.
111619         * modules/lchown: Likewise.
111620         * modules/lstat: Likewise.
111621         * modules/mkancesdirs: Likewise.
111622         * modules/rmdir: Likewise.
111623         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111624         * modules/modechange: Likewise.
111625         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111626         (configure.ac): Remove gl_STAT_MACROS.
111627         * modules/sys_stat (Depends-on): Remove stat-macros.
111629 2006-10-27  Bruno Haible  <bruno@clisp.org>
111631         * m4/signed.m4: Remove file.
111632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111633         invocation.
111634         * modules/vasnprintf (Files): Remove m4/signed.m4.
111636 2006-10-27  Bruno Haible  <bruno@clisp.org>
111638         Update to GNU gettext 0.16.
111639         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111640         m4/inttypes-h.m4, m4/signed.m4.
111641         * m4/gettext.m4: Update to GNU gettext 0.16.
111642         * m4/intl.m4: New file, from GNU gettext.
111643         * m4/intldir.m4: New file, from GNU gettext.
111644         * config/srclist.txt: Update
111646 2006-10-27  Eric Blake  <ebb9@byu.net>
111648         * MODULES.html.sh: Document tempname.
111649         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111650         dependencies.
111651         (Files): Move lib/tempname.c...
111652         * modules/tempname: ...to this new module.
111653         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111654         (gl_PREREQ_TEMPNAME): Move...
111655         * m4/tempname.m4: ...to this new file.
111656         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111657         * modules/sys_stat (Depends-on): Add stat-macros.
111658         * lib/stat_.h (includes): Pick up stat macros.
111659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111660         if stat macros are broken.
111661         * lib/tempname.c (includes): No need to include "stat-macros.h".
111662         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111663         (direxists, __path_search) [!_LIBC]: Don't compile these in
111664         gnulib; the tmpdir module covers that.
111665         * lib/tempname.h: New file.
111667 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111669         * COPYING: Explain how gnulib-tool converts licence headers.
111670         Almost all wording by Eric Blake.
111672 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111674         * lib/mbchar.h (is_basic_table): Make read-only.
111675         * lib/mbchar.c (is_basic_table): Likewise.
111676         Reported by John Darrington.
111678 2006-10-25  Bruno Haible  <bruno@clisp.org>
111680         * lib/progname.h (set_program_name): Undefine before defining.
111682 2006-10-25  Bruno Haible  <bruno@clisp.org>
111684         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111685         false for non-gcc C++ compilers.
111686         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111688 2006-10-24  Bruno Haible  <bruno@clisp.org>
111690         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111691         iconv implementations like Irix iconv.
111693 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111695         * modules/vararrays: New file.
111696         * m4/vararrays.m4: New file, taken from diffutils.
111697         * MODULES.html.sh: New module vararrays.
111699 2006-10-24  Karl Berry  <karl@gnu.org>
111701         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111702         Don't call GNU Unix.
111704 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111706         * users.txt: Add Libtool.
111708         Sync from Libtool:
111710         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111712         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111713         to gnulib's policy of including config.h unconditionally.
111715 2006-10-24  Bruno Haible  <bruno@clisp.org>
111717         * modules/wcwidth (Files): Add m4/wint_t.m4.
111718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111719         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111721 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111723         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111724         to pacify GCC with some -W flags enabled.  Problem reported by
111725         Bruno Haible.
111727 2006-10-24  Jim Meyering  <jim@meyering.net>
111729         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111730         Reported by Karl Berry.
111732 2006-10-23  Bruno Haible  <bruno@clisp.org>
111734         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111736 2006-10-24  Bruno Haible  <bruno@clisp.org>
111738         * lib/gl_list.h: Use C comment style, not C++ comment style.
111740 2006-10-23  Eric Blake  <ebb9@byu.net>
111742         * lib/getaddrinfo.c (includes): Add missing include.
111744 2006-10-23  Bruno Haible  <bruno@clisp.org>
111745             Paul Eggert  <eggert@cs.ucla.edu>
111747         Ability to rename obstack_free.
111748         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111749         obstack_free.
111750         (obstack_free): Invoke the __obstack_free macro.
111751         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111753 2006-10-23  Bruno Haible  <bruno@clisp.org>
111754             Paul Eggert  <eggert@cs.ucla.edu>
111756         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111757         __argc, __argv from the declaration. (They are defined as macros on
111758         mingw.)
111760 2006-10-22  Bruno Haible  <bruno@clisp.org>
111762         * doc/gnulib-intro.texi: New file.
111763         * doc/gnulib.texi: Include it.
111765 2006-10-21  Bruno Haible  <bruno@clisp.org>
111767         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111768         "Introduction", "Miscellanous Notes", "Particular Modules".
111770 2006-10-21  Bruno Haible  <bruno@clisp.org>
111772         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111773         Change mostlyclean-local rule to avoid sh syntax error from bash
111774         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111776 2006-10-23  Jim Meyering  <jim@meyering.net>
111778         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111779         in place of snprintf.
111781         * modules/inttostr (Files): Add lib/uinttostr.c.
111782         * lib/uinttostr.c (inttostr): New file/function.
111783         * lib/inttostr.h (uinttostr): Declare.
111784         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111785         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111786         Add uinttostr.
111787         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111789 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111791         * lib/canonicalize.c (ELOOP): Define if not already defined.
111792         Problem reported by Bruno Haible in
111793         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111795 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111797         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111798         Problem reported by Perry Smith and Ville Laurikari.
111800         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111801         uses.
111803 2006-10-19  Bruno Haible  <bruno@clisp.org>
111805         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111806         for mingw.
111808 2006-10-19  Bruno Haible  <bruno@clisp.org>
111810         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111811         Needed for mingw.
111813 2006-10-19  Bruno Haible  <bruno@clisp.org>
111815         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111817 2006-10-19  Bruno Haible  <bruno@clisp.org>
111819         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111820         it.
111822 2006-10-19  Bruno Haible  <bruno@clisp.org>
111824         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111825         invocation.
111827 2006-10-19  Bruno Haible  <bruno@clisp.org>
111829         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111830         mountlist by default.
111832 2006-10-16  Bruno Haible  <bruno@clisp.org>
111834         * lib/c-strstr.c: Include c-strstr.h.
111836 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111838         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111839         in a slash.
111841 2006-10-18  Bruno Haible  <bruno@clisp.org>
111843         * lib/lock.h [C++]: Wrap definitions in extern "C".
111845 2006-10-18  Bruno Haible  <bruno@clisp.org>
111847         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111848         gl_LIBOBJS list.
111850 2006-10-18  Bruno Haible  <bruno@clisp.org>
111852         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111854 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111856         * lib/xstrtol.h: Include gettext.h.
111857         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111858         Problem reported by Eric Blake.
111859         * modules/xstrtol (Depends-on): Add gettext-h.
111861 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111863         * lib/strftime.c (advance): New macro.
111864         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111865         incomplete type, so you can't add 0 to it.  Problem and patch
111866         reported by Eelco Dolstra for dietlibc.
111868 2006-10-18  Jim Meyering  <jim@meyering.net>
111870         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111871         type for a local, and rename it: s/up/user_proc/.
111873 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111875         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111876         READ_UTMP_USER_PROCESS.
111877         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111879 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111881         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111882         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111884 2006-10-17  Eric Blake  <ebb9@byu.net>
111886         * lib/sigprocmask.c (sigprocmask): Fix typo.
111888         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111890         * modules/clean-temp (Makefile.am): Don't add to make output...
111891         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111892         config.h.
111894 2006-10-17  Bruno Haible  <bruno@clisp.org>
111896         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111897         differently if DEFAULT_TEXT_DOMAIN is set.
111899 2006-10-16  Bruno Haible  <bruno@clisp.org>
111901         * lib/clean-temp.c: Include fwriteerror.h.
111903 2006-10-16  Bruno Haible  <bruno@clisp.org>
111905         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111907 2006-10-16  Bruno Haible  <bruno@clisp.org>
111909         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111910         * lib/sigprocmask.h: Include <sys/types.h>.
111911         (sigset_t): Use the system's definition if present.
111913 2006-10-17  Eric Blake  <ebb9@byu.net>
111915         * lib/xvasprintf.c (includes): Assume config.h.
111916         * lib/xasprintf.c (includes): Likewise.
111918 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111920         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111921         at least as wide as intmax_t.
111923 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111925         (Imported from Automake.)
111926         * build-aux/gnupload: Update to version 1.1 of directive file.
111928 2006-10-16  Eric Blake  <ebb9@byu.net>
111930         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111931         match Automake 1.10a.
111933 2006-10-14  Bruno Haible  <bruno@clisp.org>
111935         * modules/sigprocmask: New file.
111936         * lib/sigprocmask.h: New file.
111937         * lib/sigprocmask.c: New file.
111938         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
111939         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
111940         request sigprocmask.o.
111941         (gl_PREREQ_SIGPROCMASK): New macro.
111942         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
111943         (Depends-on): Add sigprocmask.
111944         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
111945         gt_SIGNALBLOCKING. Test for 'raise' only once.
111946         * lib/fatal-signal.c: Include sigprocmask.h.
111947         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111948         unblock_fatal_signals): Define always.
111949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111950         sigprocmask.
111952 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111954         Sync from Automake.
111955         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111956         which incorrectly sets the mode of an existing destination
111957         directory.  In some cases the unpatched install-sh could do the
111958         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111959         system.  We hope this is rare in practice, but it's clearly worth
111960         fixing.  Problem reported by Alex Unleashed in
111961         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111962         Also, don't bother to check for -m bugs unless we're using -m;
111963         suggested by Stepan Kasal.
111965 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111967         Sync from Automake.
111968         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111969         `-c' flag, so they appear at the same position as in %FASTDEP%
111970         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111971         which ignores unknown options only after the first non-option.
111972         Bug report against M4 by Nelson H. F. Beebe.
111974 2006-10-13  Jim Meyering  <jim@meyering.net>
111976         Fix a bug in yesterday's change.
111977         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111978         p->fts_statp->st_dev would be used uninitialized.
111979         Ensures that we always call fts_stat on the very first entry.
111980         Miklos Szeredi reported that find -xdev stopped working.
111982 2006-10-12  Bruno Haible  <bruno@clisp.org>
111984         * gnulib-tool (func_get_automake_snippet): Append an automatically
111985         computed EXTRA_DIST augmentation.
111986         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111987         * modules/alloca-opt (Makefile.am): Likewise.
111988         * modules/allocsa (Makefile.am): Likewise.
111989         * modules/arcfour (Makefile.am): Likewise.
111990         * modules/arctwo (Makefile.am): Likewise.
111991         * modules/argmatch (Makefile.am): Likewise.
111992         * modules/argz (Makefile.am): Likewise.
111993         * modules/atexit (Makefile.am): Likewise.
111994         * modules/backupfile (Makefile.am): Likewise.
111995         * modules/byteswap (Makefile.am): Likewise.
111996         * modules/c-strtod (Makefile.am): Likewise.
111997         * modules/c-strtold (Makefile.am): Likewise.
111998         * modules/calloc (Makefile.am): Likewise.
111999         * modules/canon-host (Makefile.am): Likewise.
112000         * modules/canonicalize (Makefile.am): Likewise.
112001         * modules/chdir-long (Makefile.am): Likewise.
112002         * modules/chdir-safer (Makefile.am): Likewise.
112003         * modules/check-version (Makefile.am): Likewise.
112004         * modules/chown (Makefile.am): Likewise.
112005         * modules/cloexec (Makefile.am): Likewise.
112006         * modules/close-stream (Makefile.am): Likewise.
112007         * modules/closeout (Makefile.am): Likewise.
112008         * modules/crc (Makefile.am): Likewise.
112009         * modules/csharpexec (Makefile.am): Likewise.
112010         * modules/cycle-check (Makefile.am): Likewise.
112011         * modules/des (Makefile.am): Likewise.
112012         * modules/dev-ino (Makefile.am): Likewise.
112013         * modules/dirfd (Makefile.am): Likewise.
112014         * modules/dirname (Makefile.am): Likewise.
112015         * modules/dup2 (Makefile.am): Likewise.
112016         * modules/eealloc (Makefile.am): Likewise.
112017         * modules/error (Makefile.am): Likewise.
112018         * modules/euidaccess (Makefile.am): Likewise.
112019         * modules/exclude (Makefile.am): Likewise.
112020         * modules/exitfail (Makefile.am): Likewise.
112021         * modules/fcntl-safer (Makefile.am): Likewise.
112022         * modules/fcntl (Makefile.am): Likewise.
112023         * modules/file-type (Makefile.am): Likewise.
112024         * modules/fileblocks (Makefile.am): Likewise.
112025         * modules/filemode (Makefile.am): Likewise.
112026         * modules/filenamecat (Makefile.am): Likewise.
112027         * modules/fnmatch (Makefile.am): Likewise.
112028         * modules/fopen-safer (Makefile.am): Likewise.
112029         * modules/fpending (Makefile.am): Likewise.
112030         * modules/fprintftime (Makefile.am): Likewise.
112031         * modules/free (Makefile.am): Likewise.
112032         * modules/fsusage (Makefile.am): Likewise.
112033         * modules/ftruncate (Makefile.am): Likewise.
112034         * modules/fts (Makefile.am): Likewise.
112035         * modules/gc-arcfour (Makefile.am): Likewise.
112036         * modules/gc-des (Makefile.am): Likewise.
112037         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112038         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112039         * modules/gc-md4 (Makefile.am): Likewise.
112040         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112041         * modules/gc-sha1 (Makefile.am): Likewise.
112042         * modules/gc (Makefile.am): Likewise.
112043         * modules/getaddrinfo (Makefile.am): Likewise.
112044         * modules/getcwd (Makefile.am): Likewise.
112045         * modules/getdelim (Makefile.am): Likewise.
112046         * modules/getdomainname (Makefile.am): Likewise.
112047         * modules/getgroups (Makefile.am): Likewise.
112048         * modules/gethostname (Makefile.am): Likewise.
112049         * modules/gethrxtime (Makefile.am): Likewise.
112050         * modules/getline (Makefile.am): Likewise.
112051         * modules/getloadavg (Makefile.am): Likewise.
112052         * modules/getlogin_r (Makefile.am): Likewise.
112053         * modules/getndelim2 (Makefile.am): Likewise.
112054         * modules/getopt (Makefile.am): Likewise.
112055         * modules/getpagesize (Makefile.am): Likewise.
112056         * modules/getpass-gnu (Makefile.am): Likewise.
112057         * modules/getpass (Makefile.am): Likewise.
112058         * modules/getsubopt (Makefile.am): Likewise.
112059         * modules/gettime (Makefile.am): Likewise.
112060         * modules/gettimeofday (Makefile.am): Likewise.
112061         * modules/getugroups (Makefile.am): Likewise.
112062         * modules/getusershell (Makefile.am): Likewise.
112063         * modules/glob (Makefile.am): Likewise.
112064         * modules/group-member (Makefile.am): Likewise.
112065         * modules/hard-locale (Makefile.am): Likewise.
112066         * modules/hash (Makefile.am): Likewise.
112067         * modules/hmac-md5 (Makefile.am): Likewise.
112068         * modules/hmac-sha1 (Makefile.am): Likewise.
112069         * modules/human (Makefile.am): Likewise.
112070         * modules/idcache (Makefile.am): Likewise.
112071         * modules/imaxabs (Makefile.am): Likewise.
112072         * modules/imaxdiv (Makefile.am): Likewise.
112073         * modules/inet_ntop (Makefile.am): Likewise.
112074         * modules/inet_pton (Makefile.am): Likewise.
112075         * modules/intprops (Makefile.am): Likewise.
112076         * modules/inttostr (Makefile.am): Likewise.
112077         * modules/inttypes (Makefile.am): Likewise.
112078         * modules/isapipe (Makefile.am): Likewise.
112079         * modules/javaversion (Makefile.am): Likewise.
112080         * modules/lchmod (Makefile.am): Likewise.
112081         * modules/lchown (Makefile.am): Likewise.
112082         * modules/localcharset (Makefile.am): Likewise.
112083         * modules/long-options (Makefile.am): Likewise.
112084         * modules/lstat (Makefile.am): Likewise.
112085         * modules/malloc (Makefile.am): Likewise.
112086         * modules/mathl (Makefile.am): Likewise.
112087         * modules/mbchar (Makefile.am): Likewise.
112088         * modules/md2 (Makefile.am): Likewise.
112089         * modules/md4 (Makefile.am): Likewise.
112090         * modules/md5 (Makefile.am): Likewise.
112091         * modules/memcasecmp (Makefile.am): Likewise.
112092         * modules/memchr (Makefile.am): Likewise.
112093         * modules/memcmp (Makefile.am): Likewise.
112094         * modules/memcoll (Makefile.am): Likewise.
112095         * modules/memcpy (Makefile.am): Likewise.
112096         * modules/memmem (Makefile.am): Likewise.
112097         * modules/memmove (Makefile.am): Likewise.
112098         * modules/mempcpy (Makefile.am): Likewise.
112099         * modules/memrchr (Makefile.am): Likewise.
112100         * modules/memset (Makefile.am): Likewise.
112101         * modules/memxor (Makefile.am): Likewise.
112102         * modules/mkancesdirs (Makefile.am): Likewise.
112103         * modules/mkdir-p (Makefile.am): Likewise.
112104         * modules/mkdir (Makefile.am): Likewise.
112105         * modules/mkdtemp (Makefile.am): Likewise.
112106         * modules/mkstemp (Makefile.am): Likewise.
112107         * modules/mktime (Makefile.am): Likewise.
112108         * modules/modechange (Makefile.am): Likewise.
112109         * modules/mountlist (Makefile.am): Likewise.
112110         * modules/nanosleep (Makefile.am): Likewise.
112111         * modules/obstack (Makefile.am): Likewise.
112112         * modules/openat (Makefile.am): Likewise.
112113         * modules/pagealign_alloc (Makefile.am): Likewise.
112114         * modules/pathmax (Makefile.am): Likewise.
112115         * modules/physmem (Makefile.am): Likewise.
112116         * modules/poll (Makefile.am): Likewise.
112117         * modules/posixtm (Makefile.am): Likewise.
112118         * modules/posixver (Makefile.am): Likewise.
112119         * modules/putenv (Makefile.am): Likewise.
112120         * modules/quote (Makefile.am): Likewise.
112121         * modules/quotearg (Makefile.am): Likewise.
112122         * modules/raise (Makefile.am): Likewise.
112123         * modules/read-file (Makefile.am): Likewise.
112124         * modules/readline (Makefile.am): Likewise.
112125         * modules/readlink (Makefile.am): Likewise.
112126         * modules/readtokens (Makefile.am): Likewise.
112127         * modules/readutmp (Makefile.am): Likewise.
112128         * modules/realloc (Makefile.am): Likewise.
112129         * modules/regex (Makefile.am): Likewise.
112130         * modules/rename-dest-slash (Makefile.am): Likewise.
112131         * modules/rename (Makefile.am): Likewise.
112132         * modules/rijndael (Makefile.am): Likewise.
112133         * modules/rmdir (Makefile.am): Likewise.
112134         * modules/rpmatch (Makefile.am): Likewise.
112135         * modules/safe-read (Makefile.am): Likewise.
112136         * modules/safe-write (Makefile.am): Likewise.
112137         * modules/same-inode (Makefile.am): Likewise.
112138         * modules/same (Makefile.am): Likewise.
112139         * modules/save-cwd (Makefile.am): Likewise.
112140         * modules/savedir (Makefile.am): Likewise.
112141         * modules/setenv (Makefile.am): Likewise.
112142         * modules/settime (Makefile.am): Likewise.
112143         * modules/sha1 (Makefile.am): Likewise.
112144         * modules/sig2str (Makefile.am): Likewise.
112145         * modules/snprintf (Makefile.am): Likewise.
112146         * modules/stat-macros (Makefile.am): Likewise.
112147         * modules/stat-time (Makefile.am): Likewise.
112148         * modules/stdbool (Makefile.am): Likewise.
112149         * modules/stdint (Makefile.am): Likewise.
112150         * modules/stdlib-safer (Makefile.am): Likewise.
112151         * modules/stpcpy (Makefile.am): Likewise.
112152         * modules/stpncpy (Makefile.am): Likewise.
112153         * modules/strcase (Makefile.am): Likewise.
112154         * modules/strcasestr (Makefile.am): Likewise.
112155         * modules/strchrnul (Makefile.am): Likewise.
112156         * modules/strcspn (Makefile.am): Likewise.
112157         * modules/strdup (Makefile.am): Likewise.
112158         * modules/strerror (Makefile.am): Likewise.
112159         * modules/strftime (Makefile.am): Likewise.
112160         * modules/strndup (Makefile.am): Likewise.
112161         * modules/strnlen (Makefile.am): Likewise.
112162         * modules/strpbrk (Makefile.am): Likewise.
112163         * modules/strsep (Makefile.am): Likewise.
112164         * modules/strstr (Makefile.am): Likewise.
112165         * modules/strtod (Makefile.am): Likewise.
112166         * modules/strtoimax (Makefile.am): Likewise.
112167         * modules/strtok_r (Makefile.am): Likewise.
112168         * modules/strtol (Makefile.am): Likewise.
112169         * modules/strtoll (Makefile.am): Likewise.
112170         * modules/strtoul (Makefile.am): Likewise.
112171         * modules/strtoull (Makefile.am): Likewise.
112172         * modules/strtoumax (Makefile.am): Likewise.
112173         * modules/strverscmp (Makefile.am): Likewise.
112174         * modules/sys_socket (Makefile.am): Likewise.
112175         * modules/sys_stat (Makefile.am): Likewise.
112176         * modules/sysexits (Makefile.am): Likewise.
112177         * modules/time_r (Makefile.am): Likewise.
112178         * modules/timegm (Makefile.am): Likewise.
112179         * modules/timespec (Makefile.am): Likewise.
112180         * modules/tmpfile-safer (Makefile.am): Likewise.
112181         * modules/trim (Makefile.am): Likewise.
112182         * modules/unistd-safer (Makefile.am): Likewise.
112183         * modules/unlinkdir (Makefile.am): Likewise.
112184         * modules/unlocked-io (Makefile.am): Likewise.
112185         * modules/userspec (Makefile.am): Likewise.
112186         * modules/utime (Makefile.am): Likewise.
112187         * modules/utimecmp (Makefile.am): Likewise.
112188         * modules/utimens (Makefile.am): Likewise.
112189         * modules/vasnprintf (Makefile.am): Likewise.
112190         * modules/vasprintf (Makefile.am): Likewise.
112191         * modules/vsnprintf (Makefile.am): Likewise.
112192         * modules/xalloc (Makefile.am): Likewise.
112193         * modules/xgetcwd (Makefile.am): Likewise.
112194         * modules/xnanosleep (Makefile.am): Likewise.
112195         * modules/xreadlink (Makefile.am): Likewise.
112196         * modules/xstrtod (Makefile.am): Likewise.
112197         * modules/xstrtol (Makefile.am): Likewise.
112198         * modules/xstrtold (Makefile.am): Likewise.
112199         * modules/yesno (Makefile.am): Likewise.
112200         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112202 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112204         * modules/error (Makefile.am): Distribute files through
112205         EXTRA_DIST, not lib_SOURCES.
112207 2006-10-12  Eric Blake  <ebb9@byu.net>
112209         * modules/error (Makefile.am): Distribute files in /lib.
112210         * modules/obstack (Makefile.am): Likewise.
112212 2006-10-12  Bruno Haible  <bruno@clisp.org>
112214         * modules/acl (Makefile.am): Distribute all files in lib/ through
112215         EXTRA_DIST.
112216         * modules/arcfour (Makefile.am): Likewise.
112217         * modules/arctwo (Makefile.am): Likewise.
112218         * modules/argmatch (Makefile.am): Likewise.
112219         * modules/argz (Makefile.am): Likewise.
112220         * modules/atexit (Makefile.am): Likewise.
112221         * modules/backupfile (Makefile.am): Likewise.
112222         * modules/c-strtod (Makefile.am): Likewise.
112223         * modules/c-strtold (Makefile.am): Likewise.
112224         * modules/calloc (Makefile.am): Likewise.
112225         * modules/canon-host (Makefile.am): Likewise.
112226         * modules/canonicalize (Makefile.am): Likewise.
112227         * modules/chdir-long (Makefile.am): Likewise.
112228         * modules/chdir-safer (Makefile.am): Likewise.
112229         * modules/check-version (Makefile.am): Likewise.
112230         * modules/chown (Makefile.am): Likewise.
112231         * modules/cloexec (Makefile.am): Likewise.
112232         * modules/close-stream (Makefile.am): Likewise.
112233         * modules/closeout (Makefile.am): Likewise.
112234         * modules/crc (Makefile.am): Likewise.
112235         * modules/cycle-check (Makefile.am): Likewise.
112236         * modules/des (Makefile.am): Likewise.
112237         * modules/dirfd (Makefile.am): Likewise.
112238         * modules/dirname (Makefile.am): Likewise.
112239         * modules/dup2 (Makefile.am): Likewise.
112240         * modules/euidaccess (Makefile.am): Likewise.
112241         * modules/exclude (Makefile.am): Likewise.
112242         * modules/exitfail (Makefile.am): Likewise.
112243         * modules/fcntl-safer (Makefile.am): Likewise.
112244         * modules/file-type (Makefile.am): Likewise.
112245         * modules/fileblocks (Makefile.am): Likewise.
112246         * modules/filemode (Makefile.am): Likewise.
112247         * modules/filenamecat (Makefile.am): Likewise.
112248         * modules/fnmatch (Makefile.am): Likewise.
112249         * modules/fopen-safer (Makefile.am): Likewise.
112250         * modules/fpending (Makefile.am): Likewise.
112251         * modules/fprintftime (Makefile.am): Likewise.
112252         * modules/free (Makefile.am): Likewise.
112253         * modules/fsusage (Makefile.am): Likewise.
112254         * modules/ftruncate (Makefile.am): Likewise.
112255         * modules/fts (Makefile.am): Likewise.
112256         * modules/gc (Makefile.am): Likewise.
112257         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112258         * modules/getaddrinfo (Makefile.am): Likewise.
112259         * modules/getcwd (Makefile.am): Likewise.
112260         * modules/getdelim (Makefile.am): Likewise.
112261         * modules/getdomainname (Makefile.am): Likewise.
112262         * modules/getgroups (Makefile.am): Likewise.
112263         * modules/gethostname (Makefile.am): Likewise.
112264         * modules/gethrxtime (Makefile.am): Likewise.
112265         * modules/getline (Makefile.am): Likewise.
112266         * modules/getloadavg (Makefile.am): Likewise.
112267         * modules/getlogin_r (Makefile.am): Likewise.
112268         * modules/getopt (Makefile.am): Likewise.
112269         * modules/getpass (Makefile.am): Likewise.
112270         * modules/getpass-gnu (Makefile.am): Likewise.
112271         * modules/getsubopt (Makefile.am): Likewise.
112272         * modules/gettime (Makefile.am): Likewise.
112273         * modules/gettimeofday (Makefile.am): Likewise.
112274         * modules/getugroups (Makefile.am): Likewise.
112275         * modules/getusershell (Makefile.am): Likewise.
112276         * modules/glob (Makefile.am): Likewise.
112277         * modules/group-member (Makefile.am): Likewise.
112278         * modules/hard-locale (Makefile.am): Likewise.
112279         * modules/hash (Makefile.am): Likewise.
112280         * modules/hmac-md5 (Makefile.am): Likewise.
112281         * modules/hmac-sha1 (Makefile.am): Likewise.
112282         * modules/human (Makefile.am): Likewise.
112283         * modules/idcache (Makefile.am): Likewise.
112284         * modules/imaxabs (Makefile.am): Likewise.
112285         * modules/imaxdiv (Makefile.am): Likewise.
112286         * modules/inet_ntop (Makefile.am): Likewise.
112287         * modules/inet_pton (Makefile.am): Likewise.
112288         * modules/inttostr (Makefile.am): Likewise.
112289         * modules/isapipe (Makefile.am): Likewise.
112290         * modules/lchown (Makefile.am): Likewise.
112291         * modules/long-options (Makefile.am): Likewise.
112292         * modules/lstat (Makefile.am): Likewise.
112293         * modules/malloc (Makefile.am): Likewise.
112294         * modules/mathl (Makefile.am): Likewise.
112295         * modules/mbchar (Makefile.am): Likewise.
112296         * modules/md2 (Makefile.am): Likewise.
112297         * modules/md4 (Makefile.am): Likewise.
112298         * modules/md5 (Makefile.am): Likewise.
112299         * modules/memcasecmp (Makefile.am): Likewise.
112300         * modules/memchr (Makefile.am): Likewise.
112301         * modules/memcmp (Makefile.am): Likewise.
112302         * modules/memcoll (Makefile.am): Likewise.
112303         * modules/memcpy (Makefile.am): Likewise.
112304         * modules/memmem (Makefile.am): Likewise.
112305         * modules/memmove (Makefile.am): Likewise.
112306         * modules/mempcpy (Makefile.am): Likewise.
112307         * modules/memrchr (Makefile.am): Likewise.
112308         * modules/memset (Makefile.am): Likewise.
112309         * modules/memxor (Makefile.am): Likewise.
112310         * modules/mkancesdirs (Makefile.am): Likewise.
112311         * modules/mkdir (Makefile.am): Likewise.
112312         * modules/mkdir-p (Makefile.am): Likewise.
112313         * modules/mkdtemp (Makefile.am): Likewise.
112314         * modules/mkstemp (Makefile.am): Likewise.
112315         * modules/mktime (Makefile.am): Likewise.
112316         * modules/modechange (Makefile.am): Likewise.
112317         * modules/mountlist (Makefile.am): Likewise.
112318         * modules/nanosleep (Makefile.am): Likewise.
112319         * modules/openat (Makefile.am): Likewise.
112320         * modules/pagealign_alloc (Makefile.am): Likewise.
112321         * modules/physmem (Makefile.am): Likewise.
112322         * modules/poll (Makefile.am): Likewise.
112323         * modules/posixtm (Makefile.am): Likewise.
112324         * modules/posixver (Makefile.am): Likewise.
112325         * modules/putenv (Makefile.am): Likewise.
112326         * modules/quote (Makefile.am): Likewise.
112327         * modules/quotearg (Makefile.am): Likewise.
112328         * modules/raise (Makefile.am): Likewise.
112329         * modules/read-file (Makefile.am): Likewise.
112330         * modules/readline (Makefile.am): Likewise.
112331         * modules/readlink (Makefile.am): Likewise.
112332         * modules/readtokens (Makefile.am): Likewise.
112333         * modules/readutmp (Makefile.am): Likewise.
112334         * modules/realloc (Makefile.am): Likewise.
112335         * modules/regex (Makefile.am): Likewise.
112336         * modules/rename (Makefile.am): Likewise.
112337         * modules/rename-dest-slash (Makefile.am): Likewise.
112338         * modules/rijndael (Makefile.am): Likewise.
112339         * modules/rmdir (Makefile.am): Likewise.
112340         * modules/rpmatch (Makefile.am): Likewise.
112341         * modules/safe-read (Makefile.am): Likewise.
112342         * modules/safe-write (Makefile.am): Likewise.
112343         * modules/same (Makefile.am): Likewise.
112344         * modules/save-cwd (Makefile.am): Likewise.
112345         * modules/savedir (Makefile.am): Likewise.
112346         * modules/setenv (Makefile.am): Likewise.
112347         * modules/settime (Makefile.am): Likewise.
112348         * modules/sha1 (Makefile.am): Likewise.
112349         * modules/sig2str (Makefile.am): Likewise.
112350         * modules/snprintf (Makefile.am): Likewise.
112351         * modules/stdlib-safer (Makefile.am): Likewise.
112352         * modules/stpcpy (Makefile.am): Likewise.
112353         * modules/stpncpy (Makefile.am): Likewise.
112354         * modules/strcase (Makefile.am): Likewise.
112355         * modules/strcasestr (Makefile.am): Likewise.
112356         * modules/strchrnul (Makefile.am): Likewise.
112357         * modules/strcspn (Makefile.am): Likewise.
112358         * modules/strdup (Makefile.am): Likewise.
112359         * modules/strerror (Makefile.am): Likewise.
112360         * modules/strftime (Makefile.am): Likewise.
112361         * modules/strndup (Makefile.am): Likewise.
112362         * modules/strnlen (Makefile.am): Likewise.
112363         * modules/strpbrk (Makefile.am): Likewise.
112364         * modules/strsep (Makefile.am): Likewise.
112365         * modules/strstr (Makefile.am): Likewise.
112366         * modules/strtod (Makefile.am): Likewise.
112367         * modules/strtoimax (Makefile.am): Likewise.
112368         * modules/strtok_r (Makefile.am): Likewise.
112369         * modules/strtol (Makefile.am): Likewise.
112370         * modules/strtoll (Makefile.am): Likewise.
112371         * modules/strtoul (Makefile.am): Likewise.
112372         * modules/strtoull (Makefile.am): Likewise.
112373         * modules/strtoumax (Makefile.am): Likewise.
112374         * modules/strverscmp (Makefile.am): Likewise.
112375         * modules/time_r (Makefile.am): Likewise.
112376         * modules/timegm (Makefile.am): Likewise.
112377         * modules/tmpfile-safer (Makefile.am): Likewise.
112378         * modules/unistd-safer (Makefile.am): Likewise.
112379         * modules/unlinkdir (Makefile.am): Likewise.
112380         * modules/userspec (Makefile.am): Likewise.
112381         * modules/utime (Makefile.am): Likewise.
112382         * modules/utimecmp (Makefile.am): Likewise.
112383         * modules/utimens (Makefile.am): Likewise.
112384         * modules/vasnprintf (Makefile.am): Likewise.
112385         * modules/vasprintf (Makefile.am): Likewise.
112386         * modules/vsnprintf (Makefile.am): Likewise.
112387         * modules/xalloc (Makefile.am): Likewise.
112388         * modules/xgetcwd (Makefile.am): Likewise.
112389         * modules/xnanosleep (Makefile.am): Likewise.
112390         * modules/xreadlink (Makefile.am): Likewise.
112391         * modules/xstrtod (Makefile.am): Likewise.
112392         * modules/xstrtol (Makefile.am): Likewise.
112393         * modules/xstrtold (Makefile.am): Likewise.
112394         * modules/yesno (Makefile.am): Likewise.
112396 2006-10-12  Jim Meyering  <jim@meyering.net>
112398         * m4/getloadavg.m4: Revert the change below.
112400         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112401         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112402         fail with a symlink, which is what coreutils' ./bootstrap now
112403         creates by default.
112405 2006-10-12  Bruno Haible  <bruno@clisp.org>
112407         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112408         mingw.
112409         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112410         MSVC and mingw explicitly.
112412 2006-10-11  Simon Josefsson  <jas@extundo.com>
112413             Bruno Haible  <bruno@clisp.org>
112415         Add support for multiple gnulib-tool invocations in the scope of a
112416         single configure.ac file.
112417         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112418         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112419         with the same contents as the _LIBADD variable.
112420         (func_emit_initmacro_start, func_emit_initmacro_end,
112421         func_emit_initmacro_done): New functions.
112422         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112423         gl_LIBOBJS and gl_LTLIBOBJS.
112425 2006-10-11  Bruno Haible  <bruno@clisp.org>
112427         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112428         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112429         autoreconf. Instead, invoke autopoint explicitly but move back the
112430         *.m4 files from gnulib.
112432 2006-10-11  Bruno Haible  <bruno@clisp.org>
112434         * gnulib-tool (func_usage): Make module names after --create-testdir
112435         optional.
112436         (func_create_testdir): If no module was specified, use nearly all
112437         modules.
112439 2006-10-12  Jim Meyering  <jim@meyering.net>
112441         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112442         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112443         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112444         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112445         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112446         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112447         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112448         (fts_set_stat_required): New function.
112449         (fts_open): Defer the calls to fts_stat, if possible or requested.
112450         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112451         into fts_stat itself.
112452         (fts_read): Perform any required (deferred) fts_stat call.
112453         (fts_build): Likewise, for the directory we're about to open and read.
112454         In the readdir loop, carefully decide whether each entry will require
112455         an eventual call to fts_stat, using dirent.d_type info if available.
112456         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112457         a command line argument into this function.  Update all callers.
112458         Map a return value of FTS_DOT to FTS_D for a command line argument.
112459         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112460         Thanks to Miklos Szeredi for his tenacity and for the initial
112461         bug report about "find" failing on a FUSE-based file system.
112463         * lib/fts.c (fts_open): Use consistent indentation.
112465 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112467         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112468         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112469         reported by Jim Meyering.  All uses of cache variables renamed
112470         to match Autoconf's.
112471         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112472         the other one.
112474         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112475         Fix misspelling in diagnostic.
112477 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112479         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112480         defined.  Problem reported by Matthew Woehlke.
112482         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112483         Add support for Tandem NonStop R series.
112484         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112485         Use new macro.
112487         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112488         (has_trailing_slash): Omit size arg; all callers changed.
112489         Omit 'inline', since it doesn't help performance and we'd
112490         need to configure it.
112491         Don't count //, ///, etc. as having a trailing slash.
112492         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112493         (rpl_rename_dest_slash): On failure, use rename's errno rather
112494         than (in some cases) an incorrect or junk errno.
112495         Simplify code by removing need to compute length; this does
112496         cause it to make two passes instead of one over the file name,
112497         but it's worth it.
112499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112500         change, since Autoconf's version may no longer be appropriate now
112501         that we are using CVS Autoconf's version.  Add support for Tandem.
112503 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112504             Bruno Haible  <bruno@clisp.org>
112506         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112507         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112508         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112509         gl_AC_TYPE_LONG_LONG.
112511         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112512         instead of HAVE_LONG_LONG.
112513         * lib/printf-args.c (printf_fetchargs): Likewise.
112514         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
112515         * lib/vasnprintf.c (VASNPRINTF): Likewise.
112516         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
112517         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
112518         gl_AC_TYPE_LONG_LONG.
112520 2006-10-11  Bruno Haible  <bruno@clisp.org>
112522         * m4/longlong.m4: Add comments.
112523         * m4/ulonglong.m4: Likewise.
112525 2006-10-10  Bruno Haible  <bruno@clisp.org>
112527         Make it possible to #define stpcpy, strdup to aliases.
112528         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
112529         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
112531 2006-10-10  Bruno Haible  <bruno@clisp.org>
112533         Make it possible to #define gcd to an alias.
112534         * lib/gcd.c: Include config.h.
112536 2006-10-10  Bruno Haible  <bruno@clisp.org>
112538         Make it possible to #define c_isascii to an alias.
112539         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
112540         defined. Undefine the macros before defining them, to avoid gcc
112541         warnings.
112542         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
112543         define NO_C_CTYPE_MACROS early.
112545 2006-10-10  Bruno Haible  <bruno@clisp.org>
112547         Make it possible to #define set_program_name to an alias.
112548         * lib/progname.c: Don't undefine set_program_name; instead, undefine
112549         ENABLE_RELOCATABLE early.
112551 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
112553         Port to Tandem NSK OSS, which has 64-bit signed int but at most
112554         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
112555         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
112556         More generally, don't assume that 64-bit signed int is available
112557         if unsigned int is, and vice versa.
112558         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
112559         unsigned symbols, not on their signed counterparts.
112560         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
112561         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
112562         (UINT64_C, UINTMAX_C):
112563         Likewise.
112564         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
112565         unsigned counterparts.
112566         (Have_long_long, Unsigned): New macros.
112567         (Int): Renamed from INT.
112568         (strtoimax): Use the new macros.
112569         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
112570         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
112571         * modules/inttypes (inttypes.h): Substitute
112572         HAVE_UNSIGNED_LONG_LONG_INT.
112573         * modules/stdint (stdint.h): Likewise.
112574         (Files): Add m4/ulonglong.m4.
112576 2006-10-10  Bruno Haible  <bruno@clisp.org>
112578         Fix a gcc -Wshadow warning.
112579         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
112580         to 'bucket'.
112581         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
112582         gl_linked_indexof_from_to): Likewise.
112583         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
112584         Likewise.
112585         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
112586         Likewise.
112587         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
112588         Reported by Eric Blake.
112590 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112592         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112593         for NetBSD.  Problem reported by Bruno Haible.
112595 2006-10-09  Jim Meyering  <jim@meyering.net>
112597         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112598         Patch from Bruno Haible.
112600 2006-10-09  Jim Meyering  <jim@meyering.net>
112602         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112603         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112604         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112606 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112608         Don't include <config.h> twice; this doesn't work in some cases,
112609         e.g., when config.h has "#define intmax_t long long int" and
112610         we include <config.h>, <inttypes.h>, <config.h> in that order.
112611         Problem reported by Matthew Woehlke in:
112612         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112613         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112614         * lib/fts-cycle.c: Don't include config.h.
112615         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112616         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112617         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112618         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112619         inttypes.h.
112620         * lib/xstrtoumax.c: Likewise.
112621         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112622         __strtol and the like, so that this module is more like its siblings.
112623         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112624         Remove; no longer needed now that we assume gnulib inttypes.h.
112626 2006-10-08  Bruno Haible  <bruno@clisp.org>
112628         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112629         option.
112631 2006-10-07  Jim Meyering  <jim@meyering.net>
112633         * modules/inttypes (inttypes.h): Revert what seems to have been
112634         an inadvertent part of today's change: use "|", not "/" in the
112635         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112637 2006-10-07  Bruno Haible  <bruno@clisp.org>
112639         * modules/sublist: New file.
112641 2006-10-07  Bruno Haible  <bruno@clisp.org>
112643         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112644         * modules/argz (argz.h): Likewise.
112645         * modules/arpa_inet (arpa/inet.h): Likewise.
112646         * modules/byteswap (byteswap.h): Likewise.
112647         * modules/configmake (configmake.h): Likewise.
112648         * modules/fcntl (fcntl.h): Likewise.
112649         * modules/fnmatch (fnmatch.h): Likewise.
112650         * modules/getopt (getopt.h): Likewise.
112651         * modules/glob (glob.h): Likewise.
112652         * modules/inttypes (inttypes.h): Likewise.
112653         * modules/netinet_in (netinet/in.h): Likewise.
112654         * modules/poll (poll.h): Likewise.
112655         * modules/stdbool (stdbool.h): Likewise.
112656         * modules/stdint (stdint.h): Likewise.
112657         * modules/sys_select (sys/select.h): Likewise.
112658         * modules/sys_socket (sys/socket.h): Likewise.
112659         * modules/sys_stat (sys/stat.h): Likewise.
112660         * modules/sysexits (sysexits.h): Likewise.
112661         * modules/unistd (unistd.h): Likewise.
112662         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112663         Add a "DO NOT EDIT" comment to the generated file.
112664         (func_import): Likewise for gnulib-comp.m4.
112666 2006-10-07  Bruno Haible  <bruno@clisp.org>
112668         * lib/gl_sublist.h: New file.
112669         * lib/gl_sublist.c: New file.
112671 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112673         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112674         name (relative to the original working directory) and the file
112675         name component (relative to the temporary working directory).  All
112676         callers changed.
112677         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112678         * lib/mkdir-p.c (make_dir_parents): Likewise.
112679         * lib/mkdir-p.h (make_dir_parents): Likewise.
112681 2006-10-06  Eric Blake  <ebb9@byu.net>
112683         Define several macros for use by the clean-temp module.
112684         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112685         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112686         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112688         * lib/clean-temp.h (close_stream_temp): New declaration.
112689         * lib/clean-temp.c (includes): Pull in headers according to what
112690         other modules are in use.
112691         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112693 2006-10-06  Bruno Haible  <bruno@clisp.org>
112695         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112696         instead of fopen, fwriteerror.
112698 2006-10-06  Bruno Haible  <bruno@clisp.org>
112700         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112701         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112702         int.
112703         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112704         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112705         Return an error indicator.
112706         Suggested by Eric Blake.
112708 2006-10-06  Bruno Haible  <bruno@clisp.org>
112710         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112711         Reported by Eric Blake.
112713 2006-10-06  Bruno Haible  <bruno@clisp.org>
112715         * modules/closeout (Description): Mention stderr too.
112717 2006-10-06  Bruno Haible  <bruno@clisp.org>
112718         and Paul Eggert  <eggert@cs.ucla.edu>
112720         * lib/closeout.c (close_stdout): Also close stderr.
112721         * lib/closeout.h: Update comment.
112723 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112725         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112726         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112727         * lib/dirchownmod.c: Include lchown.h.
112728         * lib/lchown.c: Don't include files that lchown.h now includes.
112729         Don't declare chown, since lchown.h now does that.
112730         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112731         (lchown): Define to rpl_chown if lchown is declared but
112732         does not exist.  Declare using a prototype if lchown is not
112733         declared.  Add a copyright notice.
112734         * lib/mkstemp.h: Include <unistd.h>.
112735         * lib/openat.c: Include lchown.h.
112737         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112738         we now test for that separately.
112739         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112740         rather than O_NOFOLLOW, when testing whether it's possible to
112741         avoid a race condition reliably.
112742         * lib/savewd.c (savewd_chdir): Likewise.
112744         Remove macros that are no longer needed now that stdint.h is
112745         reliable.
112746         * lib/fsusage.c (UINTMAX_MAX): Remove.
112747         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112748         * lib/utimecmp.c (SIZE_MAX): Remove.
112750         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112752         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112753         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112754         O_NOATIME works.
112756 2006-10-05  Bruno Haible  <bruno@clisp.org>
112758         * lib/gl_list.h (gl_sortedlist_search_from_to,
112759         gl_sortedlist_indexof_from_to): New declarations.
112760         (gl_list_implementation): New fields sortedlist_search_from_to,
112761         sortedlist_indexof_from_to.
112762         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112763         inline functions.
112764         * lib/gl_list.c (gl_sortedlist_search_from_to,
112765         gl_sortedlist_indexof_from_to): New functions.
112766         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112767         function.
112768         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112769         (gl_array_sortedlist_search_from_to): New function.
112770         (gl_array_list_implementation): Update.
112771         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112772         function.
112773         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112774         (gl_carray_sortedlist_search_from_to): New function.
112775         (gl_carray_list_implementation): Update.
112776         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112777         gl_linked_sortedlist_indexof_from_to): New functions.
112778         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112779         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112780         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112781         gl_tree_sortedlist_indexof_from_to): New functions.
112782         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112783         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112784         Update.
112785         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112786         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112787         Update.
112789 2006-10-05  Bruno Haible  <bruno@clisp.org>
112791         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112792         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112793         (struct gl_list_implementation): Add fields search_from_to,
112794         indexof_from_to. Remove fields search, indexof.
112795         (gl_list_search): Use the search_from_to method.
112796         (gl_list_search_from, gl_list_search_from_to): New functions.
112797         (gl_list_indexof): Use the indexof_from_to method.
112798         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112799         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112800         (gl_list_search_from, gl_list_search_from_to): New functions.
112801         (gl_list_indexof): Use the indexof_from_to method.
112802         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112803         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112804         gl_array_indexof. Add start_index, end_index arguments.
112805         (gl_array_search_from_to): Renamed from gl_array_search. Add
112806         start_index, end_index arguments.
112807         (gl_array_remove, gl_array_list_implementation): Update.
112808         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112809         gl_carray_indexof. Add start_index, end_index arguments.
112810         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112811         start_index, end_index arguments.
112812         (gl_carray_remove, gl_carray_list_implementation): Update.
112813         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112814         gl_linked_search. Add start_index, end_index arguments.
112815         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112816         start_index, end_index arguments.
112817         (gl_linked_remove): Update.
112818         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112819         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112820         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112821         field to 'size_t'.
112822         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112823         gl_tree_search. Add start_index, end_index arguments.
112824         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112825         start_index, end_index arguments.
112826         (gl_tree_remove): Update.
112827         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112828         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112829         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112830         function.
112831         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112832         gl_tree_search. Add start_index, end_index arguments.
112833         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112834         start_index, end_index arguments.
112835         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112836         Update.
112837         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112839 2006-10-05  Bruno Haible  <bruno@clisp.org>
112841         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112843         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112844         fwriteerror_temp): New declarations.
112845         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112846         (descriptors): New variable.
112847         (cleanup): First, close the descriptors.
112848         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112849         fclose_temp, fwriteerror_temp): New functions.
112851 2006-10-04  Jim Meyering  <jim@meyering.net>
112853         * lib/fts.c (fts_open): Tiny comment change.
112855 2006-10-04  Bruno Haible  <bruno@clisp.org>
112857         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112858         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112859         gl_LOCK_BODY.
112860         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112861         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112862         gl_LOCK_EARLY_BODY.
112863         (gl_LOCK): Require gl_LOCK_BODY.
112865 2006-10-04  Bruno Haible  <bruno@clisp.org>
112867         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112868         (gl_oset_search_atleast): New declaration.
112869         (struct gl_oset_implementation): Add field 'search_atleast'.
112870         (gl_oset_search_atleast): New inline function.
112871         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112872         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112873         (gl_array_oset_implementation): Update.
112874         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112875         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112876         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112878 2006-10-04  Bruno Haible  <bruno@clisp.org>
112880         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112882 2006-10-03  Bruno Haible  <bruno@clisp.org>
112884         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112885         from gl_avltreehash_list_implementation.
112887 2006-10-03  Bruno Haible  <bruno@clisp.org>
112889         * lib/gl_oset.c (gl_oset_add): Fix return type.
112891 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112893         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112895 2006-10-02  Eric Blake  <ebb9@byu.net>
112897         * modules/strnlen (Depends-on): Add extensions.
112899 2006-10-02  Eric Blake  <ebb9@byu.net>
112901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112902         definition in 2.60+.
112904 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112906         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112907         checks.
112909 2006-10-02  Bruno Haible  <bruno@clisp.org>
112911         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112912         to the AUTOMAKE_OPTIONS.
112913         Reported by Jim Meyering.
112915 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112917         Work around bug in Solaris 10 /proc file system:
112918         /proc/self/fd/NNN/.. isn't the parent directory of
112919         the directory whose file descriptor is NNN.  This needs to
112920         be worked around at run time, not compile time, since a
112921         program might be built on Solaris 8, where things work, and
112922         run on Solaris 10.
112923         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112924         to use the following interface instead:
112925         (OPENAT_BUFFER_SIZE): New macro.
112926         (openat_proc_name): New function.
112927         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112928         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112929         Likewise.
112930         * lib/openat-proc.c: New file.
112931         * modules/openat (Files): Add lib/openat-proc.c.
112932         (Depends-on): Add same-inode, stdbool.
112933         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112935 2006-09-29  Bruno Haible  <bruno@clisp.org>
112937         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
112938         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
112939         argument. Set stdout_closed before testing for ferror, not after.
112940         (fwriteerror, fwriteerror_no_ebadf): New functions.
112942 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112944         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
112946 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112948         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112949         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112951 2006-09-28  Jim Meyering  <jim@meyering.net>
112953         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112954         Include <unistd.h>.
112956 2006-09-28  Bruno Haible  <bruno@clisp.org>
112958         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112959         * modules/linkedhash-list (Depends-on): Likewise.
112960         * modules/rbtreehash-list (Depends-on): Likewise.
112962 2006-09-28  Bruno Haible  <bruno@clisp.org>
112964         * lib/strndup.h: Simplify the redefinition of strndup.
112965         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112966         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112968 2006-09-28  Bruno Haible  <bruno@clisp.org>
112970         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112971         * lib/gl_linkedhash_list.c: Likewise.
112972         * lib/gl_rbtreehash_list.c: Likewise.
112974 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112976         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112977         getaddrinfo.
112979         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112980         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112981         it causes <stdio_ext.h> to cause a compile-time error.
112982         Problem reported by Nelson H. F. Beebe.
112983         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112984         of HAVE_DECL___PENDING.
112986         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112987         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112988         declaration.
112990 2006-09-27  Jim Meyering  <jim@meyering.net>
112992         This file could end up with a definition for a function
112993         named __strndup, rather than rpl_strndup on a system with
112994         incomplete weak_alias support.
112995         * lib/strndup.c (strndup): Rename from __strndup.
112996         Remove #defines that used to map __strndup to strndup.
112997         Don't use K&R prototypes.
112998         Remove LIBC-related code, since this file is not sync'd with glibc.
112999         * lib/strndup.h: Revamp, accordingly.
113000         * m4/strndup.m4: Modernize.
113002 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113004         * modules/savewd (Depends-on): Add 'raise'.
113005         * lib/savewd.c: Include <signal.h>, for 'raise'.
113007 2006-09-26  Jim Meyering  <jim@meyering.net>
113009         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113010         when we detect Darwin 8.7.0's acl_get_file bug.
113011         Rearrange to perform the new (below) run-test while $LIBS
113012         contains any acl-related library.  Set USE_ACL at the end.
113013         (gl_ACL_GET_FILE): New function.
113015 2006-09-26  Eric Blake  <ebb9@byu.net>
113017         * lib/verror.c: Include <config.h> unconditionally.
113019 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113021         * modules/clock-time (Maintainer): Add self.
113022         * modules/getlogin_r (Depends-on): Add extensions.
113024 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113026         * modules/clock-time: New module.
113027         * modules/nanosleep (Depends-on): Add clock-time.
113028         * modules/gethrxtime (Depends-on): Likewise.
113029         * modules/gettime (Depends-on): Likewise.
113030         * modules/settime (Depends-on): Likewise.
113032         * modules/fts-lgpl: Depend on openat.
113033         * modules/mkancesdirs: Depend on savewd.
113034         * modules/mkdir-p: Likewise.
113036 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113038         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113041         `gl_have_arbitrary_file_name_length_limit' to
113042         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113043         actually works between configure runs.
113045 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113046             Bruno Haible  <bruno@clisp.org>
113048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113050 2006-09-25  Jim Meyering  <jim@meyering.net>
113052         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113053         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113055 2006-09-25  Eric Blake  <ebb9@byu.net>
113057         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113058         exec's in 2006-09-18 patch when shuffling fds.
113060 2006-09-25  Bruno Haible  <bruno@clisp.org>
113062         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113063         Reported by Jim Meyering.
113065 2006-09-24  Jim Meyering  <jim@meyering.net>
113067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113068         compare a pointer against a literal "0".  That caused failures with
113069         at least HP-UX's hpcc.
113071 2006-09-22  Simon Josefsson  <jas@extundo.com>
113073         * modules/gc-sha1:
113074         * modules/gc-md4:
113075         * modules/gc-hmac-sha1:
113076         * modules/gc-hmac-md5:
113077         * modules/gc-des:
113078         * modules/gc-arcfour: Distribute more files.
113080 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113082         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113083         (gl_linked_iterator_from_to): Initialize struct completely.
113084         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113085         (gl_tree_iterator_from_to): Likewise
113086         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113087         * lib/gl_array_list.c [lint] (gl_array_iterator)
113088         (gl_array_iterator_from_to): Likewise.
113089         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113090         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113091         (gl_carray_iterator_from_to): Likewise.
113093         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113094         * lib/md4.c (md4_process_block): Remove unused variable.
113095         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113096         parentheses for clarity.
113098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113100         * modules/bison-i18n (Depends-on): Add gettext.
113102 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113104         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113105         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113106         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113107         also add missing comma that caused broken test.
113108         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113109         stdlib.h, for `abort'.
113110         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113111         variables.
113112         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113113         include unistd.h if present, for `rmdir'.
113114         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113115         variables.
113116         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113117         in the process include standard headers for prototypes.
113118         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113119         gets declared on GNU/Linux.
113120         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113121         unistd.h, for `rmdir'.
113122         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113124         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113125         always true.
113126         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113128         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113130 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113132         * gnulib-tool (func_version): Create output all at once.  This
113133         may help avoid triggering unnecessary SIGPIPEs, and at any
113134         rate it doesn't hurt.
113136 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113137             Bruno Haible  <bruno@clisp.org>
113139         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113140         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113141         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113143         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113144         (gl_FUNC_VASPRINTF): Invoke it.
113146 2006-09-22  Bruno Haible  <bruno@clisp.org>
113148         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113149         getloadavg.c as first argument.
113151 2006-09-22  Bruno Haible  <bruno@clisp.org>
113153         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113154         at the beginning of the gl_INIT macro.
113155         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113156         gl_GETLOADAVG.
113158 2006-09-22  Bruno Haible  <bruno@clisp.org>
113160         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113161         module.
113162         Suggested by Ralf Wildenhues.
113164 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113166         Import this patch from libc:
113168         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113170         * lib/regex_internal.c (re_string_reconstruct): Handle
113171         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113172         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113173         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113174         re_string_context_at.
113176         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113177         now requires it.
113178         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113179         gl_REGEX now does it for us.
113180         (gl_REGEX): Add test taken from
113181         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113184         Check that large offsets work.  Modernize Autoconf usages.
113185         Prefer "yes" to mean a good thing rather than a bad.
113186         Don't put "#define mkstemp" in config.h, as this might interfere
113187         with standard system headers that "#define mkstemp mkstemp64".
113189         * modules/mkstemp (Depends-on): Add extensions, so that
113190         mkstemp is visible on some platforms.
113191         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113192         (Include): Change to "mkstemp.h" from <stdlib.h>.
113193         (Files): Add mkstemp.h.
113195         * lib/mkstemp.h: New file, since some standard headers
113196         #define mkstemp.
113197         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113198         Include "mkstemp.h".
113199         Make the _LIBC code resemble glibc original more,
113200         e.g., use K&R style.
113201         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113202         (mkstemp): Remove, since mkstemp.h does this for us.
113203         * lib/stdlib--.h: Include mkstemp.h.
113205         Import this patch from libc:
113207         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113209         * lib/tempname.c (__gen_tempname): Change attempts_min
113210         into a macro.  Use preprocessor to decide how to initialize
113211         attempts [Coverity CID 67].
113213 2006-09-20  Bruno Haible  <bruno@clisp.org>
113215         * lib/mkdtemp.c: Import from libc.
113216         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113217                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113218                 attempts_min into a macro.  Use preprocessor to decide how to
113219                 initialize attempts [Coverity CID 67].
113220         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113221                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113222                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113224 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113226         * gnulib-tool (func_exit): New function, to allow to pass the
113227         exit status portably through the trap.  Use everywhere.
113228         (--help, --version): Signal a write error.
113229         (trap): catch SIGPIPE, for write errors.
113230         Exit at the end of the trap, with the correct exit status.
113232 2006-09-19  Karl Berry  <karl@gnu.org>
113234         * doc/gnulib.texi: note about the license texinfo files.
113236 2006-09-19  Eric Blake  <ebb9@byu.net>
113238         * gnulib-tool: Avoid space-tab.
113240 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113242         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113243         that prevented coreutils 6.1 from building.  Problem reported
113244         by Petter Reinholdtsen.
113246 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113248         * gnulib-tool (avoidlist): Fix typo that broke options like
113249         --avoid=lock that are used by coreutils bootstrap.
113251 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113253         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113254         more systematically.
113256 2006-09-18  Jim Meyering  <jim@meyering.net>
113258         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113260 2006-09-18  Bruno Haible  <bruno@clisp.org>
113262         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113264 2006-09-18  Bruno Haible  <bruno@clisp.org>
113266         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113267         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113268         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113269         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113270         * m4/gettext.m4: Require autoconf >= 2.52.
113271         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113272         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113273         of gl_cv_header_inttypes_h.
113275 2006-09-18  Bruno Haible  <bruno@clisp.org>
113277         * lib/javaversion.c: Include configmake.h.
113279 2006-09-18  Bruno Haible  <bruno@clisp.org>
113281         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113282         avoid that the while loops be executed in a subshell.
113284 2006-09-18  Bruno Haible  <bruno@clisp.org>
113286         * MODULES.html.sh (func_module): Break long lines.
113287         Suggested by Bruce Korb <bkorb@gnu.org>.
113289 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113291         Speed up by a factor of 1.12.
113292         * gnulib-tool (nl): New variable.
113293         (func_import): Rewrite include directive extraction to only read each
113294         directive once.
113296 2006-09-17  Bruno Haible  <bruno@clisp.org>
113298         * modules/javaversion (Makefile.am): Remove DEFS setting.
113299         (Depends-on): Add configmake, for PKGDATADIR definition.
113301 2006-09-17  Bruno Haible  <bruno@clisp.org>
113303         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113305 2006-09-17  Bruno Haible  <bruno@clisp.org>
113307         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113308         (func_modules_transitive_closure, func_modules_add_dummy,
113309         func_modules_to_filelist, func_import, func_create_testdir,
113310         func_create_megatestdir, ...): Use it wherever possible.
113311         Suggested by Ralf Wildenhues.
113313 2006-09-16  Karl Berry  <karl@gnu.org>
113315         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113316         to avoid sectioning errors.
113317         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113318         [ifinfo]: blank line after @center-ed titles.
113319         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113320         Spell FSF address consistently with others.
113321         (These changes approved by rms.)
113323 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113325         Speed up by a factor of 1.61.
113326         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113327         already checked module names again.
113329 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113331         Speed up by a factor of 1.13.
113332         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113333         for new_files, and the input to func_add_or_update.
113335 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113337         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113338         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113340 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113342         * modules/mkancesdirs (Depends-on): Add fcntl.
113343         * modules/savewd: New file.
113344         * MODULES.html.sh (File system functions): Add savewd.
113346         * modules/configmake (Makefile.am): Add support for the
113347         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113349 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113351         * m4/savewd.m4: New file.
113353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113355         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113356         (dirchownmod): New arg FD.  All callers changed.
113357         Use FD rather than opening the directory ourself, as opening is
113358         now the caller's responsibility.
113359         * lib/dirchownmod.h: Likewise.
113360         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113361         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113362         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113363         (test_dir): Remove.
113364         (mkancesdirs): Return length of prefix of FILE that has already
113365         been made, or -2 if there is a child doing the work.  Redo
113366         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113367         ".", and treat ".." specially since it might stray back into
113368         already-created areas.  Use a subprocess if necessary.  New arg
113369         WD; all users changed.  MAKE_DIR function should now return 1
113370         if it creates a directory that is not readable.  Return -2 if
113371         a child process is spun off.
113372         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113373         Adjust signature to match code.
113374         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113375         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113376         all users changed.
113377         * lib/savewd.c, lib/savewd.h: New files.
113379 2006-09-15  Jim Meyering  <jim@meyering.net>
113381         * modules/rename-dest-slash: New module.
113382         * MODULES.html.sh (posix_compat): Add it here.
113384         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113386 2006-09-15  Jim Meyering  <jim@meyering.net>
113388         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113389         file.
113391         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113393 2006-09-15  Jim Meyering  <jim@meyering.net>
113395         * lib/rename-dest-slash.c (has_trailing_slash): Use
113396         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113397         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113398         test before testing whether SRC is a directory.
113399         Suggestions from Bruno Haible.
113401         Avoid a warning about an unused variable.
113402         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113403         into the #ifdef block where it's used.
113405         * lib/rename-dest-slash.c: New file.
113407 2006-09-14  Bruno Haible  <bruno@clisp.org>
113409         * lib/allocsa.c: Include <config.h> unconditionally.
113410         * lib/asnprintf.c: Likewise.
113411         * lib/asprintf.c: Likewise.
113412         * lib/c-strcasecmp.c: Likewise.
113413         * lib/c-strcasestr.c: Likewise.
113414         * lib/c-strncasecmp.c: Likewise.
113415         * lib/c-strstr.c: Likewise.
113416         * lib/classpath.c: Likewise.
113417         * lib/clean-temp.c: Likewise.
113418         * lib/concatpath.c: Likewise.
113419         * lib/copy-file.c: Likewise.
113420         * lib/csharpcomp.c: Likewise.
113421         * lib/csharpexec.c: Likewise.
113422         * lib/execute.c: Likewise.
113423         * lib/fatal-signal.c: Likewise.
113424         * lib/findprog.c: Likewise.
113425         * lib/fwriteerror.c: Likewise.
113426         * lib/gl_array_list.c: Likewise.
113427         * lib/gl_array_oset.c: Likewise.
113428         * lib/gl_avltree_list.c: Likewise.
113429         * lib/gl_avltree_oset.c: Likewise.
113430         * lib/gl_avltreehash_list.c: Likewise.
113431         * lib/gl_carray_list.c: Likewise.
113432         * lib/gl_linked_list.c: Likewise.
113433         * lib/gl_linkedhash_list.c: Likewise.
113434         * lib/gl_list.c: Likewise.
113435         * lib/gl_oset.c: Likewise.
113436         * lib/gl_rbtree_list.c: Likewise.
113437         * lib/gl_rbtree_oset.c: Likewise.
113438         * lib/gl_rbtreehash_list.c: Likewise.
113439         * lib/imaxabs.c: Likewise.
113440         * lib/imaxdiv.c: Likewise.
113441         * lib/javacomp.c: Likewise.
113442         * lib/javaexec.c: Likewise.
113443         * lib/javaversion.c: Likewise.
113444         * lib/linebreak.c: Likewise.
113445         * lib/localcharset.c: Likewise.
113446         * lib/lock.c: Likewise.
113447         * lib/mbchar.c: Likewise.
113448         * lib/mbswidth.c: Likewise.
113449         * lib/mkdtemp.c: Likewise.
113450         * lib/pipe.c: Likewise.
113451         * lib/printf-args.c: Likewise.
113452         * lib/printf-parse.c: Likewise.
113453         * lib/progname.c: Likewise.
113454         * lib/progreloc.c: Likewise.
113455         * lib/readlink.c: Likewise.
113456         * lib/sh-quote.c: Likewise.
113457         * lib/stpcpy.c: Likewise.
113458         * lib/stpncpy.c: Likewise.
113459         * lib/strcasecmp.c: Likewise.
113460         * lib/strcasestr.c: Likewise.
113461         * lib/strcspn.c: Likewise.
113462         * lib/striconv.c: Likewise.
113463         * lib/strncasecmp.c: Likewise.
113464         * lib/strnlen1.c: Likewise.
113465         * lib/strstr.c: Likewise.
113466         * lib/strtok_r.c: Likewise.
113467         * lib/tls.c: Likewise.
113468         * lib/tmpdir.c: Likewise.
113469         * lib/unicodeio.c: Likewise.
113470         * lib/unsetenv.c: Likewise.
113471         * lib/vasnprintf.c: Likewise.
113472         * lib/vasprintf.c: Likewise.
113473         * lib/wait-process.c: Likewise.
113474         * lib/xallocsa.c: Likewise.
113475         * lib/xsetenv.c: Likewise.
113476         * lib/xstriconv.c: Likewise.
113478 2006-09-13  Simon Josefsson  <jas@extundo.com>
113480         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113481         that internally, suggested by Ralf Wildenhues
113482         <Ralf.Wildenhues@gmx.de>.
113484 2006-09-13  Simon Josefsson  <jas@extundo.com>
113486         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113487         @LIBOBJS@.
113488         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113490 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113492         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113493         longer worry about uses that don't define HAVE_CONFIG_H.
113494         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113495         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113496         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113497         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113498         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113499         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113500         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113501         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113502         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113503         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113504         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113505         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113506         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113507         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113508         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113509         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113510         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113511         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113512         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113513         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113514         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
113515         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
113516         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
113517         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
113518         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
113519         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
113520         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
113521         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
113522         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
113523         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
113524         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
113525         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
113526         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
113527         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
113528         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
113529         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
113530         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
113531         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
113532         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
113533         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
113534         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
113535         Likewise.
113537 2006-09-13  Eric Blake  <ebb9@byu.net>
113539         * lib/getopt.c: Fix typo in last commit.
113541 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
113543         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
113544         dgettext.
113546 2006-09-12  Jim Meyering  <jim@meyering.net>
113548         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
113549         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
113550         Reported by Nelson H. F. Beebe.
113552 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113554         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
113555         program_invocation_name and program_invocation_short_name are
113556         initialized.
113557         * lib/argp-namefrob.h: Move declarations of program_invocation_name
113558         and program_invocation_short_name to argp.h, so they are visible
113559         to user programs.
113560         * lib/argp.h: Likewise
113562 2006-09-10  Bruno Haible  <bruno@clisp.org>
113564         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113565         m4/inttypes_h.m4, m4/uintmax_t.m4.
113567 2006-09-10  Bruno Haible  <bruno@clisp.org>
113569         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
113570         gl_AC_TYPE_UINTMAX_T.
113572 2006-09-10  Bruno Haible  <bruno@clisp.org>
113574         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
113576 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113578         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
113579         convention.  Text proposed by Bruno Haible.
113580         (struct argp_option): Document the use of N_() wrappers.
113582         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
113583         '\v', and translate the two parts separately, instead of feeding
113584         the whole string to gettext.  This allows to exclude
113585         '\v' from the strings visible to the translator by writing doc
113586         strings as N_("..") "\v" N_("..").
113588 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
113590         * config/srclist.txt: Undo latest change; the bug was fixed.
113592 2006-09-09  Bruno Haible  <bruno@clisp.org>
113594         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113595         assignments if building a library without libtool.
113596         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113597         in func_emit_lib_Makefile_am.
113598         (func_import): When building a static library libfoo.a, arrange to
113599         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113600         (func_create_testdir): Likewise.
113601         * modules/gc (configure.ac, Makefile.am): If building statically,
113602         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113603         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113604         * modules/striconv (configure.ac, Makefile.am): Likewise.
113605         Based on a suggestion by Ralf Wildenhues.
113607 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113609         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
113610         Check for unistd.h too, since Autoconf doesn't assume POSIX.
113611         Also:
113613         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113614         Add year_2050_test to catch glibc bug 2821
113615         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113617         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113618         Prefer #ifdef to #if.
113620         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113621         Return from 'main' instead of calling 'exit'.
113623 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113625         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113626         returned the maximum time_t value rather than (time_t) -1.
113627         Problem originally reported by William Bardwell
113628         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113630         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113631         Moved to here ...
113632         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113633         ... from here.
113635 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113637         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113638         2821 is fixed.
113640 2006-09-08  Jim Meyering  <jim@meyering.net>
113642         Don't make generated files read-only.  That would bother too many
113643         people.  However, do retain the ability to work when targets are
113644         read-only: remove the destination and temporary files before writing
113645         them (when generated via sed or echo), or by using the -f option for
113646         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113647         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113648         * modules/byteswap, modules/configmake, modules/fcntl:
113649         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113650         * modules/localcharset, modules/netinet_in, modules/poll:
113651         * modules/stdbool, modules/stdint, modules/sys_select:
113652         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113654 2006-09-08  Jim Meyering  <jim@meyering.net>
113656         Avoid new build failure on FreeBSD 6.0.
113657         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113658         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113659         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113661 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113665 2006-09-07  Jim Meyering  <jim@meyering.net>
113667         Fix global typo in last change: use chmod u-w, not chmod u-x.
113668         Spotted by Paul Eggert and Bruce Korb.
113669         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113670         * modules/byteswap, modules/configmake, modules/fcntl:
113671         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113672         * modules/localcharset, modules/netinet_in, modules/poll:
113673         * modules/stdbool, modules/stdint, modules/sys_select:
113674         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113676 2006-09-06  Jim Meyering  <jim@meyering.net>
113678         Make generated files be read-only.
113679         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113680         Ensure that each generated file is now read-only.
113681         * modules/argz: Likewise.
113682         * modules/arpa_inet: Likewise.
113683         * modules/byteswap: Likewise.
113684         * modules/configmake: Likewise.
113685         * modules/fcntl: Likewise.
113686         * modules/fnmatch: Likewise.
113687         * modules/getopt: Likewise.
113688         * modules/glob: Likewise.
113689         * modules/inttypes: Likewise.
113690         * modules/netinet_in: Likewise.
113691         * modules/poll: Likewise.
113692         * modules/stdbool: Likewise.
113693         * modules/stdint: Likewise.
113694         * modules/sys_select: Likewise.
113695         * modules/sys_socket: Likewise.
113696         * modules/sys_stat: Likewise.
113697         * modules/sysexits: Likewise.
113698         * modules/localcharset: Same as above, but continue using temporary
113699         file named "t-$@" (why different?) rather than the "$@-t" used
113700         everywhere else.
113702         * modules/sysexits (Makefile.am): Replace literal occurrences
113703         of "sysexit.h" more readable, and more consistent, "$@".
113705 2006-09-06  Bruno Haible  <bruno@clisp.org>
113707         * modules/striconv: New file.
113708         * modules/xstriconv: New file.
113709         * MODULES.html.sh (Internationalization functions): Add striconv,
113710         xstriconv.
113712 2006-09-06  Bruno Haible  <bruno@clisp.org>
113714         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113715         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113716         not using libtool correctly.
113718 2006-09-06  Bruno Haible  <bruno@clisp.org>
113720         * lib/striconv.h: New file.
113721         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113722         iconvstring.c.
113723         * lib/xstriconv.h: New file.
113724         * lib/xstriconv.c: New file.
113726 2006-09-06  Bruno Haible  <bruno@clisp.org>
113728         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113729         lib_..._LDFLAGS.
113731 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113733         * lib/argz_.h: Sync from Libtool.
113735         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113736                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113738         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113740 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113742         * modules/trim: New file.
113744 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113746         * lib/trim.h: New file.
113747         * lib/trim.c: New file.
113749 2006-09-05  Bruno Haible  <bruno@clisp.org>
113751         * MODULES.html.sh (String handling): Add trim.
113753 2006-09-04  Karl Berry  <karl@gnu.org>
113755         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113756         until next release.
113758 2006-09-03  Bruno Haible  <bruno@clisp.org>
113760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113761         correctly.
113763 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113765         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113766         not gl_GETLOADAVG.  Omit unneeded semicolons.
113767         Problems reported by Ralf Wildenhues in
113768         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113769         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113770         at the end, which is the usual gnulib style.
113772         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113773         of doing all the work ourselves.
113774         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113775         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113777 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113779         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113780         Problem reported by Ralf Wildenhues in
113781         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113783         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113784         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113786 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113788         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113789         yesterday's patch by changing test -n to test -z.
113791 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113793         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113794         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113795         the former is now obsolescent.
113797         * modules/chdir-long (Depends-on): Add fcntl.
113799 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113801         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113802         obsolescent, and programs should use gnulib instead.
113803         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113804         but with prefixes changed.
113806 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113808         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113809         or stdbool.h, because they might not exist while configuring.
113811         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113812         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113813         does that for us.
113814         (O_DIRECTORY): Remove.
113816 2006-08-31  Eric Blake  <ebb9@byu.net>
113818         * gnulib-tool: Don't let emacs change spaces to TAB.
113820 2006-08-31  Bruno Haible  <bruno@clisp.org>
113822         * gnulib-tool: When calling func_import more than once, do it in a
113823         subshell.
113824         Reported by Eric Blake <ebb9@byu.net>.
113826 2006-08-31  Bruno Haible  <bruno@clisp.org>
113828         * gnulib-tool (nl): Remove variable.
113829         (sed_transform_lib_file): Use more robust test for config-h module.
113830         (func_import): Fix typo in 2006-08-25 patch.
113832 2006-08-31  Bruno Haible  <bruno@clisp.org>
113834         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113835         specified, augment Makefile.am variables instead of assigning them.
113837 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113839         Work around a bug in both the Linux and SunOS 64-bit kernels:
113840         nanosleep mishandles sleeps for longer than 2**31 seconds.
113841         Problem reported by Frank v Waveren in
113842         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113844         Check for nanosleep bug.
113845         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113847 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113849         Work around a bug in both the Linux and SunOS 64-bit kernels:
113850         nanosleep mishandles sleeps for longer than 2**31 seconds.
113851         Problem reported by Frank v Waveren in
113852         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113853         * lib/nanosleep.c (BILLION): New constant.
113854         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113855         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113856         implementation.
113858 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113860         * modules/nanosleep (Depends-on): Add gettime.
113862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113863         and Simon Josefsson  <jas@extundo.com>
113864         and Oskar Liljeblad  <oskar@osk.mine.nu>
113866         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113867         * gnulib-tool (func_import): New license type 'unmodifiable license
113868         text'.
113869         * modules/fdl: Use it.  Longer description.
113870         * module/gpl, module/lgpl: New files.
113872 2006-08-30  Jim Meyering  <jim@meyering.net>
113874         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113875         shadowing the parameter.
113877 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113879         Sync from Libtool:
113881         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113883         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113884         sharing with gnulib.  Report by Eric Blake.
113886 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113888         * modules/isapipe: New file.
113889         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113891 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113893         * modules/configmake (Makefile.am): Add a comment, and omit
113894         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113895         by Bruno Haible.
113897 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113899         * m4/isapipe.m4: New file.
113901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113903         * lib/isapipe.c, lib/isapipe.h: New files.
113905 2006-08-29  Jim Meyering  <jim@meyering.net>
113907         * modules/configmake (Makefile.am): Make configmake.h depend on
113908         Makefile.  Otherwise, a stale configmake.h could hang around.
113910 2006-08-29  Eric Blake  <ebb9@byu.net>
113912         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113913         resolution of upstream bug 3044.
113915 2006-08-29  Bruno Haible  <bruno@clisp.org>
113917         * modules/localcharset (Depends-on): Add configmake.
113918         (Makefile.am): Remove setting of LIBDIR through DEFS.
113920 2006-08-29  Bruno Haible  <bruno@clisp.org>
113922         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113923         defined.
113925 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113927         * modules/fcntl: New file.
113928         * modules/chdir-safer (Depends-on): Add fcntl.
113929         * modules/fts: Likewise.
113930         * modules/mkdir-p: Likewise.
113932         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113933         This undoes the most recent change, since we're now addressing the
113934         problem in a different way.
113936         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
113937         into output, since the output might be called Makefile.am even
113938         if $makefile_name is something different.
113939         (func_import): Use $makefile_am rather than
113940         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
113941         empty.
113943         * modules/inttypes (Files): Add m4/inttypes-h.m4.
113945 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113947         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113948         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113949         recent change to stdint.m4, since we're now addressing the problem in a
113950         different way.
113952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113954         * m4/fcntl_h.m4: New file.
113956 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113958         * lib/fcntl_.h: New file.
113959         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113960         the fcntl module.
113961         * lib/dirchownmod.c: Likewise.
113962         * lib/fts.c: Likewise.
113964         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113965         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113966         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113967         just before including <inttypes.h>, to avoid circular inclusion.
113969 2006-08-28  Jim Meyering  <jim@meyering.net>
113971         * doc/visibility.texi: Actually read and correct the grammar of the
113972         sentence affected by yesterday's change.
113974 2006-08-28  Eric Blake  <ebb9@byu.net>
113976         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113977         needs wrapper.
113979 2006-08-28  Eric Blake  <ebb9@byu.net>
113981         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113983 2006-08-28  Eric Blake  <ebb9@byu.net>
113985         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113987 2006-08-28  Bruno Haible  <bruno@clisp.org>
113989         * modules/c-strstr: New file, from GNU gettext.
113990         * MODULES.html.sh (String handling): Add c-strstr.
113992 2006-08-28  Bruno Haible  <bruno@clisp.org>
113994         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113995         macros.
113996         Reported by Eric Blake.
113998 2006-08-28  Bruno Haible  <bruno@clisp.org>
114000         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114001         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114002         * lib/vasprintf.c: Include errno.h, limits.h.
114003         (EOVERFLOW): New fallback definition.
114004         (vasprintf): Test here whether the string length is > INT_MAX.
114005         * lib/vsnprintf.c: Include errno.h, limits.h.
114006         (EOVERFLOW): New fallback definition.
114007         (vsnprintf): Fix bug when generated string was too long for the buffer.
114008         Test here whether the string length is > INT_MAX.
114010 2006-08-28  Bruno Haible  <bruno@clisp.org>
114012         * lib/inttypes_.h (SCNX*): Remove definitions.
114013         Reported by Eric Blake.
114015 2006-08-28  Bruno Haible  <bruno@clisp.org>
114017         * lib/c-strstr.h: New file, from GNU gettext.
114018         * lib/c-strstr.c: New file, from GNU gettext.
114020 2006-08-28  Bruno Haible  <bruno@clisp.org>
114022         * gnulib-tool: Reorder some statements.
114024 2006-08-28  Bruno Haible  <bruno@clisp.org>
114026         * gnulib-tool: New option --makefile-name.
114027         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114028         $makefile_name.
114029         (func_import): Write $makefile_name to the cache file, and read it from
114030         there unless explicitly specified. Use $makefile_name as file name
114031         instead of Makefile.am. Adjust the recommendations accordingly.
114033 2006-08-28  Bruno Haible  <bruno@clisp.org>
114035         * gnulib-tool (func_verify_module): Check against misapplying patch.
114037 2006-08-28  Bruno Haible  <bruno@clisp.org>
114039         * gnulib-tool (func_relativize, func_relconcat): New functions.
114040         Give an error if --local-dir is given with --update.
114041         Remove trailing slashes from $local_gnulib_dir.
114042         (func_import): Store the relativized $local_gnulib_dir in
114043         gnulib-cache.m4, and read it from there if not specified explicitly.
114045 2006-08-28  Bruno Haible  <bruno@clisp.org>
114047         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114048         is the current directory. Respect also $local_gnulib_dir.
114050 2006-08-28  Bruno Haible  <bruno@clisp.org>
114051             Simon Josefsson  <jas@extundo.com>
114053         BeOS portability.
114054         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114056 2006-08-27  Jim Meyering  <jim@meyering.net>
114058         * doc/visibility.texi: Remove duplicate word: "pointer".
114060 2006-08-26  Bruno Haible  <bruno@clisp.org>
114062         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114063         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114064         (Makefile.am): Create inttypes.h from inttypes_.h.
114065         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114067         * modules/imaxabs: New file.
114069         * modules/imaxdiv: New file.
114071 2006-08-26  Bruno Haible  <bruno@clisp.org>
114073         * m4/inttypes.m4: New file.
114074         * m4/_inttypes_h.m4: Remove file.
114075         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114076         PRI_MACROS_BROKEN.
114077         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114079         * m4/imaxabs.m4: New file.
114081         * m4/imaxdiv.m4: New file.
114083 2006-08-26  Bruno Haible  <bruno@clisp.org>
114085         * lib/inttypes_.h: New file.
114086         * lib/inttypes.h: Remove file.
114087         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114089         * lib/imaxabs.c: New file.
114091         * lib/imaxdiv.c: New file.
114093 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114095         New config-h module, so that "make" output needn't be cluttered
114096         by -DHAVE_CONFIG_H.
114097         * MODULES.html.sh (Support for building libraries and executables):
114098         Add config-h.
114099         * modules/config-h: New file.
114100         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114101         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114102         the config-h module is used.
114104         New configmake module, so that "make" output needn't be cluttered
114105         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114106         * MODULES.html.sh (Support for building libraries and executables):
114107         Add configmake.
114108         * modules/configmake: New file.
114110 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114112         * m4/config-h.m4: New file.
114114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114116         * config/srclist.txt: Add elisp-comp.
114118 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114120         * MODULES.html.sh (Support for building libraries and executables):
114121         Add elisp-comp.
114122         * build-aux/elisp-comp: New file.
114123         * modules/elisp-comp: New file.
114125 2006-08-24  Bruno Haible  <bruno@clisp.org>
114127         * gnulib-tool (func_create_testdir): Use non-default values of
114128         sourcebase and m4base.
114130 2006-08-24  Bruno Haible  <bruno@clisp.org>
114132         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114133         HTML structure.
114135 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114137         * modules/openat (Depends-on): Add lchown.
114139 2006-08-23  Bruno Haible  <bruno@clisp.org>
114141         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114142         of gl_LOCK_EARLY instead of gl_LOCK.
114144 2006-08-23  Bruno Haible  <bruno@clisp.org>
114146         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114147         on OSF/1 to no.
114148         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114150 2006-08-23  Bruno Haible  <bruno@clisp.org>
114152         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114153         as unusable.
114155         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114156         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114157         (gl_LOCK): New macro.
114159 2006-08-22  Simon Josefsson  <jas@extundo.com>
114161         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114162         to md5 module.
114164 2006-08-22  Simon Josefsson  <jas@extundo.com>
114166         * MODULES.html.sh: Add "Support for maintaining and release
114167         projects".
114169         * build-aux/gnupload: New file, from coreutils.
114171 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114173         Avoid the need for AC_LIBSOURCES in m4 macros.
114174         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114175         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114176         * modules/check-version (EXTRA_DIST): Add check-version.h.
114177         * modules/crc (EXTRA_DIST): Add crc.h.
114178         * modules/des (EXTRA_DIST): Add des.h.
114179         * modules/gc (EXTRA_DIST): Add gc.h.
114180         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114181         * modules/getline (EXTRA_DIST): Add getline.h.
114182         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114183         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114184         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114185         * modules/md2 (EXTRA_DIST): Add md2.h.
114186         * modules/md4 (EXTRA_DIST): Add md4.h.
114187         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114188         * modules/read-file (EXTRA_DIST): Add read-file.h.
114189         * modules/readline (EXTRA_DIST): Add readline.h.
114190         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114191         rijndael-api-fst.h.
114193 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114195         * m4/rijndael.m4 (gl_ARCFOUR):
114196         * m4/arctwo.m4 (gl_ARCTWO):
114197         * m4/check-version.m4 (gl_CHECK_VERSION):
114198         * m4/crc.m4 (gl_CRC):
114199         * m4/des.m4 (gl_DES):
114200         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114201         * m4/gc.m4 (gl_GC):
114202         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114203         * m4/getline.m4 (gl_FUNC_GETLINE):
114204         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114205         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114206         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114207         * m4/md2.m4 (gl_MD2):
114208         * m4/md4.m4 (gl_MD4):
114209         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114210         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114211         * m4/readline.m4 (gl_FUNC_READLINE):
114212         * m4/rijndael.m4 (gl_RIJNDAEL):
114213         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114214         to get the necessary .h files and whatnot.
114216 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114218         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114219         gnulib rather than the other way around.
114220         * config/srclistvars.sh (COREUTILS): Remove.
114222 2006-08-22  Jim Meyering  <jim@meyering.net>
114224         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114226         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114228 2006-08-22  Eric Blake  <ebb9@byu.net>
114230         * modules/regexprops-generic: New file.
114231         * MODULES.html.sh (Support for building documentation): List it.
114233 2006-08-22  Eric Blake  <ebb9@byu.net>
114235         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114236         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114237         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114238         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114240 2006-08-22  Bruno Haible  <bruno@clisp.org>
114242         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114243         and lib_LTLIBRARIES like the other lib_* variables.
114245 2006-08-22  Bruno Haible  <bruno@clisp.org>
114247         * build-aux/x-to-1.in: New file, from GNU gettext.
114249 2006-08-22  Bruno Haible  <bruno@clisp.org>
114251         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114252         <utmpx.h> exists.
114254 2006-08-22  Bruno Haible  <bruno@clisp.org>
114256         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114257         <utmpx.h> exists.
114259 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114261         BeOS portability.
114262         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114263         exist.
114264         Problem reported by Bruno Haible.
114266 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114268         Avoid the need for AC_LIBSOURCES in m4 macros.
114269         * modules/acl (EXTRA_DIST): Add acl.h.
114270         * modules/argmatch (Files): Add m4/argmatch.m4.
114271         (configure.ac): Add gl_ARGMATCH.
114272         (EXTRA_DIST): Renamed from lib_SOURCES, for
114273         consistency with the other modules.  Remove argmatch.c.
114274         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114275         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114276         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114277         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114278         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114279         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114280         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114281         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114282         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114283         * modules/closeout (EXTRA_DIST): Add closeout.h.
114284         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114285         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114286         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114287         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114288         dirname.h; remove basename.c and stripslash.c.
114289         * modules/exclude (EXTRA_DIST): Add exclude.h.
114290         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114291         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114292         * modules/file-type (EXTRA_DIST): Add file-type.h.
114293         * modules/filemode (EXTRA_DIST): Add filemode.h.
114294         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114295         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114296         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114297         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114298         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114299         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114300         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114301         * modules/getdate (EXTRA_DIST): Add getdate.c.
114302         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114303         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114304         * modules/getpass (EXTRA_DIST): Add getpass.h.
114305         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114306         * modules/group-member (EXTRA_DIST): Add group-member.h.
114307         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114308         * modules/hash (EXTRA_DIST): Add hash.h.
114309         * modules/human (EXTRA_DIST): Add human.h.
114310         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114311         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114312         * modules/lchown (EXTRA_DIST): Add lchown.h.
114313         * modules/long-options (EXTRA_DIST): Add long-options.h.
114314         * modules/lstat (EXTRA_DIST): Add lstat.h.
114315         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114316         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114317         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114318         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114319         * modules/memxor (EXTRA_DIST): Add memxor.h.
114320         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114321         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114322         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114323         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114324         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114325         * modules/physmem (EXTRA_DIST): Add physmem.h.
114326         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114327         * modules/posixver (EXTRA_DIST): Add posixver.h.
114328         * modules/quote (EXTRA_DIST): Add quote.h.
114329         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114330         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114331         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114332         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114333         regex_internal.h regexec.c.
114334         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114335         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114336         * modules/same (EXTRA_DIST): Add same.h.
114337         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114338         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114339         * modules/savedir (EXTRA_DIST): Add savedir.h.
114340         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114341         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114342         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114343         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114344         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114345         * modules/strdup (EXTRA_DIST): Add strdup.h.
114346         * modules/strftime (EXTRA_DIST): Add strftime.h.
114347         * modules/strndup (EXTRA_DIST): Add strndup.h.
114348         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114349         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114350         * modules/time_r (EXTRA_DIST): Add time_r.h.
114351         * modules/timespec (EXTRA_DIST): Add timespec.h.
114352         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114353         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114354         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114355         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114356         * modules/userspec (EXTRA_DIST): Add userspec.h.
114357         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114358         * modules/utimens (EXTRA_DIST): Add utimens.h.
114359         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114360         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114361         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114362         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114363         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114364         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114365         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114366         * modules/yesno (EXTRA_DIST): Add yesno.h.
114368 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114370         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114372         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114373         * m4/dev-ino.m4, same-inode.m4: Remove.
114375         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114376         * m4/acl.m4 (AC_FUNC_ACL):
114377         * m4/backupfile.m4 (gl_BACKUPFILE):
114378         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114379         * m4/canon-host.m4 (gl_CANON_HOST):
114380         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114381         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114382         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114383         * m4/cloexec.m4 (gl_CLOEXEC):
114384         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114385         * m4/closeout.m4 (gl_CLOSEOUT):
114386         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114387         * m4/dirname.m4 (gl_DIRNAME):
114388         * m4/exclude.m4 (gl_EXCLUDE):
114389         * m4/exitfail.m4 (gl_EXITFAIL):
114390         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114391         * m4/file-type.m4 (gl_FILE_TYPE):
114392         * m4/filemode.m4 (gl_FILEMODE):
114393         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114394         * m4/fpending.m4 (gl_FUNC_FPENDING):
114395         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114396         * m4/fts.m4 (gl_FUNC_FTS):
114397         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114398         * m4/getdate.m4 (gl_GETDATE):
114399         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114400         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114401         * m4/getpass.m4 (gl_FUNC_GETPASS):
114402         * m4/gettime.m4 (gl_GETTIME):
114403         * m4/getugroups.m4 (gl_GETUGROUPS):
114404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114405         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114406         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114407         * m4/hash.m4 (gl_HASH):
114408         * m4/idcache.m4 (gl_IDCACHE):
114409         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114410         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114411         * m4/long-options.m4 (gl_LONG_OPTIONS):
114412         * m4/lstat.m4 (gl_FUNC_LSTAT):
114413         * m4/md5.m4 (gl_MD5):
114414         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114415         * m4/memcoll.m4 (gl_MEMCOLL):
114416         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114417         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114418         * m4/memxor.m4 (gl_MEMXOR):
114419         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114420         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114421         * m4/modechange.m4 (gl_MODECHANGE):
114422         * m4/mountlist.m4 (gl_MOUNTLIST):
114423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114424         * m4/openat.m4 (gl_FUNC_OPENAT):
114425         * m4/pathmax.m4 (gl_PATHMAX):
114426         * m4/physmem.m4 (gl_PHYSMEM):
114427         * m4/posixtm.m4 (gl_POSIXTM):
114428         * m4/posixver.m4 (gl_POSIXVER):
114429         * m4/quote.m4 (gl_QUOTE):
114430         * m4/quotearg.m4 (gl_QUOTEARG):
114431         * m4/readtokens.m4 (gl_READTOKENS):
114432         * m4/readutmp.m4 (gl_READUTMP):
114433         * m4/regex.m4 (gl_REGEX):
114434         * m4/safe-read.m4 (gl_SAFE_READ):
114435         * m4/safe-write.m4 (gl_SAFE_WRITE):
114436         * m4/same.m4 (gl_SAME):
114437         * m4/save-cwd.m4 (gl_SAVE_CWD):
114438         * m4/savedir.m4 (gl_SAVEDIR):
114439         * m4/settime.m4 (gl_SETTIME):
114440         * m4/sha1.m4 (gl_SHA1):
114441         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114442         * m4/stat-macros.m4 (gl_STAT_MACROS):
114443         * m4/stat-time.m4 (gl_STAT_TIME):
114444         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114445         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114446         * m4/strdup.m4 (gl_FUNC_STRDUP):
114447         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114448         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114449         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114450         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114451         * m4/time_r.m4 (gl_TIME_R):
114452         * m4/timespec.m4 (gl_TIMESPEC):
114453         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114454         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114455         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114456         * m4/userspec.m4 (gl_USERSPEC):
114457         * m4/utimecmp.m4 (gl_UTIMECMP):
114458         * m4/utimens.m4 (gl_UTIMENS):
114459         * m4/xalloc.m4 (gl_XALLOC):
114460         * m4/xgetcwd.m4 (gl_XGETCWD):
114461         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114462         * m4/xreadlink.m4 (gl_XREADLINK):
114463         * m4/xstrtod.m4 (gl_XSTRTOD):
114464         * m4/yesno.m4 (gl_YESNO):
114465         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114466         to get the necessary .h files and whatnot.
114468 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114469             Bruno Haible  <bruno@clisp.org>
114471         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114472         /bin/sh understanding of '!' conditional negation.
114474 2006-08-21  Jim Meyering  <jim@meyering.net>
114476         * modules/openat (Depends-on): Really alphabetize.
114478         * modules/acl (Depends-on): Add error and quote.
114480         * check-module (find_included_lib_files): Add at-func.c to the
114481         ok-to-include-more-than-once white list.
114483         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114485 2006-08-21  Bruno Haible  <bruno@clisp.org>
114487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114488         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114489         Reported by Martin Lambers <marlam@marlam.de>.
114491 2006-08-21  Bruno Haible  <bruno@clisp.org>
114493         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114494         specify an installation location, don't emit a noinst_LIBRARIES or
114495         noinst_LTLIBRARIES assignment.
114497 2006-08-21  Bruno Haible  <bruno@clisp.org>
114499         BeOS portability.
114500         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114501         BeOS has mbrtowc() but no <wctype.h>.
114503 2006-08-21  Bruno Haible  <bruno@clisp.org>
114505         BeOS portability.
114506         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114507         exist.
114509 2006-08-21  Bruno Haible  <bruno@clisp.org>
114511         BeOS portability.
114512         * lib/mbchar.h: Include <wctype.h> only if it exists.
114514 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114516         Remove files that are no longer needed by their respective modules.
114517         * m4/obstack.m4: Remove.
114518         * m4/strerror_r.m4: Remove.
114519         * m4/uint32_t.m4: Remove.
114520         * m4/uintptr_t.m4: Remove.
114521         * m4/ullong_max.m4: Remove.
114522         * m4/xstrtoimax.m4: Remove.
114523         * m4/xstrtoumax.m4: Remove.
114525         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
114526         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
114527         dependencies now capture this.
114529         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
114530         Do not use AC_LIBSOURCES, since gnulib modules now do this.
114531         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
114532         * m4/human.m4 (gl_HUMAN): Likewise.
114533         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
114534         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
114536         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
114538         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
114539         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
114540         stdint.
114541         * m4/human.m4 (gl_HUMAN): Likewise.
114542         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
114543         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
114544         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114545         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114546         * m4/xstrtol (gl_XSTRTOL): Likewise.
114548         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
114549         AC_TYPE_LONG_LONG_INT.
114550         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114551         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
114552         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
114553         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114555         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
114556         on stdbool.
114558         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
114559         (gl_PREREQ_XSTRTOUL): Remove.
114561         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
114563         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
114564         mode.
114566 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114568         Add and change modules to make it easier for coreutils to use
114569         gnulib-tool.
114570         * modules/backupfile (Files): Remove m4/d-ino.m4.
114571         (Depends-on): Add d-ino.
114572         * modules/cycle-check (Depends-on): Add stdint.
114573         (lib_SOURCES): Add cycle-check.h.
114574         * modules/d-ino: New module.
114575         * modules/d-type: New module.
114576         * modules/error (Files): Remove m4/strerror_r.m4.
114577         * modules/filemode (Files): Add m4/st_dm_mode.m4.
114578         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114579         m4/inttypes_h.m4, m4/uintmax_t.m4.
114580         (Depends-on): Add stdint.
114581         (lib_SOURCES): Add fsusage.h.
114582         * modules/getcwd (Files): Remove d-ino.m4.
114583         (Depends-on): Add d-ino.
114584         * modules/getndelim2 (Depends-on): Add stdint.
114585         * modules/glob (Files): Remove m4/d-type.m4.
114586         (Depends-on): Add d-type.
114587         * modules/host-os: New module.
114588         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
114589         m4/inttypes_h.m4, m4/uintmax_t.m4.
114590         * Depends-on: Add stdint.
114591         (lib_SOURCES): Add human.h.
114592         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114593         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114594         m4/uintmax_t.m4, m4/ulonglong.m4.
114595         (Depends-on): Add stdint.
114596         (EXTRA_DIST): Add inttostr.h.
114597         * modules/lchmod: New module.
114598         * modules/link-follow: New module.
114599         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114600         (Depends-on): Add lchmod.
114601         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114602         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114603         (Depends-on): Add stdint.
114604         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114605         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114606         (Depends-on): Add stdint.
114607         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114608         * modules/perl: New module.
114609         * modules/regex (Depends-on): Add stdint.
114610         * modules/rmdir-errno: New module.
114611         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114612         m4/intmax_t.m4.
114613         (Depends-on): Add stdint.
114614         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114615         m4/uintmax_t.m4.
114616         (Depends-on): Add stdint.
114617         * modules/unlink-busy: New module.
114618         * modules/utimecmp (Depends-on): Add stdint.
114619         * modules/uptime: New module.
114620         * modules/winsz-ioctl: New module.
114621         * modules/winsz-termios: New module.
114622         * modules/xnanosleep (Depends-on): Add nanosleep.
114623         * modules/ullong_max: Remove.
114624         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114625         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114626         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114627         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114628         (Depends-on): Add inttypes.
114629         (lib_SOURCES): Add xstrtol.h.
114630         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114631         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114632         * MODULES.html.sh: Move 'assert' into the assert section.
114633         Move 'dummy' into the linking section.
114634         Remove ullong_max.
114635         Add section for compatibility checks for POSIX:2001 functions,
114636         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114637         winsz-ioctl, and winsz-termios into it.
114638         Add lchmod.
114639         Add top-level Misc section and put host-os, perl, and uptime
114640         into it.
114642 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114644         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114645         now assume the stdint module.  Do not include inttypes.h.
114646         * lib/fsusage.h: Likewise.
114647         * lib/getndelim2.c: Likewise.
114648         * lib/human.h: Likewise.
114649         * lib/inttostr.h: Likewise.
114650         * lib/obstack.c: Likewise.
114651         * lib/regex_internal.h: Likewise.
114652         * lib/tempname.c: Likewise.
114653         * lib/utimecmp.c: Likewise.
114654         * lib/xstrtol.h: Likewise.
114656         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114658         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114659         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114660         * lib/xtime.h: Likewise.
114662 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114664         * modules/openat (Files): Add lib/fchmodat.c.
114665         Fixes problem reported by Jay Youngman.
114667 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114669         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114670         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114672 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114673             Bruno Haible  <bruno@clisp.org>
114675         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114676         and is a script that invokes bison. Tighten the code. Add comments.
114678 2006-08-18  Jim Meyering  <jim@meyering.net>
114680         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114681         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114682         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114683         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114685 2006-08-18  Bruno Haible  <bruno@clisp.org>
114687         * modules/bison-i18n: New file.
114688         * MODULES.html.sh (Internationalization functions): Add it.
114690 2006-08-18  Bruno Haible  <bruno@clisp.org>
114692         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114693         sys/statvfs.h. When getmntinfo was found, check its declaration and
114694         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114696 2006-08-18  Bruno Haible  <bruno@clisp.org>
114698         * m4/bison-i18n.m4: New file, from bison.
114700 2006-08-18  Bruno Haible  <bruno@clisp.org>
114702         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114703         (ME_DUMMY): Treat "kernfs" as a dummy.
114704         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114706 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114708         Update from coreutils.
114710         2006-08-15  Jim Meyering  <jim@meyering.net>
114712         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114714         2006-01-17  Jim Meyering  <jim@meyering.net>
114716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114718         2006-01-11  Jim Meyering  <jim@meyering.net>
114720         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114721         Check for the lchmod function.
114723 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114725         Update from coreutils.
114727         * lib/__fpending.h: Add copyright notice.
114728         * lib/fprintftime.h: Likewise.
114729         * lib/savedir.c: Use (C) in copyright notice.
114730         * lib/savedir.h: Likewise.
114732         2006-08-15  Jim Meyering  <jim@meyering.net>
114734         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114735         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114736         in support of the EXPECTED_ERRNO macro.
114737         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114738         definitions.  Instead, define the appropriate symbols and include
114739         "at-func.c".
114740         * lib/mkdirat.c (mkdirat): Likewise.
114741         * lib/fchmodat.c (fchmodat): Likewise.
114742         (ENOSYS): Remove definition.
114743         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114744         it.  Don't include "unistd--.h" -- it wasn't ever used.
114746         2006-01-17  Jim Meyering  <jim@meyering.net>
114748         Rewrite fts.c not to change the current working directory,
114749         by using openat, fstatat, fdopendir, etc..
114751         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114752         (HAVE_OPENAT_SUPPORT): Define.
114753         [_LIBC] (fchdir): Don't undef or define; no longer used.
114754         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114755         Now, this `function' always succeeds, and consumes its file descriptor
114756         parameter -- so callers must not close such FDs.  Update callers.
114757         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114758         (diropen): Add parameter, SP.  Adjust all callers.
114759         Implement using diropen_fd, rather than open.
114760         (fts_open): Initialize new member, fts_cwd_fd.
114761         Remove fts_rft-setting code.
114762         (fts_close): Close fts_cwd_fd, if necessary.
114763         (__opendir2): Define in terms of opendir or opendirat,
114764         depending on whether the FST_NOCHDIR flag is set.
114765         (fts_build): Since fts_safe_changedir consumes its FD, and since
114766         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114767         and close the dup'd file descriptor upon failure.
114768         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114769         (fts_safe_changedir): Tweak semantics to reflect that this function
114770         now calls cwd_advance_fd and hence consumes its FD argument.
114771         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114772         [struct FTS] (fts_rft): Remove now-unused member.
114773         [struct FTS] (fts_cycle.state): Improve comment.
114775         * lib/openat.c (openat_needs_fchdir): New function.
114776         * lib/openat.h (openat_needs_fchdir): Declare it.
114778 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114780         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114781         Problem and fix reported by Pádraig Brady in
114782         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114786         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114788 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114790         * lib/memcoll.c (memcoll): Optimize for the common case where the
114791         arguments are bytewise equal.
114793 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114795         * doc/regexprops-generic.texi: Add a copyright notice.
114797 2006-08-15  Bruno Haible  <bruno@clisp.org>
114799         * modules/tmpdir (License): Change to LGPL.
114801 2006-08-15  Bruno Haible  <bruno@clisp.org>
114803         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114804         module.
114806 2006-08-14  Simon Josefsson  <jas@extundo.com>
114808         * config/srclist.txt: Add gnupload.
114810 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114812         Change copyright notice from LGPL 2 to GPL 2, since that's the
114813         standard form used in the gnulib repository.
114814         * tests/test-lock.c: Likewise.
114815         * tests/test-stdint.c: Likewise.
114816         * tests/test-tls.c: Likewise.
114818         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114819         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114820         Add copyright notice.
114822         * check-module: Add copyright notice.  Output a copyright
114823         notice if "--version" is specified.
114824         * modules/COPYING: New file.
114825         * tests/test-getaddrinfo.c: Add copyright notice.
114826         * tests/test-verify.c: Likewise.
114828 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114830         Change copyright notice from LGPL 2 to GPL 2, since that's the
114831         standard form used in the gnulib repository.
114832         * lib/lock.c: LGPL -> GPL.
114833         * lib/lock.h: Likewise.
114834         * lib/strnlen1.c: Likewise.
114835         * lib/strnlen1.h: Likewise.
114836         * lib/tls.c: Likewise.
114837         * lib/tls.h: Likewise.
114838         * lib/tmpdir.c: Likewise.
114840         * lib/TODO: Remove; this belongs only in coreutils.
114842 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114844         Add copyright notices to long-enough files that lack them, since
114845         otherwise the files aren't clearly free.  Use the same notice that
114846         getdate.texi already uses.
114847         * doc/alloca-opt.texi: Add copyright notice.
114848         * doc/alloca.texi: Likewise.
114849         * doc/ctime.texi: Likewise.
114850         * doc/functions.texi: Likewise.
114851         * doc/gcd.texi: Likewise.
114852         * doc/gnulib-tool.texi: Likewise.
114853         * doc/inet_ntoa.texi: Likewise.
114854         * doc/visibility.texi: Likewise.
114856         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114857         * doc/quote.texi: Add copyright notice.
114859         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114860         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114861         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114862         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114863         is now obsolete, and give a pointer to the Sun list.
114864         Add copyright notice.
114866 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114868         * config/srclistvars.sh: Add copyright notice.
114870 2006-08-14  Eric Blake  <ebb9@byu.net>
114872         Import the following change from libc:
114874         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114876         Upstream bug 2997.
114877         * lib/misc/error.c: Add space between program name and message if file
114878         name is missing.
114880 2006-08-12  Karl Berry  <karl@gnu.org>
114882         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114883         remove, these originate in gnulib now.
114885 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114887         * doc/Makefile (standards.info standards.html standards.dvi):
114888         Also depend on make-stds.texi.
114890 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114892         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114893         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114895         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114896         in wchar_t.  Problem reported by Eric Blake.
114898         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114899         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114900         Also, help the compiler to keep LEN in a register.
114902 2006-08-11  Eric Blake  <ebb9@byu.net>
114904         * users.txt: Sort.  Add tar.
114906 2006-08-11  Bruno Haible  <bruno@clisp.org>
114908         * users.txt: New file.
114910 2006-08-11  Bruno Haible  <bruno@clisp.org>
114912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114913         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114915 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114917         * modules/snprintf (Depends-on): Remove minmax.
114918         (Maintainer): Add self and Bruno.
114920 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114922         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114923         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114924         (EOVERFLOW): Define if the system does not.
114925         Do not include "minmax.h"; it wasn't used.
114926         (snprintf): Don't assume size_t promotes to an unsigned type.
114927         Fix bug when generated string was too long for the buffer: the
114928         buffer's contents are supposed to be the initial prefix of the
114929         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114930         exceeds INT_MAX; do the check ourselves.
114932         Import the following changes from libc:
114934         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
114936         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
114937         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
114938         set wc to the byte which couldn't be converted.
114939         (re_string_reconstruct): Don't clear valid_raw_len before calling
114940         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
114941         tip_context using re_string_context_at.
114943         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
114945         * lib/posix/regex.h: g++ still cannot handled [restrict].
114947         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114949         * lib/posix/regex.h: Remove special handling for VMS.
114951 2006-08-10  Jim Meyering  <jim@meyering.net>
114953         * modules/same-inode: New module.
114954         * modules/dev-ino: New module.
114955         * modules/cycle-check: Depend on these modules, rather than simply
114956         including their .h files.
114957         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114958         required via m4/cycle-check.m4.
114959         * modules/same: Depend on new same-inode module, rather than
114960         including same-inode.h.
114961         * modules/chdir-safer: New file.
114963         * modules/chown (Depends-on): Add stat-macros.
114965 2006-08-10  Jim Meyering  <jim@meyering.net>
114967         * m4/cycle-check.m4: New file.
114968         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114969         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114971 2006-08-10  Eric Blake  <ebb9@byu.net>
114973         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114974         in from original proposal.
114976 2006-08-10  Eric Blake  <ebb9@byu.net>
114977         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114979         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114980         namespace.
114982 2006-08-10  Bruno Haible  <bruno@clisp.org>
114984         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114985         as well.
114987 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114989         Sync from coreutils.
114991         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114993         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114994         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114996 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114998         * modules/restrict: Remove; no longer needed now that we assume
114999         Autoconf 2.59 or later.
115000         * MODULES.html.sh: Remove 'restrict'.
115001         * modules/argp (Depends-on): Remove 'restrict'.
115002         * modules/base64 (Depends-on): Likewise.
115003         * modules/gc (Depends-on): Likewise.
115004         * modules/getaddrinfo (Depends-on): Likewise.
115005         * modules/glob (Depends-on): Likewise.
115006         * modules/inet_ntop (Depends-on): Likewise.
115007         * modules/inet_pton (Depends-on): Likewise.
115008         * modules/memxor (Depends-on): Likewise.
115009         * modules/regex (Depends-on): Likewise.
115010         * modules/strtok_r (Depends-on): Likewise.
115011         * modules/time_r (Depends-on): Likewise.
115013 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115015         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115016         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115017         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115018         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115019         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115020         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115021         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115022         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115024         Merge from coreutils.
115025         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115026         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115027         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115028         * m4/time_r.m4 (gl_TIME_R): Likewise.
115030 2006-08-09  Karl Berry  <karl@gnu.org>
115032         * config/srclist.txt: no more gettext-tools, per Bruno.
115034 2006-08-08  Eric Blake  <ebb9@byu.net>
115036         * modules/verror: New module.
115037         * MODULES.html.sh: Document it.
115039 2006-08-08  Eric Blake  <ebb9@byu.net>
115041         * lib/verror.h, lib/verror.c: New files.
115043 2006-08-08  Eric Blake  <ebb9@byu.net>
115045         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115046         verror_at_line output complies with GNU Coding Standards even when
115047         file is NULL.
115049 2006-08-07  Bruno Haible  <bruno@clisp.org>
115051         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115052         versions of AIX.
115053         Reported by Ralf Wildenhues.
115055 2006-08-07  Bruno Haible  <bruno@clisp.org>
115057         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115058         in an AC_DEFUN. Needed so that the autoconf snippets can use
115059         AC_REQUIRE.
115061 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115063         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115064         Initialize pkgdata_DATA.
115065         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115066         overriding it.
115068 2006-08-06  Eric Blake  <ebb9@byu.net>
115070         * lib/error.h: Fold in some upstream changes from glibc.
115071         * lib/error.c: Likewise.
115073 2006-08-04  Bruno Haible  <bruno@clisp.org>
115075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115076         Make the mostlyclean-local rule depend on mostlyclean-generic.
115077         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115079 2006-07-31  Bruno Haible  <bruno@clisp.org>
115081         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115082         <stdlib.h>, <string.h>.
115084 2006-07-30  Bruno Haible  <bruno@clisp.org>
115086         * modules/readlink (License): Change to LGPL.
115088 2006-07-30  Bruno Haible  <bruno@clisp.org>
115090         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115091         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115092         set PKGDATADIR to point to it.
115094 2006-07-30  Bruno Haible  <bruno@clisp.org>
115096         * modules/csharpexec (configure.ac): Comment out macro invocation.
115097         * modules/javaexec (configure.ac): Likewise.
115098         * modules/javacomp-script (configure.ac): Likewise.
115100         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115102 2006-07-30  Bruno Haible  <bruno@clisp.org>
115104         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115105         linked-list.
115107 2006-07-30  Bruno Haible  <bruno@clisp.org>
115109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115111 2006-07-30  Bruno Haible  <bruno@clisp.org>
115113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115114         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115115         get removed.
115117 2006-07-29  Bruno Haible  <bruno@clisp.org>
115119         Make it possible for gnulib-tool to work with locally modified or
115120         augmented gnulib repositories.
115121         * gnulib-tool (func_usage): Document --local-dir option.
115122         (local_gnulib_dir): New variable.
115123         Handle --local-dir option.
115124         (func_lookup_file): New function.
115125         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115126         (func_get_description, func_get_filelist, func_get_description,
115127         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115128         func_get_automake_snippet, func_get_include_directive,
115129         func_get_license, func_get_maintainer): Use func_lookup_file.
115130         (func_import, func_create_testdir): Use func_lookup_file.
115132 2006-07-29  Bruno Haible  <bruno@clisp.org>
115134         * modules/setenv (Depends-on): Add unistd.
115136 2006-07-29  Bruno Haible  <bruno@clisp.org>
115138         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115140 2006-07-29  Bruno Haible  <bruno@clisp.org>
115142         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115144 2006-07-29  Bruno Haible  <bruno@clisp.org>
115146         * gnulib-tool (import, update): If there is no Makefile.am, look at
115147         aclocal.m4, instead of bailing out.
115149 2006-07-29  Bruno Haible  <bruno@clisp.org>
115151         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115152         Categorize the options by when they are useful.
115154 2006-07-29  Bruno Haible  <bruno@clisp.org>
115156         * gnulib-tool (func_usage): Document option --no-libtool.
115157         Handle option --no-libtool.
115158         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115159         for changed semantics of $libtool variable.
115160         (func_import): Likewise. If libtool is not used, show this through
115161         an option --no-libtool.
115162         (func_create_testdir): Update.
115164 2006-07-29  Bruno Haible  <bruno@clisp.org>
115166         * gnulib-tool (func_import): Extend error message about missing
115167         --doc-base.
115169 2006-07-29  Bruno Haible  <bruno@clisp.org>
115171         * gnulib-tool (func_import): Don't create the $docbase directory if
115172         there is no file to store there.
115174 2006-07-29  Bruno Haible  <bruno@clisp.org>
115176         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115177         relevant, look for configure.ac there, not in the current directory.
115178         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115180 2006-07-29  Bruno Haible  <bruno@clisp.org>
115182         * gnulib-tool (SORT): New variable.
115183         (func_usage): Undocument --assume-autoconf option.
115184         Remove --assume-autoconf option handling.
115185         (autoconf_minversion): Determine from the contents of configure.ac.
115186         (func_import): Remove autoconf_minversion handling.
115187         Suggested by Eric Blake.
115189 2006-07-29  Bruno Haible  <bruno@clisp.org>
115191         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115193 2006-07-29  Bruno Haible  <bruno@clisp.org>
115195         * config/srclist.txt (*setenv.[ch]): Remove rules.
115197 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115199         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115201 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115203         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115204         arpa/inet.h.
115206 2006-07-28  Simon Josefsson  <jas@extundo.com>
115208         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115209         * modules/inet_pton (Depends-on): Likewise.
115211 2006-07-28  Simon Josefsson  <jas@extundo.com>
115213         * m4/netinet_in_h.m4: New file.
115215 2006-07-28  Simon Josefsson  <jas@extundo.com>
115217         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115218         #include's.
115220 2006-07-28  Simon Josefsson  <jas@extundo.com>
115222         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115223         #include's.
115225 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115227         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115228         setgid on directories only if they set these bits.
115229         * lib/modechange.h: Remove obsolete comment about masks.
115231 2006-07-28  Eric Blake  <ebb9@byu.net>
115233         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115234         macro expansion.
115236 2006-07-28  Bruno Haible  <bruno@clisp.org>
115238         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115240 2006-07-28  Bruno Haible  <bruno@clisp.org>
115242         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115244 2006-07-28  Bruno Haible  <bruno@clisp.org>
115246         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115247         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115248         Define fallbacks.
115249         Avoids link error on FreeBSD 4.x.
115250         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115252         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115253         encoding.
115254         * lib/mbswidth.c (iswcntrl): Likewise.
115256 2006-07-27  Bruno Haible  <bruno@clisp.org>
115258         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115259         test.
115261 2006-07-27  Bruno Haible  <bruno@clisp.org>
115263         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115264         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115265         defined.
115267 2006-07-26  Eric Blake  <ebb9@byu.net>
115269         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115271 2006-07-26  Eric Blake  <ebb9@byu.net>
115273         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115274         like mingw that lack mkstemp.
115275         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115276         avoid compilation warning on mingw.
115278 2006-07-26  Bruno Haible  <bruno@clisp.org>
115280         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115281         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115282         INT_FAST*_MIN, INTPTR_MIN.
115284 2006-07-25  Bruno Haible  <bruno@clisp.org>
115286         * modules/version-etc (Depends-on): Add stdarg.
115288 2006-07-25  Bruno Haible  <bruno@clisp.org>
115290         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115291         complex commands.
115293 2006-07-25  Bruno Haible  <bruno@clisp.org>
115295         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115296         defined in <stdarg.h> or config.h.
115298 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115300         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115301         (gl_STDIO_SAFER): Remove.
115303 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115305         * MODULES.html.sh (File stream based Input/Output):
115306         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115307         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115308         * modules/fopen-safer, modules/tmpfile-safer: New files.
115309         * modules/stdio-safer: Remove.
115311 2006-07-24  Bruno Haible  <bruno@clisp.org>
115313         * modules/tmpdir: New file.
115314         * MODULES.html.sh (File system functions): Add it.
115316 2006-07-24  Bruno Haible  <bruno@clisp.org>
115318         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115319         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115321 2006-07-24  Bruno Haible  <bruno@clisp.org>
115323         * modules/clean-temp: New file.
115325 2006-07-24  Bruno Haible  <bruno@clisp.org>
115327         * m4/tmpdir.m4: New file, from GNU gettext.
115329 2006-07-24  Bruno Haible  <bruno@clisp.org>
115331         * lib/tmpdir.h: New file, from GNU gettext.
115332         * lib/tmpdir.c: New file, from GNU gettext.
115334 2006-07-24  Bruno Haible  <bruno@clisp.org>
115336         * lib/clean-temp.h: New file, from GNU gettext.
115337         * lib/clean-temp.c: New file, from GNU gettext.
115339 2006-07-23  Eric Blake  <ebb9@byu.net>
115341         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115342         (Depends-on): Add binary-io.
115344 2006-07-23  Eric Blake  <ebb9@byu.net>
115346         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115348 2006-07-23  Eric Blake  <ebb9@byu.net>
115350         * lib/tmpfile-safer.c: New file.
115351         * lib/stdio-safer.h (fopen_safer): Add prototype.
115352         * lib/stdio--.h (tmpfile): Make safer.
115354 2006-07-23  Bruno Haible  <bruno@clisp.org>
115356         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115357         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115358         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115359         gl_linked_remove_at): Use it.
115361 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115362         and Simon Josefsson <jas@extundo.com>
115364         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115366         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115368 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115370         * modules/close-stream: New file.
115371         * modules/closeout (Description): Make it clear that it exits
115372         with a diagnostic on error.
115373         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115374         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115376 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115378         * m4/close-stream.m4: New file.
115380 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115382         * lib/close-stream.c, lib/close-stream.h: New files.
115384 2006-07-22  Bruno Haible  <bruno@clisp.org>
115386         Merge from GNU gettext 0.15.
115388         2006-05-01  Bruno Haible  <bruno@clisp.org>
115390                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115392         2006-07-22  Bruno Haible  <bruno@clisp.org>
115394                 * modules/javaversion: New file.
115395                 * MODULES.html.sh (Java): Add javaversion.
115397         2006-03-12  Bruno Haible  <bruno@clisp.org>
115399                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115401         2005-12-04  Bruno Haible  <bruno@clisp.org>
115403                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115404                 (untested).
115406         2006-06-21  Bruno Haible  <bruno@clisp.org>
115408                 Avoid warnings from recent versions of mcs.
115409                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115410                 -o, -L, -r any more. Use options documented since mcs-1.0
115411                 instead. Similarly for -g.
115413         2005-12-04  Bruno Haible  <bruno@clisp.org>
115415                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115416                 .resources, not .resource.
115418         2005-07-09  Bruno Haible  <bruno@clisp.org>
115420                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115421                 add a .dll suffix.
115422                 Reported by Mark Junker <mjscod@gmx.de>.
115424         2006-07-22  Bruno Haible  <bruno@clisp.org>
115426                 * modules/gettext: Upgrade to gettext-0.15.
115427                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115428                 m4/visibility.m4.
115429                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115431 2006-07-22  Bruno Haible  <bruno@clisp.org>
115433         Merge from GNU gettext 0.15.
115435         2006-03-25  Bruno Haible  <bruno@clisp.org>
115437                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115439         2006-07-21  Bruno Haible  <bruno@clisp.org>
115441                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115442                 "1.1".
115444         2006-05-09  Bruno Haible  <bruno@clisp.org>
115446                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115447                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115448                 for the conftestver execution.
115450         2006-05-01  Bruno Haible  <bruno@clisp.org>
115452                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115453                 optional target-version argument. Verify that the compiler
115454                 groks source of the specified source-version, or add -source
115455                 option as necessary. Verify that the compiler produces
115456                 bytecode in the specified target-version, or add -target and
115457                 -source options as necessary. Make the result of the test
115458                 available as variable CONF_JAVAC. Also log error output in
115459                 config.log.
115461         2006-03-11  Bruno Haible  <bruno@clisp.org>
115463                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115465         2006-05-09  Bruno Haible  <bruno@clisp.org>
115467                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115468                 CLASSPATH_SEPARATOR to a semicolon.
115470         2006-03-12  Bruno Haible  <bruno@clisp.org>
115472                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115473                 available as variable CONF_JAVA, for subsequent autoconf
115474                 tests. Also log error output in config.log.
115476         2006-07-19  Bruno Haible  <bruno@clisp.org>
115478                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115479                 that getline works on glibc2 systems. Needed to avoid trouble
115480                 in relocatable.c.
115481                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115483         2005-12-04  Bruno Haible  <bruno@clisp.org>
115485                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115486                 launcher (untested).
115488         2005-12-04  Bruno Haible  <bruno@clisp.org>
115490                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115492         2006-07-22  Bruno Haible  <bruno@clisp.org>
115494                 * gettext.m4: Update from GNU gettext-0.15.
115495                 * nls.m4: Likewise.
115496                 * po.m4: Likewise.
115497                 * inttypes-pri.m4: Likewise.
115498                 * inttypes-h.m4: Renamed from inttypes.m4.
115499                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115501 2006-07-22  Bruno Haible  <bruno@clisp.org>
115503         Merge from GNU gettext 0.15.
115505         2005-07-05  Bruno Haible  <bruno@clisp.org>
115507                 * printf-args.c (printf_fetchargs): Work around broken
115508                 definition of wint_t on mingw.
115510         2005-02-12  Bruno Haible  <bruno@clisp.org>
115512                 * xallocsa.h: Add extern "C" for C++.
115514         2006-05-17  Bruno Haible  <bruno@clisp.org>
115516                 Cygwin portability.
115517                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
115519         2006-04-30  Bruno Haible  <bruno@clisp.org>
115521                 * progreloc.c: Include <mach-o/dyld.h> if available.
115522                 (find_executable): Use _NSGetExecutablePath when possible.
115524         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
115526                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
115527                 function.
115529         2005-12-29  Bruno Haible  <bruno@clisp.org>
115531                 * progreloc.c (set_program_name_and_installdir): Fix
115532                 compilation error.
115534         2005-12-04  Bruno Haible  <bruno@clisp.org>
115536                 Cygwin portability.
115537                 * progreloc.c: Include <windows.h> also on Cygwin.
115538                 (find_executable): Add support for Cygwin.
115539                 (set_program_name_and_installdir): Handle also platforms with
115540                 nonempty EXEEXT.
115542         2006-07-11  Bruno Haible  <bruno@clisp.org>
115544                 * javacomp.c: Fix a comment.
115545                 Reported by Jim Meyering.
115547         2006-04-30  Bruno Haible  <bruno@clisp.org>
115549                 * javacomp.h (compile_java_class): Add source_version,
115550                 target_version arguments.
115551                 * javacomp.c: Rewritten to choose only a compiler that
115552                 respects the specified source_version and target_version.
115554         2006-06-27  Bruno Haible  <bruno@clisp.org>
115556                 Assume correct S_ISDIR macro.
115557                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
115559         2006-07-22  Bruno Haible  <bruno@clisp.org>
115561                 * javaversion.h: New file, from GNU gettext.
115562                 * javaversion.c: New file, from GNU gettext.
115563                 * javaversion.java: New file, from GNU gettext.
115564                 * javaversion.class: New file, from GNU gettext.
115566         2006-05-17  Bruno Haible  <bruno@clisp.org>
115568                 Cygwin portability.
115569                 * javaexec.c (execute_java_class): Test for jview program
115570                 also on Cygwin.
115572         2006-04-09  Bruno Haible  <bruno@clisp.org>
115574                 * fatal-signal.c: Don't include string.h.
115575                 (at_fatal_signal): Use a copying loop instead of memcpy.
115577         2005-12-04  Bruno Haible  <bruno@clisp.org>
115579                 * csharpexec.c: Add support for 'clix' launcher (untested).
115580                 (execute_csharp_using_sscli): New function.
115581                 (execute_csharp_program): Call it.
115583         2006-06-21  Bruno Haible  <bruno@clisp.org>
115585                 Avoid warnings from recent versions of mcs.
115586                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
115587                 -o, -L, -r any more. Use options documented since mcs-1.0
115588                 instead. Similarly for -g.
115590         2005-07-09  Bruno Haible  <bruno@clisp.org>
115592                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115593                 add a .dll suffix.
115594                 Reported by Mark Junker <mjscod@gmx.de>.
115596         2006-06-17  Bruno Haible  <bruno@clisp.org>
115598                 * config.charset: Update for NetBSD 3.0.
115600         2006-05-17  Bruno Haible  <bruno@clisp.org>
115602                 Cygwin portability.
115603                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115605         2006-05-16  Bruno Haible  <bruno@clisp.org>
115607                 * localcharset.c [CYGWIN]: Include <windows.h>.
115608                 (get_charset_aliases): For Cygwin, return the same CPxxx
115609                 aliases list as under WIN32.
115610                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
115611                 the environment variables. Fall back to GetACP().
115613         2006-04-05  Bruno Haible  <bruno@clisp.org>
115615                 * config.charset: Update Juan Manuel Guerrero's address.
115617         2005-02-12  Bruno Haible  <bruno@clisp.org>
115619                 * allocsa.h: Add extern "C" for C++.
115621         2005-02-10  Bruno Haible  <bruno@clisp.org>
115623                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115624                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115626         2006-07-22  Bruno Haible  <bruno@clisp.org>
115628                 * gettext.h: Update to GNU gettext-0.15.
115630 2006-07-22  Bruno Haible  <bruno@clisp.org>
115632         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115633         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115634         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115636 2006-07-21  Eric Blake  <ebb9@byu.net>
115638         * modules/stdlib-safer: New file.
115639         * MODULES.html.sh (File stream based Input/Output): Add
115640         stdlib-safer.
115642 2006-07-21  Eric Blake  <ebb9@byu.net>
115644         * lib/stdlib-safer.h: New file from coreutils, required by
115645         stdlib--.h.
115647 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115649         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115651 2006-07-20  Bruno Haible  <bruno@clisp.org>
115653         * gnulib-tool: Recognize new option --assume-autoconf.
115654         (autoconf_minversion): New variable.
115655         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115657 2006-07-20  Bruno Haible  <bruno@clisp.org>
115659         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115661 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115663         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115664         Reindent and repaginate.
115666 2006-07-19  Derek Price  <derek@ximbiot.com>
115668         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115669         Correct grammar.
115671 2006-07-17  Bruno Haible  <bruno@clisp.org>
115673         * modules/list: New file.
115674         * modules/array-list: New file.
115675         * modules/carray-list, modules/carray-list-tests: New files.
115676         * modules/linked-list, modules/linked-list-tests: New files.
115677         * modules/avltree-list, modules/avltree-list-tests: New files.
115678         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115679         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115680         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115681         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115682         * modules/oset: New file.
115683         * modules/array-oset: New file.
115684         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115685         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115686         * tests/test-carray_list.c: New file.
115687         * tests/test-linked_list.c: New file.
115688         * tests/test-avltree_list.c: New file.
115689         * tests/test-rbtree_list.c: New file.
115690         * tests/test-linkedhash_list.c: New file.
115691         * tests/test-avltreehash_list.c: New file.
115692         * tests/test-rbtreehash_list.c: New file.
115693         * tests/test-avltree_oset.c: New file.
115694         * tests/test-rbtree_oset.c: New file.
115695         * MODULES.html.sh (Container data structures): New section.
115697 2006-07-17  Bruno Haible  <bruno@clisp.org>
115699         * m4/gl_list.m4: New file.
115701 2006-07-17  Bruno Haible  <bruno@clisp.org>
115703         * lib/gl_list.h: New file.
115704         * lib/gl_list.c: New file.
115705         * lib/gl_array_list.h: New file.
115706         * lib/gl_array_list.c: New file.
115707         * lib/gl_carray_list.h: New file.
115708         * lib/gl_carray_list.c: New file.
115709         * lib/gl_linked_list.h: New file.
115710         * lib/gl_linked_list.c: New file.
115711         * lib/gl_anylinked_list1.h: New file.
115712         * lib/gl_anylinked_list2.h: New file.
115713         * lib/gl_avltree_list.h: New file.
115714         * lib/gl_avltree_list.c: New file.
115715         * lib/gl_anyavltree_list1.h: New file.
115716         * lib/gl_anyavltree_list2.h: New file.
115717         * lib/gl_rbtree_list.h: New file.
115718         * lib/gl_rbtree_list.c: New file.
115719         * lib/gl_anyrbtree_list1.h: New file.
115720         * lib/gl_anyrbtree_list2.h: New file.
115721         * lib/gl_anytree_list1.h: New file.
115722         * lib/gl_anytree_list2.h: New file.
115723         * lib/gl_linkedhash_list.h: New file.
115724         * lib/gl_linkedhash_list.c: New file.
115725         * lib/gl_anyhash_list1.h: New file.
115726         * lib/gl_anyhash_list2.h: New file.
115727         * lib/gl_avltreehash_list.h: New file.
115728         * lib/gl_avltreehash_list.c: New file.
115729         * lib/gl_rbtreehash_list.h: New file.
115730         * lib/gl_rbtreehash_list.c: New file.
115731         * lib/gl_anytreehash_list1.h: New file.
115732         * lib/gl_anytreehash_list2.h: New file.
115734         * lib/gl_oset.h: New file.
115735         * lib/gl_oset.c: New file.
115736         * lib/gl_array_oset.h: New file.
115737         * lib/gl_array_oset.c: New file.
115738         * lib/gl_avltree_oset.h: New file.
115739         * lib/gl_avltree_oset.c: New file.
115740         * lib/gl_rbtree_oset.h: New file.
115741         * lib/gl_rbtree_oset.c: New file.
115742         * lib/gl_anytree_oset.h: New file.
115744 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115746         * m4/mkancesdirs.m4: New file.
115747         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115748         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115749         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115750         it.
115752 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115754         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115755         * lib/mkancesdirs.h: New files.
115756         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115757         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115758         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115759         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115760         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115761         callers changed.  Revamp internals significantly, by not
115762         attempting to create directories that are temporarily more
115763         permissive than the final results.  Do not attempt to use
115764         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115765         This removes some race conditions, fixes some bugs, and simplifies
115766         things.  Use new dirchownmod function to do owner and mode changes.
115767         * lib/mkdir-p.h: Likewise.
115768         * lib/modechange.c (octal_to_mode): New function.
115769         (struct mode_change): New member mentioned.
115770         (make_node_op_equals): New arg mentioned.  All callers changed.
115771         (mode_compile): Keep track of which mode bits the user has explicitly
115772         mentioned.
115773         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115774         New arg PMODE_BITS, to keep track of which mode bits the user
115775         mentioned; it treats S_ISUID and S_ISGID speciall.
115776         All callers changed.
115777         * lib/modechange.h: Likewise.
115779 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115781         * MODULES.html.sh: Add mkancestors.
115782         * modules/mkancesdirs: New module.
115783         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115784         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115785         The chdir-safer and afs files are now orphans; I'll remove them
115786         unless someone speaks up.
115787         Add lib/dirchownmod.c, lib/dirchownmod.h.
115788         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115789         Add lchown, mkancesdirs.
115790         (Maintainer): Add self.
115792 2006-07-15  Karl Berry  <karl@gnu.org>
115794         * gnulib-tool: help message wording/arrangement.
115796 2006-07-14  Simon Josefsson  <jas@extundo.com>
115798         * doc/gnulib.texi (Libtool and Windows): New section.
115800 2006-07-12  Simon Josefsson  <jas@extundo.com>
115802         * modules/gendocs (License): Fix license, approved by Karl.
115804 2006-07-12  Eric Blake  <ebb9@byu.net>
115806         * MODULES.html.sh: Add gendocs.
115808 2006-07-11  Eric Blake  <ebb9@byu.net>
115810         * modules/fdl: New module, to install doc/fdl.texi.
115811         * MODULES.html.sh: Add new section for documentation modules.
115812         * gnulib-tool: Avoid space-tab.
115813         (--doc-base): New option, to manage files from doc.
115815 2006-07-11  Eric Blake  <ebb9@byu.net>
115817         * m4/absolute-header.m4: Fix comments to match recent change.
115819 2006-07-11  Eric Blake  <ebb9@byu.net>
115821         * gnulib-tool: List --doc-base before --tests-base.
115823 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115825         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115827 2006-07-11  Bruno Haible  <bruno@clisp.org>
115829         * README: Mention where to put documentation.
115831 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115833         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115835 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115838         to stdint.m4.
115840 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115842         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115843         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115844         "no/such/file/stdint.h" when there is no such file, so that
115845         the resulting C code can be parsed by dodgy compilers.
115846         Problems reported by Bob Proulx.
115848 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115850         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115851         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115852         macros into the GNU _D_EXACT_NAMLEN.
115853         * lib/savedir.c:  Likewise.
115854         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115856 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115857         and Paul Eggert  <eggert@cs.ucla.edu>
115859         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115860         * m4/savedir.m4:
115861         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115862         macros into the GNU _D_EXACT_NAMLEN.
115864 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115866         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115867         around the absolute name, to work around a problem with the HP-UX
115868         11.23 native C compiler, reported by Bob Proulx.
115870 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115872         * doc/maintain.texi, make-stds.texi: Sync from
115873         <http://savannah.gnu.org/projects/gnustandards>.
115875 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115877         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115879 2006-07-09  Jim Meyering  <jim@meyering.net>
115881         * m4/glob.m4: Remove a doubled word in a comment.
115883 2006-07-09  Jim Meyering  <jim@meyering.net>
115885         * lib/argp-pv.c: Remove a doubled word in a comment.
115886         * lib/check-version.c (check_version): Likewise.
115887         * lib/javacomp.c (compile_java_class): Likewise.
115889 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115891         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115892         for the benefit of people using Autoconf 2.60.  If you want to
115893         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115894         (or m4/onceonly.m4, if pre-2.57) manually.
115896 2006-07-08  Jim Meyering  <jim@meyering.net>
115898         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115899         comment.
115900         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115901         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115902         comment.
115904 2006-07-08  Jim Meyering  <jim@meyering.net>
115906         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115908 2006-07-07  Simon Josefsson  <jas@extundo.com>
115910         * tests/test-crc.c: Change expected crc value, the test vector
115911         were probably computed using the old broken crc.c?
115913 2006-07-06  Simon Josefsson  <jas@extundo.com>
115915         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115916         now the canonical place for the M4 file).
115918         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115919         from the sys_socket dependency now.
115921         * modules/inet_pton (Files): Ditto.
115923         * modules/inet_ntop (Files): Ditto.
115925 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115927         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115928         not gl_PREREQ_GETUSERSHELL.
115930 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115932         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115933         with only one argument, for Autoconf 2.60.
115934         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115935         expand to nothing, so add a shell command to avoid syntax error.
115936         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115938 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115940         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
115942 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
115945         no longer needed.  Check for isblank decl.
115946         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115947         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115948         of existence.
115950 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115952         * lib/getloadavg.c: Use __VMS, not VMS.
115953         * lib/getopt.c: Likewise.
115954         * lib/getpagesize.h: Likewise.
115955         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115956         and probably does not work.
115958 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115960         * lib/.cppi-disable: Add wcwidth.
115961         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115962         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115963         (ISGRAPH): Remove.  All uses changed to isgraph.
115964         (FOLD) [!defined _LIBC]: Remove special case.
115965         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115966         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115967         HAVE_ISBLANK.
115968         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115969         case.
115971 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115973         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115974         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115975         brackets.  Other minor changes to suppress some compiler
115976         warnings.
115978 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115979         and Paul Eggert  <eggert@cs.ucla.edu>
115981         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115982         of invoking obsolescent AC_HEADER_DIRENT macro.
115983         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115984         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115985         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115987         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115988         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115989         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115990         * m4/readdir.m4: Remove; no longer needed.
115992 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115993         and Paul Eggert  <eggert@cs.ucla.edu>
115995         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115996         Don't worry about this obsolete case any more.
115997         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115998         directories.
115999         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116000         worry about this obsolete case any more.
116001         * lib/fts.c: Likewise.
116002         * lib/getcwd.c: Likewise.
116003         * lib/glob.h: Likewise.
116004         * lib/savedir.c: Likewise.
116006 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116009         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116010         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116011         needed.
116012         All uses removed.
116013         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116014         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116015         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116016         needed.
116017         * m4/getdate.m4 (gl_GETDATE): Likewise.
116018         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116019         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116020         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116021         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116022         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116023         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116024         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116025         needed.
116027 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116029         * lib/memcasecmp.c: Include <limits.h>.
116030         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116031         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116032         Don't assume isdigit succeeds only on '0' through '9'.
116034 2006-07-05  Eric Blake  <ebb9@byu.net>
116036         * modules/getaddrinfo (Depends-on): Add snprintf.
116038 2006-07-05  Eric Blake  <ebb9@byu.net>
116040         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116041         to avoid 'header present but could not be compiled' on cygwin.
116043 2006-07-05  Eric Blake  <ebb9@byu.net>
116045         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116046         missing from netdb.h.
116047         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116049 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116051         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116052         no longer needed.
116053         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
116054         * m4/getdate.m4 (gl_GETDATE): Likewise.
116055         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116056         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116057         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116058         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116059         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116061 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116063         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116064         All uses of is_space replaced by isspace.
116065         * lib/exit.h: Don't talk about STDC_HEADERS.
116066         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116067         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116068         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116069         replaced by isprint etc.
116070         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116071         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116072         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116073         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116074         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116075         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116077 2006-07-05  Bruno Haible  <bruno@clisp.org>
116079         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116080         the function exists, before testing against AIX.
116081         Reported by Martin Lambers <marlam@marlam.de>.
116083 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116085         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116086         From Mark D. Baushke.
116088 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116091         to the absolute name, not just one, to bypass Sun C 5.8's
116092         "warning: #include of /usr/include/... may be non-portable".
116094 2006-07-04  Eric Blake  <ebb9@byu.net>
116096         * modules/dirname-tests: New test module.
116097         * tests/test-dirname.c: New file, replacing dirname.c
116098         TEST_DIRNAME section that was recently deleted.
116100 2006-07-04  Bruno Haible  <bruno@clisp.org>
116102         Assume ANSI C header files and <ctype.h> functions.
116103         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116104         (mbsnwidth): Use isprint, iscntrl instead.
116106 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116108         Merge from coreutils.
116109         * MODULES.html.sh: Add xstrtold.
116110         * modules/xstrtold: New file.
116111         * modules/cycle-check (Files): Add lib/same-inode.h.
116112         * modules/dirname (Files): Add m4/double-slash-root.m4.
116113         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116114         * modules/mkdir-p (Files): Add lib/same-inode.h.
116115         * modules/same (Files): Add lib/same-inode.h.
116117 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116119         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116120         This is to keep the terminology clean; POSIX talks about
116121         "absolute pathnames", not "full pathnames", but the GNU
116122         Coding Standards say to use "path" for something else;
116123         so use "absolute" to keep both sides happy.
116124         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116125         Set gl_absolute_header, not gl_full_header_path.
116126         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116127         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116128         All uses changed.
116130         Merge from coreutils.
116132         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116134         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116135         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116136         want to require the building of c-strtod.o.
116137         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116138         needs -lm directly.
116139         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116141         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116143         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116144         --as-needed option if available.  Problem reported by Albert Chin in
116145         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116146         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116147         cc merely issues a bunch of annoying warnings for --as-needed
116148         (this problem was reported by Bob Proulx).  Also, try linking with
116149         -lm to detect a bug in binutils 2.16 (this problem was reported
116150         by Ralf Wildenhues).
116152         2006-06-18  Jim Meyering  <jim@meyering.net>
116154         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116155         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116156         macro.
116157         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116158         also check for glibc-2.4's abort-inducing bug.
116160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116161         Low-probability clean-up should be to use rmdir to get rid of
116162         the just-created directory, not unlink.
116164         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116165         configure fail, and request a bug report to inform us about it.
116166         Add a comment that, barring reports to the contrary, in 2007 we'll
116167         assume ftruncate is universally available.
116169         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116171         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116173         2006-03-12  Jim Meyering  <jim@meyering.net>
116175         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116176         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116177         * m4/same.m4 (gl_SAME): Likewise.
116178         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116180         2006-03-11  Eric Blake  <ebb9@byu.net>
116182         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116183         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116184         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116185         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116187 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116189         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116190         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116191         reported by Mark D. Baushke, one in
116192         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116194         Merge from coreutils.
116196         * lib/.cppi-disable: Add stdint_.h.
116197         * lib/.cvsignore: Add stdint.h.
116199         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116201         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116202         both double and long double versions.
116203         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116204         * lib/xstrtold.c: New file.
116205         * lib/xstrtod.h (xstrtold): New decl.
116207         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116209         * lib/filemode.c (setst): Remove.
116210         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116211         (arguably) clearer, and the generated code is a bit smaller on my
116212         Debian GNU/Linux stable x86 host.
116214         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116216         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116217         Assume that filemode.h includes sys/types.h and sys/stat.h.
116218         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116219         (ftypelet): Reorder to put common cases first, for efficiency.
116220         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116221         to do 'M'.
116222         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116223         of 10, for compatibility with FreeBSD.  All callers changed.
116224         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116225         types that can't be deduced solely from st_mode.  First arg is now a
116226         const pointer.
116227         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116228         (strmode): Renamed from mode_string.
116229         (filemodestring): New decl.
116230         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116231         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116232         needed.
116233         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116235         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116237         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116238         fsusage.h now does that.  Include fsusage.h first, to test interface.
116239         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116240         at most one method (the old code could have generated decls that
116241         didn't conform to C89, not that this was ever exercised).
116242         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116244         2006-03-19  Jim Meyering  <jim@meyering.net>
116246         Work even in a chroot where d_ino values for entries in "/"
116247         don't match the stat.st_ino values for the same names.
116248         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116249         number, iterate through all entries again, using lstat instead.
116250         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116251         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116253         * lib/getcwd.c (__getcwd): Clarify a comment.
116254         Use memcpy in place of a call to strcpy.
116256         2006-03-12  Jim Meyering  <jim@meyering.net>
116258         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116259         matches that of the current directory (which we're about to chdir ".."
116260         out of), then save the dev-ino of the parent, instead.
116262         * lib/same-inode.h (SAME_INODE): New file/macro.
116263         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116264         Include "same-inode.h", instead.
116265         * lib/same.c: Likewise.
116266         * lib/cycle-check.h: Include "same-inode.h".
116267         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116268         * lib/cycle-check.c (SAME_INODE): Remove definition.
116269         * lib/root-dev-ino.h: Include "same-inode.h".
116271         2006-03-11  Eric Blake  <ebb9@byu.net>
116273         * lib/same.c (same_name): s/base_name/last_component/
116274         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116275         * lib/filenamecat.c (file_name_concat): Likewise.
116277         2006-03-11  Eric Blake  <ebb9@byu.net>,
116278                     Paul Eggert  <eggert@cs.ucla.edu>
116280         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116281         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116282         drive prefix.
116283         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116284         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116285         (last_component): New method.
116286         * lib/dirname.c (dir_len): Determine when drive letters need a
116287         subsequent slash.  Preserve // when it is special.
116288         (dir_name): Don't append dot when drive letter is absolute.
116289         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116290         * lib/basename.c (base_name): New semantics - malloc the result.
116291         Preserve // when it is special.  Preserve relative files that look
116292         like drive letters.
116293         (base_len): Preserve // when it is special.
116294         (last_component): New method, similar to old base_name semantics.
116295         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116296         base_name.  Strip redundant slashes from ///.
116298 2006-07-03  Jim Meyering  <jim@meyering.net>
116300         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116301         macro is used before the first cycle_check call.
116303 2006-07-03  Eric Blake  <ebb9@byu.net>
116305         * modules/dirname (Depends-on): Add xstrndup.
116307 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116309         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116310         test cases, so that config.log is a bit easier to follow.
116312 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116314         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116315         both are 64 bits, since this seems to be the tradition, and this
116316         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116317         we ever run into a host that prefers long long to long in this
116318         case, we'll need another configure-time test.  Problem reported by
116319         Jim Meyering.
116321 2006-07-02  Eric Blake  <ebb9@byu.net>
116323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116325 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116327         * modules/inttypes (Depends-on): No longer depends on stdint.
116328         * modules/stdint (Description): Say more about assumptions.
116329         Say that the fast types might differ.  Say macros are used.
116330         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116331         (Makefile.am): Revise list of substituted symbols to match
116332         new stdint.m4.
116333         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116334         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116335         * tests/test-stdint.c (verify_same_types)
116336         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116337         the code conforms to C99/C89.
116338         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116339         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116341 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116343         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116344         but fix a bug, by requiring at least 64 bits.
116345         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116346         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116347         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116348         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116350         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116351         changes.  Make 2.59 a prerequisite.  Check and substitute for
116352         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116353         inttypes.h.  Do not use special include files; just use the
116354         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116355         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116356         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116357         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116358         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116359         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116360         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116361         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116362         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116363         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116364         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116365         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116366         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116367         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116368         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116369         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116370         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116371         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116372         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116373         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116374         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116375         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116376         not check for things that C99 does not require, e.g., int8_t.  If
116377         a test isn't needed unless <stdint.h> isn't working, and is
116378         unlikely to be needed for any other reason, then don't do it
116379         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116380         size_t, since we assume C89 freestanding at least.  Do not check
116381         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116382         the right thing even if the types are not defined.  Instead use:
116383         (gl_STDINT_TYPE_PROPERTIES): New macro.
116384         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116385         testing whether <sys/types.h> clashes, as Autoconf does this for
116386         us now.  All uses removed.
116387         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116388         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116389         (gl_CHECK_TYPE_SAME):
116390         Remove; no longer needed.
116391         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116392         exists, since we'll return 0 anyway in that case.
116393         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116395 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116397         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116398         possible collision with system files.
116399         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116400         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116401         WCHAR_MIN and WCHAR_MAX in this case.
116402         (<stddef.h>): Do not include; no longer needed.
116403         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116404         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116405         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116406         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116407         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116408         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116409         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116410         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116411         !defined(__c99))]: Include in this case too, since it's harmless
116412         now.
116413         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116414         dangerous to do so.
116415         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116416         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116417         (_STDINT_MIN, _STDINT_MAX): New macros.
116418         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116419         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116420         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116421         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116422         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116423         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116424         macros, not typedefs; this simplifies things quite a bit.
116425         Use long int for all types narrower than int64_t.
116426         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116427         Define in terms of long long int or int64_t or long int,
116428         not int64_t or int32_t.  This saves some compile-time testing.
116429         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116430         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116431         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116432         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116433         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116434         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116435         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116436         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116437         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116438         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116439         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116440         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116441         undef any previous version and define our own version, for
116442         simplicity and consistency with the new macros for types.
116443         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116444         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116445         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116446         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116447         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116448         @WINT_T_SUFFIX@ to keep things simple here.
116449         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116450         Simplify by assuming typical 8/16/32/64 host, since we're
116451         already doing that elsewhere anyway.
116452         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116453         and assume long long int is 64 bits if available.  This
116454         speeds up 'configure'.
116456 2006-07-01  Eric Blake  <ebb9@byu.net>
116458         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116459         Reported by Andreas Buening.
116461 2006-07-01  Eric Blake  <ebb9@byu.net>
116463         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116465 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116467         * lib/getaddrinfo.c: fixed typo
116469 2006-06-29  Jim Meyering  <jim@meyering.net>
116471         * modules/strftime (Maintainer): Add my name, since with the
116472         FPRINTFTIME changes strftime.c has forked from glibc.
116474 2006-06-29  Eric Blake  <ebb9@byu.net>
116476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116478 2006-06-29  Eric Blake  <ebb9@byu.net>
116480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116482 2006-06-29  Eric Blake  <ebb9@byu.net>
116484         * lib/stat_.h: New file.
116486 2006-06-29  Eric Blake  <ebb9@byu.net>
116488         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116489         unused static function.
116491 2006-06-29  Eric Blake  <ebb9@byu.net>
116493         * doc/functions.texi (Function Portability): Document missing lstat
116494         on mingw.
116496 2006-06-29  Eric Blake  <ebb9@byu.net>
116498         * MODULES.html.sh: Add sys_stat.
116499         * modules/sys_stat: New module.
116500         * modules/mkstemp (Depends-on): Add sys_stat.
116502 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116504         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116508         * m4/c-bs-a.m4: Removed.
116510 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116512         * lib/strftime.c: Assume strftime() exists.
116514 2006-06-29  Derek Price  <derek@ximbiot.com>
116516         * modules/c-bs-a: Removed - \a is C89.
116517         * MODULES.html.sh: Remove c-bs-a.
116519 2006-06-29  Bruno Haible  <bruno@clisp.org>
116521         * modules/wcwidth (License): Change to LGPL.
116523 2006-06-28  Simon Josefsson  <jas@extundo.com>
116525         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
116526         on _WIN32.
116528         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
116529         getnameinfo.
116531 2006-06-28  Simon Josefsson  <jas@extundo.com>
116533         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
116535 2006-06-28  Simon Josefsson  <jas@extundo.com>
116537         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
116538         functions there.  It will succeed on Windows XP, but on Windows
116539         2000 and (presumably) earlier, it will fail, and use the internal
116540         re-implementation.
116541         (use_win32_p): New function.
116542         (getaddrinfo): Use strtoul on servname, to support numeric ports.
116543         Support AI_NUMERICSERV to disable getservbyname.
116544         (getnameinfo): New function, only supports
116545         NI_NUMERICHOST|NI_NUMERICSERV for now.
116547         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
116548         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
116549         getnameinfo.
116551 2006-06-28  Eric Blake  <ebb9@byu.net>
116553         * modules/wcwidth: New file.
116554         * modules/mbchar (Depends-on): Add wcwidth.
116555         * modules/mbswidth (Depends-on): Add wcwidth.
116556         * MODULES.html.sh: Add wcwidth.
116558 2006-06-28  Eric Blake  <ebb9@byu.net>
116560         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
116561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
116563 2006-06-28  Eric Blake  <ebb9@byu.net>
116565         * lib/xvasprintf.h: Fix comments.
116567 2006-06-28  Eric Blake  <ebb9@byu.net>
116569         * lib/mbchar.h (wcwidth): Include wcwidth.h.
116570         * lib/mbswidth.c (wcwidth): Move from here...
116571         * lib/wcwidth.h: ...to this new file.
116573 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116575         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
116577         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
116578         it's obsolete.
116579         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
116581 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116583         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
116584         Autoconf 2.60 says this stuff was obsolete.
116586 2006-06-28  Bruno Haible  <bruno@clisp.org>
116588         * modules/wcwidth (Files): Add m4/wchar_t.m4.
116590 2006-06-28  Bruno Haible  <bruno@clisp.org>
116592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116593         gt_TYPE_WCHAR_T.
116595 2006-06-28  Bruno Haible  <bruno@clisp.org>
116597         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116598         declaration for wcwidth.
116599         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116601 2006-06-28  Bruno Haible  <bruno@clisp.org>
116603         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116604         (mkdir): Define using _mkdir.
116606 2006-06-28  Bruno Haible  <bruno@clisp.org>
116608         * lib/getaddrinfo.h: Fix POSIX URL.
116609         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
116610         _WIN32.
116611         (use_win32_p): Make static.
116612         (getaddrinfo): Reject service name if it is empty or does not consist
116613         solely of decimal digits, or if its value is > 65535.
116614         (getnameinfo): Remove useless casts.
116616 2006-06-27  Simon Josefsson  <jas@extundo.com>
116618         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116619         Eggert and Martin Lambers.
116621 2006-06-27  Simon Josefsson  <jas@extundo.com>
116623         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116624         Eggert and Martin Lambers.
116626 2006-06-27  Bruno Haible  <bruno@clisp.org>
116628         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116629         result to 0, not to empty.
116630         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116632 2006-06-27  Bruno Haible  <bruno@clisp.org>
116634         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116636 2006-06-26  Simon Josefsson  <jas@extundo.com>
116638         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116639         present.
116641 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116643         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116644         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116645         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116647 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116649         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116651 2006-06-26  Bruno Haible  <bruno@clisp.org>
116653         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116655 2006-06-26  Bruno Haible  <bruno@clisp.org>
116657         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116659 2006-06-26  Bruno Haible  <bruno@clisp.org>
116661         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116662         SGI C compiler in pre-C99 mode.
116663         Suggested by Mark D. Baushke and Larry Jones.
116665 2006-06-26  Bruno Haible  <bruno@clisp.org>
116667         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116668         WCHAR_MAX.
116669         Reported by Mark D. Baushke and Larry Jones.
116671 2006-06-26  Bruno Haible  <bruno@clisp.org>
116673         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116674         in pre-C99 mode.
116675         Suggested by Mark D. Baushke and Larry Jones.
116677 2006-06-23  Simon Josefsson  <jas@extundo.com>
116678             Bruno Haible  <bruno@clisp.org>
116680         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116681         Emit mostlyclean-local rule.
116682         (func_emit_tests_Makefile_am): Likewise.
116683         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116685 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116687         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116689 2006-06-23  Bruno Haible  <bruno@clisp.org>
116691         * tests/test-stdint.c: Update to match ISO C 99 Technical
116692         Corrigendum 1.
116694 2006-06-23  Bruno Haible  <bruno@clisp.org>
116696         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116698 2006-06-23  Bruno Haible  <bruno@clisp.org>
116700         * lib/stdint_.h: Treat IRIX like OpenBSD.
116702 2006-06-23  Bruno Haible  <bruno@clisp.org>
116704         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116705         ISO C 99 Technical Corrigendum 1.
116707 2006-06-22  Simon Josefsson  <jas@extundo.com>
116709         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116710         MinGW.
116712 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116714         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116715         needed.  Some compiler complained about some of them.  Problem reported
116716         by Larry Jones in
116717         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116719 2006-06-21  Simon Josefsson  <jas@extundo.com>
116721         * tests/test-getaddrinfo.c: New file.
116723         * modules/getaddrinfo-tests: New file.
116725         * MODULES.html.sh: Add inet_pton.
116727         * modules/inet_pton: New file.
116729 2006-06-21  Simon Josefsson  <jas@extundo.com>
116731         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116732         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116733         of using the (limited) gnulib implementation on Windows XP.
116735         * m4/inet_pton.m4: New file.
116737 2006-06-21  Simon Josefsson  <jas@extundo.com>
116739         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116740         variable.
116742         * lib/socket_.h: Don't define WINVER.
116744         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116745         slightly modified to work in gnulib.
116747 2006-06-21  Simon Josefsson  <jas@extundo.com>
116749         * doc/gnulib.texi (Windows sockets): Add.
116751 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116753         * lib/read-file.c (fread_file): Start with buffer allocation of
116754         0 bytes rather than 1 byte; this simplifies the code.
116755         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116756         code to free buffer and save/restore errno.
116757         (internal_read_file): Remove unused local.
116759 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116761         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116762         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116763         Problem reported by Denis Excoffier in
116764         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116766 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116768         * modules/sys_socket, modules/socklen: Include sys/types since
116769         FreeBSD 4.x's sys/socket.h needs it.
116771 2006-06-19  Simon Josefsson  <jas@extundo.com>
116773         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116775 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116777         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116779 2006-06-19  Bruno Haible  <bruno@clisp.org>
116781         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116782         and FULL_PATH_INTTYPES_H in angle brackets.
116783         Reported by Mark D. Baushke <mdb@gnu.org>.
116785 2006-06-17  Eric Blake  <ebb9@byu.net>
116787         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116788         errno.
116790 2006-06-17  Bruno Haible  <bruno@clisp.org>
116792         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116793         <sys/inttypes.h>.
116795 2006-06-17  Bruno Haible  <bruno@clisp.org>
116797         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116798         whether errno is declared. Assume <errno.h> declares errno.
116800 2006-06-17  Bruno Haible  <bruno@clisp.org>
116802         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116804 2006-06-17  Bruno Haible  <bruno@clisp.org>
116806         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116807         problem on Solaris 2.5.1.
116809 2006-06-16  Eric Blake  <ebb9@byu.net>
116811         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116812         * lib/unicodeio.c [!defined errno]: Likewise.
116813         * lib/strtol.c [!defined errno]: Likewise.
116814         * lib/strtod.c [!defined errno]: Likewise.
116816 2006-06-15  Eric Blake  <ebb9@byu.net>
116818         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116820 2006-06-15  Eric Blake  <ebb9@byu.net>
116822         * config/srclist.txt (ssize_t.m4): Lose sync.
116824 2006-06-15  Bruno Haible  <bruno@clisp.org>
116826         * modules/stdint (Files): Include m4/full-header-path.m4,
116827         m4/size_max.m4, m4/wchar_t.m4.
116828         (Makefile.am): Many more substitutions.
116829         * modules/stdint-tests: New file.
116830         * tests/test-stdint.c: New file.
116832 2006-06-15  Bruno Haible  <bruno@clisp.org>
116834         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116835         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116836         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116837         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116838         gl_CHECK_TYPE_SAME): New macros.
116840 2006-06-15  Bruno Haible  <bruno@clisp.org>
116842         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116844 2006-06-15  Bruno Haible  <bruno@clisp.org>
116846         * lib/stdint_.h: Rewritten to be fully auto-configured.
116847         Fixes bug on HP-UX/IA64.
116849 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116851         * lib/getdate.y (__attribute__): Don't define if already defined.
116852         Problem reported by Larry Jones.
116853         * lib/utimens.c (__attribute__): Likewise.
116855 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116857         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116858         reported by Andreas Schwab.
116860 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116861             Bruno Haible  <bruno@clisp.org>
116863         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116864         check for the declaration of strnlen and a run test that exposes the
116865         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116866         rpl_strndup.
116868 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116869             Bruno Haible  <bruno@clisp.org>
116871         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116873 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116875         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116876         compile test, for Tru64 4.0D.
116878 2006-05-28  Karl Berry  <karl@gnu.org>
116880         * config/srclist.txt (printf-args.c): lose sync.
116882 2006-05-26  Martin Lambers  <marlam@marlam.de>
116884         * lib/getpass.c: Updates the test for the native W32 API, and adds
116885         missing includes, thus fixing compilation warnings.
116887 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116889         * lib/exclude.c (exclude_fnmatch): New function.
116890         (excluded_file_name): Call exclude_fnmatch.
116891         * lib/exclude.h (excluded_file_name): New prototype
116893 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116895         * lib/tempname.c (small_open, large_open): New macros.
116896         (__open, __open64) [!_LIBC]: Remove.
116897         (__gen_tempname): Use small_open and large_open instead of __open
116898         and __open64.  This fixes a portability bug on HP-UX 11.11i
116899         reported by Simon Wing-Tang in
116900         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116902 2006-05-24  Bruno Haible  <bruno@clisp.org>
116904         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116905         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116906         Reported by Thorsten Maerz <torte@netztorte.de> via
116907         Aaron Stone <aaron@serendipity.cx>.
116909 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116912         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116913         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116914         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116915         not really conditional on the cache.
116916         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116918 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116920         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116921         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116922         (my_usleep): Don't mishandle maximum value.
116924 2006-05-19  Jim Meyering  <jim@meyering.net>
116926         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116928 2006-05-17  Bruno Haible  <bruno@clisp.org>
116930         Cygwin portability.
116931         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116933 2006-05-17  Bruno Haible  <bruno@clisp.org>
116935         * lib/stdint_.h: Fix recognition of Cygwin.
116937 2006-05-15  Bruno Haible  <bruno@clisp.org>
116939         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
116940         on libtool patch by Ralf Wildenhues.
116942 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116944         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
116945         test for C99 conformance; (bool) 0.5 is an integer constant
116946         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116947         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116949 2006-05-11  Simon Josefsson  <jas@extundo.com>
116951         * m4/xvasprintf.m4: Fix obvious typo.
116953 2006-05-11  Jim Meyering  <jim@meyering.net>
116955         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116956         James Lemley.
116958 2006-05-10  Simon Josefsson  <jas@extundo.com>
116960         * lib/md4.c: Typo fix, update copyright years.
116961         (K1, K2): Don't use L because it turn computations into 64-bit on
116962         64-bit platforms.
116964 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116966         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116967         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116968         unwanted sign propagation, e.g., on hosts with 64-bit int.
116969         There still are some problems with reeelly weird theoretical hosts
116970         (e.g., 33-bit int) but it's not worth worrying about now.
116971         * lib/sha1.c (rol): Likewise.
116972         (K1, K2, K3, K4): Remove unnecessary L suffix.
116974 2006-05-10  Bruno Haible  <bruno@clisp.org>
116976         * lib/des.c: Cast to avoid warnings.
116978 2006-05-09  Bruno Haible  <bruno@clisp.org>
116980         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116981         (Depends-on): Depend also on xsize, stdarg.
116982         (configure.ac): Add gl_XVASPRINTF.
116984 2006-05-09  Bruno Haible  <bruno@clisp.org>
116986         * m4/xvasprintf.m4: New file.
116988 2006-05-09  Bruno Haible  <bruno@clisp.org>
116990         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116991         (EOVERFLOW): Define fallback value.
116992         (xstrcat): New function.
116993         (xvasprintf): Recognize the special case of a string concatenation.
116995 2006-05-08  Eric Blake  <ebb9@byu.net>
116997         * gnulib-tool (func_version): Base copyright year on CVS date.
116998         (func_emit_copyright_notice): New function.
116999         (func_emit_lib_Makefile_am): Use it.
117000         (func_emit_tests_Makefile_am): Likewise.
117001         (func_import): Likewise.
117003 2006-05-08  Bruno Haible  <bruno@clisp.org>
117005         * modules/stdarg: New file.
117006         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117008 2006-05-08  Bruno Haible  <bruno@clisp.org>
117010         * m4/stdarg.m4: New file, from GNU gettext.
117012 2006-05-08  Bruno Haible  <bruno@clisp.org>
117014         * config/srclist.txt (build-aux/config.rpath): different from latest
117015         release.
117017 2006-05-08  Bruno Haible  <bruno@clisp.org>
117019         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117021 2006-05-05  Jim Meyering  <jim@meyering.net>
117023         * m4/warning.m4: New file, derived from bison's file by the same name.
117025 2006-05-03  Bruno Haible  <bruno@clisp.org>
117027         * lib/stdint_.h: Shorter URL.
117028         * lib/inttypes.h: Likewise.
117030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117032         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117034 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117036         * lib/verify.h: Document the internals better.  Most of this change
117037         was written by Bruno Haible.
117039 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117041         * doc/verify.texi: New file, partly based on a proposal by
117042         Bruno Haible.
117044 2006-05-02  Bruno Haible  <bruno@clisp.org>
117046         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117047         test from here...
117048         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117050 2006-04-29  Bruno Haible  <bruno@clisp.org>
117052         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117053         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117055 2006-04-29  Bruno Haible  <bruno@clisp.org>
117057         * gnulib-tool: Make --update option actually work.
117059 2006-04-29  Bruno Haible  <bruno@clisp.org>
117061         * doc/gcd.texi: New file.
117062         * doc/gnulib.texi: Include it.
117064 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117066         * lib/getdate.y (get_date): When adding relative date, start with the
117067         initial time, not with the result of the first mktime call.
117069 2006-04-25  Bruno Haible  <bruno@clisp.org>
117071         * gnulib-tool (func_import): Output the include directives in three
117072         blocks, sorted separately.
117073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117075 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117077         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117078         to define main with arguments, for C++.  Reported by Eric Blake.
117079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117080         Prefer 'int main ()' to 'int main (void)', for C++.
117081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117083         for 'main', for C99 and C++.
117085 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117088         Don't assume that exit status -1 is valid.
117089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117090         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117091         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117092         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117093         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117094         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117095         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117096         functions can be used without declaring them, or that you can
117097         exit with status -1.
117098         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117100 2006-04-24  Karl Berry  <karl@gnu.org>
117102         * config/srclist.txt (longdouble.m4): sync lost.
117104 2006-04-24  Eric Blake  <ebb9@byu.net>
117106         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117108 2006-04-24  Bruno Haible  <bruno@clisp.org>
117110         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117111         poll() implementation in AIX.
117112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117114 2006-04-24  Bruno Haible  <bruno@clisp.org>
117116         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117117         assigned exactly once.
117119 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117120             Bruno Haible  <bruno@clisp.org>
117122         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117123         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117124         for AM_CPPFLAGS.
117126 2006-04-23  Bruno Haible  <bruno@clisp.org>
117128         * modules/copy-file: Depend on unistd.
117129         * modules/execute: Likewise.
117130         * modules/fatal-signal: Likewise.
117131         * modules/findprog: Likewise.
117132         * modules/mkdtemp : Likewise.
117133         * modules/pipe: Likewise.
117134         * modules/wait-process: Likewise.
117136 2006-04-23  Bruno Haible  <bruno@clisp.org>
117138         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117139         condition was already detected.
117140         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117142 2006-04-23  Bruno Haible  <bruno@clisp.org>
117144         * lib/copy-file.c: Include <unistd.h> unconditionally.
117145         * lib/execute.c: Likewise.
117146         * lib/fatal-signal.c: Likewise.
117147         * lib/findprog.c: Likewise.
117148         * lib/mkdtemp.c: Likewise.
117149         * lib/pipe.h: Likewise.
117150         * lib/pipe.c: Likewise.
117151         * lib/wait-process.h: Likewise.
117153 2006-04-23  Bruno Haible  <bruno@clisp.org>
117155         * gnulib-tool (func_usage): Fix --import description. Document
117156         --update.
117157         (func_import): Create temporary file in a temporary directory, if
117158         --dry-run is specified. Silence errors from 'grep' when there are no
117159         m4 files in $m4dir.
117160         (func_create_testdir): Silence errors from 'grep' when there are no
117161         m4 files in $m4dir.
117162         Reported by Karl Berry <karl@freefriends.org>.
117164 2006-04-20  Bruno Haible  <bruno@clisp.org>
117166         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117167         one argument, so that the code will be portable to Autoconf 2.60.
117168         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117169         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117170         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117172 2006-04-19  Derek Price  <derek@ximbiot.com>
117173             Eric Blake  <ebb9@byu.net>
117175         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117176         rather than "/full/path.h".  Update comment to match.  Shorten &
117177         generalize m4_translit call via AS_TR_CPP.
117179 2006-04-19  Derek Price  <derek@ximbiot.com>
117180             Eric Blake  <ebb9@byu.net>
117182         * lib/inttypes.h: Correct grammar in comment.
117184 2006-04-18  Derek Price  <derek@ximbiot.com>
117185             Paul Eggert  <eggert@cs.ucla.edu>
117187         * modules/inttypes: New file.
117188         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117190 2006-04-18  Derek Price  <derek@ximbiot.com>
117191             Paul Eggert  <eggert@cs.ucla.edu>
117193         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117194         New files.
117196 2006-04-18  Derek Price  <derek@ximbiot.com>
117197             Paul Eggert  <eggert@cs.ucla.edu>
117199         * lib/inttypes.h: New file.
117200         * lib/strtoimax.c: Assume <inttypes.h>.
117202 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117204         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117205         isn't mounted.  Problem reported by Kir Kolyshkin.
117207 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117209         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117210         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117211         Derek R. Price.
117212         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117213         implementation.
117215 2006-04-12  Eric Blake  <ebb9@byu.net>
117217         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117218         is now done automatically by the corresponding Autoconf macro.
117220 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117222         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117223         time_r.h.
117225 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117227         Merge regex changes from libc, removing some of our
117228         POSIX-conformance changes that were rejected and redoing them in a
117229         less-intrusive way.
117231         * lib/regcomp.c (re_compile_internal, init_dfa):
117232         Length arg is now size_t, not Idx.  All uses changed.
117233         (peek_token): Forward decl now says internal_function.
117234         (__re_error_msgid, __re_error_msgid_idx):
117235         Now static rather than extern with attribute_hidden.
117236         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117237         For some reason libc prefers K&R style defns for external functions.
117238         (regerror) [!defined _LIBC]: Likewise.
117239         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117240         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117241         (build_range_exp, build_collating_symbol):
117242         Use K&R-style defn.
117243         (re_compile_fastmap): Use '\0' to memset, not 0.
117244         (utf8_sb_map): Make the calculations more obvious.
117245         (init_dfa, parse_bracket_exp, build_charclass_op):
117246         Call calloc and cast result, as glibc does.
117247         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117248         (build_range_exp, build_collating_symbol):
117249         Now internal functions.
117251         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117253         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117254         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117255         Don't depend on VMS; depend on __VMS instead, for POSIX
117256         namespace cleanness.
117257         (regoff_t): Define to ssize_t, not long int.
117259         Remove the REG_ macros named below.  Instead, make the old names
117260         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117261         __USE_GNU_REGEX.
117262         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117263         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117264         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117265         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117266         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117267         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117268         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117269         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117270         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117271         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117272         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117273         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117274         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117275         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117276         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117277         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117278         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117279         (REG_NREGS):
117280         Remove.  All uses replaced by the old RE_* names.
117281         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117282         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117283         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117284         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117285         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117286         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117287         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117288         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117289         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117290         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117291         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117292         Don't bother having these macros be independent of each others'
117293         values, since they no longer exist in the POSIX name space.
117295         Rename the following member names back to their old names,
117296         unless !__USE_GNU_REGEX.  All uses changed back.
117297         (buffer): Renamed from re_buffer.
117298         (allocated): Renamed from re_allocated.
117299         (used): Renamed from re_used.
117300         (syntax): Renamed from re_syntax.
117301         (fastmap): Renamed from re_fastmap.
117302         (translate): Renamed from re_translate.
117303         (can_be_null): Renamed from re_can_be_null.
117304         (regs_allocated): Renamed from re_regs_allocated.
117305         (fastmap_accurate): Renamed from re_fastmap_accurate.
117306         (no_sub): Renamed from re_no_sub.
117307         (not_bol): Renamed from re_not_bol.
117308         (not_eol): Renamed from re_not_eol.
117309         (newline_anchor): Renamed from re_newline_anchor.
117310         (num_regs): Renamed from rm_num_regs.
117311         (start): Renamed from rm_start.
117312         (end): Renamed from rm_end.
117314         (free_state): Move up a bit.
117316         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117317         #define to be empty.
117318         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117319         when that is what is intended.
117320         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117321         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117322         (MAX): New macro.
117323         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117324         All uses changed back to re_malloc, etc.  It's now the caller's
117325         responsibility to check for overflow; all callers changed.
117326         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117327         (re_x2nrealloc): Remove.
117328         (free_state): Remove decl.
117330         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117331         (re_set_registers, re_exec):
117332         Use K&R-style defn.
117334         2006-01-31  Roland McGrath  <roland@redhat.com>
117336         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117337         Reported by Mike Frysinger <vapier@gentoo.org>.
117339         2006-01-15  Andreas Jaeger  <aj@suse.de>
117341         [BZ #1950]
117342         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117343         build_wcs_upper_buffer change.
117344         (build_wcs_upper_buffer): Change return type.
117346         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117348         * lib/regex_internal.h: Include <stdint.h> if available.
117350         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117352         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117354         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117356         * lib/regcomp.c: Adjust for changed secondary hash function.
117358         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117360         * lib/regex.h: Pretty printing.
117361         Clean up namespace a bit.
117363         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117365         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117366         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117368         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117369                     Ulrich Drepper  <drepper@redhat.com>
117371         [BZ #1302]
117372         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117373         changed.
117374         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117376         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117378         [BZ #281]
117379         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117380         * lib/regcomp.c: Remove unnecessary uses of
117381         unsigned RE_TRANSLATE_TYPE.
117382         * lib/regex_internal.h: Likewise.
117383         * lib/regex_internal.c: Likewise.
117384         * lib/regexec.c: Likewise.
117385         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117387         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117389         * lib/regexec.c (find_recover_state): Remove unnecessary
117390         initialization.
117391         (transit_state_bkref): Make DFA a const pointer.
117392         (get_subexp): Likewise.
117393         (check_arrival): Likewise.
117394         (update_cur_sifted_state): Likewise.
117395         (re_search_internal): Likewise.
117396         (prune_impossible_nodes): Likewise.
117397         (acquire_init_state_context): Likewise.
117398         (proceed_next_node): Likewise.
117399         (set_regs): Likewise.
117400         (free_fail_stack_return): Likewise.
117401         (check_arrival_expand_ecl): Mark DFA parameter as const.
117402         (check_arrival_expand_ecl_sub): Likewise.
117403         (check_subexp_limits): Likewise.
117404         (sub_epsilon_src_nodes):  Likewise.
117405         (add_epsilon_src_nodes):  Likewise.
117406         (merge_state_array): Likewise.
117407         (update_regs): Likewise.
117408         (build_trtable): Likewise.
117409         (sift_states_backward): Mark MCTX parameter as const.
117410         (build_sifted_states): Likewise.
117411         (update_cur_sifted_state): Likewise.
117412         (sift_states_mkref): Likewise.
117413         (check_arrival_expand_ecl): Mark eclosure as const.
117414         (check_dst_limits_calc_pos_1): Likewise.
117415         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117416         pointer.
117418         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117420         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117421         (transit_state_sb): Likewise.
117422         (transit_state_mb): Likewise.
117423         (sift_states_iter_mb): Likewise.
117424         (check_arrival_add_next_nodes): Likewise.
117425         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117426         [_LIBC] (re_search_2_stub): Use mempcpy.
117428         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117429         mbrtowc for very simple UTF-8 case.
117431         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117432         a pointer-to-const.
117433         (re_acquire_state_context): Likewise.
117434         * lib/regex_internal.h: Adjust prototypes.
117436         * lib/regex.c: Prevent using C++ compilers.
117438         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117439         (re_acquire_state_context): Likewise.
117441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117443         * modules/regex (Depends-on): Add ssize_t.
117445 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117447         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117448         translation table.
117450 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117452         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117454 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117455             Bruno Haible  <bruno@clisp.org>
117457         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117458         <sys/types.h> and <inttypes.h>.
117460 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117462         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117463         `__error_t_defined', so argp.h will not typedef the former.
117465 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117467         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117468         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117469         glibc names.  Even if glibc is changed to conform to POSIX, the
117470         traditional names will be available anyway, since regex depends on
117471         the extensions module.  Also, fix a longstanding typo in the
117472         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117473         reported by Emanuele Giaquinta.  Also, change sense of cached
117474         variable, so that the message makes sense.
117476 2006-03-24  Simon Josefsson  <jas@extundo.com>
117478         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117479         including some doc fixes.
117480         (base64_encode_alloc): Fix +1 bug on allocation failures.
117482 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117484         * lib/base64.c (base64_encode): Do not read past end of array with
117485         unsanitized input on systems with CHAR_BIT > 8.
117487 2006-03-24  Eric Blake  <ebb9@byu.net>
117489         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117491 2006-03-22  Karl Berry  <karl@gnu.org>
117493         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117494         * config/srclistvars.sh (COREUTILS): new var.
117496 2006-03-17  Jim Meyering  <jim@meyering.net>
117498         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117499         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117501 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117503         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117504         no longer needs it.  Instead, check that regoff_t is as least
117505         as wide as ptrdiff_t.
117507         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117508         so that our regex.h stays compatible with the installed regex.
117509         This is helpful for installers who configure --without-included-regex.
117510         Problem reported by Emanuele Giaquinta.
117512 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117514         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
117515         Typedef to long int, not to off_, as POSIX will likely change
117516         in that direction.
117518 2006-03-15  Eric Blake  <ebb9@byu.net>
117520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
117522 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117524         * lib/argp-help.c (validate_uparams): Fix typo
117525         * lib/argp-parse.c (argp_default_options): Consistently begin help
117526         messages with a lowercase letter.
117528 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
117530         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
117531         overrun buffers and shouldn't be used (much as gets shouldn't be
117532         used).
117533         * lib/time_r.c (asctime_r, ctime_r): Likewise.
117535 2006-03-08  Simon Josefsson  <jas@extundo.com>
117537         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
117538         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117540 2006-03-08  Simon Josefsson  <jas@extundo.com>
117542         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
117543         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117545 2006-03-08  Simon Josefsson  <jas@extundo.com>
117547         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
117548         signal that configure disabled the device.
117550 2006-03-08  Simon Josefsson  <jas@extundo.com>
117552         * build-aux/maint.mk: Fix refresh-po, to handle no translated
117553         languages.
117555 2006-03-07  Simon Josefsson  <jas@extundo.com>
117557         * modules/getopt (Depends-on): Add unistd.
117559         * modules/unistd: New file.
117561 2006-03-07  Simon Josefsson  <jas@extundo.com>
117563         * modules/gc-random: New file.
117565 2006-03-07  Simon Josefsson  <jas@extundo.com>
117567         * m4/unistd_h.m4: New file.
117569 2006-03-07  Simon Josefsson  <jas@extundo.com>
117571         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
117572         test to be side-effect free by storing the result in the cache
117573         variable gl_cv_lib_readline, and moving the assignment of
117574         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
117575         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117577 2006-03-07  Simon Josefsson  <jas@extundo.com>
117579         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
117580         error on missing devices (the functions will return an error).
117582         * m4/gc.m4: Move random stuff to gc-random.m4
117584 2006-03-07  Simon Josefsson  <jas@extundo.com>
117586         * lib/unistd_.h: New file.
117588 2006-03-07  Simon Josefsson  <jas@extundo.com>
117590         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117592 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117594         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117595         Problem reported by Juan Manuel Guerrero.
117597 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117599         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117600         the unistd module.
117601         * lib/getlogin_r.c: Likewise.
117602         * lib/getlogin_r.h: Likewise.
117603         * lib/glob.c: Likewise.
117604         * lib/pagealign_alloc.c: Likewise.
117605         * lib/unistd_.h: Remove; no longer needed.
117607 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117609         * MODULES.html.sh (Support for systems lacking POSIX:2001):
117610         Add unistd.
117611         * modules/c-stack (Depends-on): Add unistd.
117612         * modules/getlogin_r: Likewise.
117613         * modules/glob: Likewise.
117614         * modules/pagealign_alloc: Likewise.
117615         * modules/unistd (Files): Remove lib/unistd_.h.
117616         (EXTRA_DIST): Remove.
117617         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117618         need unistd_.h.
117619         (MOSTLYCLEANFILES): Remove unistd.h-t.
117621 2006-03-03  Simon Josefsson  <jas@extundo.com>
117623         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117625 2006-03-03  Simon Josefsson  <jas@extundo.com>
117627         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117628         libidn and bison.
117630 2006-03-03  Simon Josefsson  <jas@extundo.com>
117632         * build-aux/maint.mk: Add indent target.
117634 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117636         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117637         our replacement poll.h in any case, to avoid a differing
117638         declaration from a system header.  Seen on AIX.
117640 2006-03-01  Simon Josefsson  <jas@extundo.com>
117642         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117643         <kasal@ucw.cz>.
117645 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117647         * modules/gettime (Depends-on): Add extensions module.
117648         * modules/nanosleep (Depends-on): Likewise.
117649         * modules/settime (Depends-on): Likewise.
117651 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117653         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117654         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117655         pedantically.
117656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117657         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117660         not "==".  Reported by Ralf Wildenhues.
117662 2006-03-01  Karl Berry  <karl@gnu.org>
117664         * doc/Copyright/request-*: new files, synced from gnuorg.
117666 2006-03-01  Karl Berry  <karl@gnu.org>
117668         * config/srclist.txt (Copyright/*): new entries.
117670 2006-02-28  Simon Josefsson  <jas@extundo.com>
117672         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117674 2006-02-27  Simon Josefsson  <jas@extundo.com>
117676         * lib/base64.h: Indent #define's.  From Jim Meyering
117677         <jim@meyering.net>.
117679 2006-02-27  Jim Meyering  <jim@meyering.net>
117681         Revert the change of 2006-02-24, so these files can continue
117682         to be sync'd from gettext.
117683         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117684         of `config.h'.
117686 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117688         * modules/intprops: New file.
117689         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117690         Add intprops.
117691         * modules/getloadavg (Files): Remove lib/intprops.h.
117692         (Depends-on): Add intprops.
117693         * modules/human: Likewise.
117694         * modules/inttostr: Likewise.
117695         * modules/openat: Likewise.
117696         * modules/sig2str: Likewise.
117697         * modules/userspec: Likewise.
117698         * modules/utimecmp: Likewise.
117699         * modules/xnanosleep: Likewise.
117700         * modules/xstrtol: Likewise.
117702 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117704         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117705         * modules/lock-tests (TESTS): Use $(EXEEXT).
117706         * modules/tls-tests: Likewise.
117707         * modules/argp-tests: Likewise.
117708         (check_PROGRAMS): New var, replacing...
117709         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117711 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117713         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117714         `config.h'.
117716 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117718         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117720 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117722         Sync from coreutils.
117723         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117724         gl_CHDIR_SAFER.
117726 2006-02-22  Jim Meyering  <jim@meyering.net>
117728         Sync from coreutils.
117729         * m4/chdir-safer.m4: New file.
117731 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117733         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117734         AT_FDCWD exceeds INT_MAX.
117735         * lib/openat.h (AT_FDCWD): Likewise.
117737 2006-02-17  Eric Blake  <address@hidden>
117739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117741 2006-02-16  Simon Josefsson  <jas@extundo.com>
117743         * modules/getaddrinfo (Depends-on): Add sys_socket.
117745 2006-02-15  Simon Josefsson  <jas@extundo.com>
117747         * build-aux/maint.mk: Add dsyntax-check rule.
117749 2006-02-15  Eric Blake  <ebb9@byu.net>
117751         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117752         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117753         'present but cannot compile' warnings on cygwin.
117754         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117755         use ws2tcpip.h if sys/socket.h works.
117756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117757         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117759 2006-02-14  Simon Josefsson  <jas@extundo.com>
117761         * modules/maintainer-makefile (Files): Rename.
117763         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117764         and (the local) Makefile.cfg to maint-cfg.mk.
117766         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117767         to the latter.
117769         * modules/maintainer-makefile: New module.
117771         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117772         severaly stripped to make it possible to build it up from scratch
117773         with reliable tests.
117775         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117776         fixes to permit overriding the default actions when configure and
117777         makefile are not available.
117779 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117781         Sync from coreutils.
117782         * modules/lstat (Depends-on): Don't depend on xalloc.
117783         (License): Change from GPL to LGPL, since this is now simply a
117784         replacement for a libc function.
117786 2006-02-14  Jim Meyering  <jim@meyering.net>
117788         Sync from coreutils.
117790         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117791         failure on deficient systems, and simplify gnulib lgpl dependencies.
117792         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117793         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117795         * lib/xalloc-die.c: Remove unused definition of N_.
117797 2006-02-14  Jim Meyering  <jim@meyering.net>
117799         Sync from coreutils.
117800         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117801         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117802         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117803         double-quote uses of that variable, to accommodate the rare case in
117804         which getmntent is available in none of the libraries checked.  This
117805         happens at least on FreeBSD 5.0.
117807 2006-02-13  Simon Josefsson  <jas@extundo.com>
117809         * gnulib-tool (Usage): Fix --import, from
117810         karl@freefriends.org (Karl Berry).
117812 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117814         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117816 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117818         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117819         "autoupdate" on 2005-12-12.
117821 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117823         * modules/closeout (Depends-on): Remove atexit.
117825 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117827         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117828         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117830 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117833         __EXTENSIONS__ if this causes compilation to fail.  Problem
117834         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117835         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117837 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117839         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117840         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117841         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117842         All uses changed.
117844 2006-01-26  Simon Josefsson  <jas@extundo.com>
117846         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117847         prototype is visible on mingw32.
117849         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117850         for mingw32.
117852         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117853         mingw32).
117855 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117857         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117858         attempt to open for write; this always fails, at least on POSIX
117859         hosts.  This reinstates the 2006-01-09 change, which was
117860         inadvertently removed.
117862 2006-01-26  Bruno Haible  <bruno@clisp.org>
117864         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117865         Reported by Paul Eggert.
117867 2006-01-26  Bruno Haible  <bruno@clisp.org>
117868             Paul Eggert  <eggert@cs.ucla.edu>
117870         * lib/stdbool_.h (_Bool)
117871         [(! (defined __cplusplus || defined __BEOS__)
117872           && !defined __GNUC__
117873           && !(defined __HP_cc || defined __xlc__
117874                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117875                || defined __sgi))]:
117876         #define to signed char in these cases too; this simplifies
117877         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117878         etc., separately) and makes it more conservative.
117880 2006-01-25  Simon Josefsson  <jas@extundo.com>
117882         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117883         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117884         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117886 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117888         * lib/argp-namefrob.h: Bugfix. Remove stray #
117890 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117893         so that we test the test.
117894         Check for yet another HP-UX cc bug involving *bool |= bool.
117896 2006-01-25  Karl Berry  <karl@gnu.org>
117898         * config/srclist.txt (vasnprintf.c): sync lost.
117900 2006-01-25  Jim Meyering  <jim@meyering.net>
117902         Sync from the stable (b5) branch of coreutils:
117904         * lib/fts.c (fts_children): Don't let close() clobber errno from
117905         failed fchdir().
117907         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117908         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117909         a dangling symlink.  That can also happen at least for ELOOP.
117910         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117911         FYI, this bug predates the inclusion of fts.c in coreutils.
117913         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117914         in their own block, so pre-c99 compilers don't object.
117916         Avoid the double-free (first in fts_read, second in fts_close) that
117917         would occur when an `active' directory is made inaccessible (e.g.,
117918         via chmod a-x) during a traversal.
117919         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117920         before returning.  Reproduce this failure by
117921         mkdir -p a/b; cd a; chmod a-x . b
117922         Reported by Stavros Passas.
117924 2006-01-25  Jim Meyering  <jim@meyering.net>
117926         * lib/fileblocks.c: Remove more useless parentheses.
117927         * lib/readutmp.h: Likewise.
117929 2006-01-25  Bruno Haible  <bruno@clisp.org>
117931         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117932         warnings.
117933         Reported by Paul Eggert.
117935 2006-01-25  Bruno Haible  <bruno@clisp.org>
117937         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
117938         rid of a trap command. For Solaris sh.
117939         Reported by Mark D. Baushke <mdb@gnu.org>.
117941 2006-01-24  Simon Josefsson  <jas@extundo.com>
117943         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
117944         Bruno.
117946 2006-01-24  Karl Berry  <karl@gnu.org>
117948         * config/srclist.txt (argp-namefrob.h): sync lost.
117950 2006-01-24  Jim Meyering  <jim@meyering.net>
117952         * modules/openat (Files): Add lib/intprops.h.
117953         From Mark D. Baushke.
117955 2006-01-24  Jim Meyering  <jim@meyering.net>
117957         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117958         Reported by Mark D. Baushke.
117960 2006-01-24  Jim Meyering  <jim@meyering.net>
117962         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117964 2006-01-24  Bruno Haible  <bruno@clisp.org>
117966         * modules/strnlen (Maintainer): Change from glibc to all.
117968 2006-01-24  Bruno Haible  <bruno@clisp.org>
117970         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117971         Patch by Paul Eggert.
117973 2006-01-24  Bruno Haible  <bruno@clisp.org>
117975         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117976         already has it.
117977         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117978         2005-11-26.
117980         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117981         'signed char' to avoid problems with the built-in _Bool type.
117982         Reported by Paul Eggert on 2005-11-26.
117984 2006-01-24  Bruno Haible  <bruno@clisp.org>
117986         * gnulib-tool (func_import): Avoid constructing complicated sed
117987         expressions inside backquote.
117988         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117990 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117992         These changes imported from libc.
117993         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117994         test and two separate function calls.
117995         * lib/strndup.c (__strndup): Add libc_hidden_def.
117997 2006-01-23  Simon Josefsson  <jas@extundo.com>
117999         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118000         Remove the test_*_SOURCES variable: automake infers it by default.
118001         * modules/tls-tests: Likewise.
118003 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118005         Work around porting bugs reported by Dieter in
118006         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118007         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118008         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118009         Include "getopt.h" first, to check interface.
118010         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118011         !HAVE_DECL_GETENV.
118012         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118013         (__strndup): Revert to K&R-style function dfns, the glibc style.
118014         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118015         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118016         Include strnlen.h first, to get prototype properly.
118017         (strnlen): Renamed from __strnlen.
118018         Remove weak alias.
118020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118022         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118024 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118026         * config/srclist.txt: Adjust to reflect glibc reorganization.
118027         This affects only comments.
118029 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118031          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118032          Reported by Bruce Korb <bkorb@gnu.org>.
118034 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118036         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118037         to pacify gcc -Wswitch-default.
118039 2006-01-22  Bruno Haible  <bruno@clisp.org>
118041         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118042         temporary buffer for sprintf, take into account the precision also
118043         for 'd', 'i', 'u', 'o', 'x', 'X'.
118045 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118047         * modules/argp-tests: New module
118048         * tests/test-argp.c: New file
118049         * tests/test-argp-2.sh: New file
118051 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118053         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118054         (__argp_base_name): Removed
118055         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118056         typo.
118057         (__argp_base_name): Provide macro definition or extern declaration
118058         depending on the configuration
118060 2006-01-20  Simon Josefsson  <jas@extundo.com>
118062         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118064 2006-01-20  Simon Josefsson  <jas@extundo.com>
118066         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118068 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118070         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118071         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118072         Suggested by Bruno Haible.
118074 2006-01-20  Karl Berry  <karl@gnu.org>
118076         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118077         until changes propagate, I guess.
118079 2006-01-19  Simon Josefsson  <jas@extundo.com>
118081         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118083 2006-01-19  Simon Josefsson  <jas@extundo.com>
118085         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118087 2006-01-19  Simon Josefsson  <jas@extundo.com>
118089         * gnulib-tool: Set check_PROGRAMS.
118091         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118092         modules/des-tests, modules/gc-arcfour-tests,
118093         modules/gc-arctwo-tests, modules/gc-des-tests,
118094         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118095         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118096         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118097         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118098         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118099         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118100         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118101         test_*_SOURCES.
118103 2006-01-18  Simon Josefsson  <jas@extundo.com>
118105         * modules/socklen (Depends-on): Depend on sys_socket.
118107 2006-01-18  Simon Josefsson  <jas@extundo.com>
118109         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118110         modules/des-tests, modules/gc-arcfour-tests,
118111         modules/gc-arctwo-tests, modules/gc-des-tests,
118112         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118113         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118114         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118115         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118116         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118117         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118118         $(EXEEXT) to automake TESTS variable, for mingw32.
118120 2006-01-17  Simon Josefsson  <jas@extundo.com>
118122         * modules/socklen (Include): Need sys/socket.h.
118124 2006-01-17  Bruno Haible  <bruno@clisp.org>
118126         * modules/ssize_t (Include): Add <sys/types.h>.
118128 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118130         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118131         it's not portable and it doesn't work with cross-compiles.
118132         Problem reported by Bruno Haible.  Fix missing-$ typo in
118133         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118134         -zignore from being used with Sun's C compiler.
118136 2006-01-12  Simon Josefsson  <jas@extundo.com>
118138         * lib/base64.c: Fix warning, reported by Bruno Haible
118139         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118141 2006-01-12  Bruno Haible  <bruno@clisp.org>
118143         * modules/ldd: New file.
118144         * build-aux/ldd.sh.in: New file.
118145         * MODULES.html.sh (Support for building libraries and executables): Add
118146         ldd.
118148 2006-01-12  Bruno Haible  <bruno@clisp.org>
118150         * m4/ldd.m4: New file.
118152 2006-01-12  Bruno Haible  <bruno@clisp.org>
118154         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118155         endless loop while replacing $auxdir with build-aux.
118157 2006-01-11  Simon Josefsson  <jas@extundo.com>
118159         * lib/stdint_.h (SIZE_MAX): Add missing (.
118161 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118163         Sync from coreutils.
118164         * lib/md5.c: Fix commentary typos.
118165         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118166         * lib/md5.h (__attribute__): Remove; unused.
118167         * lib/sha1.c: Fix commentary to match md5 better.
118168         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118169         so that we don't need to worry about alignment.  All uses changed.
118170         This merges the 2005-10-28 md5 change into sha1.
118172 2006-01-11  Jim Meyering  <jim@meyering.net>
118174         Sync from coreutils.
118175         * lib/md5.c (OP): Fix spacing.
118177 2006-01-11  Bruno Haible  <bruno@clisp.org>
118179         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118180         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118181         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118183 2006-01-11  Bruno Haible  <bruno@clisp.org>
118185         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118186         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118187         the "early" section as well.
118189 2006-01-11  Bruno Haible  <bruno@clisp.org>
118191         Avoid "ar: no archive members specified" error on MacOS X.
118192         * gnulib-tool (func_modules_add_dummy): New function.
118193         (func_import, func_create_testdir): Invoke it.
118195 2006-01-11  Bruno Haible  <bruno@clisp.org>
118197         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118198         with $auxdir in AC_CONFIG_FILES statements.
118200 2006-01-11  Bruno Haible  <bruno@clisp.org>
118202         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118203         Initialize also noinst_HEADERS to empty.
118205 2006-01-11  Bruno Haible  <bruno@clisp.org>
118207         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118208         variables.
118209         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118210         autoreconf.
118212 2006-01-11  Bruno Haible  <bruno@clisp.org>
118214         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118215         overridable by the user.
118216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118218 2006-01-10  Simon Josefsson  <jas@extundo.com>
118220         * modules/sys_socket: New file.
118222 2006-01-10  Simon Josefsson  <jas@extundo.com>
118224         * m4/sys_socket_h.m4: New file.
118226 2006-01-10  Simon Josefsson  <jas@extundo.com>
118228         * lib/socket_.h: New file.
118230 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118232         * modules/readutmp (Maintainer): Add myself.
118234 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118236         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118237         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118238         People who are still concerned with buggy memcmp implementations
118239         can invoke gl_FUNC_MEMCMP themselves.
118241 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118243         * lib/regex_internal.h (BITSET_WORD_BITS):
118244         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118245         preprocessor mishandles large unsigned values as if they were signed.
118246         Problem reported by Claudio Fontana in
118247         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118249 2006-01-10  Jim Meyering  <jim@meyering.net>
118251         Avoid the double-free (first in fts_read, second in fts_close) that
118252         would occur when an `active' directory is made inaccessible (e.g.,
118253         via chmod a-x) during a traversal.
118254         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118255         before returning.  Reproduce this failure by
118256         mkdir -p a/b; cd a; chmod a-x . b
118257         Reported by Stavros Passas.
118259         Sync from coreutils.
118260         * lib/sha1.c: Tweak grammar in a comment.
118262 2006-01-10  Jim Meyering  <jim@meyering.net>
118264         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118265         Patch by Joerg Sonnenberger.
118267 2006-01-10  Bruno Haible  <bruno@clisp.org>
118269         * modules/readutmp: Depend on module free.
118270         * modules/strtok_r: Depend on module restrict.
118272 2006-01-10  Bruno Haible  <bruno@clisp.org>
118274         * modules/gettext (configure.ac): Add an invocation of
118275         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118277 2006-01-10  Bruno Haible  <bruno@clisp.org>
118279         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118280         Reported by Werner Lemberg <wl@gnu.org>.
118282 2006-01-10  Bruno Haible  <bruno@clisp.org>
118284         * lib/localcharset.c: Update from GNU gettext.
118286 2006-01-10  Bruno Haible  <bruno@clisp.org>
118288         * lib/argp.h (__const): Remove macro. Use const instead.
118289         * lib/argp-fmtstream.h (__const): Likewise.
118290         * lib/glob_.h (__const): Remove macro.
118291         * lib/glob-libc.h: Use const instead of __const.
118293 2006-01-10  Bruno Haible  <bruno@clisp.org>
118295         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118296         variable.
118297         Needed to avoid an automake error regarding the 'gettext' module.
118299 2006-01-09  Simon Josefsson  <jas@extundo.com>
118301         * modules/inet_ntop (Depends-on): Add restrict.
118303 2006-01-09  Simon Josefsson  <jas@extundo.com>
118305         * modules/gc-rijndael-tests (License): Put under LGPL.
118307         * modules/gc-des-tests (License): Likewise.
118309         * modules/gc-arcfour-tests (License): Likewise.
118311         * modules/gc-arctwo-tests (License): Likewise.
118313         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118315         * modules/gc-hmac-sha1-tests (Files): Likewise.
118317         * modules/gc-hmac-md5-tests (License): Likewise.
118319         * modules/gc-sha1-tests (License): Likewise.
118321         * modules/gc-md5-tests (License): Likewise.
118323         * modules/gc-md4-tests (License): Likewise.
118325         * modules/gc-md2-tests (License): Likewise.
118327         * modules/gc-tests (License): Likewise.
118329         * modules/des-tests (License): Likewise.
118331         * modules/md4-tests (License): Likewise.
118333         * modules/md2-tests (License): Likewise.
118335 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118337         Sync from coreutils:
118339         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118340         * modules/lib-ignore: New file.
118341         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118342         chdir-safer.m4, lchmod.m4.
118343         * modules/openat: Add mkdirat.c, openat-priv.h.
118345 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118347         Sync from coreutils.
118348         * m4/lib-ignore.m4: New file.
118349         * m4/lchmod.m4: New file.
118351 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118353         Sync from coreutils.
118354         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118355         for write access: POSIX says that must fail.
118356         * lib/fts.c (diropen): Likewise.
118357         * lib/save-cwd.c (save_cwd): Likewise.
118358         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118359         well, for minor improvements on hosts that lack O_DIRECTORY.
118360         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118361         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118362         Fall back on chown if open failed with EACCES.
118364         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118365         Report an error at compile-time if only a 1-second nominal clock
118366         resolution is found.
118368         * lib/lchmod.h: New file.
118369         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118370         (make_dir_parents): Use lchown rather than chown, and
118371         lchmod rather than chmod.
118373         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118374         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118375         "proc" reported by n0dalus.
118377         * lib/mountlist.c: Include <limits.h>.
118378         (dev_from_mount_options)
118379         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118380         New function.  It no longer assumes "dev=" has the System V meaning
118381         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118382         (read_file_system_list)
118383         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118384         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118385         dev= in that case.
118387         * lib/posixtm.h (PDS_PRE_2000): New macro.
118388         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118389         allow_century.  All usages changed.  Reject dates outside the range
118390         1969-1999 if PDS_PRE_2000 is used.
118392 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118394         Sync from coreutils.
118395         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118396         (Time of day items): Mention the possibility of leap seconds.
118397         Problem reported by Dr. David Alan Gilbert.
118399 2006-01-09  Jim Meyering  <jim@meyering.net>
118401         Sync from coreutils.
118403         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118405         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118407         * lib/modechange.c (mode_compile): Reject an invalid mode string
118408         that starts with an octal digit.  From Andreas Gruenbacher.
118410         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118411         and dup to open_safer and dup_safer, respectively.
118412         (openat_permissive): Fix typo in comment.
118414         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118415         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118416         (_): Remove; no longer needed.
118417         (openat): Renamed from rpl_openat; no need for rpl_openat
118418         since openat.h renames openat for us.
118419         Replace most of the body with a call to openat_permissive,
118420         to avoid duplicate code.
118421         Port to (probably hypothetical) environments were mode_t is
118422         wider than int.
118423         (openat_permissive): Require mode arg, so that we can check
118424         types better.  Put it just after flags.  Change cwd failure
118425         indicator from pointer-to-bool to pointer-to-errno-value.
118426         All callers changed.
118427         Invoke openat_save_fail and/or openat_restore_fail if
118428         cwd_errno is null, so that openat can call us.
118429         (openat_permissive, fdopendir, fstatat, unlinkat):
118430         Simplify errno handling to avoid some duplicate code,
118431         as it's OK to set errno on success.
118432         * lib/openat.h: Revamp code so that function macros depend on
118433         __OPENAT_PREFIX only, not also on AT_FDCWD.
118434         (openat_ro): Remove.  Caller changed to use openat_permissive.
118435         (openat_permissive): Now a macro, if not a function.
118436         (openat_restore_fail, openat_save_fail): Now always functions,
118437         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118439         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118440         and openat.c.
118441         * lib/mkdirat.c: Include openat-priv.h.
118442         Remove definitions of macros defined therein.
118443         * lib/openat.c: Likewise.
118445         * lib/mkdirat.c (mkdirat): New file and function.
118446         * lib/openat.h (mkdirat): Declare.
118448         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118450         * lib/openat.h (openat_permissive): Declare.
118451         (openat_ro): Define.
118453         * lib/openat.c (EXPECTED_ERRNO): New macro.
118454         (openat_permissive): New function -- used in remove.c rewrite.
118455         (all functions): Set errno just before returning, only if there
118456         was an actual failure.
118457         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118459         Emulate openat-family functions using Linux's procfs, if possible.
118460         Idea and some code based on Ulrich Drepper's glibc changes.
118462         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118463         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118464         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118465         before falling back on save_cwd and restore_cwd.
118466         (fdopendir, fstatat, unlinkat): Likewise.
118468         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118469         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118471         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118472         as second argument to va_arg.  Otherwise, some versions of gcc
118473         warn that `if this code is reached, the program will abort'.
118475 2006-01-09  Jim Meyering  <jim@meyering.net>
118477         Sync from coreutils.
118478         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118479         Require openat-priv.h.
118481 2006-01-09  Bruno Haible  <bruno@clisp.org>
118483         * modules/strnlen (Include): Use strnlen.h.
118485 2006-01-09  Bruno Haible  <bruno@clisp.org>
118487         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118489 2006-01-09  Bruno Haible  <bruno@clisp.org>
118491         * lib/sysexit_.h (EX_OK): New macro.
118492         Suggested by Martin Lambers <marlam@marlam.de>.
118494 2006-01-09  Bruno Haible  <bruno@clisp.org>
118496         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118497         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118499 2006-01-09  Bruno Haible  <bruno@clisp.org>
118501         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118502         numbers.
118504 2006-01-09  Bruno Haible  <bruno@clisp.org>
118506         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118507         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118508         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118509         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118511 2006-01-09  Bruno Haible  <bruno@clisp.org>
118513         * build-aux/javacomp.sh.in: New file, moved from lib/.
118514         * modules/javacomp-script (Files): Update.
118515         (configure.ac): Add AC_CONFIG_FILES invocation.
118516         (EXTRA_DIST): Remove variable.
118518         * build-aux/javaexec.sh.in: New file, moved from lib/.
118519         * modules/javaexec (Files): Update.
118520         (configure.ac): Add AC_CONFIG_FILES invocation.
118521         (EXTRA_DIST): Remove javaexec.sh.in.
118523         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
118524         * modules/csharpcomp-script (Files): Update.
118525         (configure.ac): Add AC_CONFIG_FILES invocation.
118526         (EXTRA_DIST): Remove variable.
118528         * build-aux/csharpexec.sh.in: New file, moved from lib/.
118529         * modules/csharpexec (Files): Update.
118530         (configure.ac): Add AC_CONFIG_FILES invocation.
118531         (EXTRA_DIST): Remove csharpexec.sh.in.
118533 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118535         Sync from coreutils.
118537         Add POSIX ACL support
118538         * lib/acl.h (copy_acl, set_acl): Add declarations.
118539         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
118540         systems other than Linux.
118541         (chmod_or_fchmod): New function: use fchmod when possible,
118542         and chmod otherwise.
118543         (file_has_acl): Add a POSIX ACL implementation, with a
118544         Linux-specific subcase.
118545         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
118546         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
118547         acls are unsupported.
118548         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
118549         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
118550         are unsupported.
118552 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118554         Sync from coreutils.
118555         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
118557 2006-01-07  Bruno Haible  <bruno@clisp.org>
118559         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
118560         gl_EARLY.
118562 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118564         * lib/strftime.c (tzname): Don't declare if it is already #defined.
118565         Problem reported for Mingw by Mark Junker.
118567 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118569         * README: Gnulib normally doesn't generate a tarball.
118571 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
118573         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
118574         long int, not int, for nanosecond counts, so that people who are
118575         used to POSIX struct timespec won't be surprised.  Reported by Jim
118576         Meyering.
118578 2005-12-28  Bruno Haible  <bruno@clisp.org>
118580         * build-aux/config.rpath: Update from GNU gettext.
118582 2005-12-16  Jim Meyering  <jim@meyering.net>
118584         * modules/fprintftime: New module.
118585         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
118587 2005-12-16  Jim Meyering  <jim@meyering.net>
118589         * m4/fprintftime.m4: New file.
118591 2005-12-16  Jim Meyering  <jim@meyering.net>
118593         * lib/fprintftime.c, lib/fprintftime.h: New files.
118595 2005-12-15  Simon Josefsson  <jas@extundo.com>
118597         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118598         new m4/socklen.m4.
118600 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118602         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118603         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118605 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118607         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118608         * lib/argp-help.c (fill_in_uparams): Check if the constructed
118609         struct uparams is valid. Fall back to the default values if it is
118610         not.
118612 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118614         * modules/argp (Files): Add argp-pin.c
118615         (Depends-on): dirname
118616         (lib_SOURCES): Add argp-pin.c
118618 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118620         * m4/argp.m4:  Check if program_invocation_name and
118621         program_invocation_short_name are declared and define appropriate
118622         macros if they are not.
118624 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118626         * lib/argp-help.c (__argp_base_name): New function
118627         (__argp_short_program_name): Rewrite using __argp_base_name
118628         * lib/argp-namefrob.h: Define program_invocation_name and
118629         program_invocation_short_name if requested
118630         (__argp_base_name): Add prototype
118631         * lib/argp-parse.c (argp_def): Use gettext wrappers
118632         (argp_default_parser): Use __argp_base_name
118633         * lib/argp-pin.c: New file. Defines program_invocation_name and
118634         program_invocation_short_name on systems that lack them.
118636 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118638         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118639         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118640         porting problem reported by Georg Schwarz in
118641         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118643 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118645         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118646         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118647         porting problem reported by Georg Schwarz in
118648         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118650 2005-12-05  Bruno Haible  <bruno@clisp.org>
118652         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118653         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118654         Reported by Mark Junker <mjscod@gmx.de>.
118656 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118658         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118659         Use implementation from Albert Chin, with some
118660         comments/corrections by Stepan Kasal and myself.
118662 2005-12-02  Bruno Haible  <bruno@clisp.org>
118664         * gnulib-tool (func_import): Accept GPLed build tool modules when
118665         --lgpl is given.
118666         * modules/csharpcomp-script: New file.
118667         * modules/csharpcomp: Depend on it.
118668         * modules/javacomp-script: New file.
118669         * modules/javacomp: Depend on it.
118670         Suggested by Simon Josefsson.
118672 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118674         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118675         statement, to work around an HP-UX 10.20 compiler bug reported by
118676         Peter O'Gorman.
118678 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118680         * modules/savedir (Depends-on): Add openat.
118682 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118684         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118685         (uintmax_t) [defined uintmax_t]: Do not declare.
118686         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118687         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118688         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118689         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118690         sake of portability to weird hosts that C allows (though we don't
118691         know of any practical examples).
118693         * lib/savedir.h (fdsavedir): New decl.
118694         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118695         contains most of the former guts of savedir.
118696         (savedir): Use savedirstream.
118697         Include "openat.h".
118699 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118701         * modules/obstack (Files): Add m4/ulonglong.m4.
118702         Problem reported by Davide Angelocola.
118704 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118706         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118707         coreutils no longer futzes with rounding modes.
118709 2005-11-14  Jim Meyering  <jim@meyering.net>
118711         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118712         replacement of mkstemp.
118714 2005-11-10  Simon Josefsson  <jas@extundo.com>
118716         * lib/readline.c: Remove EOL.
118718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118720         * modules/gethrxtime (Depends-on): Add gettime.
118722 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118724         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118725         or gettimeofday; no longer needed.
118727 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118729         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118730         time business.
118731         (gethrxtime) [! (HAVE_NANOUPTIME
118732         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118733         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118734         our own approximation.
118736 2005-11-08  Eric Blake  <ebb9@byu.net>
118738         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118740 2005-11-08  Eric Blake  <ebb9@byu.net>
118742         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118744 2005-11-04  Bruno Haible  <bruno@clisp.org>
118746         * gnulib-tool: Implement --update mode.
118748 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118750         Fix porting problem reported by Theodoros V. Kalamatianos.
118751         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118752         Don't assume that futimes failing means we must fail.
118754 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118756         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118757         variables to suggest the intended function of the PATH_MAX check.
118759 2005-10-30  Kean Johnston  <jkj@sco.com>
118761         Trivial changes to support SCO systems.
118762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118763         as PATH_MAX.
118764         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118765         where __ptr is null when no I/O is pending.
118767 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118769         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118770         leave errno alone.  Problem reported by Dmitry V. Levin.
118772 2005-10-28  Simon Josefsson  <jas@extundo.com>
118774         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118775         Test more.
118777         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118779         * modules/md2, modules/md2-tests: New files.
118781 2005-10-28  Simon Josefsson  <jas@extundo.com>
118783         * m4/inet_ntop.m4: More tests.
118785         * m4/gc-md2.m4, md2.m4: New file.
118787 2005-10-28  Simon Josefsson  <jas@extundo.com>
118789         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118790         "restrict" keywords, as per POSIX.  Protect the function
118791         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118792         Don't use K&R prototypes.  Check the sprintf return values.
118793         Re-define EAFNOSUPPORT if not present.  Indent.
118795         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118796         suggested by Bruno Haible <bruno@clisp.org>.
118798         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118800         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118802         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118803         libgcrypt).
118805         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118807         * lib/md2.h, lib/md2.c: New files.
118809 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118811         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118812         errno alone.  Problem reported by Frederic Jolliton.
118814 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118816         * modules/verify (License): Change from GPL to LGPL.  This is a
118817         tiny module and there are apparently near-equivalents that are
118818         under the BSD license.
118820 2005-10-24  Simon Josefsson  <jas@extundo.com>
118822         * modules/sha1: Relicense to LGPL.
118824 2005-10-24  Simon Josefsson  <jas@extundo.com>
118826         * lib/md4.h: Shrink buffer size, now that we changed the type.
118828 2005-10-23  Simon Josefsson  <jas@extundo.com>
118830         * gnulib-tool (func_import): Fix --tests-base.
118832 2005-10-22  Simon Josefsson  <jas@extundo.com>
118834         * modules/arcfour (Depends-on): Need stdint.
118836 2005-10-22  Simon Josefsson  <jas@extundo.com>
118838         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118839         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118841 2005-10-22  Simon Josefsson  <jas@extundo.com>
118843         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118844         suggested by Bruno Haible <bruno@clisp.org>.
118846 2005-10-22  Simon Josefsson  <jas@extundo.com>
118848         * lib/crc.h: Include stddef.h, for size_t.
118850 2005-10-22  Simon Josefsson  <jas@extundo.com>
118852         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118853         arcfour_context struct (simplify test vector testing in GNU
118854         Shishi).
118856 2005-10-21  Simon Josefsson  <jas@extundo.com>
118858         * modules/des, modules/des-tests: New files.
118860         * modules/gc-des, modules/gc-des-tests: New files.
118862         * tests/test-des.c, tests/test-gc-des.c: New file.
118864 2005-10-21  Simon Josefsson  <jas@extundo.com>
118866         * modules/arctwo, modules/arctwo-tests: New files.
118868         * tests/test-arctwo.c: New file.
118870         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118872         * tests/test-gc-arctwo.c: New file.
118874 2005-10-21  Simon Josefsson  <jas@extundo.com>
118876         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118877         Bruno Haible <bruno@clisp.org>.
118879         * m4/gc-des.m4: New file.
118881 2005-10-21  Simon Josefsson  <jas@extundo.com>
118883         * m4/arctwo.m4: New file.
118885         * m4/gc-arctwo.m4: New file.
118887 2005-10-21  Simon Josefsson  <jas@extundo.com>
118889         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118890         block.
118892 2005-10-21  Simon Josefsson  <jas@extundo.com>
118894         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118895         <bruno@clisp.org>.
118897         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118899         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118900         Bruno Haible <bruno@clisp.org>.
118902         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118903         <bruno@clisp.org>.
118905 2005-10-21  Simon Josefsson  <jas@extundo.com>
118907         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118909 2005-10-21  Simon Josefsson  <jas@extundo.com>
118911         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118913 2005-10-21  Simon Josefsson  <jas@extundo.com>
118915         * lib/des.h, lib/des.c: New files.
118917         * lib/gc-gnulib.c: Support DES.c
118919 2005-10-21  Simon Josefsson  <jas@extundo.com>
118921         * lib/arctwo.h, lib/arctwo.c: New files.
118923         * lib/gc-gnulib.c: Support ARCTWO.
118925 2005-10-21  Simon Josefsson  <jas@extundo.com>
118927         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118928         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118930 2005-10-21  Simon Josefsson  <jas@extundo.com>
118932         * gnulib-tool (func_import, func_create_testdir): Define automake
118933         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118934         Makefile.am snippet),
118935         suggested by Bruno Haible <bruno@clisp.org>.
118937         * modules/gc (Makefile.am): Use it.
118939 2005-10-21  Bruno Haible  <bruno@clisp.org>
118941         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
118942         patch.
118944 2005-10-19  Simon Josefsson  <jas@extundo.com>
118946         * tests/test-gc-rijndael.c: New file.
118948         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118950 2005-10-19  Simon Josefsson  <jas@extundo.com>
118952         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118953         interface too.
118955 2005-10-19  Simon Josefsson  <jas@extundo.com>
118957         * tests/test-gc-arcfour.c: New file.
118959         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118961 2005-10-19  Simon Josefsson  <jas@extundo.com>
118963         * modules/gc-md4, modules/gc-md4-tests: New file.
118965         * tests/test-gc-md4.c: New file.
118967 2005-10-19  Simon Josefsson  <jas@extundo.com>
118969         * m4/gc-md4.m4: New file.
118971 2005-10-19  Simon Josefsson  <jas@extundo.com>
118973         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118974         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118975         <kasal@ucw.cz>.
118977 2005-10-19  Simon Josefsson  <jas@extundo.com>
118979         * m4/gc-arcfour.m4: New file.
118981         * m4/gc-rijndael.m4: New file.
118983 2005-10-19  Simon Josefsson  <jas@extundo.com>
118985         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118987 2005-10-19  Simon Josefsson  <jas@extundo.com>
118989         * lib/gc-gnulib.c: Support ARCFOUR.
118991 2005-10-19  Simon Josefsson  <jas@extundo.com>
118993         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118994         support.
118996         * lib/gc.h: Add ECB enum type.
118998         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119000 2005-10-18  Simon Josefsson  <jas@extundo.com>
119002         * tests/test-md5.c: New file.
119004         * modules/md5-tests: New file.
119006 2005-10-18  Simon Josefsson  <jas@extundo.com>
119008         * tests/test-md4.c: New file.
119010         * modules/md4, modules/md4-tests: New files.
119012 2005-10-18  Simon Josefsson  <jas@extundo.com>
119014         * m4/md4.m4: New file.
119016 2005-10-18  Simon Josefsson  <jas@extundo.com>
119018         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119020 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119022         * gnulib-tool (func_create_testdir): Omit the second check whether
119023         BUILT_SOURCES in nonempty.
119025 2005-10-17  Simon Josefsson  <jas@extundo.com>
119027         * tests/test-rijndael.c: New file.
119029 2005-10-17  Simon Josefsson  <jas@extundo.com>
119031         * modules/sha1: Depend on stdint instead of md5.
119033         * modules/md5: Depend on stdint, remove uint32_t.
119035 2005-10-17  Simon Josefsson  <jas@extundo.com>
119037         * modules/gc-sha1-tests: New file.
119039         * tests/test-gc-sha1.c: New file.
119041 2005-10-17  Simon Josefsson  <jas@extundo.com>
119043         * m4/md5.m4: Remove call to uint32_t.m4.
119045 2005-10-17  Simon Josefsson  <jas@extundo.com>
119047         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119049         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119050         md5.h.
119052         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119054         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119056 2005-10-17  Simon Josefsson  <jas@extundo.com>
119058         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119060 2005-10-17  Simon Josefsson  <jas@extundo.com>
119062         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119064 2005-10-17  Simon Josefsson  <jas@extundo.com>
119066         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119068         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119070 2005-10-17  Bruno Haible  <bruno@clisp.org>
119072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119073         that it can also be used in a test.
119075 2005-10-16  Bruno Haible  <bruno@clisp.org>
119077         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119078         TESTS_ENVIRONMENT, so that individual tests can augment it.
119080         * gnulib-tool (func_create_testdir): Use an intermediate target for
119081         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119082         macros, like $(ALLOCA_H), which cannot be passed through the command
119083         line.
119085 2005-10-15  Simon Josefsson  <jas@extundo.com>
119087         * modules/rijndael-tests: New file.
119089         * modules/rijndael: New file.
119091 2005-10-15  Simon Josefsson  <jas@extundo.com>
119093         * m4/rijndael.m4: New file.
119095 2005-10-15  Simon Josefsson  <jas@extundo.com>
119097         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119099         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119101 2005-10-14  Simon Josefsson  <jas@extundo.com>
119103         * tests/test-arcfour.c: New file.
119105         * modules/arcfour, modules/arcfour-tests: New files.
119107 2005-10-14  Simon Josefsson  <jas@extundo.com>
119109         * m4/arcfour.m4: New file.
119111 2005-10-14  Simon Josefsson  <jas@extundo.com>
119113         * lib/arcfour.h, lib/arcfour.c: New files.
119115 2005-10-14  Roland McGrath  <roland@redhat.com>
119117         Import from libc.  [BZ #1331]
119118         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119119         macro argument.
119120         Reported by Matej Vela <vela@debian.org>.
119122 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119124         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119125         include <wchar.h>; no longer needed.
119127 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119129         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119131 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119132         and  Ulrich Drepper  <drepper@redhat.com>
119134         Import from libc.
119135         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119136         instead of inline stream orientation test and two separate
119137         function calls.  Pay no attention to USE_IN_LIBIO.
119139 2005-10-13  Simon Josefsson  <jas@extundo.com>
119141         * modules/gc-hmac-md5-tests: New file.
119143         * tests/test-gc-hmac-sha1.c: New file.
119145         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119147         * modules/gc-hmac-md5-tests: New file.
119149         * tests/test-gc-md5.c: New file.
119151         * modules/gc-md5-tests: New file.
119153 2005-10-13  Simon Josefsson  <jas@extundo.com>
119155         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119156         Move memory allocation outside of loop.
119158 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119160         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119161         intermediate directory is in a read-only file system.  Problem
119162         reported by Eric Blake.
119164 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119166         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119168 2005-10-12  Simon Josefsson  <jas@extundo.com>
119170         * tests/test-hmac-sha1.c: New file.
119172         * modules/hmac-sha1-tests: New file.
119174         * modules/hmac-sha1: New file.
119176 2005-10-12  Simon Josefsson  <jas@extundo.com>
119178         * modules/gc-sha1: New file.
119180 2005-10-12  Simon Josefsson  <jas@extundo.com>
119182         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119184         * tests/test-gc-pbkdf2-sha1.c: New file.
119186 2005-10-12  Simon Josefsson  <jas@extundo.com>
119188         * modules/gc-md5, modules/gc-hmac-md5: New files.
119190         * modules/gc (Files): Remove md5, memxor and hmac files.
119192 2005-10-12  Simon Josefsson  <jas@extundo.com>
119194         * m4/gc-pbkdf2-sha1.m4: New file.
119196         * m4/gc-hmac-sha1.m4: New file.
119198         * m4/gc-sha1: New file.
119200         * m4/hmac-sha1.m4: New file.
119202 2005-10-12  Simon Josefsson  <jas@extundo.com>
119204         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119206         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119208 2005-10-12  Simon Josefsson  <jas@extundo.com>
119210         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119211         suggested by Bruno Haible <bruno@clisp.org>.
119213 2005-10-12  Simon Josefsson  <jas@extundo.com>
119215         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119217 2005-10-12  Simon Josefsson  <jas@extundo.com>
119219         * lib/gc-pbkdf2-sha1.c: New file.
119221         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119223 2005-10-12  Simon Josefsson  <jas@extundo.com>
119225         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119227         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119229 2005-10-12  Simon Josefsson  <jas@extundo.com>
119231         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119232         GC_USE_HMAC_MD5, respectively.
119234         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119235         (gc_md5): Fix typo.
119237         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119239         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119241         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119243 2005-10-12  Bruno Haible  <bruno@clisp.org>
119245         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119246         Reported by Stepan Kasal <kasal@ucw.cz>.
119248 2005-10-11  Simon Josefsson  <jas@extundo.com>
119250         * tests/test-crc.c: New file.
119252         * modules/crc, modules/crc-tests: New files.
119254 2005-10-11  Simon Josefsson  <jas@extundo.com>
119256         * m4/crc.m4: New file.
119258 2005-10-11  Simon Josefsson  <jas@extundo.com>
119260         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119262         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119264         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119266 2005-10-11  Simon Josefsson  <jas@extundo.com>
119268         * lib/crc.h, lib/crc.c: New files.
119270         * lib/gc.h (gc_hash_buffer): Add doc.
119272 2005-10-11  Bruno Haible  <bruno@clisp.org>
119274         * modules/c-strcasestr: New file.
119275         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119277 2005-10-11  Bruno Haible  <bruno@clisp.org>
119279         * modules/c-strcase: New file.
119280         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119282 2005-10-11  Bruno Haible  <bruno@clisp.org>
119284         * lib/strcasecmp.c: Include limits.h.
119285         (strcasecmp): Avoid integer overflow on exotic platforms.
119286         * lib/strncasecmp.c: Include limits.h.
119287         (strncasecmp): Avoid integer overflow on exotic platforms.
119288         Reported by Paul Eggert.
119290 2005-10-11  Bruno Haible  <bruno@clisp.org>
119292         * lib/c-strcasestr.h: New file, from GNU gettext.
119293         * lib/c-strcasestr.c: New file, from GNU gettext.
119295 2005-10-11  Bruno Haible  <bruno@clisp.org>
119297         * lib/c-strcase.h: New file, from GNU gettext.
119298         * lib/c-strcasecmp.c: New file, from GNU gettext.
119299         * lib/c-strncasecmp.c: New file, from GNU gettext.
119301 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119303         * modules/mempcpy (License): GPL -> LGPL.
119304         * modules/strchrnul (License): Likewise.
119305         * modules/sysexits (License): Likewise.
119307 2005-10-08  Simon Josefsson  <jas@extundo.com>
119309         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119311 2005-10-07  Simon Josefsson  <jas@extundo.com>
119313         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119315 2005-10-06  Simon Josefsson  <jas@extundo.com>
119317         * tests/test-hmac-md5.c: New file.
119319         * modules/hmac-md5-tests: New file.
119321         * modules/hmac-md5: New file.
119323 2005-10-06  Simon Josefsson  <jas@extundo.com>
119325         * m4/hmac-md5.m4: New file.
119327         * m4/memxor.m4: Require gl_C_RESTRICT.
119329 2005-10-06  Simon Josefsson  <jas@extundo.com>
119331         * lib/memxor.c (memxor): Avoid casts and warnings.
119333 2005-10-06  Simon Josefsson  <jas@extundo.com>
119335         * lib/hmac-md5.c: New file.
119337         * lib/hmac.h: New file.
119339 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119342         promotes to int, not unsigned int, to catch the AIX 5.3
119343         compiler bug.
119345 2005-10-05  Simon Josefsson  <jas@extundo.com>
119347         * modules/memxor: New file.
119349         * modules/iconv (Files): Move config.rpath to havelib, it is used
119350         there.
119352         * modules/havelib (Files): Add config.rpath.
119354 2005-10-05  Simon Josefsson  <jas@extundo.com>
119356         * m4/memxor.m4: New file.
119358 2005-10-05  Simon Josefsson  <jas@extundo.com>
119360         * lib/memxor.c (memxor): Fix compiler error.
119362         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119363         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119365         * lib/memxor.h, lib/memxor.c: New files.
119367         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119368         we assume all systems have it, suggested by Jim Meyering
119369         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119370         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119371         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119372         same reasons.
119374 2005-10-05  Simon Josefsson  <jas@extundo.com>
119376         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119378 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119380         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119381         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119382         needed, since the source code now assumes these .h files.
119384 2005-10-05  Derek Price  <derek@ximbiot.com>
119386         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119388 2005-10-05  Bruno Haible  <bruno@clisp.org>
119390         * modules/stdint (License): Change to LGPL.
119392 2005-10-04  Simon Josefsson  <jas@extundo.com>
119394         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119395         D. Baushke" <mdb@gnu.org>.
119397 2005-10-04  Bruno Haible  <bruno@clisp.org>
119399         * lib/verify.h (verify_true): Provide alternative definition for C++.
119401 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119403         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119404         (SSIZE_MAX): New macro, if not already defined.
119405         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119406         than 2 GiB.
119408 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119410         Sync from coreutils.
119411         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119412         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119413         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119414         ULLONG_MAX doesn't work with 2.7.2.1.
119416 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119418         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119419         From Ben Pfaff.
119421         * modules/exclude (Depends-on): Depend on verify.
119422         * modules/strtoimax (Depends-on): Likewise.
119423         * modules/utimecmp (Depends-on): Likewise.
119425 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119427         * lib/exclude.c: Include verify.h.
119428         (verify): Remove.  All callers changed to use verify.h's version.
119429         * lib/strtoimax.c: Likewise.
119430         * lib/utimecmp.c: Likewis.e
119432         Sync from coreutils.
119433         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119434         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119435         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119436         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119437         bother returning ENOSYS if settimeofday or stime fails; just let
119438         them return whatever errno they want to return.
119439         * lib/utimens.c: Include unistd.h, for dup2.
119440         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119441         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119443 2005-10-02  Jim Meyering  <jim@meyering.net>
119445         Sync from coreutils.
119446         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119447         from glibc-2.2.5 that fails for read-only files.
119449 2005-10-02  Jim Meyering  <jim@meyering.net>
119451         Sync from coreutils.
119452         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119453         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119454         `#if HAVE_CONFIG_H'.
119455         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119456         Remove AT_FDCWD test.
119457         Do not consume the fd unless successful.
119458         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119459         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119460         block, so that we don't even try to compile it if settimeofday is
119461         available.  This works around a compilation failure on OSF1 V5.1,
119462         due to stime requiring a `long int*' while tv_sec is `int'.
119464 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119466         Sync from coreutils.
119467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119468         against `yes', rather than just testing for nonempty.
119470 2005-10-01  Simon Josefsson  <jas@extundo.com>
119472         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119473         and Darwin.
119475         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119476         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119477         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119478         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119479         Check if struct addrinfo is declared.
119481 2005-10-01  Simon Josefsson  <jas@extundo.com>
119483         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119484         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119485         AI_* and EAI_* definitions.  Protect function declarations.
119487 2005-10-01  Jim Meyering  <jim@meyering.net>
119489         Sync from coreutils.
119491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119492         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119493         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119494         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119495         in the inet and nsl libraries.  Required on Solaris 5.7.
119497 2005-10-01  Jim Meyering  <jim@meyering.net>
119499         Sync from coreutils.
119500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119501         in the inet and nsl libraries.  Required on Solaris 5.7.
119503 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119505         * lib/getdelim.c (getdelim): Remove unused variables.
119507 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119509         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119510         so that the code works even with ancient cpp.  Portability problem
119511         with GCC 2.7.2.1 reported by Thomas M.Ott.
119513 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
119515         * modules/regex (Depends-on): Add strcase.
119517         * modules/gethostname (Licence): Change from GPL to LGPL, since
119518         gethostname.c is a trivial implementation of a standard library
119519         function.
119520         * modules/poll (License): Change from GPL to LGPL, since it's
119521         derived from LGPL code.
119523 2005-09-27  Jim Meyering  <jim@meyering.net>
119525         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
119526         HAVE_CONFIG_H.
119528         * lib/intprops.h (signed_type_or_expr__): Define.
119529         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
119530         for unsigned types.
119532 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
119534         * lib/verify.h (verify_expr): Remove, replacing with:
119535         (verify_true): New macro that returns true instead of void.
119536         (verify_type__): Remove.
119537         (verify): Use verify_true rather than verify_type__.
119539 2005-09-26  Bruno Haible  <bruno@clisp.org>
119541         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
119542         is necessary.
119543         (lib_SOURCES): Remove mbchar.c.
119544         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
119545         (Files): Add m4/mbrtowc.m4.
119546         * modules/mbiter: Likewise.
119547         * modules/mbuiter: Likewise.
119549 2005-09-26  Bruno Haible  <bruno@clisp.org>
119551         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
119552         compile mbchar.c if they are not both present.
119553         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
119554         * m4/mbiter.m4 (gl_MBITER): Likewise.
119555         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
119556         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
119557         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
119559 2005-09-25  Jim Meyering  <jim@meyering.net>
119561         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
119562         also uses socklen_t.
119564 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
119566         * lib/utimens.c (ENOSYS): Define if not already defined.
119567         (futimens): Support having a null PATH if the file descriptor
119568         is nonnegative.
119570         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
119571         Remove.
119572         (__attribute): Define to empty unless GCC 3.1 or later.
119573         This works around a core dump on OpenBSD 3.4, which has GCC
119574         2.95.3, which dumps core when given __attribute__(()).  It also
119575         simplifies other tests, since we really don't want to bother with
119576         worrying about which ancient version of GCC supported what.
119577         Original problem reported by Yoann Vandoorselaere, with part of
119578         the fix suggested by Derek Price.
119580 2005-09-24  Jim Meyering  <jim@meyering.net>
119582         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
119583         so we can once again use a positive bitfield width of 1 -- now we
119584         don't have to explain why we were using a bitfield width of 2.
119586 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119588         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
119589         and similarly for the other external symbols.  Problem reported
119590         by James Gallager.
119592         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119593         bug reported by Jim Meyering.
119595         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119597         not needed, since socklen is a prerequisite module.
119599 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119601         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119602         Problem reported by Eric Blake.
119603         (getaddrinfo): Initialize se so that it's not garbage.
119604         Redo internal storage allocation so that it doesn't make unportable
119605         assumptions about alignment.
119606         Fix a memory leak.
119608         * lib/utimens.c (futimens): Use futimesat if available.
119609         Prefer it to futimes since it doesn't have the futimes bug.
119611         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119612         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119613         Instead, declare a function that returns a pointer to an array,
119614         and use verify_type__ to declare the size of the array.
119615         Problem and germ of a solution reported by Bruno Haible.
119616         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119617         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119619 2005-09-23  Jim Meyering  <jim@meyering.net>
119621         Sync from coreutils.
119622         Correct build failure (socklen_t not defined) on at least
119623         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119624         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119626 2005-09-23  Jim Meyering  <jim@meyering.net>
119628         * modules/getaddrinfo (Depends-on): Add socklen.
119630 2005-09-23  Bruno Haible  <bruno@clisp.org>
119632         * tests/test-verify.c: New file.
119634 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119636         Sync from coreutils.
119638         * modules/argmatch (Depends-on): Add verify.
119639         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119640         unistd-safer.
119641         * modules/save-cwd (Depends-on): Likewise.
119643         * modules/openat (Files): Add lib/openat-die.c.
119644         (Depends-on): Remove error, exitfail.
119645         Add dirname.
119647         * modules/verify: New file.
119648         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119649         with "verify" module.
119651 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119653         Sync from coreutils.
119655         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119656         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119657         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119658         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119659         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119660         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119661         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119662         Don't bother checking for string.h, stdlib.h, unistd.h.
119663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119664         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119665         module's job.
119666         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119667         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119669         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119670         (gl_GETDATE): Use it.
119672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119674 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119676         Sync from coreutils.
119678         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119679         stat-time.h.
119680         * lib/argmatch.h: Include verify.h
119681         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119682         (ARGMATCH_ASSERT): Remove; unused.
119683         * lib/canonicalize.c: Assume STDC_HEADERS.
119684         * lib/exclude.c: Include "strcase.h".
119685         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119686         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119687         and stdio-safer.h.
119688         (getusershell): Call fopen, not fopen_safer.
119689         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119690         Do not include unistd-safer.h.
119691         (save_cwd): Don't call fd_safer; no longer needed
119692         now that we include fcntl--.h.
119694         * lib/getdate.y (relative_time): New type.
119695         (RELATIVE_TIME_0): New constant.
119696         (parser_control): Use relative_time instead of doing it ourselves.
119697         (%union): Add new relative_time rel member.
119698         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119699         Now typeless.
119700         (relunit, relunit_snumber): Now of type rel.
119701         (zone, rel, relunit, get_date): Adjust to above changes.
119703         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119704         Do not include unistd-safer.h.
119705         (getloadavg): Don't call fd_safer; no longer needed
119706         now that we include fcntl--.h.
119708         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119709         (make_dir_parents): Treat ENOSYS like EEXIST.
119711         Improve quality of diagnostics on restore_cwd failure.
119712         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119713         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119714         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119715         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119716         each time through the loop.  Do not diagnose restore_cwd failure;
119717         that is the caller's job (and perhaps the caller does not care).
119719         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119720         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119721         If the file already exists but is not a directory, don't bother
119722         to try to make its parents.
119723         Close potential file descriptor leak if we can't chdir("/") (!).
119724         Don't always return true if chdir($PWD) fails; return true only
119725         if the requested action was done successfully (except for the
119726         chdir($PWD)).
119727         Don't log final directory unless we actually made it.
119728         Refactor to avoid duplicate code to fix up permissions.
119729         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119731         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119732         to make it a bit faster and (I hope) clearer.
119733         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119734         Fix bug in formats like %2N.
119736         * lib/verify.h: New file.
119738 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119740         Sync from coreutils.
119741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119743 2005-09-22  Jim Meyering  <jim@meyering.net>
119745         Sync from coreutils.
119747         * m4/lstat.m4 (gl_FUNC_LSTAT):
119748         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119749         Remove obsolete comment.
119750         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119751         * m4/xstrtod.m4: Likewise.
119753         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119755 2005-09-22  Jim Meyering  <jim@meyering.net>
119757         Sync from coreutils.
119759         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119761         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119762         the .tm_year member, since otherwise gcc-4.0 would now warn about
119763         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119765         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119766         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119768         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119769         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119770         when run in a time zone for which daylight savings time is in effect
119771         for the starting date.
119773         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119774         stop us from restricting permissions of just-created absolute-named
119775         directories.
119776         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119777         to restore initial working directory.
119778         * lib/mkdir-p.c (make_dir_parents): New parameter:
119779         different_working_dir, to tell caller if/when we change the working
119780         directory and are unable to return to the initial one.
119781         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119782         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119783         `return false'.  This fixes a bug introduced on 2004-07-30.
119785         * lib/openat.c (fdopendir): Be sure to close the supplied
119786         file descriptor before returning.  This makes our replacement
119787         implementation a little closer to Solaris's, where fdopendir
119788         ties the file descriptor to the returned DIR* pointer.
119789         * lib/openat.c (unlinkat): New function.
119790         * lib/openat.h (unlinkat): Add prototype.
119791         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119792         (openat_restore_fail): Rename from openat_restore_die.
119793         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119795         Provide an alternative to exiting immediately upon save_cwd or
119796         restore_cwd failure.  Now, an application can arrange e.g.,
119797         to perform a longjump in that case.
119798         * lib/openat.c: Include dirname.h.
119799         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119800         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119801         and openat_restore_die rather than calling error directly.
119802         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119804         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119805         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119806         define.
119808         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119809         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119810                             int utc, int nanoseconds);
119811         Background:
119812         date should not have to allocate a megabyte of virtual memory to
119813         handle a format argument like +%1048575T.  When implemented with
119814         strftime, it must allocate such a buffer, use strftime to fill it
119815         in, print it, then free it.
119816         With fprintftime, it simply prints everything and exits.
119817         With no need for memory allocation, that's one fewer way to fail.
119818         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119819         optional field width, not before, so we accept %9:z, not %:9z.
119820         (my_strftime): Be sure to use L_('x') for literals.
119822         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119823         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119824         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119825         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119826         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119827         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119828         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119829         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119830         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119831         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119832         * lib/xgethostname.c, lib/xreadlink.c:
119833         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119835         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119836         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119837         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119838         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119839         and don't include <sys/file.h>).
119841 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119843         Sync from coreutils.
119845         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119846         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119847         [!LDAV_DONE]: Avoid unused variable warning.
119849 2005-09-21  Bruno Haible  <bruno@clisp.org>
119851         * lib/unicodeio.h (unicode_to_mb): New declaration.
119853 2005-09-20  Derek Price  <derek@ximbiot.com>
119855         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119856         getaddrinfo.h.
119858 2005-09-20  Bruno Haible  <bruno@clisp.org>
119860         * gnulib-tool: Remove trailing slashes from the values specified for
119861         --source-base, --m4-base, --tests-base, --aux-dir.
119862         Suggested by Simon Josefsson <jas@extundo.com>.
119864 2005-09-20  Bruno Haible  <bruno@clisp.org>
119866         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119867         func_modules_to_filelist, func_import, func_create_testdir): Make all
119868         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119869         change when gnulib-tool is invoked in a different locale.
119871 2005-09-19  Simon Josefsson  <jas@extundo.com>
119873         * m4/socklen.m4: Fix typo.
119875 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119877         Use a consistent style for including <config.h>.
119878         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119879         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119880         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119881         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119882         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119883         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119884         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119885         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119886         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119887         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119888         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119889         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119890         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119891         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119892         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119893         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119894         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119895         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119896         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119897         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119898         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119899         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119900         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119901         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119902         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119903         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119904         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119905         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119906         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119907         lib/xstrtoumax.c, lib/yesno.c:
119908         Standardize inclusion of config.h.
119909         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119910         lib/inttostr.h:  Removed inclusion of config.h from header files.
119911         * lib/inttostr.c:  Adjusted in-tree users.
119912         * lib/timespec.h: Remove superfluous warning to include config.h.
119913         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119914         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119915         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119916         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119917         config.h with HAVE_CONFIG_H.
119919 2005-09-19  Jim Meyering  <jim@meyering.net>
119921         * modules/pathmax (License): Change to LGPL.
119923 2005-09-19  Derek Price  <derek@ximbiot.com>
119925         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119927 2005-09-19  Bruno Haible  <bruno@clisp.org>
119929         * gnulib-tool (import): Provide default for --tests-base.
119931 2005-09-19  Bruno Haible  <bruno@clisp.org>
119933         * doc/quote.texi: New file, extracted from gnulib.texi.
119934         * doc/ctime.texi: New file, extracted from gnulib.texi.
119935         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
119936         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
119937         * doc/gnulib.texi: Include them.
119939 2005-09-18  Bruno Haible  <bruno@clisp.org>
119941         Portability fix.
119942         * gnulib-tool (func_readlink): New function.
119943         (func_ln_if_changed): Use it.
119945 2005-09-18  Bruno Haible  <bruno@clisp.org>
119947         * gnulib-tool: Support --with-tests also with --import.
119948         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119949         (func_import): Use variables $testsbase and $inctests. Emit a
119950         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119951         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119952         SUBDIRS += $testsdir.
119953         (func_create_testdir): Update.
119955 2005-09-18  Bruno Haible  <bruno@clisp.org>
119957         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119958         instead of $dry_run.
119959         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119960         (func_ln_if_changed): Don't handle dry-run here.
119961         (func_import): In dry-run mode, detect more precisely which actions
119962         would be performed, and don't use "...ing" verbs.
119964 2005-09-18  Bruno Haible  <bruno@clisp.org>
119966         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119967         (func_import): Use join on two temporary files instead of three nested
119968         loops, in order to determine which files are new or old.
119970 2005-09-18  Bruno Haible  <bruno@clisp.org>
119972         * gnulib-tool (func_import): Comment out code that spits out the
119973         new files with --dry-run.
119975 2005-09-18  Bruno Haible  <bruno@clisp.org>
119977         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119979 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119981         * lib/stat-time.h: New file.
119982         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119983         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119984         in a different way.
119985         (timespec_cmp): New function.
119986         * lib/utimecmp.c: Include stat-time.h.
119987         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119988         members exist, not on the obsolescent ST_MTIM_NSEC.
119989         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119993         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119995 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119997         * MODULES.html.sh (File system functions): Add stat-time.
119998         * modules/stat-time: New file.
119999         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120000         is now done in a different way, by the stat-time module.
120001         * modules/utimecmp (Depends-on): Add stat-time.
120003 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120005         * m4/st_mtim.m4: Remove.  Superseded by...
120006         * m4/stat-time.m4: New file.
120007         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120008         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120010 2005-09-15  Derek Price  <derek@ximbiot.com>
120012         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120014 2005-09-15  Derek Price  <derek@ximbiot.com>
120016         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120017         * lib/regex_internal.c: Ditto, using this...
120018         (__GNUC_PREREQ): ...new macro.
120019         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120020         using...
120021         (__GNUC_PREREQ): ...this new macro.
120023         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120025 2005-09-15  Derek Price  <derek@ximbiot.com>
120026             Paul Eggert  <eggert@cs.ucla.edu>
120028         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120029         changes, consolidating in...
120030         * lib/regex_internal.h: ...this file.
120032 2005-09-13  Jim Meyering  <jim@meyering.net>
120034         * lib/canon-host.c: Filter through gnu indent and reword comments
120035         slightly.
120036         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120038 2005-09-13  Derek Price  <derek@ximbiot.com>
120040         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120041         failure.
120042         Reported by Jim Meyering  <jim@meyering.net>.
120044 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120046         * lib/base64.c: Typo.
120047         (base64_encode): Put b64str in initialized data section.
120049 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120051         Merge glibc and coreutils changes into gnulib, plus a few
120052         extra fixes.
120053         * lib/md5.c: Use #error rather than a string.
120054         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120055         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120056         (__attribute__): Define to empty for non recent-GCC.
120057         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120058         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120059         Renamed from their non-__ counterparts, with new macros replacing
120060         them if not _LIBC.  Add __THROW attribute.
120061         (rol): Remove.
120062         (struct md5_ctx): Align buffer if using GCC.
120063         * lib/sha1.h (struct sha1_ctx): Likewise.
120064         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120065         The old name was backwards.
120066         (NOTSWAP): Remove; not used.
120067         (rol): New macro, moved here from md5.h.
120068         (sha1_process_block): Remove a FIXME that doesn't make sense.
120070 2005-09-12  Derek Price  <derek@ximbiot.com>
120072         Return usable errors from canon-host.
120073         * lib/canon-host.h: New file.
120074         * lib/canon-host.c (canon_host): Wrap...
120075         (canon_host_r): ...this new function, which now relies exclusively on
120076         getaddrinfo.
120077         (ch_strerror): New function.
120078         (last_cherror): New global.
120079         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120080         interface.
120081         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120082         void *.
120083         (freeaddrinfo): Free ai->ai_canonname when set.
120085 2005-09-12  Derek Price  <derek@ximbiot.com>
120087         Make canon-host require getaddrinfo.
120088         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120089         AC_LIBSOURCE canon-host.h.  Call...
120090         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120091         gl_GETADDRINFO.
120092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120094 2005-09-12  Derek Price  <derek@ximbiot.com>
120096         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120097         LGPL.
120098         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120100 2005-09-12  Derek Price  <derek@ximbiot.com>
120102         * lib/gai_strerror.c: Include config.h when available.  Include
120103         getaddrinfo.h before other headers to test interface.
120104         Reported by Larry Jones <lawrence.jones@ugs.com>.
120106 2005-09-12  Derek Price  <derek@ximbiot.com>
120107             Paul Eggert  <eggert@cs.ucla.edu>
120109         * modules/glob (Files): Add glob-libc.h.
120111 2005-09-12  Derek Price  <derek@ximbiot.com>
120112             Paul Eggert  <eggert@cs.ucla.edu>
120114         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120115         glob_.h, glob-libc.h.
120116         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120118 2005-09-12  Derek Price  <derek@ximbiot.com>
120119             Paul Eggert  <eggert@cs.ucla.edu>
120121         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120122         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120123         protecting things that should be done only in gnulib contexts.
120124         * lib/glob_.h: New file, containing only the glob things needed for
120125         gnulib.
120126         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120127         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120128         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120129         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120130         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120131         and to respect the namespace rules better.
120133 2005-09-08  Simon Josefsson  <jas@extundo.com>
120135         * modules/socklen: New file.
120137 2005-09-08  Simon Josefsson  <jas@extundo.com>
120139         * m4/socklen.m4: New file.
120141 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120143         * modules/utimens (Files): Add m4/utimbuf.m4, since
120144         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120145         Reported by Sergey Poznyakoff.
120147 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120149         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120150         definitions, since that's the preferred style in glibc.
120151         Fix a minor spacing issue, and update copyright notice to match
120152         glibc's.
120154 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120156         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120158 2005-09-06  Simon Josefsson  <jas@extundo.com>
120160         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120161         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120163 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120165         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120166         warning.
120168 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120170         * config/srclist.txt: Add glibc bug 1302.
120172 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120174         Change bitset word type from unsigned int to unsigned long int,
120175         as this has better performance on typical 64-bit hosts.
120176         Port bitset code to hosts with unusual word sizes.
120177         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120178         (build_collating_symbol):
120179         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120180         argument is a bitset.  This is merely a style issue, but it makes
120181         it clearer that an entire array is expected.
120182         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120183         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120184         Port to the case where bitset_word is not the same as unsigned int.
120185         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120186         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120187         Likewise.
120188         * lib/regexec.c (check_dst_limits_calc_pos_1,
120189         check_subexp_matching_top):
120190         (build_trtable, group_nodes_into_DFAstates):
120191         Likewise.
120192         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120193         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120194         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120195         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120196         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120197         * lib/regcomp.c (optimize_subexps, lower_subexp):
120198         Work even if bitset_word has holes in its bitwise representation.
120199         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120200         * lib/regexec.c (check_dst_limits_calc_pos_1,
120201         check_subexp_matching_top):
120202         Likewise.
120203         * lib/regex_internal.c (re_string_reconstruct):
120204         Don't assume UCHAR_MAX == 255.
120205         * lib/regex_internal.h (bitset_set_all): Likewise.
120206         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120207         All uses changed.
120208         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120209         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120210         All uses changed.
120211         (BITSET_WORD_MAX): New macro.
120212         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120213         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120214         (bitset_empty, bitset_copy):
120215         Prefer sizeof (bitset) to multiplying it out ourselves.
120216         (bitset_not_merge): Remove; unused.
120217         (bitset_contain): Return bool, not unsigned int with one bit on.
120218         All callers changed.
120219         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120220         alignment than re_node_set; do this by defining a new internal
120221         type struct dests_alloc and using it to allocate memory.
120223 2005-09-05  Bruno Haible  <bruno@clisp.org>
120225         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120226         links.
120228 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120230         * modules/size_max (Makefile.am): Add size_max.h
120232 2005-09-04  Derek Price  <derek@ximbiot.com>
120234         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120236 2005-09-03  Simon Josefsson  <jas@extundo.com>
120238         * gnulib-tool: Fix typo.
120240 2005-09-03  Simon Josefsson  <jas@extundo.com>
120242         * config/srclist.txt: Add glibc bug 1293.
120244 2005-09-03  Derek Price  <derek@ximbiot.com>
120246         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120247         From Larry Jones <lawrence.jones@ugs.com>.
120249 2005-09-02  Simon Josefsson  <jas@extundo.com>
120251         * modules/socklen: New file.
120253 2005-09-02  Simon Josefsson  <jas@extundo.com>
120255         * modules/havelib: New module.
120257         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120258         Use havelib.
120260 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120262         Check for arithmetic overflow when calculating sizes, to prevent
120263         some buffer-overflow issues.  These patches are conservative, in the
120264         sense that when I couldn't determine whether an overflow was possible,
120265         I inserted a run-time check.
120266         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120267         macros.
120268         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120269         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120270         (re_xnrealloc, re_x2nrealloc): New inline functions.
120271         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120272         parse_bracket_exp):
120273         (build_equiv_class, build_charclass): Check for arithmetic overflow
120274         in size expression calculations.
120275         * lib/regex_internal.c (re_string_realloc_buffers):
120276         (build_wcs_upper_buffer, re_node_set_add_intersect):
120277         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120278         (re_dfa_add_node, register_state): Likewise.
120279         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120280         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120281         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120282         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120284 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120286         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120287         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120289 2005-09-02  Bruno Haible  <bruno@clisp.org>
120291         Support for lib vs. lib64 distinction on biarch platforms.
120292         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120293         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120296 2005-09-02  Bruno Haible  <bruno@clisp.org>
120298         * gnulib-tool (import): In the other first-use case, provide defaults
120299         as well.
120301 2005-09-02  Bruno Haible  <bruno@clisp.org>
120303         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120304         patches not yet found in the latest gettext release.
120306 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120308         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120309         to avoid a collision with bits/local_lim.h in glibc.
120310         All uses changed.  Problem reported by Dmitry V. Levin in
120311         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120313         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120314         bugs in int versus size_t comparisons.
120315         (re_string_context_at): Fix bug where the code assumed that
120316         Idx is signed.
120318         Use bool where appropriate.
120319         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120320         All callers changed.
120321         (calc_eclosure_iter): Likewise, for ROOT arg.
120322         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120323         (build_charclass_op): Likewise, for NON_MATCH arg.
120324         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120325         (re_string_construct_common): Likewise, for ICASE arg.
120326         * lib/regexec.c (re_search_2_stub, re_search_stub):
120327         Likewise, for RET_LEN arg.
120328         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120329         (set_regs): Likewise, for FL_BACKTRACK arg.
120330         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120331         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120332         (calc_eclosure_iter, parse_bracket_exp):
120333         Use bool for internal variables that are booleans.
120334         * lib/regexec.c (re_search_internal, check_matching,
120335         proceed_next_node):
120336         (set_regs, build_sifted_states, sift_states_bkref):
120337         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120338         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120339         (find_collation_sequence_value):
120340         Likewise.
120341         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120342         (re_node_set_compare):
120343         Return bool, not int. All callers changed.
120344         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120345         (build_trtable, check_node_accept): Likewise.
120346         * lib/regex_internal.h: Include stdbool.h.
120348         Fix bugs uncovered when converting to bool.
120349         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120350         failure instead of charging ahead blindly.
120351         * lib/regex_internal.c (register_state): Likewise.
120352         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120353         for freeing internal storage.
120354         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120355         bitset pieces used as boolean, to avoid undefined behavior
120356         on hosts that do int overflow checking.
120358 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120360         * config/srclist.txt: Add glibc bugs 1285-1287.
120362 2005-09-01  Jim Meyering  <jim@meyering.net>
120364         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120365         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120366         Require gl_STAT_MACROS, too.
120368 2005-09-01  Bruno Haible  <bruno@clisp.org>
120370         * gnulib-tool (import): In the first-use case, provide defaults.
120372 2005-09-01  Bruno Haible  <bruno@clisp.org>
120374         * gnulib-tool (func_import): Remove the .tmp files.
120376 2005-09-01  Bruno Haible  <bruno@clisp.org>
120378         * gnulib-tool (func_import): Fix handling of symbolic links.
120380 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120382         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120383         old glibc regex code mishandles strings longer than 2**31 bytes.
120384         This patch fixes this when the regex code is used in gnulib
120385         (i.e., outside glibc).
120387         This patch should not affect the use of the regex code inside
120388         glibc.  No doubt this problem also needs to be handled for glibc
120389         as well, but the result will be an incompatible change to the
120390         glibc ABI, and the old ABI will have to be supported too.  That
120391         can be the subject for another patch.
120393         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120394         governing whether the rest of this patch is active.  By default,
120395         the macro is disabled and the patch has no effect.
120396         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120397         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120398         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120399         (re_match_2, re_set_registers): Use the new types.
120400         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120401         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120402         New macros.
120403         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120404         (re_string_context_at, bin_tree_t, re_dfastate_t):
120405         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120406         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120407         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120408         (re_string_char_size_at, re_string_wchar_at):
120409         (re_string_elem_size_at):
120410         Use the new types and macros to port to 64-bit hosts.
120411         Use unsigned types for internal values, so that the code
120412         mostly works even for arrays larger than SSIZE_MAX.
120413         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120414         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120415         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120416         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120417         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120418         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120419         (calc_inveclosure, parse_dup_op, build_range_exp):
120420         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120421         (fetch_number, create_token_tree, mark_opt_subexp):
120422         Likewise.
120423         * lib/regex_internal.c (re_string_construct_common,
120424         create_ci_newstate):
120425         (create_cd_newstate, re_string_allocate, re_string_construct):
120426         (re_string_realloc_buffers, build_wcs_upper_buffer):
120427         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120428         (re_string_reconstruct, re_string_peek_byte_case):
120429         (re_string_fetch_byte_case, re_string_context_at):
120430         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120431         (re_node_set_init_copy, re_node_set_add_intersect):
120432         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120433         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120434         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120435         (re_acquire_state, re_acquire_state_context, register_state):
120436         Likewise.
120437         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120438         search_cur_bkref_entry):
120439         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120440         (re_search_internal, re_search_2_stub, re_search_stub)
120441         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120442         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120443         (update_cur_sifted_state, check_dst_limits):
120444         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120445         (check_subexp_limits, sift_states_bkref, merge_state_array):
120446         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120447         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120448         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120449         (expand_bkref_cache, check_node_accept_bytes):
120450         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120451         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120452         (acquire_init_state_context, check_halt_node_context):
120453         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120454         (sift_states_backward, clean_state_log_if_needed):
120455         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120456         (find_recover_state, transit_state_sb, transit_state_mb):
120457         (transit_state_bkref, build_trtable, match_ctx_clean):
120458         Likewise.
120459         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120460         to work around an assumption that REG_MISSING is negative.
120462         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120463         (seek_collating_symbol_entry) [defined _LIBC]:
120464         (lookup_collation_sequence_value) [defined _LIBC]:
120465         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120466         Use prototypes rather than old-style function definitions.
120467         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120468         (transit_state_sb) [0]:
120469         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120471         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120472         rm_eo.
120474         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120475         (optimize_subexps, lower_subexp):
120476         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120477         since the signed shift might overflow.  Use 1u<<31 instead.
120478         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120479         Likewise.
120480         * lib/regexec.c (check_dst_limits_calc_pos_1,
120481         check_subexp_matching_top): Likewise.
120483         * lib/regcomp.c (optimize_subexps, lower_subexp):
120484         Use CHAR_BIT rather than 8, for clarity.
120485         * lib/regexec.c (check_dst_limits_calc_pos_1):
120486         (check_subexp_matching_top): Likewise.
120487         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120488         have to worry about portability issues when shifting it left.
120489         Remove no-longer-needed test for table_size > 0.
120490         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120491         in a word, as the resulting behavior is undefined.
120492         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120493         in one case, a <= should have been an <, and in another case the
120494         whole test was missing.
120495         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120496         the standard name CHAR_BIT.
120497         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120498         this is not true on one's complement and signed-magnitude hosts.
120500         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120501         next_last_offset.
120502         (struct re_dfa_t): Remove unused member states_alloc.
120503         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120505 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120507         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120508         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120509         and large-file glibc and in 32-bit large-file Solaris.
120511 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120513         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120514         lengths fit in regoff_t; this isn't true if regoff_t is the same
120515         width as size_t.
120516         * lib/regex.c (re_search_internal): 5th arg is LAST_START
120517         (= START + RANGE) instead of RANGE.  This avoids overflow
120518         problems when regoff_t is the same width as size_t.
120519         All callers changed.
120520         (re_search_2_stub): Check for overflow when adding the
120521         sizes of the two strings.
120522         (re_search_stub): Check for overflow when adding START
120523         to RANGE; if it occurs, substitute the extreme value.
120525 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120527         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
120529 2005-08-31  Jim Meyering  <jim@meyering.net>
120531         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
120532         a pointer-to-const.
120533         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
120534         (register_state): Likewise.
120535         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
120536         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120537         (group_nodes_into_DFAstates): Likewise.
120539 2005-08-31  Jim Meyering  <jim@meyering.net>
120541         * check-module: Add a FIXME comment.
120543 2005-08-31  Eric Blake  <ebb9@byu.net>
120545         * modules/unistd-safer (Files): Add unistd--.h.
120546         * modules/stdio-safer (Files): Add stdio--.h.
120548 2005-08-31  Derek Price  <derek@ximbiot.com>
120550         * lib/getdelim.c (getdelim): Return EOF on EOF.
120551         Reported by Larry Jones <lawrence.jones@ugs.com>.
120553 2005-08-31  Bruno Haible  <bruno@clisp.org>
120555         Avoid unnecessary diffs in the generated lib/Makefile.am.
120556         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
120557         the generated files.
120558         (func_import): Don't set cmd.
120560 2005-08-31  Bruno Haible  <bruno@clisp.org>
120562         * lib/strstr.c: Include <stddef.h>, for NULL.
120563         * lib/strcasestr.c: Likewise.
120564         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120566 2005-08-31  Bruno Haible  <bruno@clisp.org>
120568         * gnulib-tool: New option --macro-prefix.
120569         (func_import): Use macro_prefix.
120570         (import): Handle option --macro-prefix.
120572 2005-08-31  Bruno Haible  <bruno@clisp.org>
120574         * gnulib-tool (import): Rename most ac_* variables to cached_*.
120575         Also use new variables cached_lgpl, cached_libtool.
120577 2005-08-31  Bruno Haible  <bruno@clisp.org>
120579         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
120580         always instantiating them.
120582 2005-08-31  Bruno Haible  <bruno@clisp.org>
120584         * gnulib-tool (func_import): Read the previous cached settings
120585         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
120586         earlier added by gnulib but are now dropped. Warn when a gnulib file
120587         overwrites a non-gnulib file.
120589 2005-08-31  Bruno Haible  <bruno@clisp.org>
120591         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120592         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120593         projects that don't keep autogenerated files in CVS. Put into
120594         actioncmd only the specified modules, not the transitive closure.
120596 2005-08-31  Bruno Haible  <bruno@clisp.org>
120598         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120599         Create directories that shall be filled.
120600         (import): Don't look for gl_* macros in configure.ac. Recurse across
120601         all directories containing a gnulib-cache.m4 files, if meaningful.
120603 2005-08-31  Bruno Haible  <bruno@clisp.org>
120605         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120606         (import): Set seen_libtool when we see gl_LIBTOOL.
120608 2005-08-31  Bruno Haible  <bruno@clisp.org>
120610         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
120611         declaration macro definitions from generated gnulib.m4.
120613 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120615         * lib/iconvme.h: Add prototype for iconv_alloc.
120617 2005-08-29  Simon Josefsson  <jas@extundo.com>
120619         * lib/iconvme.c: Fix errno.
120621 2005-08-29  Bruno Haible  <bruno@clisp.org>
120623         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120624         that it works when the directory contains spaces.
120626 2005-08-29  Bruno Haible  <bruno@clisp.org>
120628         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120630 2005-08-29  Bruno Haible  <bruno@clisp.org>
120632         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120633         Emit more advice.
120635 2005-08-29  Bruno Haible  <bruno@clisp.org>
120636         and Stepan Kasal  <kasal@ucw.cz>
120638         * check-module: If more parameters are given, check each of them
120639         separately; add more exceptions, as noted by Jim Meyering.
120640         (check_module): New procedure.
120641         (%exempt_header): Now contains all exceptions.
120643 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120645         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120647 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120649         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120651 2005-08-28  Bruno Haible  <bruno@clisp.org>
120653         * m4/gnulib-tool.m4: New file.
120655 2005-08-27  Jim Meyering  <jim@meyering.net>
120657         * modules/unistd-safer (Files): Add pipe-safer.c.
120658         * modules/fcntl-safer (Files): Add creat-safer.c.
120660 2005-08-27  Jim Meyering  <jim@meyering.net>
120662         * m4/stdlib-safer.m4: New file.  From coreutils.
120663         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120665         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120666         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120667         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120669 2005-08-27  Jim Meyering  <jim@meyering.net>
120671         * lib/fopen-safer.c: Merge minor changes from coreutils.
120672         * lib/dup-safer.c: Likewise.
120673         * lib/fd-safer.c: Likewise.
120675         Merge from coreutils.
120676         * lib/stdio--.h: New file.
120677         * lib/stdlib--.h: New file.
120678         * lib/mkstemp-safer.c: New file.
120680         GNU tar needs these.
120681         * lib/pipe-safer.c: New file.
120682         * lib/creat-safer.c: New file.
120683         * lib/fcntl--.h (creat): Define to creat_safer.
120684         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120685         * lib/unistd--.h (pipe): Define to pipe_safer.
120686         * lib/unistd-safer.h: Declare pipe_safer.
120688 2005-08-26  Simon Josefsson  <jas@extundo.com>
120690         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120691         Haible <bruno@clisp.org>.
120693 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120695         * lib/regex_internal.h: Remove all references to
120696         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120697         or better.
120698         (bitset_not, bitset_merge, bitset_not_merge):
120699         (bitset_mask, re_string_allocate, re_string_construct):
120700         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120701         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120702         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120703         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120704         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120705         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120706         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120707         (re_acquire_state_context):
120708         Remove unnecessary forward decls.
120709         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120710         Put __attribute at function definition,
120711         now that the function decl has been removed.
120712         * lib/regex_internal.c (re_string_peek_byte_case):
120713         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120714         Likewise.
120716 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120718         * m4/regex.m4: Add AC_PREREQ(2.50).
120719         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120721 2005-08-25  Simon Josefsson  <jas@extundo.com>
120723         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120724         __fsetlocking.
120726 2005-08-25  Simon Josefsson  <jas@extundo.com>
120728         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120729         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120730         GLIBC specific code.
120732 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120734         Make regex safe for g++.  This fixes one real bug (an "err"
120735         that should have been "*err").  g++ problem reported by
120736         Sam Steingold.
120737         * lib/regex_internal.h (re_calloc): New macro, consistent with
120738         re_malloc etc.  All callers of calloc changed to use re_calloc.
120739         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120740         not int.  All callers changed.
120741         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120742         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120743         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120744         (find_recover_state): Change "err" to "*err"; this fixes what
120745         appears to be a real bug.
120746         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120747         versus int.
120749 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120751         * modules/regex (Depends-on): Add malloc, since the code
120752         assumes that !malloc(0) means failure.
120754 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120756         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120758         alloca modernization/simplification for regex.
120759         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120760         needs to be at the start of the file, and can be moved into
120761         regex_internal.h and simplified.
120762         * lib/regex_internal.h: Include <alloca.h>.
120763         (__libc_use_alloca) [!defined _LIBC]: New macro.
120764         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120765         now works outside glibc.
120767 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120769         * config/srclist.txt: Add glibc bugs 1241, 1245.
120771 2005-08-25  Jim Meyering  <jim@meyering.net>
120773         * lib/open-safer.c: Include <config.h>.
120774         Otherwise, we'd lose LARGEFILE support in any file using
120775         e.g. "fcntl--.h"
120777 2005-08-25  Bruno Haible  <bruno@clisp.org>
120779         * m4/minmax.m4: Require autoconf 2.52.
120780         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120781         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120782         alternatives of translit over the alphabet.
120783         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120785 2005-08-24  Simon Josefsson  <jas@extundo.com>
120787         * tests/test-getpass.c: New file.
120789 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120791         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120792         for GNU regex features.
120794 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120796         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120797         * lib/regex.h (regerror): Likewise.
120799         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120800         requires this.  (The code never needed it.)
120802         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120803         All uses of recently-renamed identifiers changed to use the new,
120804         POSIX-compliant names.  The code will build and run just fine
120805         without these changes, but it's better to eat our own dog food
120806         and use the standard-conforming names.
120808         * lib/regex.h: Fix a multitude of POSIX name space violations.
120809         These changes have an effect only for programs that define
120810         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120811         do not change anything for programs compiled in the normal way.
120812         Also, there is no effect on the ABI.
120814         (_REGEX_SOURCE): New macro.
120815         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120816         defined and _GNU_SOURCE is not; this fixes a name space violation.
120818         Rename the following macros to obey POSIX requirements.
120819         The old names are still visible as macros if _REGEX_SOURCE is defined.
120820         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120821         RE_BACKSLASH_ESCAPE_IN_LISTS.
120822         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120823         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120824         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120825         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120826         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120827         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120828         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120829         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120830         (REG_INTERVALS): renamed from RE_INTERVALS.
120831         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120832         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120833         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120834         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120835         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120836         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120837         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120838         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120839         RE_UNMATCHED_RIGHT_PAREN_ORD.
120840         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120841         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120842         (REG_DEBUG): renamed from RE_DEBUG.
120843         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120844         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120845         unusual, since we can't clash with the POSIX REG_ICASE.
120846         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120847         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120848         (REG_NO_SUB): renamed from RE_NO_SUB.
120849         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120850         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120851         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120852         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120853         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120854         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120855         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120856         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120857         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120858         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120859         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120860         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120861         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120862         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120863         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120864         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120865         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120866         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120867         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120868         (REG_FIXED): Renamed from REGS_FIXED.
120869         (REG_NREGS): Renamed from RE_NREGS.
120871         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120872         of other REG_* macros, since POSIX says the user is allowed to
120873         #undef these macros selectively.
120875         (reg_errcode_t): Update comment stating what other tables need
120876         to be consistent.
120878         Rename the following enum values to obey POSIX requirements.
120879         The old names are still visible as macros.
120880         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120881         is not defined, since GNU is supposed to be a superset of POSIX as
120882         much as possible, and since we want reg_errcode_t to be a signed
120883         type for implementation consistency.
120884         (_REG_NOERROR): Renamed from REG_NOERROR.
120885         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120886         (_REG_BADPAT): Renamed from REG_BADPAT.
120887         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120888         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120889         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120890         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120891         (_REG_EBRACK): Renamed from REG_EBRACK.
120892         (_REG_EPAREN): Renamed from REG_EPAREN.
120893         (_REG_EBRACE): Renamed from REG_EBRACE.
120894         (_REG_BADBR): Renamed from REG_BADBR.
120895         (_REG_ERANGE): Renamed from REG_ERANGE.
120896         (_REG_ESPACE): Renamed from REG_ESPACE.
120897         (_REG_BADRPT): Renamed from REG_BADRPT.
120898         (_REG_EEND): Renamed from REG_EEND.
120899         (_REG_ESIZE): Renamed from REG_ESIZE.
120900         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120901         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120902         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120903         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120904         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120906         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120907         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120908         changed.  But support the old name if the new one is not defined
120909         and if _REGEX_SOURCE.
120911         Change the following member names in struct re_pattern_buffer.
120912         The old names are still supported if !_REGEX_SOURCE.
120913         The new names are always supported, regardless of _REGEX_SOURCE.
120914         (re_buffer): Renamed from buffer.
120915         (re_allocated): Renamed from allocated.
120916         (re_used): Renamed from used.
120917         (re_syntax): Renamed from syntax.
120918         (re_fastmap): Renamed from fastmap.
120919         (re_translate): Renamed from translate.
120920         (re_can_be_null): Renamed from can_be_null.
120921         (re_regs_allocated): Renamed from regs_allocated.
120922         (re_fastmap_accurate): Renamed from fastmap_accurate.
120923         (re_no_sub): Renamed from no_sub.
120924         (re_not_bol): Renamed from not_bol.
120925         (re_not_eol): Renamed from not_eol.
120926         (re_newline_anchor): Renamed from newline_anchor.
120928         Change the following member names in struct re_registers.
120929         The old names are still supported if !_REGEX_SOURCE.
120930         The new names are always supported, regardless of _REGEX_SOURCE.
120931         (rm_num_regs): Renamed from num_regs.
120932         (rm_start): Renamed from start.
120933         (rm_end): Renamed from end.
120935         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
120936         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
120937         Prepend __ to parameter names.
120939         Undo yesterday's changes.
120941 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120943         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
120944         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
120945         lib/regex.c.
120947 2005-08-24  Jim Meyering  <jim@meyering.net>
120949         Sync from coreutils.
120950         * m4/fcntl-safer.m4: New file.
120952         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120953         and object files for this module.
120955 2005-08-24  Jim Meyering  <jim@meyering.net>
120957         Sync from coreutils.
120958         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120960 2005-08-24  Jim Meyering  <jim@meyering.net>
120962         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120963         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120965 2005-08-24  Jim Meyering  <jim@meyering.net>
120967         * modules/fcntl-safer: New module.
120968         * modules/fts (Depends-on): Add fcntl-safer.
120969         * MODULES.html.sh (File descriptor based Input/Output):
120970         Add fcntl-safer.
120972 2005-08-24  Bruno Haible  <bruno@clisp.org>
120974         Support for unit test modules.
120975         * modules/README: Mention tests modules.
120976         * modules/TEMPLATE-TESTS: New file.
120977         * gnulib-tool: New options --extract-tests-module, --with-tests and
120978         --tests-base (unused for the moment).
120979         (testsbase, inctests): New variables.
120980         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120981         (func_verify_module): Exclude TEMPLATE-TESTS.
120982         (func_verify_nontests_module, func_verify_tests_module): New functions.
120983         (func_get_dependencies): Add implicit dependency for tests modules.
120984         (func_get_tests_module): New function.
120985         (func_modules_transitive_closure): When --with-tests was specified,
120986         include the unit tests as well, unless explicitly avoided.
120987         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120988         (func_emit_tests_Makefile_am): New function.
120989         (func_create_testdir): When --with-tests was specified, emit a
120990         tests/ directory.
120991         * MODULES.html.sh (Future developments): Update.
120993 2005-08-24  Bruno Haible  <bruno@clisp.org>
120995         * modules/tls-tests: New file.
120996         * tests/test-tls.c: New file, from GNU gettext.
120998 2005-08-24  Bruno Haible  <bruno@clisp.org>
121000         * modules/lock-tests: New file.
121001         * tests/test-lock.c: New file, from GNU gettext.
121003 2005-08-24  Bruno Haible  <bruno@clisp.org>
121005         * lib/lock.h: Add multiple inclusion guard.
121006         * lib/tls.h: Add multiple inclusion guard.
121008 2005-08-24  Bruno Haible  <bruno@clisp.org>
121010         * gnulib-tool: Add support for the --aux-dir option to
121011         --create-testdir, --create-megatestdir, --test, --megatest.
121012         (func_create_testdir, func_create_megatestdir): Optionally emit a
121013         AC_CONFIG_AUX_DIR directive.
121014         (create-testdir, create-megatestdir, test, megatest): Provide a
121015         default value for $auxdir.
121017 2005-08-24  Bruno Haible  <bruno@clisp.org>
121019         * gnulib-tool (import): Use compound statement instead of subshell
121020         where possible.
121022 2005-08-24  Bruno Haible  <bruno@clisp.org>
121024         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121026 2005-08-24  Bruno Haible  <bruno@clisp.org>
121028         * gnulib-tool (func_version): Update.
121030 2005-08-24  Bruno Haible  <bruno@clisp.org>
121032         * gnulib-tool (func_import, func_create_testdir,
121033         func_create_megatestdir): Quote all autoconf macro arguments.
121035 2005-08-24  Bruno Haible  <bruno@clisp.org>
121037         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121038         option --force, because --force causes the aclocal.m4 of each
121039         subdirectory to be newer than the corresponding config.h.in.
121041 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121043         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121044         All contents moved to gl_REGEX.
121045         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121046         assume that it does.
121048 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121050         * lib/regex.h (REG_NOSYS)
121051         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121052         Define, since POSIX requires it as of 2001.
121053         (_REG_ENOSYS)
121054         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121055         New private symbol, used to keep the enum signed in all cases.
121056         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121057         Youngman in
121058         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121060         * lib/regex_internal.c (re_string_skip_chars, register_state):
121061         (calc_state_hash):
121062         Remove forward decls; no longer needed now that we use prototypes.
121063         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121064         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121065         (clean_state_log_if_needed): Likewise.
121067 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121069         * config/srclist.txt: Add glibc bugs 1231-1233.
121071 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121073         Fix problems reported by Sam Steingold in
121074         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121075         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121076         assumed that reg_errcode_t is a signed type, which is not
121077         necessarily true if _XOPEN_SOURCE is not defined.
121078         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121079         since some compilers warn about it otherwise.
121081 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121083         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121084         (init_word_char, create_initial_state, duplicate_node_closure):
121085         (fetch_token, peek_token_bracket, build_range_exp):
121086         (build_collating_symbol): Remove forward decls; no longer needed
121087         now that we use prototypes.
121089         * lib/regcomp.c:
121090         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121091         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121092         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121093         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121094         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121095         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121096         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121097         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121098         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121099         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121100         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121101         (build_charclass, build_charclass_op, fetch_number, create_tree):
121102         (create_token_tree, mark_opt_subexp, duplicate_tree):
121103         Use prototypes rather than old-style definitions.
121105         * lib/regex_internal.c:
121106         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121107         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121108         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121109         (re_string_reconstruct, re_string_peek_byte_case):
121110         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121111         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121112         (re_node_set_init_copy, re_node_set_add_intersect):
121113         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121114         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121115         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121116         (re_acquire_state, re_acquire_state_context, register_state):
121117         (create_ci_newstate, create_cd_newstate, free_state):
121118         Likewise.
121119         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121120         re_search_2):
121121         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121122         (re_search_internal, prune_impossible_nodes):
121123         (acquire_init_state_context, check_matching, static):
121124         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121125         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121126         (update_regs, sift_states_backward, build_sifted_states):
121127         (clean_state_log_if_needed, merge_state_array):
121128         (update_cur_sifted_state, add_epsilon_src_nodes):
121129         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121130         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121131         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121132         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121133         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121134         (check_arrival, check_arrival_add_next_nodes):
121135         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121136         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121137         (check_node_accept_bytes, check_node_accept, extend_buffers):
121138         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121139         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121140         (sift_ctx_init):
121141         Likewise.
121143         * lib/regex_internal.h:
121144         (re_string_allocate, re_string_construct, re_string_reconstruct):
121145         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121146         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121147         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121148         (re_string_context_at, re_string_peek_byte_case):
121149         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121150         is defined, since we now use prototypes always.
121152         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121153         C89 or better.  All uses removed.
121155 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121157         * config/srclist.txt: Add glibc bugs 1220-1227.
121159 2005-08-20  Jim Meyering  <jim@meyering.net>
121161         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121162         of unused local, dfa.
121164 2005-08-20  Bruno Haible  <bruno@clisp.org>
121166         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121168 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121170         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121171         (re_node_set_insert_last, re_dfa_add_node):
121172         Rename local variables to avoid GCC shadowing warnings.
121174 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121176         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121177         [defined lint]: Suppress bogus uninitialized-variable warnings.
121179         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121180         and let the caller return REG_ESPACE if out of space.  This
121181         removes an uninitialied-variable warning with GCC 4.0.1, and also
121182         avoids taking the address of a local variable.  All callers
121183         changed.
121185 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121187         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121188         $LIBCSRC/posix/regexec.c.
121189         Add glibc bug 1217 for regcomp.c.
121191 2005-08-19  Jim Meyering  <jim@meyering.net>
121193         * lib/regexec.c (proceed_next_node): Redo local variables to
121194         avoid GCC shadowing warnings.
121196 2005-08-18  Bruno Haible  <bruno@clisp.org>
121198         * lib/strstr.c (strstr): Fix return value in multibyte case.
121199         * lib/strcasestr.c (strcasestr): Likewise.
121201 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121203         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121205 2005-08-17  Jim Meyering  <jim@meyering.net>
121207         Make the %s format (seconds since the epoch) work for a negative
121208         number and when used with a zero-padded field width, e.g. %015s.
121210         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121211         label so that it precedes the code to set `digits'.  Otherwise,
121212         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121213         print `00-22'.  Now, it prints `-0022', as it should.
121215 2005-08-17  Bruno Haible  <bruno@clisp.org>
121217         * modules/strstr (Files): Add m4/mbrtowc.m4.
121218         (Depends-on): Add mbuiter.
121220 2005-08-17  Bruno Haible  <bruno@clisp.org>
121222         * modules/strcasestr: New file.
121223         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121224         strcasestr.
121226 2005-08-17  Bruno Haible  <bruno@clisp.org>
121228         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121230 2005-08-17  Bruno Haible  <bruno@clisp.org>
121232         * modules/mbuiter: New file.
121233         * MODULES.html.sh (Extended multibyte and wide character utilities):
121234         Add mbuiter.
121236 2005-08-17  Bruno Haible  <bruno@clisp.org>
121238         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121239         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121241 2005-08-17  Bruno Haible  <bruno@clisp.org>
121243         * m4/strcasestr.m4: New file.
121245 2005-08-17  Bruno Haible  <bruno@clisp.org>
121247         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121248         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121250 2005-08-17  Bruno Haible  <bruno@clisp.org>
121252         * lib/strcasestr.h: New file.
121253         * lib/strcasestr.c: New file.
121255 2005-08-17  Bruno Haible  <bruno@clisp.org>
121257         * lib/strcasecmp.c: Use mbuiter.h.
121259 2005-08-17  Bruno Haible  <bruno@clisp.org>
121261         * lib/mbuiter.h: New file.
121263 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121266         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121267         and gl_GETOPT are both invoked via different paths (as happens
121268         with GNU tar CVS because it uses both argp and getopt), the former
121269         wins.
121271 2005-08-16  Bruno Haible  <bruno@clisp.org>
121273         * modules/tls: New file.
121274         * MODULES.html.sh (Multithreading): Add tls.
121276 2005-08-16  Bruno Haible  <bruno@clisp.org>
121278         * modules/strnlen1: New file.
121279         * MODULES.html.sh (String handling): Add strnlen1.
121281 2005-08-16  Bruno Haible  <bruno@clisp.org>
121283         * modules/strcase (Files): Add m4/mbrtowc.m4.
121284         (Depends-on): Add strnlen1, mbchar.
121286 2005-08-16  Bruno Haible  <bruno@clisp.org>
121288         * modules/mbiter: New file.
121289         * MODULES.html.sh (Extended multibyte and wide character utilities):
121290         Add mbiter.
121292 2005-08-16  Bruno Haible  <bruno@clisp.org>
121294         * modules/mbfile: New file.
121295         * MODULES.html.sh (Extended multibyte and wide character utilities):
121296         Add mbfile.
121298 2005-08-16  Bruno Haible  <bruno@clisp.org>
121300         * modules/mbchar: New file.
121301         * MODULES.html.sh (Extended multibyte and wide character utilities):
121302         New section.
121304 2005-08-16  Bruno Haible  <bruno@clisp.org>
121306         * m4/tls.m4: New file, from GNU gettext.
121308 2005-08-16  Bruno Haible  <bruno@clisp.org>
121310         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121311         always.
121312         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121314 2005-08-16  Bruno Haible  <bruno@clisp.org>
121316         * m4/mbiter.m4: New file.
121318 2005-08-16  Bruno Haible  <bruno@clisp.org>
121320         * m4/mbfile.m4: New file.
121322 2005-08-16  Bruno Haible  <bruno@clisp.org>
121324         * m4/mbchar.m4: New file.
121326 2005-08-16  Bruno Haible  <bruno@clisp.org>
121328         * lib/tls.h: New file, from GNU gettext.
121329         * lib/tls.c: New file, from GNU gettext.
121331 2005-08-16  Bruno Haible  <bruno@clisp.org>
121333         * lib/strnlen1.h: New file.
121334         * lib/strnlen1.c: New file.
121336 2005-08-16  Bruno Haible  <bruno@clisp.org>
121338         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121339         (mbi_init): Update.
121340         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121341         NUL byte, not after it.
121343 2005-08-16  Bruno Haible  <bruno@clisp.org>
121345         * lib/strcase.h (strcasecmp): Add note in comments.
121346         * lib/strncasecmp.c: Use code from strcasecmp.c.
121347         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121348         (strcasecmp): Work correctly in multibyte locales.
121350 2005-08-16  Bruno Haible  <bruno@clisp.org>
121352         * lib/mbiter.h: New file.
121354 2005-08-16  Bruno Haible  <bruno@clisp.org>
121356         * lib/mbfile.h: New file.
121358 2005-08-16  Bruno Haible  <bruno@clisp.org>
121360         * lib/mbchar.h: New file.
121361         * lib/mbchar.c: New file.
121363 2005-08-16  Bruno Haible  <bruno@clisp.org>
121365         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121366         the valid ones. Makes the comparison operations transitive:
121367         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121368         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121370 2005-08-15  Simon Josefsson  <jas@extundo.com>
121372         * modules/ssize_t (License): Change to 'unlimited'.
121374         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121376 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121378         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121379         Add comments for each pending glibc patch.
121381 2005-08-15  Bruno Haible  <bruno@clisp.org>
121383         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121384         __cplusplus is defined.
121386 2005-08-14  Jim Meyering  <jim@meyering.net>
121388         Sync from coreutils.
121390         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121391         Use the hash-table-based cycle-detection code not just when
121392         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121393         Reported by James Youngman in
121394         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121395         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121396         FTS_TIGHT_CYCLE_CHECK.
121397         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121398         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121399         once again.
121400         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121401         * lib/fts.c (fd_safer): Remove decl.
121402         Include fcntl--.h rather than unistd-safer.h
121403         (fts_safe_changedir): Don't call fd_safer; no longer needed
121404         now that we include fcntl--.h.
121406 2005-08-12  Simon Josefsson  <jas@extundo.com>
121408         * modules/getndelim2: Use ssize_t module.
121409         * modules/getnline: Likewise.
121410         * modules/safe-read: Likewise.
121411         * modules/xreadlink: Likewise.
121413         * modules/ssize_t: New file.
121415 2005-08-12  Simon Josefsson  <jas@extundo.com>
121417         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121419 2005-08-12  Simon Josefsson  <jas@extundo.com>
121421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121422         ssize_t.
121424 2005-08-12  Simon Josefsson  <jas@extundo.com>
121426         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121427         readline, getdelim and check_version.
121428         (Support for systems lacking ISO C 99: Sizes of integer types):
121429         Add size_max.
121431 2005-08-12  Bruno Haible  <bruno@clisp.org>
121433         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121435 2005-08-11  Simon Josefsson  <jas@extundo.com>
121437         * modules/readline: New file.
121439         * modules/strnlen (Files): Add strnlen.h.
121441 2005-08-11  Simon Josefsson  <jas@extundo.com>
121443         * m4/readline.m4: New file.
121445 2005-08-11  Simon Josefsson  <jas@extundo.com>
121447         * lib/readline.h, readline.c: New file.
121449 2005-08-11  Simon Josefsson  <jas@extundo.com>
121451         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121452         gl_AVOID.
121454 2005-08-11  Bruno Haible  <bruno@clisp.org>
121456         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121458 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121460         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121462 2005-08-10  Simon Josefsson  <jas@extundo.com>
121464         * tests/test-iconvme.c: New file.
121466 2005-08-10  Simon Josefsson  <jas@extundo.com>
121468         * m4/strnlen.m4: New file.
121470         * m4/strndup.m4: Don't check for strnlen declaration, done in
121471         strnlen.m4.
121473 2005-08-10  Simon Josefsson  <jas@extundo.com>
121475         * lib/strndup.c: Use strnlen.h.
121477         * lib/strnlen.h: New file.
121479 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121481         * README: Typos.
121483 2005-08-02  Simon Josefsson  <jas@extundo.com>
121485         * modules/readline: New file.
121487 2005-08-02  Simon Josefsson  <jas@extundo.com>
121489         * modules/getdelim: New file.
121491         * modules/getline: Rewrite, don't use getndelim2.
121493 2005-08-02  Simon Josefsson  <jas@extundo.com>
121495         * m4/getline.m4: Separate out getdelim stuff into separate module.
121497         * m4/getdelim.m4: New file.
121499 2005-08-02  Simon Josefsson  <jas@extundo.com>
121501         * lib/getline.h, getline.c: Rewrite.
121503         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121505 2005-07-31  Bruno Haible  <bruno@clisp.org>
121507         * lib/lock.h (gl_lock_initializer): New macro.
121508         (gl_lock_define_initialized): Use it.
121509         (gl_rwlock_initializer): New macro.
121510         (gl_rwlock_define_initialized): Use it.
121511         (gl_recursive_lock_initializer): New macro.
121512         (gl_recursive_lock_define_initialized): Use it.
121514 2005-07-30  Karl Berry  <karl@gnu.org>
121516         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
121517         Report from Ben Pfaff, regarding getopt.
121519 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
121521         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
121522         normal way.
121523         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
121524         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
121525         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
121526         (gl_GETOPT): Use the new macros.  Most of the implementation
121527         is moved to the new macros.  This is for programs like Emacs
121528         that don't want all the functionality of gl_GETOPT.
121530 2005-07-26  Bruno Haible  <bruno@clisp.org>
121532         * m4/lock.m4: Update from GNU gettext.
121534 2005-07-26  Bruno Haible  <bruno@clisp.org>
121536         * lib/lock.h: Update from GNU gettext.
121537         * lib/lock.c: Update from GNU gettext.
121539 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
121541         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
121542         obsolescent AC_TRY_RUN.  Include the default includes files, for
121543         'exit'.
121545 2005-07-24  Bruno Haible  <bruno@clisp.org>
121547         * modules/visibility: New file.
121548         * MODULES.html.sh (Misc): Add visibility.
121550 2005-07-24  Bruno Haible  <bruno@clisp.org>
121552         * m4/visibility.m4: New file.
121554 2005-07-24  Bruno Haible  <bruno@clisp.org>
121556         * doc/visibility.texi: New file.
121558 2005-07-22  Bruno Haible  <bruno@clisp.org>
121560         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
121561         $(ALLOCA_H), redundant through BUILT_SOURCES.
121562         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
121563         redundant through BUILT_SOURCES.
121564         * modules/byteswap (Makefile.am): Remove explicit dependency on
121565         $(BYTESWAP_H), redundant through BUILT_SOURCES.
121566         * modules/fnmatch (Makefile.am): Remove explicit dependency on
121567         $(FNMATCH_H), redundant through BUILT_SOURCES.
121568         * modules/getopt (Makefile.am): Remove explicit dependency on
121569         $(GETOPT_H), redundant through BUILT_SOURCES.
121570         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
121571         redundant through BUILT_SOURCES.
121572         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
121573         redundant through BUILT_SOURCES.
121574         * modules/stdbool (Makefile.am): Remove explicit dependency on
121575         $(STDBOOL_H), redundant through BUILT_SOURCES.
121576         * modules/stdint (Makefile.am): Remove explicit dependency on
121577         $(STDINT_H), redundant through BUILT_SOURCES.
121578         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
121579         Remove explicit dependency on $(SYSEXITS_H).
121580         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
121582 2005-07-18  Simon Josefsson  <jas@extundo.com>
121584         * lib/check-version.c (check_version): Accept identical versions too.
121586 2005-07-18  Bruno Haible  <bruno@clisp.org>
121588         * modules/lock: New file.
121589         * MODULES.html.sh (Multithreading): New section.
121591 2005-07-18  Bruno Haible  <bruno@clisp.org>
121593         * m4/lock.m4: New file, from GNU gettext.
121595 2005-07-18  Bruno Haible  <bruno@clisp.org>
121597         * lib/lock.h: New file, from GNU gettext.
121598         * lib/lock.c: New file, from GNU gettext.
121600 2005-07-18  Bruno Haible  <bruno@clisp.org>
121602         * lib/lock.h (gl_once_t): New type.
121603         (gl_once_define, gl_once): New macros.
121604         * lib/lock.c (fresh_once): New variable.
121605         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121606         functions.
121608 2005-07-16  Simon Josefsson  <jas@extundo.com>
121610         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
121611         workaround, suggested by Bruno.
121613 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121615         * modules/xalloc (Depends-on): Add xalloc-die.
121616         * modules/xvasprintf (Depends-on): Add xalloc-die.
121618 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121620         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121621         with a minor change.
121623 2005-07-15  Bruno Haible  <bruno@clisp.org>
121625         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121626         When using lib/poll.c, define poll as rpl_poll.
121628 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121630         * modules/argp (Depends-on): Remove unlocked-io.
121632 2005-07-14  Derek Price  <derek@ximbiot.com>
121634         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121635         for glob symlink bug.
121637 2005-07-14  Bruno Haible  <bruno@clisp.org>
121639         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121640         Instead, test for *_unlocked function declarations directly.
121642 2005-07-11  Simon Josefsson  <jas@extundo.com>
121644         * modules/size_max: New file.
121646         * modules/xsize: Depend on size_max module for size_max.m4.
121648 2005-07-11  Simon Josefsson  <jas@extundo.com>
121650         * lib/size_max.h: New file.
121652 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121654         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121655         copyright symbol and the year.
121656         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121657         (version_etc_va): Use parameterized copyright notice.
121658         Reword to conform to the current GNU coding standards.
121660 2005-07-11  Karl Berry  <karl@gnu.org>
121662         * doc/gnulib.texi (Quoting): new node.
121663         (Initial import): more info, from Patrice.
121665 2005-07-11  Bruno Haible  <bruno@clisp.org>
121667         * gnulib-tool (func_usage): Document option --avoid.
121668         (Command line options): Handle --avoid.
121669         (func_acceptable): New function.
121670         (func_modules_transitive_closure): Use it.
121672 2005-07-11  Bruno Haible  <bruno@clisp.org>
121674         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121675         Reported by Jim Meyering.
121677 2005-07-10  Bruno Haible  <bruno@clisp.org>
121679         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121680         Needed when size_t is smaller than 'unsigned int'.
121681         Reported by Paul Eggert.
121683 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121685         * modules/argp (Depends-on): Add unlocked-io
121687 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121689         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121690         block of defines.
121692 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121694         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121695         fix now.
121697 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121698         and Paul Eggert  <eggert@cs.ucla.edu>
121700         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121701         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121703 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121705         * modules/regex (Files): Add lib/regex_internal.c,
121706         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121707         (Depends-on): Add extensions.
121708         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121710 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121712         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121713         pathconf.
121714         * m4/same.m4 (gl_SAME): Likewise.
121715         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121717         * m4/regex.m4: Adjust to new libc regex implementation.
121718         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121719         all the .c and .h parts of (the new) regex.
121720         Quote the m4 stuff better.
121721         Check for RE_ICASE bug of old gnulib.
121722         Check for REG_STARTEND of recent libc.
121723         Rename local variables from jm_* to gl_*.
121724         Quote operand of "test -f".
121725         Say "recent enough" version of libc, not "version 2".
121726         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121727         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121728         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121729         Remove check for btowc, isascii.
121730         Require AM_LANGINFO_CODESET.
121732 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121734         * lib/regex.c, regex.h: Sync from libc.
121735         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121736         * lib/regexec.c:
121737         New files, synced from libc, except that regex_internal.h
121738         currently has a small porting fix.
121740 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121742         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121743         regex_internal.c, regexec.c.
121744         Add regex_internal.h too, but as a comment, since the libc version
121745         is currently broken in gnulib mode.
121747 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121749         Support programs like Emacs that use gnulib but not gettext.
121750         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121751         * modules/gettext-h: New file.
121752         * modules/gettext (Files): Remove lib/gettext.h.
121753         (Depends-on): Add gettext-h.
121754         (Makefile.am): Remove lib_SOURCES.
121755         * modules/argmatch, modules/c-stack, modules/closeout:
121756         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121757         * modules/execute, modules/file-type, modules/getaddrinfo:
121758         * modules/getopt, modules/human, modules/javacomp:
121759         * modules/javaexec, modules/mkdir-p, modules/obstack:
121760         * modules/openat, modules/pagealign_alloc, modules/pipe:
121761         * modules/quotearg, modules/regex, modules/rpmatch:
121762         * modules/unicodeio, modules/userspec, modules/version-etc:
121763         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121764         * modules/xsetenv:
121765         Depend on gettext-h, not gettext.
121767 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121769         * gnulib-tool (func_import): Add support for 'public domain' license.
121770         * modules/alloca, modules/atexit, modules/memmove:
121771         Now public domain, not GPL.
121772         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121773         * modules/realloc, modules/strerror, modules/strtod:
121774         Now LGPL, not GPL.
121776 2005-07-05  Bruno Haible  <bruno@clisp.org>
121778         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121779         autoconf CVS. Needed for mingw.
121781 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121783         Remove the dependency of the strftime module on the tzset module.
121784         * modules/strftime (Depends-on): Remove dependency on tzset.
121786 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121788         Remove the dependency of the strftime module on the tzset module.
121789         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121790         gl_FUNC_TZSET_CLOBBER.
121792 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121794         Remove the dependency of the strftime module on the tzset module.
121795         * lib/strftime.c (my_strftime)
121796         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121797         Copy the input structure, to work around some of the bug with
121798         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121799         Solaris releases, you should also use the tzset module, but we won't
121800         require it as a dependency any more since we don't want LGPLed code
121801         to depend on GPLed code.
121803 2005-07-02  Jim Meyering  <jim@meyering.net>
121805         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121806         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121807         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121808         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121810 2005-07-02  Jim Meyering  <jim@meyering.net>
121812         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121814 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121816         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121817         declares only 'struct timespec;' (!).
121819 2005-07-01  Jim Meyering  <jim@meyering.net>
121821         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121822         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121823         * lib/save-cwd.c, tempname.c:
121824         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121825         and don't include <sys/file.h>).
121827 2005-06-29  Jim Meyering  <jim@meyering.net>
121829         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121830         type name.  Use the variable name instead.
121831         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121832         Likewise.
121834 2005-06-28  Simon Josefsson  <jas@extundo.com>
121836         * modules/check-version (Files): Add check-version.m4.
121838 2005-06-28  Simon Josefsson  <jas@extundo.com>
121840         * m4/check-version.m4: New file, suggested by Jim Meyering
121841         <jim@meyering.net>.
121843 2005-06-28  Simon Josefsson  <jas@extundo.com>
121845         * lib/check-version.h, lib/check-version.c: New files.
121847 2005-06-28  Simon Josefsson  <jas@extundo.com>
121849         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121850         collision with global variable.  Better indentation.  Don't
121851         increment buffer pointer beyond buffer end.  Based on comments
121852         from Paul Eggert <eggert@cs.ucla.edu>.
121854         * lib/base64.h: Indent.
121856 2005-06-28  Simon Josefsson  <jas@extundo.com>
121858         * doc/gnulib.texi (Library version handling): New section.
121860 2005-06-28  Jim Meyering  <jim@meyering.net>
121862         * check-module (find_included_lib_files): Hard-code another
121863         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121864         but modules/fts-lgpl (correctly) does not list those files.
121866         * modules/canonicalize (Files): Add lib/pathmax.h.
121868 2005-06-25  Simon Josefsson  <jas@extundo.com>
121870         * modules/check-version: New file.
121872 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121874         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121875         initializer of struct addrinfo, as an indication that we don't
121876         care how many members the structure has.
121878 2005-06-24  Derek Price  <derek@ximbiot.com>
121879         and Bruno Haible  <bruno@clisp.org>
121881         Remove stat module & update lstat.
121882         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121883         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121884         * m4/stat.m4: Remove this file.
121886 2005-06-24  Derek Price  <derek@ximbiot.com>
121887         and Bruno Haible  <bruno@clisp.org>
121889         Remove stat module & update lstat.
121890         * lib/stat.c: Remove this file...
121891         (slash_aware_lstat): ...moving this content and its support...
121892         * lib/lstat.c (rpl_lstat): ...into here.
121893         * lib/lstat.h: New file.
121895 2005-06-24  Derek Price  <derek@ximbiot.com>
121896         and Bruno Haible  <bruno@clisp.org>
121898         Remove stat module & update lstat.
121899         * config/srclist.txt (libc sources): Remove stat.
121901 2005-06-24  Derek Price  <derek@ximbiot.com>
121902         and Bruno Haible  <bruno@clisp.org>
121904         Remove stat module & update lstat.
121905         * MODULES.html.sh (stat): Remove.
121906         * MODULES.html: Regenerated.
121907         * modules/lstat (Description): Correct function name.
121908         (Files): Add "lstat.h".
121909         (Depends-on): Remove stat, add xalloc, stat-macros.
121910         * modules/stat: Remove this file.
121911         (Include): Add "lstat.h", remove <sys/stat.h>.
121913 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121915         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121916         (ranged_convert): Don't save conversion in a temporary struct.
121917         This causes a warning with GCC 4.0.0, and anyway in the typical
121918         case it's not worth the extra 100 bytes or so of code.
121919         (ranged_convert, __mktime_internal): When calling a function via a
121920         pointer P, use P () rather than (*P) (), as we now assume C89 or
121921         better.
121923 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121925         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121926         "who -r" failed to give output.  Problem reported by Tim Waugh.
121928         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121929         (xcalloc): Use it to avoid needless tests.
121930         Problem reported by Jim Meyering.
121932 2005-06-20  Derek Price  <derek@ximbiot.com>
121934         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121935         unnecessary for Autoconfs > 2.59c.
121937 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121939         * lib/argp.h (__option_is_short): Check upper limit of
121940         __key. Isprint() requires its argument to have the value
121941         of an unsigned char or EOF.
121943 2005-06-16  Jim Meyering  <jim@meyering.net>
121945         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
121946         when either N or S is zero.
121948 2005-06-16  Derek Price  <derek@ximbiot.com>
121950         * m4/bison.m4: Declare YACC & YFLAGS precious.
121952 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121954         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121955         multibyte string or pattern, fall back on unibyte matching.
121956         Problem reported by James Youngman.
121958 2005-06-08  Bruno Haible  <bruno@clisp.org>
121960         * modules/csharpcomp: New file.
121961         * MODULES.html.sh (C#): Add csharpcomp.
121963 2005-06-08  Bruno Haible  <bruno@clisp.org>
121965         * m4/csharpcomp.m4: New file, from GNU gettext.
121967 2005-06-08  Bruno Haible  <bruno@clisp.org>
121969         * lib/csharpcomp.h: New file, from GNU gettext.
121970         * lib/csharpcomp.c: New file, from GNU gettext.
121971         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121973 2005-06-08  Bruno Haible  <bruno@clisp.org>
121975         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121976         warning on mingw.
121978 2005-06-07  Derek Price  <derek@ximbiot.com>
121980         Sync from CVS.
121981         * lib/glob_.h: Indent nested #ifdef.
121983 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121985         Sync from coreutils.
121986         Use "file name" when talking about file names, instead of "filename"
121987         or "path", as per the GNU coding standards.
121988         * lib/mkdir-p.c: Renamed from makepath.c.
121989         (make_dir_parents): Renamed from make_path.  All callers changed.
121990         * lib/mkdir-p.h: Likewise.  All includers changed.
121991         * lib/filenamecat.c: Renamed from path-concat.c.
121992         (file_name_concat): Renamed from path_concat.  All callers changed.
121993         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121994         * lib/filenamecat.h: Likewise.  All includers changed.
121995         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121996         in comments or local variable names.
121997         * lib/basename.c: Likewise.
121998         * lib/canonicalize.c, canonicalize.h: Likewise.
121999         * lib/dirname.c, dirname.h: Likewise.
122000         * lib/euidaccess.c: Likewise.
122001         * lib/exclude.c: Likewise
122002         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122003         * lib/fsusage.c, fsuage.h: Likewise.
122004         * lib/fts.c, fts_.h: Likewise.
122005         * lib/getcwd.c: Likewise.
122006         * lib/getloadavg.c: Likewise.
122007         * lib/mkstemp.c: Likewise.
122008         * lib/mountlist.c, mountlist.h: Likewise.
122009         * lib/openat.c, openat.h: Likewise.
122010         * lib/readlink-stub.c: Likewise.
122011         * lib/readutmp.c, readutmp.h: Likewise.
122012         * lib/rename.c: Likewise.
122013         * lib/rmdir.c: Likewise.
122014         * lib/same.c: Likewise.
122015         * lib/savedir.c: Likewise.
122016         * lib/stripslash.c: Likewise.
122017         * lib/tempname.c: Likewise.
122018         * lib/xreadlink.c: Likewise.
122019         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122020         All uses changed.
122021         * lib/exclude.h: Likewise.
122023         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122024         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122025         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122026         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122027         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122028         files have been getting away with it for years (MORE/BSD 4.3
122029         is extinct now).
122030         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122031         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122033         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122034         Define to 256, not 255, as per modern POSIX.
122036 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122038         Sync from coreutils.
122039         Use "file name" when talking about file names, instead of "filename"
122040         or "path", as per the GNU coding standards.
122041         * MODULES.html.sh: mkdir-p renamed from makepath.
122042         filenamecat renamed from path-concat.
122043         * modules/filenamecat: Renamed from modules/path-concat.
122044         (Files): filenamecat.h and filenamecat.c renamed from
122045         path-concat.h and path-concat.c.
122046         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122047         (Include): filenamecat.h, not path-concat.h.
122048         * modules/mkdir-p: Renamed from modules/makepath.
122049         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122050         makepath.c.
122051         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122052         (Include): mkdir-p.h, not makepath.h.
122054 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122056         Sync from coreutils.
122057         * m4/mkdir-p.m4: Renamed from makepath.m4.
122058         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122059         Rename files from makepath.c to mkdir-p.c, and from
122060         makepath.h to mkdir-p.h.
122061         * m4/filenamecat.m4: Renamed from path-concat.m4.
122062         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122063         Rename files from path-concat.c to filenamecat.c,
122064         and from path-concat.h to filenamecat.h.
122065         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122066         "file name" in local variables or comments.
122067         * m4/rename.m4: Likewise.
122069 2005-06-01  Bruno Haible  <bruno@clisp.org>
122071         * modules/csharpexec: New file.
122072         * MODULES.html.sh (C#): New section.
122074 2005-06-01  Bruno Haible  <bruno@clisp.org>
122076         * m4/csharp.m4: New file, from GNU gettext.
122077         * m4/csharpexec.m4: New file, from GNU gettext.
122079 2005-06-01  Bruno Haible  <bruno@clisp.org>
122081         * lib/csharpexec.h: New file, from GNU gettext.
122082         * lib/csharpexec.c: New file, from GNU gettext.
122083         * lib/csharpexec.sh.in: New file, from GNU gettext.
122085 2005-05-31  Derek Price  <derek@ximbiot.com>
122086             Paul Eggert  <eggert@cs.ucla.edu>
122088         Sync from cvs.
122089         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122091 2005-05-31  Derek Price  <derek@ximbiot.com>
122092             Paul Eggert  <eggert@cs.ucla.edu>
122094         Sync from cvs.
122095         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122097 2005-05-29  Derek Price  <derek@ximbiot.com>
122099         * config/srclist.txt (glob_.h, glob.c): Add these files.
122101 2005-05-29  Derek Price  <derek@ximbiot.com>
122103         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122104         * modules/glob: New file.
122105         * modules/getlogin_r: Add link to POSIX spec in description.
122107 2005-05-29  Derek Price  <derek@ximbiot.com>
122108             Paul Eggert  <eggert@cs.ucla.edu>
122110         * m4/glob.m4: New file.
122112 2005-05-29  Derek Price  <derek@ximbiot.com>
122113             Paul Eggert  <eggert@cs.ucla.edu>
122115         * lib/glob_.h, lib/glob.c: New files.
122117 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122119         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122120         * modules/fts-lgpl (Depends-on): Remove gettext.
122122 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122125         and don't require gt_INTTYPES_PRI.
122127 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122129         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122131         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122132         the configuration hassle isn't worth it.
122133         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122134         (LONGEST_MODIFIER, PRIuMAX): Remove.
122136 2005-05-27  Bruno Haible  <bruno@clisp.org>
122138         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122140 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122143         _POSIX_PTHREAD_SEMANTICS for Solaris.
122145 2005-05-25  Derek Price  <derek@ximbiot.com>
122147         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122149 2005-05-25  Derek Price  <derek@ximbiot.com>
122150             Paul Eggert  <eggert@cs.ucla.edu>
122152         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122153         * lib/getlogin_r.c, getlogin_r.h: New files.
122155 2005-05-25  Bruno Haible  <bruno@clisp.org>
122156             Derek Price  <derek@ximbiot.com>
122158         * lib/getlogin_r.h: Simplify API documentation.
122160 2005-05-23  Derek Price  <derek@ximbiot.com>
122162         * modules/minmax (Files): Add m4/minmax.m4.
122163         (configure.ac): Add gl_MINMAX.
122165 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122167         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122168         so that unistd-safer.h (GPL'ed code) need not be included.
122170 2005-05-22  Bruno Haible  <bruno@clisp.org>
122172         * m4/minmax.m4: New file.
122173         Based on a patch by Derek Price <derek@ximbiot.com>.
122175 2005-05-22  Bruno Haible  <bruno@clisp.org>
122177         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122178         (INT64_MIN): Fix definition.
122179         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122181         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122182         NEED_SIGNED_INT_TYPES.
122184         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122185         HAVE_SYSTEM_INTTYPES.
122187 2005-05-22  Bruno Haible  <bruno@clisp.org>
122189         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122190         Also include <sys/param.h> if it defines MIN, MAX.
122191         Based on a patch by Derek Price <derek@ximbiot.com>.
122193 2005-05-21  Jim Meyering  <jim@meyering.net>
122195         * modules/fts (Files): Add m4/inttypes-pri.m4.
122196         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122198 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122200         New fts module.
122201         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122202         (setup_dir, free_dir): New functions.
122203         (enter_dir, leave_dir): Define trivial
122204         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122205         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122206         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122207         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122208         Move to fts-cycle.c.
122209         (fts_open): Use setup_dir.
122210         (fts_close): Use free_dir.
122211         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122212         This adds a label and some gotos, but the alternatives were messier.
122213         Check for memory allocation failure when entering a dir.
122214         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122215         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122216         (FTS): New member fts_cycle, that is a union that contains the
122217         old active_dir_ht and cycle_state.  All uses changed to mention
122218         fts_cycle.ht and fts_cycle.state.
122219         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122220         fts.c, with the following changes:
122221         (setup_dir, free_dir): New functions.
122222         (enter_dir): Now returns bool.  Return true if successful, false
122223         if memory exhausted.  All callers changed.
122224         Do not bother partly cleaning up on
122225         memory allocation failure; that is free_dir's job.
122226         However, free ad if hash_insert fails, to avoid memory leak.
122227         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122228         fts->fts_options to see which union member to use.
122230 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122233         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122235 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122237         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122239 2005-05-20  Jim Meyering  <jim@meyering.net>
122241         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122242         Now a macro, to pacify GCC.
122244 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122246         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122247         of -1.
122249 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122251         * lib/chown.c (rpl_chown): Return -1 on failure.
122253 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122255         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122256         Don't check for stddef.h.
122257         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122258         don't use its results.
122259         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122260         since we include them unconditionally.  Don't require
122261         AM_STDBOOL_H, since stdbool is a prerequisite.
122262         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122263         since we assume C89 or better.
122264         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122265         as we don't use their results.
122266         Don't check for fchdir, memmove, memset, strrchr, as we use
122267         them unconditionally.
122268         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122269         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122271 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122273         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122274         Include <stddef.h> unconditionally, since we assume C89 now.
122275         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122276         * lib/fts.c: Include fts_.h first, to check interface.
122277         Do not include intprops.h; no longer needed.
122278         Include cycle-check.h and hash.h, since fts_.h no longer does.
122279         Remove unnecessary casts of closedir to void.
122280         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122281         decide whether to decrement nlinks.
122282         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122283         (FTS): Use struct hash_table * instead of Hash_table, so that
122284         we no longer need to include hash.h here.
122286 2005-05-18  Jim Meyering  <jim@meyering.net>
122288         * modules/dirfd (License): Change to LGPL.  Most of the code
122289         is already in the public domain.
122291 2005-05-18  Jim Meyering  <jim@meyering.net>
122293         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122294         Reported by Yoann Vandoorselaere.
122296 2005-05-17  Jim Meyering  <jim@meyering.net>
122298         * m4/fts.m4: New file, from coreutils.
122300 2005-05-17  Jim Meyering  <jim@meyering.net>
122302         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122304 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122306         Sync from coreutils.
122307         * m4/unlinkdir.m4: New file.
122309 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122311         Sync from coreutils.
122312         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122313         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122314         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122315         White space changes only.
122316         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122317         special.
122318         * lib/yesno.c: Include getline.h, not ctype.h.
122319         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122320         Use getline to remove arbitrary restriction on response length.
122322 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122324         * config/srclist-update: Spell out "Street" in FSF postal
122325         mail address; this is the style the FSF seems to prefer.
122327         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122328         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122329         this updates FSF postal mail address.
122331         Sync from coreutils.
122332         * modules/unlinkdir: New file.
122333         * modules/yesno (Depends-on): Add getline.
122334         * MODULES.html.sh (File system functions): Add unlinkdir.
122336 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122338         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122339         lib/strsep.h:
122340         Change the initial comment to refer to GPL, not LGPL.
122341         gnulib-tool will change it to LGPL as needed.
122343         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122344         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122345         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122346         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122347         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122348         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122349         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122350         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122351         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122352         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122353         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122354         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122355         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122356         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122357         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122358         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122359         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122360         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122361         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122362         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122363         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122364         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122365         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122366         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122367         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122368         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122369         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122370         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122371         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122372         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122373         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122374         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122375         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122376         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122377         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122378         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122379         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122380         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122381         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122382         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122383         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122384         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122385         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122386         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122387         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122388         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122389         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122390         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122391         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122392         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122393         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122394         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122395         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122396         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122397         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122398         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122399         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122400         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122401         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122402         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122403         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122404         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122405         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122406         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122407         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122408         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122409         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122410         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122411         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122412         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122413         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122414         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122415         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122416         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122417         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122418         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122419         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122420         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122421         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122422         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122423         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122424         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122425         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122426         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122427         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122428         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122429         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122430         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122431         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122432         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122433         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122434         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122435         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122436         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122437         lib/yesno.c, lib/yesno.h:
122438         Update FSF postal mail address.
122440 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122442         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122443         tests/test-memmem.c, tests/test-stpncpy.c:
122444         Update FSF postal mail address.
122446 2005-05-13  Bruno Haible  <bruno@clisp.org>
122448         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122449         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122450         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122451         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122452         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122453         Add support for 64-bit integers in the MSVC compiler.
122455 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122457         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122459 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122461         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122463 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122465         * doc/getdate.texi (General date syntax): Don't say that date
122466         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122467         Problem reported by Nic Ferrier.
122469 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122471         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122472         specified in ai_socktype. Fix invalid ai_protocol
122473         check. ai_protocol is usually set to 0 or depending on
122474         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122475         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122476         ai_socktype / ai_protocol in the returned addrinfo structure.
122478 2005-05-10  Simon Josefsson  <jas@extundo.com>
122480         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122481         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122483 2005-05-10  Karl Berry  <karl@gnu.org>
122485         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122486         (from http://www.gnu.org/licenses).
122487         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122488         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122489         fdl.texi suffices.
122491 2005-05-10  Karl Berry  <karl@gnu.org>
122493         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122494         (COPYING.DOC): remove.
122496         * config/srclist-update: new FSF address.
122498 2005-05-10  Derek Price  <derek@ximbiot.com>
122500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122501         possible.
122503 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122504             Bruno Haible  <bruno@clisp.org>
122506         * modules/inet_ntop: New file.
122507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122508         inet_ntop.
122510 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122511             Bruno Haible  <bruno@clisp.org>
122513         * m4/inet_ntop.m4: New file.
122515 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122516             Bruno Haible  <bruno@clisp.org>
122518         * lib/inet_ntop.h: New file.
122519         * lib/inet_ntop.c: New file, from glibc with modifications.
122521 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
122523         * modules/time_r (License): Change to LGPL.
122524         * modules/extensions (License): Change to LGPL.  Actually,
122525         the license is more permissive than that, but currently gnulib-tool
122526         doesn't know how to handle more-permissive licenses.
122528         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
122529         Problem reported by Dave Love.
122531 2005-05-08  Jim Meyering  <jim@meyering.net>
122533         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
122534         blank.
122536 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122538         * modules/argmatch (Depends-on): Add stdbool.
122539         * modules/backupfile (Depends-on): Likewise.
122540         * modules/chdir-long (Depends-on): Likewise.
122541         * modules/closeout (Depends-on): Likewise.
122542         * modules/cycle-check (Depends-on): Likewise.
122543         * modules/dirname (Depends-on): Likewise.
122544         * modules/fnmatch (Depends-on): Likewise.
122545         * modules/fsusage (Depends-on): Likewise.
122546         * modules/fwriteerror (Depends-on): Likewise.
122547         * modules/getcwd (Depends-on): Likewise.
122548         * modules/getloadavg (Depends-on): Likewise.
122549         * modules/hard-locale (Depends-on): Likewise.
122550         * modules/makepath (Depends-on): Likewise.
122551         * modules/mountlist (Depends-on): Likewise.
122552         * modules/nanosleep (Depends-on): Likewise.
122553         * modules/posixtm (Depends-on): Likewise.
122554         * modules/quotearg (Depends-on): Likewise.
122555         * modules/readtokens (Depends-on): Likewise.
122556         * modules/readtokens0 (Depends-on): Likewise.
122557         * modules/readutmp (Depends-on): Likewise.
122558         * modules/save-cwd (Depends-on): Likewise.
122559         * modules/strftime (Depends-on): Likewise.
122560         * modules/userspec (Depends-on): Likewise.
122561         * modules/utimecmp (Depends-on): Likewise.
122562         * modules/xgetcwd (Depends-on): Likewise.
122563         * modules/xnanosleep (Depends-on): Likewise.
122564         * modules/xstrtod (Depends-on): Likewise.
122565         * modules/yesno (Depends-on): Likewise.
122567 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
122569         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
122570         needless checks.
122572 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122574         Merge from coreutils.  Among other things,
122575         add bulletproofing for cases where stdin, stdout, or stderr are closed.
122576         * lib/fd-safer.c: New file.
122577         * lib/fcntl-safer.h, open-safer.c: Remove.
122578         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
122579         * lib/dup-safer.c: Include unistd-safer.h first.
122580         Don't include errno.h.
122581         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
122582         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
122583         * lib/file-type.c: Rely on file-type.h change.
122584         * lib/getloadavg.c: Include unistd-safer.h.
122585         (getloadavg): Use safer open.
122586         * lib/getusershell.c: Include "stdio-safer.h".
122587         (getusershell): Use safer fopen.
122588         * lib/long-options.c (long_options): Use NULL rather than 0.
122589         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
122590         'free'.
122591         * lib/modechange.c: Likewise.
122592         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122593         (MODE_DONE): New constant.
122594         (struct mode_change): Remove 'next' member.
122595         (make_node_op_equals): New function; like the old one of the
122596         same name, except it allocates an array.
122597         (mode_compile, mode_create_from_ref): Use it.
122598         (mode_compile): Allocate result as an array, not a linked list.
122599         Parse octal string ourself, so that we catch mistakes like "+0".
122600         (mode_adjust): Arg is an array, not a linked list.
122601         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122602         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122603         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122604         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122605         Remove.  This is now stat-macros.h's job.
122606         (talloc): Remove.  All callers replaced by xalloc, so that
122607         our invokers don't have to worry about reporting memory failures.
122608         (make_node_op_equals): Remove.
122609         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122610         New constants.
122611         (struct mode_change): Moved here from modechange.h.
122612         (mode_append_entry): Remove.
122613         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122614         apps to have incorrect behavior.  Use simpler algorithm for head
122615         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122616         Detect more invalid usages rather than having somewhat-random behavior.
122617         Don't insert an "a=" action, as that leads to incorrect behavior.
122618         (mode_compile, mode_create_from_ref): Return NULL on error instead
122619         of an enum, since now there's only one way to have an error.  All
122620         callers changed.
122621         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122622         at the correct time.  Simplify calculation of "+u" and its ilk.
122623         Don't mishandle "+X".
122624         (mode_free): Remove "register" and localize decls.
122625         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122626         (struct mode_change): Move to modechange.c; callers don't
122627         need to see this stuff.
122628         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122629         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122630         (mode_change, mode_adjust): Reflect the new signatures noted above.
122631         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122632         that might redefine system include files.
122633         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122634         (my_usleep): Use NULL rather than (void *) 0.
122635         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122636         Use siginterrupt to specify that system calls should be interrupted.
122637         (rpl_nanosleep): Move initialization of suspended closer to call of
122638         my_usleep.
122639         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122640         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122641         (desirable_utmp_entry): New function.
122642         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122643         using x2nrealloc, to simplify logic.
122644         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122645         size calculation.  Do not assume utmp file is a regular file.
122646         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122647         (READ_UTMP_CHECK_PIDS): New constant.
122648         * lib/save-cwd.c: Include unistd-safer.h.
122649         (save_cwd): Use fd_safer.
122650         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122651         [!_LIBC] Include "stat-macros.h" instead.
122652         * lib/unistd-safer.h (fd_safer): New decl.
122654 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122656         * modules/getloadavg (Depends-on): Add unistd-safer.
122657         * modules/getusershell (Depends-on): Add stdio-safer.
122658         * modules/lstat (Depends-on): Remove xalloc.
122659         * modules/mkstemp (Depends-on): Add stat-macros.
122660         * modules/modechange (Depends-on): Remove xstrtol.
122661         Add stat-macros, xalloc.
122662         * modules/save-cwd (Depends-on): Add unistd-safer.
122663         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122664         * modules/unistd-safer (Files): Add lib/fd-safer.c
122665         (Makefile.am): Remove lib_SOURCES.
122667         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122668         Remove fcntl-safer; unistd-safer supersedes it.
122670 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122672         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122673         AC_HEADER_STAT.
122674         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122675         (gl_PREREQ_CHOWN): Remove.
122676         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122677         it.  Don't require AC_HEADER_STAT.
122678         (gl_PREREQ_LSTAT): Remove.
122679         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122680         Don't require AC_HEADER_STAT.
122681         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122682         (gl_PREREQ_RMDIR): Remove.
122683         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122684         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122685         the stat-macros module a prerequisite.
122686         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122687         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122688         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122689         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122690         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122691         variable names.
122692         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122693         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122694         variable prefixes.
122695         * m4/fcntl-safer.m4: Remove.
122696         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122697         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122698         Invoke gl_PREREQ_FD_SAFER.
122699         (gl_PREREQ_FD_SAFER): New macro.
122700         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122701         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122702         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122703         Remove duplicate call to AC_LIBOBJ(readutmp).
122704         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122707         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122709 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122711         * MODULES.html.sh (Misc): Add byteswap.
122713 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122715         * modules/getcwd (Depends-on): Add extensions.
122716         * modules/openat (Depends-on): Likewise.
122718 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122720         * modules/byteswap: New file.
122722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122724         * m4/byteswap.m4: New file.
122726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122728         * lib/byteswap_.h: New file.
122730 2005-04-25  Karl Berry  <karl@gnu.org>
122732         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122734 2005-04-25  Albert Chin  <china@thewrittenword.com>
122736         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122737         Toolkit C bug.
122739 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122741         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122742         (func_ln_if_changed): Remove forcibly for no error message
122743         in case file does not exist.
122745 2005-04-19  Simon Josefsson  <jas@extundo.com>
122747         * gnulib-tool (Options): Make --symlink mean --symbolic.
122749 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122751         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122753 2005-04-16  Simon Josefsson  <jas@extundo.com>
122755         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122757 2005-04-15  Simon Josefsson  <jas@extundo.com>
122759         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122761 2005-04-15  Simon Josefsson  <jas@extundo.com>
122763         * gnulib-tool: Rename --symlink to --symbolic.
122765 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122767         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122768         symbolic links to files instead of copying/moving.  Add --aux-dir,
122769         specifying directory relative --dir where auxiliary build tools
122770         are placed.
122772 2005-04-14  Bruno Haible  <bruno@clisp.org>
122774         * modules/allocsa (License): Change to LGPL.
122775         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122777 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122779         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122780         that "UTC +1 second" continues to work.  Problem reported
122781         by Dmitry V. Levin.
122782         (relunit_snumber): New rule.
122783         (relunit): Use it.
122785 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122787         * lib/getdate.y (universal_time_zone_table): New constant.
122788         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122789         universal_time_zone_table.
122790         (lookup_zone): Prefer universal_time_zone_table to
122791         local_time_zone_table, so that "GMT" time stamps are allowed in
122792         London during the summer.  Problem reported by Ian Abbott.
122794 2005-04-12  Jim Meyering  <jim@meyering.net>
122796         * lib/human.c (humblock): Set *options even when returning due to
122797         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122798         warning from gcc-4.
122800 2005-04-09  Jim Meyering  <jim@meyering.net>
122802         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122803         -Wuninitialized: initialize tm0.tm_year.
122805 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122807         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122808         count, since there's no maximum.  All uses changed.
122809         Add member dsts_seen.
122810         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122811         not being INT_MAX.
122812         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122813         Use pc_rels_seen to decide whether a date is absolute.
122815         * lib/getdate.y (number): Don't overwrite year.
122816         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122817         check.
122819 2005-04-02  Simon Josefsson  <jas@extundo.com>
122821         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122822         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122824 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122826         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122827         where no absolute path name can be longer than PATH_MAX.
122829 2005-03-27  Jim Meyering  <jim@meyering.net>
122831         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122833 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122835         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122836         "one's complement" -> "ones' complement" in comment, as per Knuth.
122837         "value of type" -> "type or expression" in comment.
122838         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122840 2005-03-26  Jim Meyering  <jim@meyering.net>
122842         Comment nits.
122843         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122844         Correct typos: s/or/of/.
122846 2005-03-26  Jim Meyering  <jim@meyering.net>
122848         * modules/check-include-files: Move to ../ and rename to...
122849         * check-module: ...this.
122851 2005-03-25  Jim Meyering  <jim@meyering.net>
122853         * modules/xvasprintf (Files): Add xalloc.h.
122855 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122857         * modules/gettext (Files): config/config.rpath ->
122858         build-aux/config.rpath
122859         * modules/iconv (Files): Likewise.
122860         Problem reported by Oskar Liljeblad.
122862 2005-03-23  Jim Meyering  <jim@meyering.net>
122864         * modules/check-include-files: New script to check for
122865         missing dependencies, multiple includes, etc.
122867         * modules/c-strtold (Depends-on): Add xalloc.
122868         * modules/c-strtod (Depends-on): Add xalloc.
122869         * modules/hash (Depends-on): Add xalloc.
122870         (Files): Remove lib/xalloc.h.
122872         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122873         * modules/userspec (Files): Add lib/inttostr.h.
122875 2005-03-23  Jim Meyering  <jim@meyering.net>
122877         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122879 2005-03-22  Jim Meyering  <jim@meyering.net>
122881         * modules/stat-macros: New module.
122882         * modules/canonicalize, modules/euidaccess, modules/file-type,
122883         * modules/filemode, modules/lchown, modules/makepath,
122884         * modules/rmdir, modules/stat: Depend on new stat-macros module
122885         rather than listing lib/stat-macros.h manually.
122886         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122888 2005-03-22  Jim Meyering  <jim@meyering.net>
122890         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122892 2005-03-22  Bruno Haible  <bruno@clisp.org>
122894         * config/srclist.txt: Replace target directory 'config' with
122895         'build-aux'.
122896         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122897         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122898         ../build-aux/.
122900 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122902         * modules/chdir-long (Depends-on): Add mempcpy.
122904         * modules/acl, modules/backupfile, modules/c-strtod,
122905         modules/c-strtold, modules/canon-host, modules/canonicalize,
122906         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122907         modules/exclude, modules/exitfail, modules/file-type,
122908         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122909         modules/getdate, modules/getline, modules/getpagesize,
122910         modules/getpass, modules/getugroups, modules/group-member,
122911         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122912         modules/inttostr, modules/long-options, modules/makepath,
122913         modules/md5, modules/memcasecmp, modules/memcoll,
122914         modules/modechange, modules/mountlist, modules/path-concat,
122915         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122916         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122917         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122918         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122919         modules/strftime, modules/strndup, modules/strverscmp,
122920         modules/timespec, modules/unlocked-io, modules/userspec,
122921         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122922         modules/yesno:
122923         Remove lib_SOURCES line from Makefile.am section, as this is now
122924         done automatically by the corresponding Autoconf macro.
122926 2005-03-21  Jim Meyering  <jim@meyering.net>
122928         Changes imported from coreutils.
122930         * lib/cycle-check.c: Don't include xalloc.h.
122932         * lib/path-concat.c: Don't include assert.h.
122933         (path_concat): Remove assertion that would have triggered
122934         for ABASE starting with more than one slash.
122935         Reported by Andreas Schwab.
122937         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
122938         properly when ABASE is an absolute file name.
122939         Correct the description of this function.
122940         Include <assert.h>.
122941         Add an assertion and a test driver.
122942         This fixes a bug introduced on 2004-07-02.
122943         Andreas Schwab reported the resulting failure of cp --parents:
122944         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
122946 2005-03-21  Jim Meyering  <jim@meyering.net>
122948         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122951 2005-03-21  Jim Meyering  <jim@meyering.net>
122952         and  Paul Eggert  <eggert@cs.ucla.edu>
122954         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122955         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122956         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122957         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122958         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122959         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122960         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122961         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122962         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122963         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122964         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122965         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122966         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122967         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122968         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122969         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122970         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122971         for these modules.
122973 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122975         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122976         (which shouldn't happen), generate nothing instead of returning 0
122977         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122979 2005-03-16  Bruno Haible  <bruno@clisp.org>
122981         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122982         HAVE_LONGLONG_64BIT.
122984 2005-03-16  Bruno Haible  <bruno@clisp.org>
122986         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122987         HAVE_LONGLONG_64BIT.
122989 2005-03-16  Bruno Haible  <bruno@clisp.org>
122991         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122992         HAVE_LONGLONG_64BIT.
122994 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122996         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122997         reliably distinguish strftime failure from empty output on POSIX
122998         hosts.
123000 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123002         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123003         (iconv_string): Don't guess a size-zero buffer, as that might cause
123004         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123005         result would be 'too large', where 'too large' is (heuristically)
123006         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123007         overflow concerns.  This will prevent some unwanted malloc failures
123008         when the inputs are very large.
123010 2005-03-15  Karl Berry  <karl@gnu.org>
123012         * config/srclist.txt (config.rpath): from gettext.
123013         * config/config.rpath: update.
123015 2005-03-15  Bruno Haible  <bruno@clisp.org>
123017         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123018         to 'negate'.
123020         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123021         variable.
123023         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123024         results.
123026 2005-03-14  Simon Josefsson  <jas@extundo.com>
123028         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123029         <fx@gnu.org>.
123031 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123033         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123034         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123035         intprops.h.
123036         * lib/strtol.c: Likewise.
123038 2005-03-14  Jim Meyering  <jim@meyering.net>
123040         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123041         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123042         to be nonzero so that we (and caller) can detect the difference
123043         between a valid zero-length expansion and an error return, even
123044         when the underlying strftime fails before writing anything into
123045         that location.
123047 2005-03-14  Bruno Haible  <bruno@clisp.org>
123049         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123050         Update from GNU gettext 0.14.3.
123052 2005-03-10  Jim Meyering  <jim@meyering.net>
123054         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123056 2005-03-10  Jim Meyering  <jim@meyering.net>
123058         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123059         so that this module works on systems without fchdir.
123061 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123063         Factor int-properties macros into a single file, except for
123064         glibc-related files.
123065         * lib/intprops.h: New file.
123066         * lib/getloadavg.c: Include it instead of limits.h.
123067         (INT_STRLEN_BOUND): Remove.
123068         * lib/human.c: Include intprops.h.
123069         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123070         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123071         302/1000.
123072         * lib/inttostr.h: Include intprops.h instead of limits.h.
123073         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123074         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123075         for consistency with intprops.h.
123076         (time_t_is_integer, twos_complement_arithmetic): Use them.
123077         * lib/sig2str.h: Include <signal.h>, intprops.h.
123078         (INT_STRLEN_BOUND): Remove.
123079         * lib/strftime.c (TYPE_SIGNED): Remove.
123080         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123081         * lib/strtol.c: Adjust comments to match intprops.h.
123082         * lib/userspec.c: Include intprops.h.
123083         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123084         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123085         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123086         instead of rolling our own expressions.
123087         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123089         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123090         instead of int.
123091         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123092         the right thing even if adding 1900 would overflow.  Similarly
123093         for tm_mon + 1 and tm_yday + 1.
123094         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123095         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123096         (DO_SIGNED_NUMBER): New macro.
123097         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123099 2005-03-07  Bruno Haible  <bruno@clisp.org>
123101         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123103 2005-03-07  Bruno Haible  <bruno@clisp.org>
123105         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123107 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123109         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123110         (func_import): Only replace files via --import when they have actually
123111         changed.
123113 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123115         * m4/mmap-anon.m4: New file.
123116         * m4/pagealign_alloc.m4: New file.
123118 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123119             Bruno Haible  <bruno@clisp.org>
123121         * modules/pagealign_alloc: New file.
123122         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123124 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123125             Bruno Haible  <bruno@clisp.org>
123127         * lib/pagealign_alloc.h: New file.
123128         * lib/pagealign_alloc.c: New file.
123130 2005-03-03  Bruno Haible  <bruno@clisp.org>
123132         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123133         Use an all-permissive copyright notice, recommended by RMS.
123135 2005-03-02  Bruno Haible  <bruno@clisp.org>
123137         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123138         of AIX, the replacement has to be done only after <string.h> is
123139         included, therefore not in config.h. stpncpy.h does the replacement,
123140         and stpncpy.c uses it.
123142 2005-03-02  Bruno Haible  <bruno@clisp.org>
123144         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123145         stpncpy.c uses it.
123147 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123149         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123150         The workaround isn't strictly needed for POSIX conformance, and
123151         it's too much of a pain to configure and maintain.  We'll ask
123152         people to fix their kernels instead.
123153         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123154         (NANOSLEEP_BUG_WORKAROUND): Remove.
123155         (xnanosleep): Remove the workaround.
123157 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123159         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123160         Reported by Derek Price.
123161         (Include): Add "timespec.h".
123163         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123165 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123167         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123168         to detect nanosleep bug.
123170 2005-03-01  Bruno Haible  <bruno@clisp.org>
123172         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123174 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123176         * modules/gethrxtime: New file.
123177         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123178         (Depends-on): Add gethrxtime.
123179         (configure.ac): Add gl_XNANOSLEEP.
123180         (Makefile.am): Remove lib_SOURCES line.
123182 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123184         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123185         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123187 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123189         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123190         * lib/timespec.h (gettime): Return void, since it always
123191         succeeds now.  All uses changed.
123192         * lib/gettime.c (gettime): Likewise.
123193         [HAVE_NANOTIME]: Prefer nanotime.
123194         Assume gettimeofday succeeds, as POSIX requires.
123195         Assime time () succeeds, since other code already does.
123196         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123197         (timespec_subtract): Remove.
123198         (NANOSLEEP_BUG_WORKAROUND): New constant.
123199         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123200         things considerably.  Use it only on GNU/Linux hosts, since the
123201         workaround shouldn't be needed elsewhere.
123203 2005-02-24  Bruno Haible  <bruno@clisp.org>
123205         * modules/gettext (Files): Add m4/glibc2.m4.
123207 2005-02-24  Bruno Haible  <bruno@clisp.org>
123209         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123210         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123211         * m4/progtest.m4:
123212         Update from GNU gettext 0.14.2.
123213         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123215 2005-02-24  Bruno Haible  <bruno@clisp.org>
123217         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123218         * lib/config.charset: Update from GNU gettext 0.14.2.
123220 2005-02-24  Bruno Haible  <bruno@clisp.org>
123222         * lib/gettext.h: Update from GNU gettext 0.14.2.
123224 2005-02-23  Simon Josefsson  <jas@extundo.com>
123226         * m4/iconvme.m4: New file.
123228 2005-02-23  Jim Meyering  <jim@meyering.net>
123230         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123231         change.
123232         Thanks to Bruno Haible for catching it.
123234 2005-02-22  Simon Josefsson  <jas@extundo.com>
123236         * modules/iconvme: New file.
123238         * MODULES.html.sh: Add iconvme.
123240 2005-02-22  Simon Josefsson  <jas@extundo.com>
123242         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123244 2005-02-22  Simon Josefsson  <jas@extundo.com>
123246         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123248 2005-02-22  Jim Meyering  <jim@meyering.net>
123250         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123251         s/ifndef/ifdef/.
123253 2005-02-20  Neil Conway  <neilc@samurai.com>
123255         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123256         returned by OSX/Darwin if the specified buffer is not large
123257         enough for the hostname.
123259 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123261         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123262         pass it to _help, otherwise the latter coredumps trying to
123263         dereference state.root_argp.
123265 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123267         * modules/chdir-long (Depends-on): Add memrchr.
123268         * modules/memrchr (Files): Add lib/memrchr.h.
123269         (Include): "memrchr.h".
123271 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123273         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123275 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123277         * lib/memrchr.h: New file.
123278         * lib/chdir-long.c: Include it.
123279         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123280         Don't bother including stddef.h.
123282 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123284         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123285         inclusion.
123286         Include <sys/types.h>, for dev_t.
123287         (ME_DUMMY, ME_REMOTE): Move from here....
123288         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123289         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123290         Dmitry V. Levin.
123291         Include mountlist.h first, to test the interface.
123293 2005-01-29  Bruno Haible  <bruno@clisp.org>
123295         * lib/progname.c (program_name): Initialize.
123296         Needed when linking statically on MacOS X.
123298 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123300         Sync from coreutils.
123301         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123302         (Depends-on): Add c-strtod.
123303         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123305 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123307         Sync from coreutils.
123308         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123310         Remove files that are specific to coreutils.
123311         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123313 2005-01-28  Bruno Haible  <bruno@clisp.org>
123315         * modules/javacomp: New file.
123316         * MODULES.html.sh (Java): Add javacomp.
123318 2005-01-28  Bruno Haible  <bruno@clisp.org>
123320         * m4/javacomp.m4: New file, from GNU gettext.
123322 2005-01-28  Bruno Haible  <bruno@clisp.org>
123324         * lib/javacomp.sh.in: New file, from GNU gettext.
123325         * lib/javacomp.h: New file, from GNU gettext.
123326         * lib/javacomp.c: New file, from GNU gettext.
123328 2005-01-26  Simon Josefsson  <jas@extundo.com>
123330         * lib/gai_strerror.c: Use GPL in header.
123332 2005-01-26  Bruno Haible  <bruno@clisp.org>
123334         * modules/javaexec: New file.
123335         * MODULES.html.sh (Java): Add javaexec.
123337 2005-01-26  Bruno Haible  <bruno@clisp.org>
123339         * m4/javaexec.m4: New file, from GNU gettext.
123341 2005-01-26  Bruno Haible  <bruno@clisp.org>
123343         * lib/javaexec.sh.in: New file, from GNU gettext.
123344         * lib/javaexec.h: New file, from GNU gettext.
123345         * lib/javaexec.c: New file, from GNU gettext.
123347 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123349         * modules/lchown (Depends-on): Remove lchown.h
123351 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123353         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123354         must be defined if the header file was not found, in order
123355         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123357 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123359         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123360         initializers for struct pentry_state.
123361         (__argp_error): Check return value of __asprintf
123362         (__argp_failure): Translate error message
123364         * lib/argp-parse.c: Removed braces around the expansion of N_()
123366 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123368         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123369         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123370         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123371         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123372         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123373         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123374         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123375         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123376         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123377         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123378         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123379         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123380         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123381         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123382         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123383         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123384         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123385         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123386         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123387         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123388         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123389         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123390         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123391         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123392         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123393         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123394         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123395         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123396         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123397         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123398         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123399         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123400         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123401         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123402         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123403         Use an all-permissive copyright notice, recommended by RMS.
123405 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123407         * modules/chdir-long (Depends-on): Remove mempcpy.
123409 2005-01-21  Jim Meyering  <jim@meyering.net>
123411         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123412         same value as for Solaris 9.
123414         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123415         component length.  This included changing the parameter to be
123416         of type `char *' rather than `char const *'.
123417         * lib/chdir-long.h (chdir_long): Update prototype.
123419         * lib/openat.c (fdopendir, fstatat): New functions.
123420         * lib/openat.h: Include headers required for use of DIR and struct
123421         stat.
123422         [AT_SYMLINK_NOFOLLOW]: Define.
123423         (fdopendir, fstatat): Add prototypes.
123425 2005-01-21  Bruno Haible  <bruno@clisp.org>
123427         * modules/classpath: New file.
123428         * MODULES.html.sh (Java): Add classpath.
123430 2005-01-21  Bruno Haible  <bruno@clisp.org>
123432         * lib/classpath.h: New file, from GNU gettext.
123433         * lib/classpath.c: New file, from GNU gettext.
123435 2005-01-20  Simon Josefsson  <jas@extundo.com>
123437         * modules/version-etc-fsf: New file.
123439 2005-01-20  Simon Josefsson  <jas@extundo.com>
123441         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123442         * lib/version-etc.c: Remove version_etc_copyright.
123443         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123444         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123446 2005-01-20  Simon Josefsson  <jas@extundo.com>
123448         * lib/base64.h (isbase64): Add.
123450         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123451         using a unsigned prototype, don't inline.
123452         (base64_decode): Use it.
123454 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123456         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123457         it.
123459 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123461         * lib/save-cwd.c (save_cwd): Remove code to support the case
123462         where fchdir is missing or flaky.
123464 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123466         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123468 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123470         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123471         AC_LIBSOURCES now does this.
123472         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123473         with new ullong_max module.
123475 2005-01-19  Bruno Haible  <bruno@clisp.org>
123477         * modules/sh-quote: New file.
123478         * MODULES.html.sh (Executing programs): Add sh-quote.
123480 2005-01-19  Bruno Haible  <bruno@clisp.org>
123482         * lib/sh-quote.h: New file, from GNU gettext.
123483         * lib/sh-quote.c: New file, from GNU gettext.
123485 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123487         Merge from coreutils.
123488         * m4/ullong_max.m4: New file.
123489         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123490         (gl_MACROS): Assume localeconv exists.
123492 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123494         Merge changes from coreutils, as described below in several
123495         changelogs dated today.
123497         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123498         (O_DIRECTORY): Remove; not needed here, since "." must be
123499         a directory.  All uses removed.
123500         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123501         universal on Suns, and we also need to test for IRIX.
123502         Revamp code to use 'if' rather than '#if'.
123503         Avoid unnecessary comparison of cwd->desc to 0.
123505         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123506         for known valid error numbers rather than observed invalid ones.
123508 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123510         * modules/ullong_max: New file.
123512         * modules/chdir-long, modules/openat: New files.
123513         * modules/save-cwd (Depends-on): Depend on chdir-long.
123514         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
123516 2005-01-18  Jim Meyering  <jim@meyering.net>
123518         Merge from coreutils.
123519         * m4/chdir-long.m4, m4/openat.m4: New files.
123520         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
123521         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
123522         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
123523         is sane and DOES follow symlinks.  Besides, testing 20 different
123524         systems found no broken chown implementations.
123525         Prompted by a change in rsync's copy of this macro.
123526         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
123528         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
123530         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
123531         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
123532         NULL-means-set-to-current-time semantics.
123533         Remove temporary file immediately, rather than waiting
123534         for configure's at-exit trap code to do it.
123536 2005-01-18  Jim Meyering  <jim@meyering.net>
123538         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123540         * lib/utimens.c (futimens): Account for the fact that futimes
123541         can also fail with errno == ENOSYS or errno == ENOENT.
123542         Patch from Dmitry V. Levin.
123544         Change the name of the robust chdir function from chdir to chdir_long.
123545         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
123546         (restore_cwd): Use chdir_long, not chdir.
123547         * lib/chdir-long.c: Renamed from chdir.c.
123548         * lib/chdir-long.h: Renamed from chdir.h.
123549         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
123550         Hurd.
123552 2005-01-18  Bruno Haible  <bruno@clisp.org>
123554         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
123555         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
123556         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
123557         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
123558         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
123559         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
123560         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
123561         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
123562         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
123563         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
123564         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
123565         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
123566         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
123567         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
123568         Use an all-permissive copyright notice, recommended by RMS.
123570 2005-01-18  Bob Proulx  <bob@proulx.com>
123572         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
123573         simplify offsetof() macro construct to avoid compile failure with
123574         native HP-UX 11.0 ANSI C compiler.
123576 2005-01-17  Bruno Haible  <bruno@clisp.org>
123578         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
123579         redundant because stpncpy.m4 takes care of it.
123581 2005-01-17  Bruno Haible  <bruno@clisp.org>
123583         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
123585 2005-01-17  Bruno Haible  <bruno@clisp.org>
123587         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
123588         used.
123590 2005-01-17  Bruno Haible  <bruno@clisp.org>
123592         * lib/fwriteerror.h (fwriteerror): Change specification to include
123593         fclose.
123594         * lib/fwriteerror.c: Include <stdbool.h>.
123595         (fwriteerror): At the end, close the file stream. Record whether
123596         stdout was already closed.
123598 2005-01-17  Bruno Haible  <bruno@clisp.org>
123600         * lib/execute.c (environ): Declare if needed.
123601         * lib/pipe.c (environ): Likewise.
123602         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123604 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123606         * modules/argp: Depend on vsnprintf
123608 2005-01-10  Jim Meyering  <jim@meyering.net>
123610         * modules/closeout (Depends-on): Add atexit.
123612 2005-01-06  Bruno Haible  <bruno@clisp.org>
123614         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123616 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123618         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123619         definitions to be after all include files, to avoid collisions.
123620         Problem reported by Bob Proulx.
123622 2005-01-04  Jim Meyering  <jim@meyering.net>
123624         Changes imported from coreutils.
123625         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123626         as the mkstemp template, use a temporary directory and an
123627         8.3-friendly template to avoid trouble on systems like DJGPP.
123628         Reported by Juan M. Guerrero via Stepan Kasal.
123629         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123630         close. Remove the temporary directory right away, rather than waiting
123631         for configure's at-exit trap code to do it.
123632         Suggestion from Stepan Kasal.
123634 2005-01-01  Simon Josefsson  <jas@extundo.com>
123636         * gnulib-tool: Print #include directives when --import'ing.
123638 2004-12-28  Simon Josefsson  <jas@extundo.com>
123640         * tests/test-base64.c: Include required header files.  Remove
123641         unused variables.
123643 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123645         * modules/error (Depends-on): Remove gettext.
123647 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123649         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123650         not needed.  This removes a dependency on the gettext module.
123651         [defined _LIBC]: Do not include <libintl.h>; not needed.
123653 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123655         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123656         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123658 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123660         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123661         HAVE_DECL_STRTOLD.
123663 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123665         * modules/getdate (Depends-on): Remove alloca-opt.
123667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123669         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123671 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123673         * lib/argp-parse.c: Include <stddef.h>.
123674         (alignof, alignto): New macros.
123675         (parser_init): Don't assume that void * is aligned sufficiently
123676         for struct option.
123678         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123679         need to extend the stack.
123680         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123681         large.
123683 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123685         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123687 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123689         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123690         (2004-10-24) change.  Apparently this was a false alarm.
123692         * modules/getdate: Depend on alloca-opt, not alloca.
123694 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123696         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123697         Remove now-obsolete comment about AIX.
123698         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123699         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123700         (YYMAXDEPTH): New macro.
123702 2004-12-18  Simon Josefsson  <jas@extundo.com>
123704         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123706 2004-12-18  Bruno Haible  <bruno@clisp.org>
123708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123710 2004-12-18  Bruno Haible  <bruno@clisp.org>
123712         * lib/fatal-signal.c (fatal_signals): Make non-const.
123713         (init_fatal_signals): New function.
123714         (uninstall_handlers, install_handlers): Ignore signals that were set to
123715         SIG_IGN.
123716         (at_fatal_signal): Call init_fatal_signals.
123717         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123718         SIG_IGN.
123719         Reported by Paul Eggert.
123721 2004-12-18  Bruno Haible  <bruno@clisp.org>
123723         * doc/alloca.texi: New file.
123724         * doc/alloca-opt.texi: New file.
123726 2004-12-17  Jim Meyering  <jim@meyering.net>
123728         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123729         Otherwise, install-sh could exit with improper exit status when
123730         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123732 2004-12-16  Simon Josefsson  <jas@extundo.com>
123734         * tests/test-base64.c: Add license.
123736 2004-12-15  Stepan Kasal  <address@hidden>
123738         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123740 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123742         * modules/getcwd (Files): Add m4/d-ino.m4.
123743         Suggested by Mark D. Baushke.
123745 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123747         * lib/getdate.y (textint): New member "negative".
123748         (time_zone_hhmm): New function.
123749         Expect 14 shift-reduce conflicts, not 13.
123750         (o_colon_minutes): New rule.
123751         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123752         (yylex): Set the "negative" member of signed numbers.
123754 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123756         * doc/getdate.texi (Time of day items, Time zone items):
123757         Describe new formats +00:00, UTC+00:00.
123759 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123761         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123762         spurious "-l"s.  Problem reported by Stepan Kasal.
123764 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123766         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123767         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123769 2004-12-04  Simon Josefsson  <jas@extundo.com>
123771         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123772         Vandoorselaere <yoann@prelude-ids.org>.
123774 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123776         Changes imported from coreutils.
123777         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123778         exist.
123779         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123781 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123783         Changes imported from coreutils.
123784         * lib/hard-locale.c: Assume <locale.h> exists.
123785         Include "strdup.h".
123786         (GLIBC_VERSION): New macro.
123787         (hard_locale): Assume setlocale exists.
123788         Rewrite to avoid #ifdef.
123789         Use strdup rather than malloc + strcpy.
123790         * lib/human.c: Assume <locale.h> exists.
123791         (human_readable): Assume localeconv exists.
123793 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123795         * modules/hard-locale (Depends-on): Add strdup.
123797 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123799         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123800         convert T2, not T.  (Imported from libc.)
123802 2004-11-30  Simon Josefsson  <jas@extundo.com>
123804         * modules/restrict (License): Change to LGPL.
123806 2004-11-30  Simon Josefsson  <jas@extundo.com>
123808         * m4/restrict.m4: Add copyright and copying conditions.
123810 2004-11-30  Simon Josefsson  <jas@extundo.com>
123812         * m4/base64.m4: New file.
123814 2004-11-30  Simon Josefsson  <jas@extundo.com>
123816         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123817         base64.
123819         * tests/test-base64.c: New file.
123821         * modules/base64: New file.
123823 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123825         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123826         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123828         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123830 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123832         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123833         (__getcwd.c): Don't restore errno; glibc doesn't.
123834         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123835         first, falling back to our code only if its results look suspicious.
123836         Ensure that the resulting buffer is only as large as necessary.
123838         * lib/readutmp.c: Include readutmp.h first.
123839         Include <errno.h>, since readutmp.h no longer does that.
123840         * lib/readutmp.h: Don't include <errno.h>,
123841         <sys/param.h>, <time.h>; not needed to establish interface.
123842         (errno): Remove decl.
123843         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123844         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123845         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123847 2004-11-28  Simon Josefsson  <jas@extundo.com>
123849         * lib/base64.h, base64.c: New file.
123851 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123853         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123855 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123857         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123858         (Depends-on): Remove pathmax, same.  Add mempcpy.
123859         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123860         (Makefile.am): Append getcwd.h to lib_SOURCES.
123861         (Include): Add getcwd.h.
123862         (Maintainer): Change from Jim Meyering to "all, glibc",
123863         since getdate now uses intended-for-glibc code.
123864         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123865         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123867 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123869         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123870         HP's ANSI C compiler.
123871         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123872         Declaring int functions causes warnings on some modern systems and
123873         shouldn't be needed to compile on ancient ones.
123874         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123875         defined.
123877         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123878         with the following changes.
123879         (__set_errno): Parenthesize properly.
123880         Include <stdbool.h>.
123881         (MIN, MAX, MATCHING_INO): New macros.
123882         (__getcwd): Define with prototype, not K&R form.
123883         Use heuristics to allocate default buffer on stack if possible.
123884         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123885         behavior, and to avoid the PATH_MAX limit when computing
123886         ../../../../...
123887         Use MATCHING_INO to compare inode number to file.
123888         Check for arithmetic overflow in size calculations.
123889         Fix bug in reallocation of dot array that caused getcwd to fail
123890         on directories nested deeper than 75.
123891         Be more careful about saving errno on error.
123892         Do not use realloc; use only free+malloc, as this is a bit
123893         more flexible and avoids a needless copy operation.
123894         Do not inspect st_dev and st_ino for symbolic links; POSIX
123895         doesn't specify the latter.
123896         Check for closedir errors.
123897         Avoid needless casts.
123898         Use "#ifdef weak_alias" around weak_alias, to be like other
123899         glibc code.
123900         The following changes to getcwd.c have effect only when used in
123901         gnulib; they have no effect inside glibc proper.
123902         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123903         as alloca isn't used.
123904         (alloca, __alloca): Likewise.
123905         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123906         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123907         unconditionally, as gnulib assumes C89 or better.
123908         Do not include <sys/param.h>.
123909         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123910         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123911         better.
123912         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123913         Include <dirent.h> in a way that is compatible with modern Autoconf.
123914         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123915         New macros, if not already defined.
123916         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123917         Use "_LIBC", not "defined _LIBC", for consistency.
123918         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123919         a mempcpy module.
123920         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123921         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123922         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123923         credit only to Jim Meyering and adjust the copyright dates.
123924         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123925         <stdlib.h>, <unistd.h>, "pathmax.h".
123926         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123927         (INITIAL_BUFFER_SIZE): Remove.
123928         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123930 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123932         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123933         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123934         Use the _ONCE methods, for efficiency.
123935         Check for fcntl.h.  In test program, include <errno.h>
123936         and <fcntl.h> if available.  Remove old K&R cruft from
123937         test program.  Check for common errors in GNU/Linux,
123938         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
123939         don't do AC_LIBOBJ, as that's getcwd.m4's job.
123940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
123941         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
123942         name accordingly.
123943         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
123944         accommodate new getcwd.c.
123945         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
123946         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123947         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123948         that's all we need now.
123950 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123952         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123953         argp-parse.c depends on getopt internals, that means we should
123954         always use our getopt, to be on the safe side.
123955         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123956         order not to spoil the result of an eventual previous invocation
123957         of gl_GETOPT_SUBSTITUTE.
123959 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123961         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123962         redefinition warnings. To avoid them, include the defines
123963         in `#if !defined __need_getopt ... #endif'. The only place
123964         where __getopt_argv_const is used is in definitions
123965         of getopt_long and getopt_long_only below, which are as well
123966         protected by `#ifndef __need_getopt'.
123967         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123968         __need_getopt after including <stdio.h> and <unistd.h> These
123969         headers might have defined it.
123971 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123973         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123975 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123977         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123978         (futimens): New function, which uses futimes if available.
123979         (futimens, utimens): Support timespec==NULL, with same semantics
123980         as utime and utimens.
123981         * lib/utimens.h (futimens): New decl.
123983 2004-11-23  Jim Meyering  <jim@meyering.net>
123985         * lib/getopt_.h: Remove trailing blanks.
123987 2004-11-23  Jim Meyering  <jim@meyering.net>
123989         * lib/__fpending.c: Add comment.
123991 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123993         * modules/canonicalize (Depends-on): Add xreadlink.
123994         Problem reported by James Youngman.
123996 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123998         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123999         New macros.
124000         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124001         optopt): Use them instead of invoking ## directly; otherwise, the
124002         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124004 2004-11-19  Bruno Haible  <bruno@clisp.org>
124006         * lib/strtok_r.c: Move comments from here...
124007         * lib/strtok_r.h: ... to here.
124009 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124012         implementations that mishandle size_t overflow.
124014 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124016         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124017         might fail.  Problem reported by Yoann Vandoorselaere.
124018         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124019         implementations that mishandle size_t overflow.
124021 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124023         * modules/canon-host (Depends-on): Add strdup.
124025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124027         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124029 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124031         * lib/canon-host.c: Include "strdup.h".
124032         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124033         Use strdup instead of malloc/strcpy to duplicate strings.
124035         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124036         (human_space_before_unit): New constant.
124037         * lib/human.c (human_readable): Support it.
124039         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124040         (xgetcwd): Set errno correctly when failing.
124041         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124042         the failure is actually due to a PATH_MAX problem.
124044         Further getopt changes to make it more likely that glibc will
124045         buy the changes back.
124046         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124047         (getopt): Use it, so to preserve glibc semantic
124048         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124049         when compiling for libc.
124050         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124051         (getopt_long, getopt_long_only): Use it.
124053         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124054         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124055         (getopt): Argv is now char * const *, as per standard.
124056         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124057         not char *__getopt_argv_const *.
124058         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124059         _getopt_long_only_r): Likewise.
124060         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124061         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124062         _getopt_long_r, _getopt_long_only_r): Likewise.
124063         * lib/getopt_.h (__getopt_argv_const): Remove.
124064         (getopt): Argv is now char * const *, as per standard.
124066         * lib/getdate.y (tORDINAL): New token.
124067         (day, relunit): Allow it for relative times.
124068         (relative_time_table): Use tORDINAL for ordinals.
124070 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124072         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124073         Document that "second" isn't allowed as an ordinal number.
124075 2004-11-16  Jim Meyering  <jim@meyering.net>
124077         * modules/closeout (Depends-on): Add fpending.
124079 2004-11-15  Jim Meyering  <jim@meyering.net>
124081         * lib/closeout.c: Include "__fpending.h" once again.
124082         Include <stdbool.h>.
124083         (close_stdout): Don't fail just because stdout was closed initially,
124084         since some programs don't write to stdout in the normal course of
124085         operation (other than --version and --help), and we don't want this
124086         function to make e.g. `touch file >&-' fail.
124087         But do fail if it was closed and someone has tried to write to it.
124088         E.g., `printf foo >&-' must fail.
124090 2004-11-13  Jim Meyering  <jim@meyering.net>
124092         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124094 2004-11-12  Simon Josefsson  <jas@extundo.com>
124096         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124097         small doc fix is still pending.
124099 2004-11-11  Simon Josefsson  <jas@extundo.com>
124101         * modules/strtok_r: New file.
124103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124104         strtok_r.
124106 2004-11-11  Simon Josefsson  <jas@extundo.com>
124108         * m4/strtok_r.m4: New file.
124110         * m4/getopt.m4: Replace opterr.
124112 2004-11-11  Simon Josefsson  <jas@extundo.com>
124114         * lib/strtok_r.h, strtok_r.c: New file.
124116 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124118         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124119         of replacing opterr, getopt, etc.  This should handle the
124120         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124122 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124124         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124125         we can stop lying to compilers about the constness of argv when we
124126         are compiled outside glibc.
124127         (getopt, getopt_long, getopt_long_only): Use it.
124128         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124129         _getopt_internal, getopt): Likewise.
124130         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124131         _getopt_long_only_r): Likewise.
124132         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124133         _getopt_long_r, _getopt_long_only_r): Likewise.
124135         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124136         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124137         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124138         the other external symbols.
124139         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124140         declaration, since the above renaming now works around collisions.
124142 2004-11-11  Jim Meyering  <jim@meyering.net>
124144         * lib/linebreak.c: Remove trailing blanks.
124145         * lib/alloca_.h: Likewise.
124146         * lib/acosl.c: Likewise.
124147         * lib/euidaccess.c: Likewise.
124148         * lib/allocsa.h: Likewise.
124150 2004-11-10  Simon Josefsson  <jas@extundo.com>
124152         * m4/getaddrinfo.m4: New file.
124154 2004-11-10  Simon Josefsson  <jas@extundo.com>
124156         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124158 2004-11-10  Simon Josefsson  <jas@extundo.com>
124160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124161         getaddrinfo.
124163         * modules/getaddrinfo: New file.
124165 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124167         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124169 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124171         * lib/mktime.c (SHR): New macro, which is a portable
124172         substitute for >> that should work even on Crays.
124173         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124174         Problem reported by Mark D. Baushke in
124175         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124176         * lib/getdate.y (SHR): Likewise.
124177         (tm_diff): Use it.
124178         * lib/strftime.c (SHR): Likewise.
124179         (tm_diff): Use it.
124180         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124181         quote_these_too, so that right shifts are well defined.  All uses
124182         changed.
124184 2004-11-10  Jim Meyering  <jim@meyering.net>
124186         Ensure that no close failure goes unreported.
124187         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124188         return early when it seems there's nothing to flush.
124189         Don't include __fpending.h.
124191 2004-11-10  Jim Meyering  <jim@meyering.net>
124193         * modules/closeout (Depends-on): Remove fpending.
124195 2004-11-10  Jim Meyering  <jim@meyering.net>
124197         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124199 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124201         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124202         gl_FUNC_STRFTIME.
124203         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124204         and AC_REQUIRE when possible, to avoid duplicate checks.
124205         Check for <wchar.h>.
124207 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124209         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124211 2004-11-09  Bruno Haible  <bruno@clisp.org>
124213         * m4/sockpfaf.m4: New file.
124215 2004-11-05  Bruno Haible  <bruno@clisp.org>
124217         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124218         Reported by Mark D. Baushke <mdb@cvshome.org>.
124220 2004-11-04  Bruno Haible  <bruno@clisp.org>
124222         2004-09-11  Bruno Haible  <bruno@clisp.org>
124223                 * allocsa.valgrind: New file.
124224         2004-02-06  Bruno Haible  <bruno@clisp.org>
124225                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124226                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124227                 Reported by Christopher Seip <chris.seip@hp.com>.
124229 2004-11-04  Bruno Haible  <bruno@clisp.org>
124231         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124232         (Makefile.am): Distribute it.
124234 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124236         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124237         with errno == ERANGE if the buffer is too small.
124238         Problem reported by Mark D. Baushke.
124240 2004-11-03  Albert Chin  <china@thewrittenword.com>
124241             Paul Eggert  <eggert@cs.ucla.edu>
124243         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124244         equivalent, substitute $ac_type for equivalent type rather than
124245         blindly using uint32_t *always* which won't work if uint32_t is not
124246         available.  Define _UINT32_T to work around typedef of uint32_t if
124247         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124248         2.5.1.
124250 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124252         * m4/jm-macros.m4: Sync from coreutils.
124253         (gl_MACROS): Check for mbrlen, for pathchk.
124254         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124256 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124258         * lib/xreadlink.c (MAXSIZE): New macro.
124259         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124260         size does not exceed MAXSIZE.  Avoid cast.
124261         As suggested by Mark D. Baushke in
124262         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124263         if readlink fails with buffer size just under MAXSIZE, try again
124264         with MAXSIZE.
124266 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124268         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124270 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124271         and  Paul Eggert  <eggert@cs.ucla.edu>
124273         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124274         (get_date): Overparenthesize to avoid GCC warning.
124276 2004-11-02  Bruno Haible  <bruno@clisp.org>
124278         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124279         returns void.
124281 2004-11-02  Bruno Haible  <bruno@clisp.org>
124283         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124284         function returns void.
124286 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124289         fflush_unlocked, flockfile, funlockfile, funlockfile,
124290         fputs_unlocked, putc_unlocked.
124292 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124294         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124295         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124296         already declared.
124298 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124300         * modules/getdate (Files): Add doc/getdate.texi.
124301         (Depends-on): Add setenv, xalloc.
124303 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124305         * lib/getdate.y: Add support for TZ="foo" within a date string.
124306         Fix some bugs near time_t boundaries.  Reject dates with
124307         out-of-range components, e.g., "Sept 31".
124308         Include <stdlib.h>, "setenv.h", "xalloc.h".
124309         (ISDIGIT_LOCALE): Remove; unused.
124310         Note that the TZ and time functions used here are not reentrant.
124311         (mktime_ok, get_tz): New functions.
124312         (TZBUFSIZE): New constant.
124313         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124314         This requires that we sometimes generate our own TZ="XXX..." setting.
124316 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124318         * doc/getdate.texi: New file, from coreutils with modifications for
124319         the new TZ parsing.
124321 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124323         * lib/mktime.c (not_equal_tm): Remove redundant check.
124325 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124327         * modules/regex (lib_SOURCES): Add regex.c.
124328         Reported by James Youngman in
124329         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124331 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124333         * lib/getdate.y: Use Bison 1.875 features, and some minor
124334         code cleanups.  This change does not affect semantics.
124335         Don't include <stdlib.h>; no longer needed.
124336         Don't include unlocked-io.h; only the "#if TEST" code uses
124337         stdio, and performance isn't crucial there.
124338         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124339         Bison 1.875 features as described below.
124340         All uses of "PC." replaced by "pc->".
124341         (YYSTYPE): Add a forward declaration.
124342         (yylex, yyerror): Use full prototypes in forward decls.
124343         Use "%pure-parser" rather than obsolescent "%pure_parser".
124344         Use %parse-param and %lex-param instead of obsolescent
124345         YYPARSE_PARAM and YYLEX_PARAM.
124346         (meridian_table, month_and_day_table, time_units_table,
124347         relative_time_table, time_zone_table, military_table,
124348         lookup_zone, lookup_word, get_date):
124349         Use NULL instead of 0 where appropriate.
124350         (to_hour): Avoid abort (), to avoid a dependency on
124351         stdlib.h.
124352         (yyerror, yylex): Now accepts parser_control * arg.
124353         (main) [TEST]: Use '\0' rather than 0 for char.
124355 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124357         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124359 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124361         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124362         It's now the caller's responsibility to handle the case where
124363         !HAVE_GETPAGESIZE && !defined getpagesize.
124365         * lib/mktime.c (leapyear): Arg is long int, not int.
124367 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124369         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124371 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124373         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124374         missing.  Problem reported by James Youngman.
124376 2004-10-16  Simon Josefsson  <jas@extundo.com>
124378         * gnulib-tool: Fix comments.  Fix parse problem.
124379         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124381 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124383         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124384         implementation of getopt_long.  Problem reported by Alexander Taler in:
124385         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124387 2004-10-15  Bruno Haible  <bruno@clisp.org>
124389         * gnulib-tool: Untabify. Initialize supplied_libname.
124390         (func_usage): More homogenous output.
124391         (func_modules_transitive_closure, func_modules_to_filelist,
124392         func_emit_lib_Makefile_am): New functions.
124393         (func_import): New function, extracted from big case statement. Use
124394         func_get_license, func_modules_transitive_closure,
124395         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124396         opt_lgpl. Don't use test -a, as it's not portable.
124397         (func_create_testdir): Use func_modules_transitive_closure,
124398         func_modules_to_filelist, func_emit_lib_Makefile_am.
124400 2004-10-15  Bruno Haible  <bruno@clisp.org>
124402         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124404 2004-10-15  Bruno Haible  <bruno@clisp.org>
124406         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124407         the portions belonging to each module.
124408         Suggested by Derek Robert Price <derek@ximbiot.com>.
124410 2004-10-12  Simon Josefsson  <jas@extundo.com>
124412         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124413         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124414         to real functions.
124416 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124418         * modules/vsnprintf: New file.
124420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124422         * m4/vsnprintf.m4: New file.
124424 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124426         * lib/vsnprintf.h: New file.
124427         * lib/vsnprintf.c: New file.
124429 2004-10-11  Bruno Haible  <bruno@clisp.org>
124431         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124432         vsnprintf.
124434 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124436         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124438 2004-10-07  Bruno Haible  <bruno@clisp.org>
124440         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124441         fits into the provided buffer.
124443 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124445         * lib/diacrit.c, diacrit.h: Add GPL notice.
124447         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124448         notice.
124449         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124450         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124451         This avoids a potential constant-folding bug.
124453 2004-10-05  Bruno Haible  <bruno@clisp.org>
124455         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124456         for the declaration of strsep.
124458 2004-10-05  Bruno Haible  <bruno@clisp.org>
124460         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124462 2004-10-04  Simon Josefsson  <jas@extundo.com>
124464         * modules/memmem: New file.
124465         * tests/test-memmem.c: New file.
124466         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124468 2004-10-04  Simon Josefsson  <jas@extundo.com>
124470         * m4/memmem.m4: New file.
124472 2004-10-04  Simon Josefsson  <jas@extundo.com>
124474         * lib/memmem.h: New file.
124475         * lib/memmem.c: New file, taken from glibc.
124477 2004-10-04  Simon Josefsson  <jas@extundo.com>
124479         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124480         '#ifdef USE_UNLOCKED_IO'.
124482 2004-10-04  Simon Josefsson  <jas@extundo.com>
124484         * config/srclist.txt: Add memmem from glibc.
124486 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124488         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124490         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124491         modules/exclude, modules/getdate, modules/getline,
124492         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124493         modules/getusershell, modules/linebuffer, modules/md5,
124494         modules/mountlist, modules/posixtm, modules/readtokens,
124495         modules/readutmp, modules/regex, modules/sha1,
124496         modules/version-etc, modules/yesno:
124497         Remove dependency on unlocked-io.
124499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124501         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124503         * m4/unlocked-io.m4: Add copyright notice.
124504         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124506 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124508         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124509         * lib/xmalloc.c (xmemdup): Likewise.
124510         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124511         XFREE): Remove these long-obsolescent macros.
124512         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124513         * lib/xstrdup.c: Remove.
124515         * lib/regex.c (re_comp): Cast gettext return value to char *,
124516         Problem reported by Martin Neitzel via Mark D. Baushke.
124518 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124520         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
124521         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
124522         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
124523         regex.c, sha1.c, version-etc.c, yesno.c:
124524         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
124525         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
124526         the includer's responsibility.
124528         Sync from coreutils.
124530         * lib/modechange.c (mode_compile): Don't decrement a pointer that
124531         points to the start of a string, as the C Standard says the
124532         resulting behavior is undefined.
124534         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
124535         simple -> simple_backups, numbered_existing ->
124536         numbered_existing_backups, numbered -> numbered_backups
124537         to avoid shadowing problems.  All uses changed.
124538         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
124539         * lib/backupfile.c (check_extension, numbered_backup):
124540         Rename locals to avoid shadowing 'basename'.
124541         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
124542         once.
124544         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
124545         * lib/.cvsignore: Add getopt.h.
124547 2004-10-04  Bruno Haible  <bruno@clisp.org>
124549         * modules/README: New file.
124550         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
124551         not a module.
124553 2004-10-02  Jim Meyering  <jim@meyering.net>
124555         * lib/dirfd.h, getpagesize.h: Add copyright notice.
124557 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124559         * modules/strsep: New file.
124561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124563         * m4/strsep.m4: New file.
124565 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124567         * lib/strsep.h: New file.
124568         * lib/strsep.c: New file.
124570 2004-10-01  Simon Josefsson  <jas@extundo.com>
124572         * lib/snprintf.c (snprintf): Handle size==0.
124574 2004-10-01  Simon Josefsson  <jas@extundo.com>
124575             Bruno Haible  <bruno@clisp.org>
124577         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
124578         (snprintf): Declare 'args'.
124580 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
124582         * lib/snprintf.c: Remove comments as to why each header is needed.
124584 2004-10-01  Bruno Haible  <bruno@clisp.org>
124586         * MODULES.html.sh: Add strsep.
124588 2004-09-30  Simon Josefsson  <jas@extundo.com>
124590         * modules/snprintf: New file.
124592 2004-09-30  Simon Josefsson  <jas@extundo.com>
124594         * m4/snprintf.m4: New file.
124596 2004-09-30  Simon Josefsson  <jas@extundo.com>
124598         * lib/snprintf.h, lib/snprintf.c: New files.
124600 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124602         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124603         (hol_entry_help): Never translate an empty string.
124604         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124605         * lib/argp.h (OPTION_NO_TRANS): New option.
124607 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124609         * modules/argp (Maintainer): Replace Simon Josefsson
124610         by Sergey Poznyakoff.
124612 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124614         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124615         changes merged back into glibc.
124617 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124619         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124621 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124623         * lib/xvasprintf.c: Include xalloc.h.
124624         (xvasprintf): Use xalloc_die, not xmalloc_die.
124626 2004-09-29  Bruno Haible  <bruno@clisp.org>
124628         * modules/alloca-opt: New file, derived from modules/alloca.
124629         * modules/allocsa: Depend on alloca-opt instead of alloca.
124630         * modules/setenv: Likewise.
124631         * modules/vasnprintf: Likewise.
124632         * MODULES.html.sh: Add alloca-opt.
124634 2004-09-28  Simon Josefsson  <jas@extundo.com>
124636         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124637         LGPL, and to replace license template from GPL to LGPL.
124639 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124641         * modules/dummy: Change license to LGPL.
124643 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124645         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124647 2004-09-24  Simon Josefsson  <jas@extundo.com>
124649         * modules/minmax (License): Change from GPL to LGPL.
124651 2004-09-23  Simon Josefsson  <jas@extundo.com>
124653         * gnulib-tool (--import): Typo.
124655 2004-09-23  Simon Josefsson  <jas@extundo.com>
124657         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124659 2004-09-22  Bruno Haible  <bruno@clisp.org>
124661         * modules/*: Add 'License' field.
124662         * gnulib-tool: Accept --extract-license option.
124663         (func_get_license): New function.
124665 2004-09-21  Bruno Haible  <bruno@clisp.org>
124667         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124668         Reported by Simon Josefsson.
124670 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124672         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124673         gl_AC_TYPE_LONG_LONG.
124675 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124677         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124679 2004-09-18  Simon Josefsson  <jas@extundo.com>
124680         and  Paul Eggert  <eggert@cs.ucla.edu>
124682         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124683         calls with autoreconf.  Define GL_LIB.
124685 2004-09-14  Karl Berry  <karl@gnu.org>
124687         * config/srclist.txt: unsync setenv.c, sigh.
124689 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124691         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124692         Problem reported by Bruno Haible in:
124693         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124695 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124697         * config/srclist.txt: Comment out argp-pvh.c.
124699 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124701         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124702         in case some system header has #define'd it.  Problem reported by
124703         Soeren D. Schulze in
124704         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124706 2004-09-09  Karl Berry  <karl@gnu.org>
124708         * regex.[ch]: delete from the root.  These were supposed to be
124709                 synced with emacs cvs, but this has not happened for about
124710                 a year, and anyway nothing else uses emacs regex.[ch].
124711                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124712                 lib/regex[.ch] is untouched.
124714 2004-09-09  Bruno Haible  <bruno@clisp.org>
124716         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124718 2004-09-09  Bruno Haible  <bruno@clisp.org>
124720         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124721         modifications.
124722         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124724 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124726         * modules/xvasprintf: New file.
124727         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124729 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124731         * lib/xvasprintf.h: New file.
124732         * lib/xvasprintf.c: New file.
124733         * lib/xasprintf.c: New file.
124735 2004-09-08  Bruno Haible  <bruno@clisp.org>
124737         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124739 2004-09-08  Bruno Haible  <bruno@clisp.org>
124741         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124742         length is > INT_MAX.
124743         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124744         more.
124746 2004-09-08  Bruno Haible  <bruno@clisp.org>
124748         * lib/stdint_.h: New file, taken from GNU clisp.
124750 2004-09-08  Bruno Haible  <bruno@clisp.org>
124751             Oskar Liljeblad  <oskar@osk.mine.nu>
124753         * modules/stdint: New file.
124754         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124756 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124758         Import from coreutils.
124759         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124760         strings on unbounded length.  alloca's performance benefits aren't
124761         that important here.
124762         (V_STRDUP): Remove.
124763         (parse_with_separator): New function, with most of the internals
124764         of the old parse_user_spec.  Allow user to omit both user and group,
124765         for compatibility with FreeBSD.
124766         Clone only the user name, not the entire spec.
124767         Do not set *uid, *gid unless entirely successful.
124768         Avoid memory leak in some failing cases.
124769         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124770         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124771         (parse_user_spec): Rewrite to use parse_with_separator.
124773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124775         * modules/userspec: Don't depend on alloca.
124777 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124779         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124781 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124783         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124784         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124785         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124787 2004-08-16  Simon Josefsson  <jas@extundo.com>
124789         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124790         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124791         Add --dry-run for --import.
124792         Let user provided command line parameters override configure.ac
124793         settings.
124795 2004-08-12  Simon Josefsson  <jas@extundo.com>
124797         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124798         as discussed with Paul Eggert in threads rooted at
124799         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124800         and
124801         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124802         Before, the test was empty, and relied on ELIDE_CODE in source
124803         code.)
124804         (gl_PREREQ_GETOPT): New macro.
124805         (gl_GETOPT): Use them.
124807 2004-08-12  Simon Josefsson  <jas@extundo.com>
124809         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124810         * lib/getopt_.h: Renamed from getopt.h.
124812 2004-08-12  Simon Josefsson  <jas@extundo.com>
124814         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124815         Change default library name from libfoo to libgnu.
124816         Now, if you have a configure.ac that says:
124817                 gl_SOURCE_BASE(gl)
124818                 gl_M4_BASE(gl/m4)
124819                 gl_MODULES(error getopt etcetera)
124820                 gl_INIT
124821         you can import all you need by running:
124822                 ../gnulib/gnulib-tool --import
124824         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124825         (Makefile.am): Rewrite, use logic from argz.
124826         (Include): Use <getopt.h> instead of "getopt.h".
124828 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124830         * modules/argp (Files): Add m4/unlocked-io.m4.
124831         (Depends-on): Add extensions.
124833 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124835         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124836         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124837         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124838         Check for program_invocation_name, program_invocation_short_name,
124839         flockfile, funlockfile, features.h, _getopt_long_only_r.
124841 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124843         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124844         its complicated substitute.
124845         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124846         and program_invocation_name.
124847         (__argp_basename) [!_LIBC]: Remove; the only use was
124848         replaced by its body.
124849         (__argp_short_program_name): Change condition from
124850         !defined __argp_short_program_name to
124851         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124852         to match argp-namefrob.h.
124853         (__argp_failure): Don't assume strerror_r returns char *.
124854         * lib/argp-parse.c (N_): Define unconditionally.
124855         (argp_default_options): Fill out initializers with 0 to avoid
124856         gcc warnings.
124858 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124860         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124861         getopt1.c.
124863 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124865         Merge from coreutils.
124867         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124869         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124870         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124872 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124874         Merge from coreutils.
124876         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124877         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124878         for Reliant Unix 5.43.
124880         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124881         (union fooround): Use uintmax_t, not long int.
124882         The rest is a merge from libc:
124883         [defined _LIBC]: Include <shlib-compat.h>.
124884         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124886         * lib/settime.c (settime): Recode to avoid warning with
124887         Sun Forte C 6U2.
124889         * lib/strverscmp.c: Convert to UTF-8.
124891 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124893         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124894         m4/uintmax_t.m4.
124896 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124898         * modules/xalloc-die: New file.
124899         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124901         * modules/md5 (Files): Add m4/uint32_t.m4.
124902         * modules/sha1: Renamed from modules/sha.
124903         (Files):
124904         Rename lib/sha.h to lib/sha1.h.
124905         Rename lib/sha.c to lib/sha1.c.
124906         Rename m4/sha.m4 to m4/sha1.m4.
124907         (lib_SOURCES): Likewise.
124908         (configure.ac): Rename gl_SHA to gl_SHA1.
124909         (Include): sha.h -> sha1.h.
124911 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124913         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124914         * m4/sha1.m4: Renamed from sha.m4.
124915         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124917 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124919         * lib/obstack.h (obstack_empty_p):
124920         Don't assume that chunk->contents is suitably aligned.
124921         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124922         Likewise. Problem reported by Benno in
124923         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124925         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124926         readable.  This could be improved further but it'd take some work.
124928 2004-08-08  Simon Josefsson  <jas@extundo.com>
124930         * modules/xgethostname (Depends-on): Remove exit and error (not
124931         used).
124933         * modules/getpass-gnu: Add getpass.h.
124934         (Depends-on): Add stdbool.
124935         * modules/getpass: Add getpass.h.
124937 2004-08-08  Simon Josefsson  <jas@extundo.com>
124939         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
124940         Check getpass declaration.
124942 2004-08-08  Simon Josefsson  <jas@extundo.com>
124944         * lib/xgethostname.c: Don't include error.h (not used).
124946         * lib/getpass.h: Add.
124947         * lib/getpass.c: Include getpass.h first.
124949 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124951         * lib/xalloc-die.c: New file.
124952         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124953         All uses removed.
124954         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124955         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124956         xalloc-die.c.
124957         (_, N_, xalloc_die): Move to xalloc-die.c.
124958         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124959         so that we needn't mess with xalloc_msg_memory_exhausted.
124961         * lib/sha1.h: Renamed from sha.h.
124962         (SHA1_H): Renamed from _SHA_H.
124963         (sha1_ctx): Renamed from sha_ctx.
124964         (sha1_init_ctx): Renamed from sha_init_ctx.
124965         (sha1_process_block): Renamed from sha_process_block.
124966         (sha1_process_bytes): Renamed from sha_process_bytes.
124967         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124968         (sha1_read_ctx): Renamed from sha_read_ctx.
124969         (sha1_stream): Renamed from sha_stream.
124970         (sha1_buffer): Renamed from sha_buffer.
124971         * lib/sha1.c: Likewise; renamed from sha.c.
124972         Do not include <sys/types.h>.
124973         Include <stddef.h> rather than <stdlib.h>.
124975 2004-08-08  Bruno Haible  <bruno@clisp.org>
124977         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124978         FILESYSTEM_PREFIX_LEN.
124979         * lib/progreloc.c: Likewise.
124980         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124982 2004-08-06  Simon Josefsson  <jas@extundo.com>
124984         * modules/progname (Depends-on): Don't depend on stdbool.
124986 2004-08-06  Simon Josefsson  <jas@extundo.com>
124988         * modules/getsubopt: New file.
124989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124990         getsubopt.
124992 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124994         More merge from coreutils.
124996         * m4/utimens.m4, m4/utimecmp.m4: New files.
124997         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124998         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124999         prereq.m4, sha.m4: Import changes from coreutils.
125001 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125003         More merge from coreutils.
125004         * modules/raise, modules/readtokens0, modules/utimens:
125005         * modules/utimecmp, module/xnanosleep: New files.
125006         * modules/strftime: Add lib/strftime.h.
125007         Change include from <time.h> to "strftime.h".
125008         * modules/yesno: Add lib/yesno.h.
125009         * modules/backupfile: Remove lib/addext.c.
125010         * modules/euidaccess: Add stat-macros.h.
125011         * modules/canonicalize, modules/euidaccess,
125012         modules/filemode, modules/lchown, modules/makepath,
125013         modules/rmdir, modules/stat: Likewise.
125015 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125017         Merge from tar.
125018         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125019         SIZE_MAX is a valid preprocessor constant.
125020         (__argp_basename): Change from "#ifndef _LIBC"
125021         to "#ifndef __argp_short_program_name", so that
125022         we don't compile these functions for tar.
125024         More merges from coreutils.
125025         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125026         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125027         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125028         * lib/addext.c: Remove; no longer needed.
125029         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125030         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125031         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125032         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125033         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125034         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125035         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125036         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125037         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125038         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125039         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125040         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125041         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125042         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125043         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125044         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125045         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125046         Import changes from coreutils.
125048 2004-08-05  Simon Josefsson  <jas@extundo.com>
125050         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125052 2004-08-05  Simon Josefsson  <jas@extundo.com>
125054         * m4/getsubopt.m4: New file.
125056 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125058         Merge from coreutils.
125060         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125061         * m4/getcwd-path-max.m4: New files.
125063         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125064         FILESYSTEM_PREFIX_LEN ->
125065         FILE_SYSTEM_PREFIX_LEN.
125066         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125067         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125068         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125069         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125071         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125072         prerequisite modules now handle the DOS stuff.
125073         Don't check for unistd.h.
125075 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125077         Merge from coreutils.
125079         * lib/.gdb-history: Remove; this doesn't belong here.
125081         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125082         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125083         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125084         * lib/getcwd.c: New files.
125086         * lib/dirname.h: Include <stdbool.h>.
125087         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125088         for consistency with POSIX terminology.  All uses changed.
125089         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125090         (strip_trailing_slashes): Use bool for booleans.
125091         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125093         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125094         sometimes returns a positive errno value even when it succeeds.
125095         (print_errno_message) [!LIBC]: Fall back on strerror if
125096         __strerror_r fails.
125098         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125099         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125100         (longest_relative_suffix): New function.
125101         (path_concat): Use it.  Assume first argument is not NULL.
125102         Port to DOS.  Omit redundant separators.
125103         Report an error instead of returning NULL.
125104         Use mempcpy instead of memcpy.
125105         (xpath_concat): Remove: not declared or used.
125107         * lib/same.h: Include <stdbool.h>
125108         (same_name): Return bool, not int.
125109         * lib/same.c (same_name): Likewise.
125110         (errno): Don't declare; we assume C89 or better now.
125112         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125113         if not already defined.
125115         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125116         * lib/dup-safer.c (errno): Likewise.
125118 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125120         Merge from coreutils.
125121         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125122         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125123         * modules/path-concat: Don't depend on strdup.
125125 2004-08-03  Simon Josefsson  <jas@extundo.com>
125127         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125128         * lib/progname.h: Don't include stdbool.h.
125130 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125132         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125133         * MODULES.html.sh (func_all_modules): Remove fatal.
125135 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125137         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125139 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125141         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125142         working.
125144 2004-08-02  Simon Josefsson  <jas@extundo.com>
125146         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125147         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125148         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125150 2004-08-01  Simon Josefsson  <jas@extundo.com>
125152         * lib/xgetdomainname.c: Include stdlib.h, for free().
125154 2004-07-19  Bruno Haible  <bruno@clisp.org>
125156         * MODULES.html.sh (func_all_modules): Add dummy.
125158 2004-07-16  Simon Josefsson  <jas@extundo.com>
125160         * modules/dummy: New file.
125162 2004-07-16  Simon Josefsson  <jas@extundo.com>
125164         * lib/dummy.c: New file.
125166 2004-07-16  Bruno Haible  <bruno@clisp.org>
125168         * lib/backupfile.h: Add extern "C" for C++.
125169         * lib/closeout.h: Likewise.
125170         * lib/copy-file.h: Likewise.
125171         * lib/findprog.h: Likewise.
125172         * lib/full-write.h: Likewise.
125173         * lib/pathname.h: Likewise.
125174         * lib/progname.h: Likewise.
125175         * lib/stpcpy.h: Likewise.
125176         * lib/stpncpy.h: Likewise.
125177         * lib/strcase.h: Likewise.
125178         * lib/strstr.h: Likewise.
125179         * lib/xalloc.h: Likewise.
125181         * lib/mbswidth.h: Add extern "C" for C++.
125182         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125184 2004-07-13  Robert Millan  <robertmh@gnu.org>
125186         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125188 2004-07-09  Simon Josefsson  <jas@extundo.com>
125190         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125191         failed without this.)
125193 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125195         * modules/chown (Files): Add lib/fchown-stub.c, since
125196         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125198 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125200         * lib/fchown-stub.c: New file.
125202 2004-06-24  Jim Meyering  <jim@meyering.net>
125204         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125206 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125208         * modules/argz: Omit "#include".
125210         * MODULES.html.sh (func_all_modules): Add calloc, to match
125211         2004-06-01 addition of calloc module.
125213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125215         * m4/argz.m4: New file, which is autoupdated from libtool.
125217 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125219         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125220         libtool.
125222 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125224         * config/srclist-update: Don't insist on "USA." before the
125225         close-comment, as libtool omits the period and puts the */ on a
125226         separate line.
125227         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125228         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125230 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125232         * modules/argz: New file.
125233         * MODULES.html.sh (func_all_modules): Add argz.
125235 2004-06-12  Jim Meyering  <jim@meyering.net>
125236         and  Paul Eggert  <eggert@cs.ucla.edu>
125238         * modules/hash (Files): Add lib/xalloc.h.
125239         * modules/pipe (Depends-on): Add wait-process.
125240         * modules/stat (Depends-on): Add xalloc.
125241         * modules/userspec (Files): Add lib/userspec.h.
125242         * modules/xstrto
125244         Upgrade from gettext-0.13.
125245         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125246         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125247         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125249 2004-06-10  Jim Meyering  <jim@meyering.net>
125251         * lib/calloc.c: New file.
125253 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125255         * lib/getdate.y (yylex): Allow space between sign and number.
125256         Problem reported by Dan Jacobson.
125258 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125260         Merge from coreutils CVS.
125262         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125263         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125264         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125265         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125266         xstrtol.m4: Fix copyright date and/or serial number.
125268         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125269         See if we need an fchown replacement.
125270         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125271         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125272         and use the replacement function if we detect either defect.
125274         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125275         gl_UTIMECMP.
125277 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125278         and  Jim Meyering  <jim@meyering.net>
125280         Merge from coreutils CVS.
125282         * lib/stat-macros.h: New file, with contents from file-type.h
125283         and coreutils' system.h.
125284         * lib/file-type.c: Include "stat-macros.h".
125285         * lib/file-type.h (file_type): Move all macro definitions to new file,
125286         stat-macros.h.
125288         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125289         Wrap old code with this conditional.
125290         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125291         function that does not dereference symlinks.
125292         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125294         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125295         dependency problems.
125296         (xreadlink): Accept new arg SIZE, for efficiency.
125297         All decls and uses changed.
125298         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125300         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125301         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125303         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125304         sysexits.h.
125306 2004-06-01  Jim Meyering  <jim@meyering.net>
125308         * m4/calloc.m4: New file.
125310 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125313         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125314         Also, fix a typo in a diagnostic.
125316 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125319         or AC_FUNC_REALLOC.
125321 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125323         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125324         macros to be defined.
125325         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125326         the allocator returns NULL because the requested size is zero.
125328 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125330         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125331         var.  Add comment explaining why libc still defines it.  This
125332         merges the following patch from glibc:
125333         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125335 2004-05-20  Andreas Schwab  <schwab@suse.de>
125337         * m4/free.m4: Replace free if it not known to work, not the other
125338         way round.
125340 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125342         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125343         present in glibc since revision 1.1 of this file.
125344         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125345         obstack_alignment_mask, obstack_alloc, obstack_base,
125346         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125347         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125348         obstack_grow0, obstack_init, obstack_int_grow,
125349         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125350         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125351         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125352         nonexistent functions.
125354 2004-05-18  Karl Berry  <karl@gnu.org>
125356         * config/srclist.txt: break link for vasnprintf.c.
125358 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125360         Port obstack to the AS/400, where pointers are 16 bytes wide and
125361         you cannot cast an integer to a valid pointer.  This patch is
125362         currently waiting to be integrated into glibc; see
125363         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125365         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125366         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125367         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125368         (struct obstack): temp member is now a union of a pointer and
125369         an integer, instead of an integer.  All integer uses changed.
125370         This does not affect the physical layout of struct obstack,
125371         except on hosts (like the AS/400) where the size or alignment of
125372         void * is greater than that of ptrdiff_t.
125373         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125374         __STDC__)]: Store temporary in pointer member of union, not
125375         integer member.
125376         * lib/obstack.c: Include <stddef.h>, for offsetof.
125377         (struct fooalign): Remove; it doesn't need a name.
125378         (union fooround): Change double to long double, and add void *.
125379         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125380         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125381         not a macro.  Hence the values are always int; so remove all
125382         casts-to-int in uses.
125384 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125386         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125387         we can get this patch merged into glibc.
125389 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125390             Paul Eggert  <eggert@cs.ucla.edu>
125392         * m4/argp: Depend on alloca.
125394 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125395             Paul Eggert  <eggert@cs.ucla.edu>
125397         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125398         freecoding.
125400 2004-05-17  Bruno Haible  <bruno@clisp.org>
125402         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125403         precision that consists of a '.' followed by an empty digit string.
125404         Patch by Tor Lillqvist <tml@iki.fi>.
125406 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125408         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125409         for backward compatibility with older code.  We need our own
125410         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125411         it under some other name, and our alloca.h will define it.
125413 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125414             Derek Price  <derek@ximbiot.com>
125416         * lib/alloca.c: Include <alloca.h>, to get our interface.
125417         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125418         include <alloca.h> first.  Use C89 prototype for alloca; this
125419         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125420         Use #elif for simplicity, since we can assume C89 now.
125421         Don't try to source the system alloca.h since it will not be found
125422         and to prevent recursively including its replacement.
125423         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125424         * lib/regex.c: Likewise.
125426 2004-05-16  Derek Price  <derek@ximbiot.com>
125427             Paul Eggert  <eggert@cs.ucla.edu>
125429         getline cleanup.  This changes the getndelim2 API: both order of
125430         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125431         no delimiter).
125433         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125434         interface does that.
125435         (getline): Always use getdelim, so that we don't have two
125436         copies of this code.
125437         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125438         if available.
125439         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125440         (GETNDELIM2_MAXIMUM): New macro.
125441         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125442         instead of the old practice of delim2==0.  All callers changed.
125443         Return -1 on overflow, instead of returning junk.
125444         Do not set *linesize unless allocation succeeds.
125445         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125446         that we include sys/types.h.
125447         * lib/getnline.h: Likewise.
125448         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125449         (getndelim2): Reorder arguments.
125450         * lib/getnline.c (getnline, getndelim):
125451         Don't discard the NMAX argument.
125452         (getnline): Invoke getndelim, to avoid code duplication.
125453         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125454         of (size_t) -1 by callers of the getnline family.
125456 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125458         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125459         Check for gettimeofday.
125460         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125461         Check for settimeofday, stime.
125463 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125465         * lib/nanosleep.c (suspended): Change its type from int to
125466         sig_atomic_t volatile.
125467         (first_call): Make it private to rpl_nanosleep, and have it
125468         be zero initially as that's a bit faster.
125469         (my_usleep): Round up fractional times instead of truncating them,
125470         as this is the usual meaning for 'sleep'.
125472         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125473         doesn't work.
125474         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125475         (ENOSYS): Define if not defined.
125476         (settime): Fall back on stime if it exists and settimeofday fails.
125477         But don't bother with fallbacks if a method fails with errno == EPERM.
125479 2004-05-11  Jim Meyering  <jim@meyering.net>
125481         Prior to this change, the save_cwd caller required read access to the
125482         current directory on most systems (ones with the fchdir function).
125484         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125485         fails, try write-only, and finally, resort to using xgetcwd.
125487 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125489         * lib/obstack.c, obstack.h: Import changes from libc.
125491 2004-04-28  Bruno Haible  <bruno@clisp.org>
125493         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125494         also implicitly appends .exe to executables.
125495         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125496         accepts Windows pathnames.
125497         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125498         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125499         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125500         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125501         Reported by Derek Robert Price <derek@ximbiot.com>.
125503 2004-04-21  Karl Berry  <karl@gnu.org>
125505         * config/srclist.txt (localcharset.c): break sync.
125507 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125509         * m4/host-os.m4: Add a copyright notice.
125511 2004-04-20  Jim Meyering  <jim@meyering.net>
125513         Change UTILS_ to gl_ in AC_DEFINE'd names.
125514         Change utils_- and jm_-prefixed variables, too.
125515         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
125516         UTILS_FUNC_MKDIR_TRAILING_SLASH.
125517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
125519         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
125520         Don't emit trailing blanks.
125521         Also rename jm_-prefixed variables to have gl_ prefix.
125523         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
125524         Also rename jm_-prefixed variables to have gl_ prefix.
125526         * m4/jm-macros.m4: Reflect the renamings.
125527         * m4/prereq.m4: Likewise.
125529 2004-04-20  Jim Meyering  <jim@meyering.net>
125531         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
125532         memory.
125534 2004-04-20  Jim Meyering  <jim@meyering.net>
125535             Bruno Haible  <bruno@clisp.org>
125537         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
125538         memory when realloc fails.
125540 2004-04-19  Jim Meyering  <jim@meyering.net>
125542         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
125543         now that readutmp.c may call `free (0)'.
125545 2004-04-19  Bruno Haible  <bruno@clisp.org>
125547         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
125548         * m4/inttypes_h.m4: Likewise.
125549         * m4/stdint_h.m4: Likewise.
125550         * m4/intmax_t.m4: Likewise.
125551         * m4/uintmax_t.m4: Likewise.
125553 2004-04-18  Jim Meyering  <jim@meyering.net>
125555         * m4/prereq.m4: Don't forbid jm_ prefix.
125557         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
125558         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
125559         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
125560         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
125561         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
125562         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
125563         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
125564         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
125565         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
125566         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
125567         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
125568         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
125569         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
125570         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
125571         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
125572         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
125573         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
125574         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
125575         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
125577 2004-04-18  Jim Meyering  <jim@meyering.net>
125579         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
125580         failure, don't leak memory and do call END_UTMP_ENT.
125582 2004-04-16  Jim Meyering  <jim@meyering.net>
125584         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
125585         coreutils' stat program.
125586         (gl_PREREQ): Don't require jm_PREREQ_STAT.
125588 2004-04-11  Paul Eggert  <eggert@twinsun.com>
125590         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
125591         C89.
125592         (CHAR_BIT): Remove, since we assume C89.
125593         Include <stdint.h> if available, as per current Autoconf CVS advice.
125595 2004-03-31  Jim Meyering  <jim@meyering.net>
125597         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125598         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125599         * m4/xalloc.m4: Likewise.
125601 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125603         Merge from coreutils.
125605         * m4/inttostr.m4: New file.
125606         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125607         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125608         Require gl_CLOCK_TIME.
125609         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
125611 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125613         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125614         not bool, to be more consistent with Unix conventions.
125615         Suggested by Bruno Haible.
125617         Merge from coreutils.
125619         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125620         * lib/umaxtostr.c: New files.
125622         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125623         the usual <time.h> dance.
125624         (get_date): Change signature to support fractional time stamps.
125625         All callers changed.
125626         * lib/getdate.y: Include "getdate.h" first, as we can now
125627         assume C89 and don't need to worry about 'const'.
125628         Similarly, include "unlocked-io.h" near start, not in middle.
125629         Include <limits.h>.
125630         (textint.value): Use long int rather than int.
125631         (textint.digits): Use size_t rather than int.
125632         (BILLION, LOG10_BILLION): New constants.
125633         (parser_control): New member rel_ns.  Members day_ordinal,
125634         time_zone, month, day, hour, minutes, rel_year, rel_month,
125635         rel_day, rel_hour, rel_minutes, rel_seconds
125636         are now long int, not int.  Member seconds is now struct timespec,
125637         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125638         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125639         not int.
125640         (%union.intval): Now long int, not int.
125641         New member timespec.
125642         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125643         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125644         (spec): Now is a timespec or an item list.
125645         (timespec, items): New nonterminals.
125646         (time, rel, relunit, number, get_date):
125647         Add support for fractional seconds.
125648         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125649         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125650         (to_hour): First arg is now long int, not int.
125651         (to_year): Returns long int, not int.
125652         Don't treat year -70 like 70.
125653         (tm_diff): Returns long int, not int.
125654         (lookup_word): Use bool instead of int when appropriate.
125655         (yylex): Use size_t for count, not int.
125656         Detect overflow when parsing large integer constants.
125657         Add support for fractions.
125658         (get_date): Make pointers 'const' if possible.
125659         Use more-portable code to detect integer overflow.
125660         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125661         Don't use ctime; it's not reliable if the year has >4 digits.
125663         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125664         This is for compatibility with BSD.
125666         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125667         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125668         From coreutils' system.h.
125670         * lib/userspec.c: Don't include "posixver.h".
125671         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125672         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125673         compatible extension.  Simplify code by removing a boolean int
125674         that was always nonzero if a string was nonnull.
125676 2004-03-30  Jim Meyering  <jim@meyering.net>
125678         Merge from coreutils.
125680         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125681         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125682         on some systems one must include <grp.h> before it.
125683         Reported by Christian Krackowizer.
125685 2004-03-30  Jim Meyering  <jim@meyering.net>
125687         Merge from coreutils.
125689         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125691         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125692         an empty input stream.
125694         * lib/readtokens.c: Include <stdbool.h>.
125695         (readtoken): Use `size_t' rather than int/long.
125696         All callers adjusted.
125697         Use `bool' rather than `int' where appropriate.
125698         Use memset rather than an explicit loop.
125699         Use x2nrealloc rather than xrealloc.
125700         Allow the use of `\0' as a delimiter.
125701         (readtokens): Likewise.
125702         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125704 2004-03-30  Jim Meyering  <jim@meyering.net>
125706         * m4/realloc.m4: Remove file, since now it does no more than
125707         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125708         the `configure.ac' section of module/realloc.
125709         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125711 2004-03-30  Bruno Haible  <bruno@clisp.org>
125713         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125714         nonnull.
125716 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125718         Merge changes to getloadavg.c from coreutils and Emacs.
125720         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125721         Define to an expression, not to the empty string.
125722         Include cloexec.h and xalloc.h.
125723         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125724         Use set_cloexec_flag rather than rolling our own.
125725         * lib/cloexec.c, lib/cloexec.h: New files.
125727 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125729         * m4/cloexec.m4: New file.
125731 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125733         * lib/getopt.h: Sync with libc CVS.
125735 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125736             Bruno Haible  <bruno@clisp.org>
125738         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125739         mbswidth.
125741 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125742             Bruno Haible  <bruno@clisp.org>
125744         * lib/mbswidth.h: Include <wchar.h> only if
125745         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125746         <wchar.h>.
125747         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125749 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125751         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125752         Sync with libc CVS.
125753         * lib/getopt_int.h: New file, also synced from libc.
125755 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125757         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125758         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125759         Bring back getopt.c, getopt.h, getopt1.c.
125761 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125763         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125764         All uses changed.  Check for sa_sigaction member; this fixes
125765         a bug first reported by Jason Andrade in
125766         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125768 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125770         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125771         '#if' expressions.  Unlike the code it replaces, it does not
125772         depend on (defined _SC_PAGESIZE).  However, it does depend on
125773         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125774         first reported by Jason Andrade in
125775         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125777 2004-02-25  Simon Josefsson  <jas@extundo.com>
125779         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125781 2004-02-25  Simon Josefsson  <jas@extundo.com>
125783         * lib/strdup.h: New file.
125784         * lib/strdup.c: Include it.
125785         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125786         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125788 2004-02-23  Karl Berry  <karl@gnu.org>
125790         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125791         (from fencepost.gnu.org:/gd/gnuorg).
125793 2004-02-23  Karl Berry  <karl@gnu.org>
125795         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125796         * config/srclist.txt: add maintain/standards documents.
125798 2004-02-18  Bruno Haible  <bruno@clisp.org>
125800         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125801         Reported by Derek Robert Price <derek@ximbiot.com>.
125803 2004-02-16  Karl Berry  <karl@gnu.org>
125805         * config/mkinstalldirs, install-sh: update from automake.
125807 2004-02-06  Karl Berry  <karl@gnu.org>
125809         * m4/po.m4: update from gettext 0.14.1.
125811 2004-02-06  Karl Berry  <karl@gnu.org>
125813         * lib/config.charset: update from gettext 0.14.1.
125815 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125817         Add comments and code, prompted by suggestions from Bruno Haible
125818         for sh-quote.
125819         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125820         describing the enum quoting_style values.
125821         * lib/quotearg.c (quotearg_alloc): New function.
125822         (quotearg_buffer_restyled): Treat lone { and } as special.
125823         Treat = as special.  Work around bug with older shells
125824         that "see" a '\' that is really the 2nd byte of a multibyte char.
125825         Quote empty string with shell_quoting_style.
125827 2004-02-03  Bruno Haible  <bruno@clisp.org>
125829         * m4/pipe.m4: New file, from GNU gettext.
125831 2004-02-03  Bruno Haible  <bruno@clisp.org>
125833         * lib/pipe.h: New file, from GNU gettext.
125834         * lib/pipe.c: New file, from GNU gettext.
125836 2004-01-27  Bruno Haible  <bruno@clisp.org>
125838         * m4/execute.m4: New file, from GNU gettext.
125840 2004-01-27  Bruno Haible  <bruno@clisp.org>
125842         * lib/execute.h: New file, from GNU gettext.
125843         * lib/execute.c: New file, from GNU gettext.
125844         * lib/w32spawn.h: New file, from GNU gettext.
125846 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125848         Merge from diffutils.
125850         * lib/file-type.c (file_type): Add typed memory objects.
125851         * lib/file-type.h (S_TYPEISTMO): New macro.
125853         * lib/c-stack.h (c_stack_action): Remove argv argument.
125854         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125855         (die): Don't calculate message unless segv_action returns.
125856         (get_stack_location, min_address_from_argv, max_address_from_argv,
125857         volatile stack_base, volatile_stack_size): Remove.
125858         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125859         that every segmentation violation is a stack overflow.  (Ouch!)
125860         See Debian bug 136249 (still outstanding) for more info about why
125861         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125863 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125865         Exit-status fix from coreutils.
125867         Use exit_failure consistently in place of EXIT_FAILURE,
125868         so that program exit statuses are consistent on failure.
125870         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125871         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125872         * lib/argmatch.h: Comment fix to match the above.
125873         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125874         Now a macro referring to exit_failure, instead of a separate
125875         variable.  Include "exitfail.h" to get it.
125876         * lib/xstrtol.h: Include "exitfail.h".
125877         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125879         * lib/long-options.c (parse_long_options): Use prototype
125880         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125881         for clarity.
125883 2004-01-21  Jim Meyering  <jim@meyering.net>
125885         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125886         so as not to conflict with a different-sized __mktime_internal
125887         function in GNU libc.
125888         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125889         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125891 2004-01-20  Karl Berry  <karl@gnu.org>
125893         * config/config.guess: update from config.
125895         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125897 2004-01-20  Bruno Haible  <bruno@clisp.org>
125899         Safer stack allocation.
125900         * lib/setenv.c: Include allocsa.h.
125901         (alloca): Remove fallback definition.
125902         (freea): Remove macro.
125903         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125904         instead of freea.
125906 2004-01-20  Bruno Haible  <bruno@clisp.org>
125908         * m4/eealloc.m4: New file, from GNU gettext.
125910 2004-01-20  Bruno Haible  <bruno@clisp.org>
125912         * m4/allocsa.m4: New file, from GNU gettext.
125914 2004-01-20  Bruno Haible  <bruno@clisp.org>
125916         * lib/xallocsa.h: New file, from GNU gettext.
125917         * lib/xallocsa.c: New file, from GNU gettext.
125919 2004-01-20  Bruno Haible  <bruno@clisp.org>
125921         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125923 2004-01-20  Bruno Haible  <bruno@clisp.org>
125925         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125926         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125927         specially.
125929 2004-01-20  Bruno Haible  <bruno@clisp.org>
125931         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125932         patch.
125934 2004-01-20  Bruno Haible  <bruno@clisp.org>
125936         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
125938 2004-01-20  Bruno Haible  <bruno@clisp.org>
125940         * lib/eealloc.h: New file.
125942 2004-01-20  Bruno Haible  <bruno@clisp.org>
125944         * lib/binary-io.h: Avoid warnings on Cygwin.
125946 2004-01-20  Bruno Haible  <bruno@clisp.org>
125948         * lib/allocsa.h: New file, from GNU gettext.
125949         * lib/allocsa.c: New file, from GNU gettext.
125951 2004-01-18  Karl Berry  <karl@gnu.org>
125953         * doc/gpl.texi, doc/lgpl.texi: new files.
125955 2004-01-18  Karl Berry  <karl@gnu.org>
125957         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125958         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125960 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125962         Merge from coreutils.
125964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125965         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125966         (gl_DEFAULT_POSIX2_VERSION): Move
125967         the documentation from 'configure' into 'config.hin',
125968         so that 'configure --help' isn't burdened by it and
125969         we don't have to worry about its formatting there.
125970         Reword the documentation so that it's more succinct
125971         and can be run together into a single paragraph.
125972         * m4/same.m4 (gl_SAME): Check for pathconf.
125974 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125976         Merge from coreutils.
125978         * lib/posixver.c: Include posixver.h.
125980         * lib/same.c: Include <stdbool.h>, <limits.h>.
125981         (_POSIX_NAME_MAX): Define if not defined.
125982         (MIN): New macro.
125983         (same_name): If file names are silently truncated, report
125984         that the file names are the same if they are the same after
125985         the silent truncation.
125987         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125988         conversion function.
125989         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125990         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125991         longer needed.
125993 2004-01-15  Jim Meyering  <jim@meyering.net>
125995         Merge from coreutils.
125997         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125998         if no library is required.
125999         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126000         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126001         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126002         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126003         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126004         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126005         value, $ac_cv_search_crypt, if it's "none required".
126006         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126007         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126008         not gl_FUNC_GETLOADAVG.
126009         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126010         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126012 2004-01-15  Jim Meyering  <jim@meyering.net>
126014         Merge from coreutils.
126016         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126017         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126018         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126020         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126021         optional configure-time default.
126023         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126025         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126027 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126029         Merge from coreutils.
126031         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126032         value, $ac_cv_search_nanosleep, if it's "none required".
126034 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126036         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126037         with like-named macro in fnmatch.c.
126038         (EXT): Use an internal constant instead.
126040         Merge fnmatch patches from glibc.
126041         * lib/fnmatch.c (mbsinit): Remove define.
126042         Add libc_hidden_ver (__fnmatch, fnmatch).
126043         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126044         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126046 2004-01-14  Karl Berry  <karl@gnu.org>
126048         * config/install-sh: update from automake.
126050 2004-01-13  Karl Berry  <karl@gnu.org>
126052         * config/install-sh: update from automake.
126054 2004-01-09  Karl Berry  <karl@gnu.org>
126056         * config/install-sh: update from automake.
126058 2004-01-05  Karl Berry  <karl@gnu.org>
126060         * config/config.{sub,guess}: update from config.
126062 2003-12-31  Karl Berry  <karl@gnu.org>
126064         * config/depcomp: update from automake.
126066 2003-12-14  Karl Berry  <karl@gnu.org>
126068         * lib/config.charset: update from gettext-runtime.
126070 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126072         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126073         Bug reported by Alfred M. Szmidt.
126075 2003-12-03  Bruno Haible  <bruno@clisp.org>
126077         * m4/gettext.m4: Upgrade from gettext-0.13.
126078         * m4/po.m4: Upgrade from gettext-0.13.
126079         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126080         * m4/intmax.m4: New file, from gettext-0.13.
126081         * m4/printf-posix.m4: New file, from gettext-0.13.
126083 2003-11-29  Karl Berry  <karl@gnu.org>
126085         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126087 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126088             Bruno Haible  <bruno@clisp.org>
126090         * lib/printf-parse.h: Don't include sys/types.h.
126091         (ARG_NONE): New macro.
126092         (char_directive): Change type of *arg_index fields to size_t.
126093         * lib/printf-parse.c: Don't include sys/types.h.
126094         (SSIZE_MAX): Remove macro.
126095         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126096         Remove unnecessary overflow check.
126097         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126098         fields.
126100 2003-11-25  Bruno Haible  <bruno@clisp.org>
126102         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126104 2003-11-25  Bruno Haible  <bruno@clisp.org>
126106         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126107         gt_TYPE_SSIZE_T.
126109 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126111         * modules/alloca: Remove dependency on xalloc.
126113 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126115         * lib/alloca.c: Remove dependency on xalloc module.
126116         (xalloc_die): Remove.
126117         (memory_full) [!defined emacs]: New macro.
126118         [!defined emacs]: Don't include xalloc.h.
126119         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126120         address arithmetic overflows.  Change datatypes a bit to avoid
126121         unnecessary casts.
126123 2003-11-22  Jim Meyering  <jim@meyering.net>
126125         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126126         s/size/size_t/.
126128 2003-11-21  Karl Berry  <karl@gnu.org>
126130         * config/config.{sub,guess}: update from config.
126132 2003-11-18  Karl Berry  <karl@gnu.org>
126134         * config/config.{sub,guess}: update from config.
126136         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126138 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126140         * README: Mention that S+T cannot overflow if S is the size of
126141         an existing object and T is sufficiently small.
126143 2003-11-17  Jim Meyering  <jim@meyering.net>
126145         On systems without utime and without a utimes function capable of
126146         dealing with a NULL struct utimbuf* argument, this utime replacement
126147         could -- in unusual circumstances -- leak a file descriptor.
126148         * lib/utime.c: Include <unistd.h> and <errno.h>.
126149         (utime_null): Be sure to close `fd' and to preserve errno.
126150         Reported by Geoff Collyer via Arnold Robbins.
126152 2003-11-17  Bruno Haible  <bruno@clisp.org>
126154         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126155         (Depends-on): Add xsize.
126157 2003-11-17  Bruno Haible  <bruno@clisp.org>
126159         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126161 2003-11-17  Bruno Haible  <bruno@clisp.org>
126163         * lib/vasnprintf.c (alloca): Remove fallback definition.
126164         (freea): Remove definition.
126165         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126166         Reported by Paul Eggert.
126168 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126169             Bruno Haible  <bruno@clisp.org>
126171         Protect against address arithmetic overflow.
126172         * lib/printf-args.h: Include stddef.h.
126173         (arguments): Change type of field 'count' to size_t.
126174         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126175         'unsigned int' where appropriate.
126176         * lib/printf-parse.h: Include sys/types.h.
126177         (char_directive): Change type of *arg_index fields to ssize_t.
126178         (char_directives): Change type of fields 'count', max_*_length to
126179         size_t.
126180         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126181         (SSIZE_MAX): Define fallback value.
126182         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126183         instead of 'int' where appropriate. Check a_allocated, d_allocated
126184         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126185         * lib/vasnprintf.c: Include xsize.h.
126186         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126187         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126188         overflow. Avoid wraparound when converting a width or precision from
126189         decimal to binary.
126191 2003-11-16  Bruno Haible  <bruno@clisp.org>
126193         Update from GNU gettext.
126194         * lib/printf-parse.c: Generalize to it can be compiled for wide
126195         strings.
126196         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126197         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126198         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126199         SNPRINTF): New macros.
126200         Don't include <alloca.h> if the file is used inside libintl.
126201         (local_wcslen): New function, for Solaris 2.5.1.
126202         (VASNPRINTF): Use it instead of wcslen.
126204 2003-11-16  Bruno Haible  <bruno@clisp.org>
126206         * lib/xsize.h (xmax): New function.
126207         (xsum, xsum3, xsum4): Declare as "pure" functions.
126209 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126211         * modules/xalloc (Files): Undo latest change, since xalloc.h
126212         no longer needs SIZE_MAX or PTRDIFF_MAX.
126214 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126216         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126217         gl_PTRDIFF_MAX.
126219 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126221         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126222         "return", to pacify some unknown compiler.  Problem reported
126223         by Joerg Schilling.
126225 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126227         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126228         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126229         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126230         heuristic is just as accurate as far as we know, and it removes a
126231         dependency on size_max.m4 and ptrdiff_max.m4.
126233 2003-11-11  Bruno Haible  <bruno@clisp.org>
126235         * modules/xsize (Files): Add m4/size_max.m4.
126236         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126238 2003-11-11  Bruno Haible  <bruno@clisp.org>
126240         * m4/size_max.m4: New file.
126241         * m4/ptrdiff_max.m4: New file.
126242         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126243         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126244         (gl_XALLOC): Invoke it.
126246 2003-11-11  Bruno Haible  <bruno@clisp.org>
126248         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126249         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126250         defined.
126252 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126254         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126255         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126256         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126257         From Bruno Haible.
126258         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126259         not (size_t) -1, since it's defined here.
126261 2003-11-09  Karl Berry  <karl@gnu.org>
126263         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126265 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126267         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126268         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126269         Reject sizes of exactly SIZE_MAX bytes.
126270         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126271         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126273 2003-11-05  Bruno Haible  <bruno@clisp.org>
126275         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126276         SIZE_MAX defined in <limits.h> on Solaris.
126278 2003-11-04  Jim Meyering  <jim@meyering.net>
126280         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126281         variable names, rather than @VAR@.
126282         * modules/poll: Likewise.
126284 2003-11-04  Bruno Haible  <bruno@clisp.org>
126286         * modules/xsize: New file.
126287         * modules/linebreak: Depend on xsize.
126288         * MODULES.html.sh (func_all_modules): Add xsize.
126290 2003-11-04  Bruno Haible  <bruno@clisp.org>
126292         * m4/xsize.m4: New file.
126294 2003-11-04  Bruno Haible  <bruno@clisp.org>
126296         * lib/xsize.h: New file.
126297         * lib/linebreak.c: Include xsize.h.
126298         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126299         argument for overflow.
126300         Suggested by Paul Eggert.
126302 2003-11-03  Karl Berry  <karl@gnu.org>
126304         * config/config.{guess,sub}: update from config.
126306 2003-11-03  Jim Meyering  <jim@meyering.net>
126308         * modules/userspec (lib_SOURCES): Add userspec.h.
126309         (Include): Add "userspec.h".
126310         Improve description.
126312 2003-11-03  Jim Meyering  <jim@meyering.net>
126314         * lib/userspec.c: Include "userspec.h".
126315         * lib/userspec.h: New file.
126317 2003-11-03  Bruno Haible  <bruno@clisp.org>
126319         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126321 2003-11-03  Bruno Haible  <bruno@clisp.org>
126323         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126324         available, to avoid (extremely rare) race condition.
126325         Suggested by Paul Eggert.
126327 2003-11-02  Karl Berry  <karl@gnu.org>
126329         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126331 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126333         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126334         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126335         (read_filesystem_list): Set and use me_type_malloced.
126336         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126337         whatever the type happens to be), for brevity and consistency.
126338         Check for size calculation overflow on Alphas running OSF/1.
126340 2003-10-31  Jim Meyering  <jim@meyering.net>
126342         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126344         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126346 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126347             Bruno Haible  <bruno@clisp.org>
126349         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126350         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126352 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126354         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126355         netbsd*-gnu*.  Suggested by Robert Millan.
126357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126359         * modules/group-member: Depend on stdbool.
126361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126363         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126365 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126367         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126368         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126369         after the 'gnu' in these cases.  This fixes some bugs in the
126370         previous change, and is based on suggestions by Robert Millan.
126372 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126374         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126375         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126376         no longer needed.
126377         * lib/quotearg.c (quotearg_n_options): Use it.
126378         * lib/group-member.c: Include <stdbool.h>.
126379         (free_group_info): Arg is now const *; don't free arg.
126380         (get_group_info): Now returns bool and accepts struct group_info *,
126381         rather than returning a malloc'ed struct group_info *.
126382         All uses changed.  Check for overflow in internal size calculation.
126384         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126385         rather than xmalloc/xrealloc.
126386         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126387         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126388         conformance bug: the old code used a pointer after freeing the
126389         storage that it addressed.
126390         * lib/hash.c (hash_initialize): Simplify the code by using
126391         xalloc_oversized rather than doing it by hand.
126392         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126393         the buffer preserved.  Use free and xmalloc instead.
126394         * lib/quotearg.c (quotearg_n_options): Likewise.
126395         Use a simpler test for size overflow.  Don't use xalloc_oversized
126396         because unsigned int might be wider than size_t (!); this suggests
126397         that we should switch from unsigned int to size_t for slot numbers.
126399 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126401         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126402         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126403         NetBSD kernels.  Requested by Richard Stallman.
126405 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126407         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126408         to allocate the returned structure.  Do not allocate a subarray,
126409         as x2nrealloc will do that.
126410         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126411         instead of xnrealloc.
126412         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126414 2003-10-27  Bruno Haible  <bruno@clisp.org>
126416         * lib/stdbool_.h: Better support for BeOS.
126418 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126420         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126421         now uses inline.
126423 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126425         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126426         callers that want to do their own size-overflow checking.  Include
126427         <stdbool.h>, since xalloc_oversized returns bool.
126428         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126429         to use xalloc_oversized.
126431         Add two functions x2realloc, x2nrealloc, for programs that grow
126432         arrays dynamically by doubling their sizes.
126433         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126434         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126435         New functions.
126437         Port to C99 semantics for 'inline' of external functions.
126438         Bug reported by Bruno Haible.
126439         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126440         with the old contents of xnmalloc.
126441         (xnmalloc, xmalloc): Use it.
126442         (xnrealloc_inline): New static inline function,
126443         with the old contents of xnrealloc.
126444         (xnrealloc, xrealloc): Use it.
126446         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126447         that.
126449 2003-10-26  Karl Berry  <karl@gnu.org>
126451         * config/srclist.txt (COPYING.DOC): no longer available from
126452         /gd/gnuorg; don't know where the ultimate source is.
126454 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126456         Fix several address-calculation bugs in the hash modules,
126457         plus some minor code cleanup.
126459         * lib/hash.h: Include <stdbool.h>, for bool.
126460         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126461         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126462         hash_get_n_entries, hash_get_max_bucket_length,
126463         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126464         hash_rehash): Use size_t rather than unsigned.
126465         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126466         hash_get_n_buckets_used, hash_get_n_entries,
126467         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126468         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126469         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126470         Likewise.
126471         (SIZE_MAX): Define if not defined.
126472         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126473         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126474         hash_print):
126475         Use const * when possible.
126476         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126477         (check_tuning): Fix bug: if tuning parameters were very close to
126478         0 or 1, rounding errors could have caused subscript violations.
126479         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126480         (hash_initialize): Add 'fail:' label
126481         to free table and return NULL, and use it to simplify code.
126482         Use calloc rather than clearing the storage ourself.
126483         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126484         buffer size calculations.
126485         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126486         Include <stddef.h>, for size_t.
126487         * lib/hash-pjw.c (hash_pjw): Likewise.
126488         Switch to method described by Bruno Haible.
126489         Include <limits.h>, for CHAR_BIT.
126490         (SIZE_BITS): New macro.
126492 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126494         * m4/getline.m4 (AM_FUNC_GETLINE):
126495         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126496         hosts.  Problem reported by Derek Robert Price in
126497         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126498         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126499         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126501 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126503         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126504         ceiling the allocation at NMAX bytes rather than silently
126505         discarding input bytes before NMAX is reached.  This makes
126506         a difference only if NMAX exceeds SIZE_MAX / 2.
126508         * lib/obstack.c: Merge from glibc.
126509         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126510         Add libc_hidden_def (_obstack_newchunk).
126511         (_obstack_free) [! defined _LIBC]: Remove.
126512         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126513         a clone of the function body.
126514         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
126515         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
126517         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
126518         glibc.
126519         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
126520         arg to memcpy.
126522         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
126523         (obstack_ptr_grow_fast, obstack_int_grow_fast):
126524         Don't use lvalue casts, as GCC plans to remove support for them
126525         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
126526         was also present in the non-GCC version, indicating that this
126527         code had always been buggy and had never been widely used.
126528         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
126529         Use the fast variant of each macro, rather than copying the
126530         definiens of the fast variant; that way, we'll be more likely to
126531         catch future bugs in the fast variants.
126533 2003-10-20  Bruno Haible  <bruno@clisp.org>
126535         * modules/wait-process: New file.
126536         * MODULES.html.sh (func_all_modules): Add wait-process.
126538 2003-10-20  Bruno Haible  <bruno@clisp.org>
126540         * m4/wait-process.m4: New file.
126542 2003-10-20  Bruno Haible  <bruno@clisp.org>
126544         * lib/wait-process.h: New file, from GNU gettext.
126545         * lib/wait-process.c: New file, from GNU gettext.
126547 2003-10-19  Jim Meyering  <jim@meyering.net>
126549         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
126550         HPUX 10.20.
126552 2003-10-18  Karl Berry  <karl@gnu.org>
126554         * config/config.guess: update from config.
126556 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126558         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
126559         (getgroups): First arg is int, not size_t.
126560         Don't let 'free' mangle errno.
126562 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126564         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
126566 2003-10-16  Karl Berry  <karl@gnu.org>
126568         * config/config.{guess,sub}: update from config.
126570 2003-10-16  Jim Meyering  <jim@meyering.net>
126572         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
126573         memcpy.
126575 2003-10-15  Paul Eggert  <eggert@twinsun.com>
126577         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
126578         (SIZE_MAX): Remove.
126579         (new_exclude, add_exclude_file): Initial size no longer needs to
126580         be a power of 2.
126581         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
126582         our own address arithmetic overflow checking.
126584         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
126585         (fnmatch): Do not alloca more than 2000 wide characters;
126586         instead, use malloc for large buffers.
126587         Check for address arithmetic overflow, and return -1
126588         with errno set to ENOMEM in that case.
126589         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
126590         (NEW_PATTERN): Do not alloca more than 8000 bytes;
126591         instead, return -1.  Check for address arithmetic overflow.
126593 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126595         Handle invalid suffixes and overflow independently, so that
126596         callers can treat them independently as needed.  Fix some bugs in
126597         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126598         suffix for a human-readable blocksize.  The major caller-visible
126599         change is the addition of a new
126600         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126601         that both overflow and suffix chars were found.
126603         * lib/human.c (humblock): Don't check separately for invalid suffix
126604         char; that is xstrtoumax's job (now that its bug is fixed).
126605         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126606         INTMAX_MAX]: New macros.
126607         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126608         TYPE_MAXIMUM): New macros.
126609         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
126610         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
126611         if overflow occurs, as it's what __strtol does and it's more useful
126612         in practice.
126613         (__xstrtol): If __strtol reports some error other than ERANGE,
126614         reflect it to the caller as LONGINT_INVALID.  If it reports
126615         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126616         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126617         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126618         value.
126619         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126620         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126621         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126622         [defined UINTMAX_MAX]: New macros.
126624 2003-10-14  Bruno Haible  <bruno@clisp.org>
126626         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126628 2003-10-14  Bruno Haible  <bruno@clisp.org>
126630         * m4/sig_atomic_t: New file, from GNU gettext.
126631         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126633 2003-10-14  Bruno Haible  <bruno@clisp.org>
126635         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126636         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126637         Also use volatile where needed.
126639 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126641         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126642         Change maintainer from Bruno Haible to 'all'.
126644 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126646         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126648 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126650         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126651         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126652         and define in terms of the other primitives.
126653         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126654         (SIZE_MAX): Define if not already defined.
126655         (array_size_overflow): New function.
126656         (xalloc_die): Abort instead of exiting if 'error' returns.
126657         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126658         (xmalloc, xrealloc): Use them.
126659         (xcalloc): Check for address arithmetic overflow.
126660         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126661         a bit faster than strcpy.
126663 2003-10-10  Simon Josefsson  <jas@extundo.com>
126665         * modules/argp (Depends-on): Add restrict and strcase.
126667 2003-10-10  Simon Josefsson  <jas@extundo.com>
126669         * m4/argp.m4: Add AC_C_INLINE.
126671 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126673         Merge getpass from libc, plus a few fixes.
126675         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126676         Include <stdbool.h>.
126677         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126678         __fsetlocking to empty.
126679         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126680         do include <bits/libc-lock.h>.
126681         Do not include <fcntl.h>; not needed.
126682         [_LIBC]: Include <wchar.h>.
126683         (NOTCANCEL_MODE): New macro.
126684         (flockfile, funlockfile) [_LIBC]: New macros.
126685         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126686         [!_LIBC]: New macros.
126687         (call_fclose): New function.
126688         (getpass): Use it.  Save tty stream separately; this simplifies the
126689         code and makes it more reliable if stdin happens to equal stdout.
126690         Invoke __fsetlocking on tty.
126691         Handle thread cancellation if needed.
126692         Namespace cleanup (use __tcgetattr, __getline).
126693         Use bool for Booleans.
126694         [USE_IN_LIBIO]: Handle wide streams.
126695         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126696         stream might go where.
126698         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126699         doesn't have to include <stdio.h> before us.
126700         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126701         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126702         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126703         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126704         if not declared, so that we can use getpass.c code from libc without
126705         rewriting it.
126706         (flockfile, ftrylockfile, funlockfile): New macros.
126708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126710         * modules/getpass: Depend on stdbool.
126712 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126714         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126716 2003-10-07  Karl Berry  <karl@gnu.org>
126718         * config/config.{guess,sub}: update from config.
126720 2003-10-06  Jim Meyering  <jim@meyering.net>
126721             Bruno Haible  <bruno@clisp.org>
126723         This lets translators provide better translations for the
126724         "Written by ..." part of --version output.
126725         * lib/version-etc.h: Include stdarg.h.
126726         (version_etc_copyright): Declare as readonly.
126727         (version_etc): Make this function variadic with a NULL-terminated list
126728         of author name strings.
126729         (version_etc_va): New declaration.
126730         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126731         (version_etc_copyright): Declare as readonly.
126732         (version_etc_va): New function. Provide a different translatable string
126733         for each possible number of authors < 10. Abbreviate when there are 10
126734         authors or more.
126735         (version_etc): Make this function variadic. Call version_etc_va.
126736         Suggestion from Gary V. Vaughan.
126738         * lib/long-options.h (parse_long_options): Change prototype: the
126739         authors string is moved to the end and becomes variadic.
126740         * lib/long-options.c: Include stdarg.h.
126741         (parse_long_options): Make this function variadic, too.
126742         Call version_etc_va, not version_etc.
126744 2003-10-06  Bruno Haible  <bruno@clisp.org>
126746         * modules/version-etc-2: Remove file.
126747         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126749 2003-10-06  Bruno Haible  <bruno@clisp.org>
126751         * modules/fatal-signal: New file.
126752         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126754 2003-10-06  Bruno Haible  <bruno@clisp.org>
126756         * m4/fatal-signal.m4: New file.
126757         * m4/signalblocking.m4: New file, from GNU gettext.
126759 2003-10-06  Bruno Haible  <bruno@clisp.org>
126761         * lib/version-etc-2.h: Remove file.
126762         * lib/version-etc-2.c: Remove file.
126764 2003-10-06  Bruno Haible  <bruno@clisp.org>
126766         * lib/fatal-signal.h: New file, from GNU gettext.
126767         * lib/fatal-signal.c: New file, from GNU gettext.
126769 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126771         * README: Rework advice for preventing empty .o files.
126772         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126773         not <sys/types.h>.
126775 2003-10-04  Karl Berry  <karl@gnu.org>
126777         * lib/argp*: update from libc.
126779 2003-10-04  Karl Berry  <karl@gnu.org>
126781         * config/config.{guess,sub}: update from config.
126783 2003-10-02  Bruno Haible  <bruno@clisp.org>
126785         * modules/lchown (Include): Add lchown.h.
126786         * modules/time_r (Include): Use "..." syntax.
126787         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126789 2003-10-01  Simon Josefsson  <jas@extundo.com>
126791         * MODULES.html.sh (func_all_modules): Move gethostname from section
126792         'based on' to section 'lacking' POSIX:2001.
126794 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126796         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126797         to output mode on the same stream.
126799 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126801         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126802         Fix arg typo in previous patch.
126804 2003-09-28  Jim Meyering  <jim@meyering.net>
126806         * lib/error.c: Correct cpp indentation.
126808 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126810         * modules/free: New file.
126812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126814         * m4/free.m4: New file.
126816 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126818         * lib/minmax.h (MIN, MAX)
126819         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126820         Omit the special code that used __typeof__, since we worry that
126821         it could be more trouble than it's worth.  See:
126822         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126823         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126825         * lib/free.c: New file.
126827 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126829         Trivial fixes to Makefile.am parts of module listings.
126830         * modules/strstr: Append strstr.h to lib_SOURCES.
126831         * modules/strcase: Likewise, for strcase.h.
126833 2003-09-27  Karl Berry  <karl@gnu.org>
126835         * config/mkinstalldirs: update from automake.
126837 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126839         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126840         (error_tail): Do not loop, reallocating temporary buffer, since
126841         the output cannot contain more wide characters than the input
126842         contains bytes, the size must be big enough already.  This avoids
126843         one potential size overflow calculation.  Check for size overflow
126844         when calculating temporary buffer size.  Free temporary buffer
126845         when done, if it was allocated with malloc; this plugs a memory
126846         leak.  Remove casts from void * to pointers, that are no longer
126847         needed now that we're assuming C89 or better.
126849         Merge error changes from glibc.
126851         * lib/error.c, error.h: Update copyright notice header to match glibc.
126852         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126853         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126854         Disable cancellation while printing error.
126855         * lib/error.h: Prepend __ to parameter names.
126857 2003-09-26  Jim Meyering  <jim@meyering.net>
126859         * lib/error.c (error_tail): Move some declarations
126860         into inner scope where the local variables are used.
126862 2003-09-26  Bruno Haible  <bruno@clisp.org>
126864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126865         stpncpy().
126866         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126868 2003-09-26  Bruno Haible  <bruno@clisp.org>
126870         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126871         (stpncpy): Define as alias for gnu_stpncpy.
126872         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126874 2003-09-25  Simon Josefsson  <jas@extundo.com>
126876         * lib/xgetdomainname.h: New file.
126877         * lib/xgetdomainname.c: New file.
126879 2003-09-25  Simon Josefsson  <jas@extundo.com>
126880             Bruno Haible  <bruno@clisp.org>
126882         * modules/getdomainname: New file.
126883         * modules/xgetdomainname: New file.
126884         * MODULES.html.sh (func_all_modules): Add getdomainname,
126885         xgetdomainname.
126887 2003-09-25  Simon Josefsson  <jas@extundo.com>
126888             Bruno Haible  <bruno@clisp.org>
126890         * m4/getdomainname.m4: New file.
126892 2003-09-25  Simon Josefsson  <jas@extundo.com>
126893             Bruno Haible  <bruno@clisp.org>
126895         * lib/getdomainname.h: New file.
126896         * lib/getdomainname.c: New file.
126898 2003-09-25  Karl Berry  <karl@gnu.org>
126900         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126902 2003-09-25  Karl Berry  <karl@gnu.org>
126904         * config/install-sh: update from automake.
126906 2003-09-25  Bruno Haible  <bruno@clisp.org>
126908         * modules/version-etc-2: New file, from modules/version-etc with
126909         modifications.
126910         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126912 2003-09-25  Bruno Haible  <bruno@clisp.org>
126914         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126915         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126917 2003-09-24  Simon Josefsson  <jas@extundo.com>
126919         * modules/xgethostname: Add xgethostname.h.
126921 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126923         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126924         the buffer associated with the argument.  Bug reported by
126925         Simon Josefsson.
126927 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126929         * README: Document assumptions that 'int' is at least 32 bits
126930         wide, that integer arithmetic is 2's complement without overflow,
126931         that there are no holes in integer values, that adding sizes of
126932         two nonoverlapping objects can't overflow, and that all-bits-zero
126933         yields scalar zero.  Fix spelling and capitalization typos.
126935 2003-09-19  Karl Berry  <karl@gnu.org>
126937         * lib/argp.h: update from libc.
126939 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
126942         to avoid spurious warnings like "AC_RUN_IFELSE was called before
126943         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
126945 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126947         * gnulib-tool: Use "test -h", not "test -L", for portability
126948         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126949         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126950         (sed_extract_prog): Issue s commands one-by-one, rather than
126951         using \| in one s command.
126953 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126955         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126956         input error, instead of returning NULL the next time we are called
126957         (and therefore losing track of errno).
126959 2003-09-16  Bruno Haible  <bruno@clisp.org>
126961         * gnulib-tool (func_create_testdir): Warn about duplicated
126962         dependencies.
126964 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126966         * modules/argmatch, modules/fatal, modules/obstack,
126967         modules/xalloc, modules/xgethostname: Sort dependencies by
126968         importance, not alphabetically.
126970 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126972         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126973         fails, so that the caller gets the proper errno.
126975         * lib/readutmp.c (read_utmp): Likewise.
126976         Check for fstat error.  Close stream and free storage
126977         when failing.
126979 2003-09-14  Karl Berry  <karl@gnu.org>
126981         * config/srclist.txt (strdup.c): disable for c89 changes.
126983 2003-09-14  Jim Meyering  <jim@meyering.net>
126985         * lib/getloadavg.c: Correct cpp indentation.
126986         * lib/strdup.c: Likewise.
126987         * lib/vasnprintf.c: Likewise.
126989 2003-09-14  Bruno Haible  <bruno@clisp.org>
126991         * modules/fwriteerror: New file.
126992         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126994 2003-09-14  Bruno Haible  <bruno@clisp.org>
126996         * lib/fwriteerror.h: New file.
126997         * lib/fwriteerror.c: New file.
126999 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127001         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127002         modules/xgethostname, modules/xalloc: Depend on exit.
127004 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127006         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127008         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127009         and AC_MINIX, too, so that their extensions are available.
127011         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127012         This macro has been superseded by gl_BACKUPFILE.
127014         More patches to assume C89 or better.
127016         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127018         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127019         unconditionally.
127020         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127021         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127022         Include <string.h>, <stdlib.h> unconditionally.
127023         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127024         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127025         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127026         headers or for string.h.
127027         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127028         or strtoul.
127030         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127031         headers.
127032         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127033         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127034         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127035         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127038         memcpy, memset.
127039         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127040         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127041         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127042         strtol.
127043         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127044         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127045         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127046         strtoul.
127048 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127050         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127051         * lib/obstack.c [!defined _LIBC]: Likewise.
127052         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127053         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127054         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127056         More changes to assume C89 or better.
127058         * lib/error.c (error_tail): Assume vprintf.
127060         * lib/argmatch.c (getenv): Remove decl.
127061         * lib/progreloc.c (get_full_program_name): Define via prototype.
127062         * lib/setenv.c (clearenv): Likewise.
127063         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127064         needed.
127065         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127066         (malloc, memcpy): Remove decls.
127067         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127068         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127069         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127070         (memcpy): Remove macro.
127071         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127072         (__P): Remove.  All uses removed.
127073         (PTR): Remove.  All uses changed to void *.
127074         (CHAR_BIT, NULL): Remove.
127075         (spaces, zeros, memset_space, memset_zero)
127076         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127077         Remove.
127078         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127079         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127080         Define with prototype.
127081         Remove now-unnecessary prototype decl.
127082         (extra_args_spec): Assume ANSI C.  All uses changed.
127083         (extra_args_spec_iso): Remove.
127084         (my_strftime, emacs_strftimeu): Define via prototype.
127085         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127086         unconditionally.
127087         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127088         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127089         (strtoul, strtol): Remove decls.
127090         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127091         LONG_MAX): Remove.
127092         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127093         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127094         (LOCALE_PARAM_PROTO): New macro.
127095         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127096         (INTERNAL (strtol), strtol): Define with a prototype.
127097         (PARAMS): Remove.  All uses removed.
127098         * lib/tempname.c: Include <string.h> unconditionally.
127099         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127100         * lib/xgethostname.c (main): Define with a prototype.
127101         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127102         Include <stdlib.h> unconditionally.
127103         (calloc, malloc, realloc, free): Remove decls.
127104         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127105         Include <stdlib.h> unconditionally.  Sort include file names.
127106         (strtod): Remove.
127107         (xstrtod): Define with a prototype.
127108         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127109         (strtol, strtoul): Remove decls.
127111 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127113         More patches to assume C89 or better.
127114         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127115         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127116         string.h, memchr, STDC_HEADERS.
127118 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127120         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127121         Include <stdlib.h>, <string.h> unconditionally.
127122         Remove now-unnecessary cast to char *.
127123         * lib/strnlen.c: Include <string.h> unconditionally.
127124         * lib/yesno.c (yesno): Define with a prototype.
127126 2003-09-11  Bruno Haible  <bruno@clisp.org>
127128         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127130 2003-09-10  Jim Meyering  <jim@meyering.net>
127132         * lib/error.c: Correct indentation of cpp directives.
127134 2003-09-10  Bruno Haible  <bruno@clisp.org>
127136         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127137         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127138         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127139         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127140         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127141         <stdlib.h> and <string.h> checks.
127142         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127143         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127145 2003-09-10  Bruno Haible  <bruno@clisp.org>
127147         * lib/strcspn.c: Include <string.h> unconditionally.
127148         * lib/strpbrk.c: Include <string.h> unconditionally.
127149         * lib/strstr.c: Include <string.h> unconditionally.
127150         * lib/unicodeio.c: Include <string.h> unconditionally.
127151         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127152         * lib/unsetenv.c: Likewise.
127153         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127154         * lib/yesno.c: Include <stdlib.h> unconditionally.
127155         (rpmatch): Add prototype.
127157 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127159         More patches to assume C89 or better.
127160         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127161         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127162         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127163         or for string.h.
127164         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127165         stdlib.h.
127166         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127167         C headers.
127168         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127169         string.h.
127170         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127171         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127172         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127173         or for string.h.
127174         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127175         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127176         C headers.
127177         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127178         memcpy.
127179         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127180         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127181         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127182         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127183         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127184         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127185         string.h, free.
127186         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127187         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127188         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127189         C headers, or for string.h.
127190         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127191         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127192         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127193         headers, memory.h, stdlib.h, string.h, strings.h.
127194         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127195         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127196         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127197         strchr.
127198         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127199         headers, memory.h, string.h.
127200         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127201         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127202         free.
127203         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127204         headers.
127205         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127206         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127207         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127208         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127209         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127211 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127213         More K&R removal.
127215         * lib/acosl.c (main): Use a prototype.
127216         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127217         tanl.c: Likewise.
127219         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127221         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127222         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127223         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127224         with a prototype.
127225         * lib/getopt.c (const): Remove macro.
127226         Include <string.h> unconditionally.
127227         (my_index): Remove; all uses changed to strchr.
127228         (strlen): Remove decl.
127229         (exchange): Remove forward decl; no longer needed.
127230         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127231         Define with prototype.
127232         * lib/getopt1.c (const): Remove macro.
127233         (getopt_long, getopt_long_only, main): Define with prototype.
127235         * lib/getugroups.c: Include <string.h> unconditionally.
127237         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127238         (getusershell, setusershell, endusershell, readname, main):
127239         Define with prototypes.
127241         * lib/group-member.c: Include group-member.h first.
127242         Include <stdlib.h> unconditionally.
127244         * lib/hard-locale.c: Include hard-locale.h first.
127245         Include <stdlib.h>, <string.h> unconditionally.
127247         * lib/hash.c (free, malloc): Remove decls.
127248         Include <stdlib.h> unconditionally.
127250         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127251         (getenv): Do not declare.
127253         * lib/idcache.c: Include <string.h> unconditionally.
127255         * lib/long-options.c: Include long-options.h first, to test interface.
127256         Include <stdlib.h> unconditionally.
127258         * lib/makepath.c: Include makepath.h first, to test interface.
127259         Include <stdlib.h> and <string.h> unconditionally.
127261         * lib/linebuffer.c: Include <stdlib.h>.
127262         (free): Remove decl.
127264         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127265         stddef.h. rpl_malloc returns void *, not char *.
127266         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127267         prototype.
127269         * lib/md5.h: Include <limits.h> unconditionally.
127270         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127271         (__P): Remove; all uses removed.
127272         * lib/md5.c: Include "md5.h" first.
127273         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127274         md5_buffer, md5_process_bytes, md5_process_block):
127275         Define with prototypes.
127276         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127277         * lib/sha.c: Include "sha.h" first.
127278         Include <stdlib.h>, <string.h> unconditionally.
127280         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127281         * lib/memcmp.c (__ptr_t): Likewise.
127282         * lib/memrchr.c (__ptr_t): Likewise.
127283         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127284         Include <string.h> unconditionally.
127285         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127286         * lib/memchr.c: Include <stdlib.h> unconditionally.
127287         * lib/memchr.c (LONG_MAX): Remove.
127288         * lib/memrchr.c (LONG_MAX): Likewise.
127289         * lib/memchr.c (__memchr): Define via a prototype.
127290         * lib/memrchr.c (__memrchr): Likewise.
127291         * lib/memcmp.c (__P): Remove, and remove all uses.
127292         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127293         Remove forward decls; no longer needed.
127294         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127295         Use types required by C89 in prototype.
127297         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127298         * lib/savedir.c: Likewise.
127299         * lib/mkdir.c (free): Remove decl.
127300         * lib/rmdir.c (rmdir): Define with a prototype.
127301         * lib/savedir.c: Include savedir.h first, to test interface.
127303         * lib/mktime.c (STDC_HEADERS): Remove.
127304         Include <stdlib.h>, <string.h> unconditionally.
127306         * lib/modechange.c: Include <stdlib.h> unconditionally.
127307         (malloc): Remove decl.
127309         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127310         (free): Remove decl.
127312         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127313         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127314         (This type really should be intptr_t, but that's a C99ism.)
127315         (_obstack_memcpy): Remove: all uses changed to memcpy.
127316         Include <string.h> unconditionally.
127317         (struct obstack): Assume __STDC__ for types of members
127318         chunkfun, freefun, extra_arg.
127319         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127320         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127321         obstack_begin, obstack_specify_allocation,
127322         obstack_specify_allocation_with_arg, obstack_chunkfun,
127323         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127324         Remove unprototyped decls and the macros that use them.
127325         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127326         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127327         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127328         (defined __STDC__ && __STDC__)]:
127329         Remove nonprototyped code.
127330         Include <stdlib.h> unconditionally.
127331         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127332         _obstack_allocated_p, _obstack_free, obstack_free,
127333         _obstack_memory_used, print_and_abort):
127334         Define using prototypes.
127335         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127336         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127337         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127338         obstack_next_free, obstack_object_size, obstack_room) [0]:
127339         Remove unused, unprototyped code.
127341         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127343         * lib/physmem.c (physmem_total, physmem_available, main): Define
127344         with prototypes.
127346         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127347         (main): Define with a prototype.
127349         * lib/posixver.c (getenv): Remove decl.
127351         * lib/putenv.c (malloc): Returns void *, not char *.
127352         Include <string.h> unconditionally.
127353         (strchr, memcpy, NULL): Do not define.
127355         * lib/readtokens.c: Include readtokens.h first, to test interface.
127356         Include <stdlib.h>, <string.h> unconditionally.
127357         (init_tokenbuffer): Define with a prototype.
127359         * lib/regex.c (PARAMS): Remove.  All uses removed.
127360         All uses of _RE_ARGS removed, too.
127361         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127362         unconditionally.
127363         (bzero): Assume memset exists.
127364         (memcmp, memcpy, NULL): Remove.
127365         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127366         char, or assignments to local vars of type signed char.
127367         (init_syntax_once, PREFIX(extract_number_and_incr),
127368         PREFIX(print_partial_compiled_pattern),
127369         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127370         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127371         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127372         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127373         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127374         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127375         wcs_compile_range, byte_compile_range, truncate_wchar,
127376         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127377         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127378         count_mbs_length, wcs_re_match_2_internal,
127379         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127380         PREFIX(alt_match_null_string_p),
127381         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127382         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127383         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127384         now-unnecessary declaration, if any.
127385         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127386         regcomp, regexec):
127387         Remove now-unnecessary casts among pointer types.
127388         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127390         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127391         (free): Remove decl.
127393         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127395         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127396         (free): Remove decl.
127398         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127399         * lib/xgetcwd.c: Likewise.
127401         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127402         (free): Remove decl.
127404         * lib/strchrnul.c (strchrnul): Define with a prototype.
127405         Fix bug: c_in was not converted to char before searching.
127407         The following changes are not K&R related:
127409         * lib/group-member.h: Include <sys/types.h>, so that this file is
127410         self-contained.
127411         * lib/makepath.h: Likewise.
127413         * lib/getusershell.c (readname, default_index, line_size, readname):
127414         Use size_t, not int, for sizes.
127415         (readname): If the size overflows, report an error instead of
127416         looping forever.
127418 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127420         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127421         libc.
127423 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127425         * README: New section: portability guidelines.
127427 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127429         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127430         C89 spec.
127432 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127434         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127436 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127438         Assume C89 or better; remove K&R cruft.
127439         A few of these changes were first proposed by Derek Robert Price
127440         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127442         * lib/addext.c: Include <string.h> unconditionally.
127443         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127444         Don't declare getenv or malloc.
127446         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127447         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127448         (NULL): Remove.
127449         (find_stack_direction, alloca): Use prototypes.
127451         * lib/atexit.c (atexit): Define using a prototype.
127453         * lib/basename.c, dirname.c, stripslash.c:
127454         Include <string.h> unconditionally.
127456         * lib/bcopy.c: Include <stddef.h>.
127457         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127459         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127461         * lib/error.h (error, error_at_line, error_print_progname)
127462         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127463         * lib/error.c: Include error.h first, to check interface.
127464         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127465         (VA_START): Remove; all uses changeed to va_start.
127466         (exit, strerror): Remove decls.
127467         (error_print_progname): Prototype uncondionally.
127468         Don't include <errno.h>; no longer needed.
127469         (private_strerror): Remove.
127470         (error_tail): Always define.
127471         (error, error_at_line): Assume C89 or better; always use prototypes.
127472         * lib/fatal.c: Include "fatal.h" first, to test interface.
127473         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127474         (VA_START): Remove; all uses changed to va_start.
127475         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127476         this case.
127477         (exit): Remove decl.
127478         (fatal): Prototype unconditionally.  Assume va_start works.
127479         Abort at end, to pacify gcc.
127481         * lib/euidaccess.c (main): Define with a prototype.
127483         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127485         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127487         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127488         prototypes.
127489         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127490         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127491         (getenv): Remove decl.
127492         (fnmatch): Define using a prototype.
127493         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127494         (FCT): Define using a prototype.
127496         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127498         * lib/gethostname.c: Include <stddef.h>.
127499         (gethostname): Define with prototype.  Length is size_t, not int.
127501 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127503         Assume C89 or better; remove K&R cruft.
127504         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127505         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127506         string.h, getenv, malloc.
127507         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127508         headers.
127509         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127510         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127511         do not check for strerror.
127512         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127513         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127514         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
127515         do not check for doprnt or vprintf.
127516         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
127517         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
127519 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127521         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
127522         getversion.c should have been removed then, but was accidentally
127523         preserved.
127525         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
127526         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
127528 2003-09-08  Karl Berry  <karl@gnu.org>
127530         * config/config.sub, config.guess, srclistvars.sh: update from savannah
127531                 config, forget about prep.
127533         * config/depcomp, missing: update from automake.
127535 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127537         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
127538         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127540 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127542         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
127543         copy_tm_result.  Bug reported by Simon Josefsson in
127544         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127546 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127548         * m4/time_r.m4: New file.
127549         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
127550         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
127551         is. Check for timegm declaration.
127552         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
127553         Do not check for gmtime_r.
127554         Replace mktime if __mktime_internal does not exist and if mktime
127555         hasn't been replaced already.
127557 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127559         * lib/time_r.c, lib/time_r.h: New files.
127561         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
127562         __localtime_r.
127563         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
127564         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
127566         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
127567         __gmtime_r.
127568         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
127569         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
127570         Include <time_r.h>.
127572         * lib/timegm.c: Switch to glibc implementation, with the following
127573         changes:
127574         [defined HAVE_CONFIG_H]: Include <config.h>.
127575         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
127576         (__mktime_internal) [!defined _LIBC]: New decl.
127577         (__gmtime_r) [!defined _LIBC]: New macro and function.
127578         (timegm): Use a prototype, since gnulib assumes C89.
127579         Do not bother declaring tmp to be const, as it's not really usefu.
127580         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
127581         (timegm): Declare only if HAVE_DECL_TIMEGM.
127583 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127585         * MODULES.html.sh (func_all_modules): Add time_r.
127586         * modules/time_r: New file.
127587         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
127588         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
127590 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127592         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127593         Bug reported by Lute Kamstra in
127594         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127596         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127597         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127598         course with correspondingly smaller numbers for tomorrow and
127599         yesterday.  From Tadayoshi Funaba.  Originally installed into
127600         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127601         coreutils merge?).
127603 2003-08-31  Simon Josefsson  <jas@extundo.com>
127605         * modules/timegm: New file.
127606         * MODULES.html.sh (func_all_modules): Add timegm.
127608 2003-08-31  Simon Josefsson  <jas@extundo.com>
127610         * m4/timegm.m4: New file.
127612 2003-08-31  Simon Josefsson  <jas@extundo.com>
127614         * lib/timegm.h: New file.
127615         * lib/timegm.c: New file.  Based on
127616         wget-1.8.2/src/http.c:mktime_from_utc.
127618 2003-08-31  Karl Berry  <karl@gnu.org>
127620         * lib/argp.h: update from libc.
127622 2003-08-28  Bruno Haible  <bruno@clisp.org>
127624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127625         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127626         followed by '#define fnmatch fnmatch_posix' gives an error.
127628 2003-08-28  Bruno Haible  <bruno@clisp.org>
127630         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127631         warning on QNX, which defines O_BINARY to 000000.
127633 2003-08-27  Jim Meyering  <jim@meyering.net>
127635         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127636         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127637         would fail after 32.  Reported by Danny Levinson.  Details here:
127638         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127640 2003-08-24  Bruno Haible  <bruno@clisp.org>
127642         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127643         MSVC7 <stdio.h> is included later.
127645 2003-08-22  Simon Josefsson  <jas@extundo.com>
127647         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127649 2003-08-20  Karl Berry  <karl@gnu.org>
127651         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127653 2003-08-20  Bruno Haible  <bruno@clisp.org>
127655         * modules/progname: New file.
127656         * MODULES.html.sh (func_all_modules): Add progname.
127658 2003-08-20  Bruno Haible  <bruno@clisp.org>
127660         * lib/progname.h: New file, from GNU gettext.
127661         * lib/progname.c: New file, from GNU gettext.
127662         * lib/progreloc.c: New file, from GNU gettext.
127664 2003-08-19  Jim Meyering  <jim@meyering.net>
127666         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127667         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127669 2003-08-19  Bruno Haible  <bruno@clisp.org>
127671         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127672         more.
127674 2003-08-19  Bruno Haible  <bruno@clisp.org>
127676         * lib/xstrdup.c: Assume <string.h> exists.
127678 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127680         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127681         in makefile rules.
127683 2003-08-18  Jim Meyering  <jim@meyering.net>
127685         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127686         * m4/lib-ld.m4: Likewise.
127688 2003-08-18  Jim Meyering  <jim@meyering.net>
127690         * lib/setenv.h: Indent nested cpp directive.
127691         * lib/vasnprintf.c: Remove trailing blanks.
127693 2003-08-17  Simon Josefsson  <jas@extundo.com>
127695         * modules/xstrndup: New file.
127696         * MODULES.html.sh (func_all_modules): Add xstrndup.
127698 2003-08-17  Simon Josefsson  <jas@extundo.com>
127700         * modules/argp: Fix autoconf macro name. Add more dependencies.
127702 2003-08-17  Simon Josefsson  <jas@extundo.com>
127704         * m4/xstrndup.m4: New file.
127706 2003-08-17  Simon Josefsson  <jas@extundo.com>
127708         * m4/argp.m4: New file.
127710 2003-08-17  Simon Josefsson  <jas@extundo.com>
127711             Bruno Haible  <bruno@clisp.org>
127713         * lib/xstrndup.h: New file.
127714         * lib/xstrndup.c: New file.
127716 2003-08-17  Bruno Haible  <bruno@clisp.org>
127718         * modules/strndup (Files, Include): Add lib/strndup.h.
127720 2003-08-17  Bruno Haible  <bruno@clisp.org>
127722         * modules/euidaccess (Files): Add lib/euidaccess.h.
127724 2003-08-17  Bruno Haible  <bruno@clisp.org>
127726         * lib/strndup.h: New file.
127728 2003-08-17  Bruno Haible  <bruno@clisp.org>
127730         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127731         like AC_GNU_SOURCE.
127732         * modules/extensions (configure.ac): Comment out the invocation of
127733         gl_USE_SYSTEM_EXTENSIONS.
127735 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127737         Merges from coreutils, etc.
127738         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127739         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127740         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127741         fixing a typo.
127742         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127743         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127745 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127747         Document merge from coreutils.
127748         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127749         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127750         * modules/utime: Add m4/utimes-null.m4.
127752 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127754         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127755         space, undoing this 2003-08-12 change:
127756         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127758 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127760         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127761         strtoul.c from libc, undoing this 2003-08-12 change:
127762         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127764 2003-08-16  Jim Meyering  <jim@meyering.net>
127766         Merges from coreutils.
127767         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127768         prefix.  Adjust cache variables similarly.  Create 500 rather than
127769         just 300 files, to exercise bug on Darwin6.5, too.
127770         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127771         $missing_dir.
127772         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127773         AM_SYS_POSIX_TERMIOS.
127774         Reported by mkc@mathdogs.com.
127775         Also change use of $am_cv_sys_posix_termios
127776         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127777         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127778         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127779         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127780         in /proc/mounts until it finds one with matching device number.  This
127781         is unnecessary when the FILE argument *is* a mount point.  No stat call
127782         is necessary in that case.  So, disable the statvfs-testing code on
127783         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127784         as RedHat bug# 84846.
127785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127786         to 1MB, so as not to render systems with no stack size limit (e.g.,
127787         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127788         Include <unistd.h>.  On some systems,
127789         it is required for the definition of _SC_PAGESIZE.
127791 2003-08-16  Jim Meyering  <jim@meyering.net>
127793         Merge from coreutils.
127794         * lib/xstrtoimax.c: #else #if -> #elif.
127795         * lib/xstrtoumax.c: Likewise.
127797 2003-08-16  Jim Meyering  <jim@meyering.net>
127799         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127800         * m4/utimes.m4: Removed.
127801         * m4/utimes-null.m4: Renamed from utimes.m4.
127803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127804         to 1MB, so as not to render systems with no stack size limit (e.g.,
127805         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127806         Include <unistd.h>.  On some systems,
127807         it is required for the definition of _SC_PAGESIZE.
127809 2003-08-16  Jim Meyering  <jim@meyering.net>
127810         and Paul Eggert  <eggert@cs.ucla.edu>
127812         Merges from coreutils, etc.
127814         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127815         using the latest version from cvs.  This avoids problems with #line
127816         directives using a vendor (Sun) compiler.
127817         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127818         Don't set GETGROUPS_LIB here; now it's
127819         done via getgroups.m4's wrapper function.
127820         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127821         rather than just in sh-util/configure.in, so that the
127822         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127823         same.
127824         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127825         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127826         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127827         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127828         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127829         Remove code that is now done by the newly-required macros.
127830         Append $(EXEEXT) to DF_PROG.
127831         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127832         Do not invoke or require the following here,
127833         since prereq.m4 or some gnulib .m4 now does this for us:
127834         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127835         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127836         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127837         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127838         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127839         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127840         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127841         AC_FUNC_OBSTACK.
127842         Do not replace the following functions, as this is now the job
127843         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127844         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127845         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127846         atexit getpass, strdup, getpagesize.
127847         Replace 'raise'.
127848         Do not check for the following functions, as this is now the job
127849         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127850         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127851         setregid.
127852         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127853         Check for sys/sysctl.h.
127854         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127855         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127856         of checking for ssize_t ourselves.
127858         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127859         Require every macro that gnulib/modules/* suggests for us.
127860         (jm_PREREQ_ADDEXT): New macro.
127861         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127862         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127864         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127865         (gl_PHYSMEM): Use it.
127866         Also check for `table' function.
127867         Check for new headers and functions.
127868         Add check for sys/sysmp.h.
127869         With suggestions from Kaveh Ghazi.
127870         Ignore headers that are present but cannot be compiled.  This
127871         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127872         C 5.4.
127874 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127876         Document merge from coreutils.
127877         * modules/userspec: Depend on posixver.
127878         * modules/strftime: Depend on tzset.
127880 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127882         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127883         rather than tab, after '#' in shell-script copyright notices.
127884         Suggested by Bruno Haible.
127886 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127888         * config/srclist-update: Use three spaces, rather than tab, after '#'
127889         in shell-script copyright notices.  Suggested by Bruno Haible.
127890         Remove unnecessary parenthesization in regular expression.
127892 2003-08-15  Jim Meyering  <jim@meyering.net>
127894         Merge from coreutils.
127895         * lib/xgethostname.c: Include <stdlib.h>.
127896         (xghostname): Don't exit for anything other than memory-related
127897         failure; just return NULL.
127898         * lib/userspec.c: Include "posixver.h".
127899         (parse_user_spec): Accept `.' as a separator only
127900         in pre-POSIX-200112 mode.
127901         * lib/strtoimax.c: Use #elif rather than #else #if.
127902         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127903         Remove function, now that we can rely on a working tzset function.
127904         [!_LIBC]: Ensure that the required autoconf test has been run.
127905         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127906         Use underlying_strftime for %r.
127907         * lib/sha.c: Merge in some clean-up and optimization changes from
127908         glibc.
127909         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127910         Ensure that it is a multiple of 64.
127911         Rearrange loop exit tests so as to avoid performing an
127912         additional fread after encountering an error or EOF.
127913         * lib/realloc.c: Update copyright date.
127915 2003-08-15  Jim Meyering  <jim@meyering.net>
127916         and Paul Eggert  <eggert@twinsun.com>
127918         Merge from coreutils.
127919         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127920         member but strut utmpx does not.  Needed for AIX 4.3.3.
127921         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127923 2003-08-15  Jim Meyering  <jim@meyering.net>
127924         and Paul Eggert  <eggert@cs.ucla.edu>
127926         Merges from coreutils, etc.
127927         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127928         Require gl_FUNC_TZSET_CLOBBER.
127929         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127930         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127931         members.
127933 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127935         Help the merge from coreutils.
127936         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
127937         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
127938         * m4/tzset.m4: Use it too.
127940 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127942         * modules/tzset: New file.
127944 2003-08-14  Jim Meyering  <jim@meyering.net>
127946         Merges from coreutils.
127947         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127948         variable names, rather than @FNMATCH_H@.
127949         * modules/alloca: Likewise for $(ALLOCA_H).
127951         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127952         the three copies of the literal target, `fnmatch.h'.
127953         * modules/alloca (alloca.h): Likewise.
127955 2003-08-14  Jim Meyering  <jim@meyering.net>
127957         Merge from coreutils.
127958         * m4/tzset.m4: New file.
127959         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127960         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127961         otherwise, AIX 5.1 systems would end up using the latter.
127962         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127963         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127964         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127965         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127967 2003-08-14  Jim Meyering  <jim@meyering.net>
127969         Merge from coreutils.
127970         * lib/obstack.h: Whitespace changes.
127971         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127972         and xcalloc return values.
127973         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127974         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127975         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127976         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127977         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127978         error from mntctl.
127979         Use mntctl's return value to drive the entry-processing loop, since
127980         we can't rely on the value of the vmt_length member in the last
127981         entry.  On some systems doing so could result in exhausting
127982         virtual memory.  Based in part on a patch from Mike Jetzer.
127984 2003-08-14  Jim Meyering  <jim@meyering.net>
127985         and Paul Eggert  <eggert@twinsun.com>
127987         Merges from coreutils, plus other fixes.
127988         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127989         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127990         for credits and details.  Thanks to Kaveh Ghazi for helping
127991         to keep these files in sync.
127992         (ARRAY_SIZE): Define it.
127993         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127994         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127995         (memcasecmp): Don't assume size_t fits in unsigned int.
127996         Remove casts and duplicate code.
127997         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127998         (memcpy): Remove definition.
127999         Merge in some clean-up and optimization changes from glibc.
128000         [BLOCKSIZE]: Move definition to top of file.
128001         Ensure that it is a multiple of 64.
128002         Rearrange loop exit tests so as to avoid performing an
128003         additional fread after encountering an error or EOF.
128004         * lib/md5.h (md5_uintptr): Define.
128005         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128006         return to the initial working directory.  Preserve errno
128007         for caller.
128008         * lib/idcache.c: Include "xalloc.h".
128009         (xmalloc, xrealloc): Remove decls.
128010         (getuser): Remove casts no longer required in C89.
128011         * lib/human.c: Include stdio.h, for sprintf.
128012         * lib/group-member.c: Include "xalloc.h".
128013         (xmalloc, xrealloc): Remove decls.
128014         (get_group_info): Remove casts no longer required in C89.
128015         * lib/getusershell.c (readname): Remove casts no longer required in
128016         C89.
128017         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128018         * lib/getline.c: Whitespace fix, from coreutils.
128020 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128022         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128023         Check for isascii.
128025         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128026         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128027         Undo previous (whitespace-only) change.
128029 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128031         * lib/exclude.c: Include <ctype.h>
128032         (IN_CTYPE_DOMAIN): New macro.
128033         (is_space): New fn.
128034         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128035         and empty lines.
128037         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128038         Undo previous (whitespace-only) change.
128040 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128042         * config/srclist-update: Change update back to the old behavior,
128043         leaving whitespace alone.  Use one 'sed' command rather than a
128044         pipeline.
128045         (fixlicense): Now a variable, not a function.
128046         (remove_trailing_blanks): Remove.
128047         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128048         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128049         Undo previous (whitespace-only) change.
128051 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128053         Merge from coreutils.
128054         * modules/euidaccess: Add lib_SOURCES, include for new
128055         file euidaccess.h
128057 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128059         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128060         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128061         Normalize leading white space and remove trailing white space.
128063         Merge from coreutils
128064         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128066         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128067         0.12.1.  These files are now being upgraded automatically by
128068         ../config/srclist-update.
128070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128072         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128073         Normalize leading white space and remove trailing white space.
128074         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128075         notice, as per ../config/srclist-update.
128077         Merge from coreutils.
128078         * lib/euidaccess.h: New file.
128079         * lib/euidaccess.c: Include it.
128080         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128081         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128082         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128084 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128086         * config/srclist-update: Add copyright notice.
128087         (remove_id_lines, remove_trailing_blanks): New constants.
128088         (fixfile): Use them to normalize spacing a bit in copied files.
128089         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128090         Normalize leading white space and remove trailing white space.
128092         * config/texinfo.tex: Sync with texinfo.
128094         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128095         strtoul.c from libc, to merge coreutils whitespace changes.
128097         * config/srclist.txt: Get the following m4 files from gettext:
128098         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128099         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128100         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128101         wint_t.m4.
128103 2003-08-12  Karl Berry  <karl@gnu.org>
128105         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128106         been made.
128108 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128110         * modules/gnu-source, m4/gnu-source.m4:
128111         Remove; we're assuming Autoconf 2.54 or later now.
128112         Suggested by Bruno Haible.
128113         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128115 2003-08-11  Bruno Haible  <bruno@clisp.org>
128117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128119 2003-08-11  Bruno Haible  <bruno@clisp.org>
128121         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128122         (vasnprintf): Use it instead of wcslen.
128124 2003-08-11  Bruno Haible  <bruno@clisp.org>
128126         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128127         value to ensure that _Bool promotes to int. Use #define for _Bool when
128128         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128130 2003-08-10  Karl Berry  <karl@gnu.org>
128132         * lib/regex.h: update from libc (whitespace fix).
128134 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128136         Merge some files from coreutils.  These changes were
128137         originally made by Jim Meyering.
128138         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128139         many older Unixes require this.
128140         * lib/alloca.c (alloca): Remove cast to argument of free;
128141         no longer needed in C89.
128142         * lib/alloca_.h, regex.h: Fix white space to match
128143         what GNU indent does.
128145 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128147         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128148         apparently Emacs's Unicode mode got confused before my 2003-08-05
128149         checkin.
128151 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128153         * m4/extensions.m4: New file.
128154         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128155         Require gl_USE_SYSTEM_EXTENSIONS.
128156         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128157         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128159 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128161         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128162         * modules/extensions, modules/gnu-source: New files.
128163         * modules/timespec, modules/unlocked-io: Depend on extensions.
128165 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128167         * modules/restrict: New file.
128168         * MODULES.html.sh (func_all_modules): Add restrict.
128169         * modules/regex: Depend on restrict.
128171 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128173         * m4/restrict.m4: New file.
128174         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128176 2003-08-07  Bruno Haible  <bruno@clisp.org>
128178         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128179         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128181 2003-08-07  Bruno Haible  <bruno@clisp.org>
128183         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128184         makes the module 'getndelim2' compatible with the module 'getline'.
128186 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128188         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128189         byte with "\201" to avoid glitches when editing that source file
128190         with multi-gnome-terminal.
128192 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128194         * lib/bumpalloc.h: Remove.
128196 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128198         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128199         * modules/bumpalloc: Remove.
128201 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128203         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128204         GNU coding style.
128206         Merge from coreutils.
128207         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128208         1. From glibc.
128209         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128210         from Karl Berry, implemented by Jim Meyering.
128211         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128212         from Dmitry V. Levin.
128213         Remove anachronistic cast of xrealloc.
128214         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128215         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128216         type. Otherwise, it wouldn't compile with at least /bin/cc on
128217         ymp-cray-unicos9.0.2.X.
128218         Combine two mostly-identical uses of alloca into one.
128219         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128221 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128223         [From Emacs.]
128225         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128226         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128227         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128228         obsolete NLIST_NAME_UNION.
128229         [__GNU__]: Undef BSD and FSCALE.
128230         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128232 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128234         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128235         an enum type, so that it's guaranteed to promote to int.  See:
128236         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128238 2003-08-03  Karl Berry  <karl@gnu.org>
128240         * config/depcomp: update from automake.
128242 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128244         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128245         (strerror): Don't assume that a printable int fits in 14 bytes.
128247 2003-07-31  Bruno Haible  <bruno@clisp.org>
128249         * modules/getpass-gnu: New file.
128250         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128252 2003-07-31  Bruno Haible  <bruno@clisp.org>
128254         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128256 2003-07-24  Karl Berry  <karl@gnu.org>
128258         * config/missing: update from automake.
128260 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128261             Bruno Haible  <bruno@clisp.org>
128263         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128264         * lib/getline.c (getline, getdelim): Likewise.
128265         Remove _GNU_SOURCE define; now it's defined in config.h through
128266         m4/getline.m4.
128268 2003-07-23  Karl Berry  <karl@gnu.org>
128270         * config/config.sub: update from prep.
128272 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128274         * modules/xalloc (Depends-on): Add exitfail.
128275         * modules/xmemcoll: Likewise.
128277 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128279         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128280         over-parenthesization in macros.
128282         Sync with coreutils.
128284         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128285         required by C99.
128287         Use `exit_failure' for xalloc and xmemcoll instead of their own
128288         private exit-failure variables.
128289         * lib/xalloc.h (xalloc_exit_failure): Remove.
128290         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128291         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128292         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128293         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128294         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128296 2003-07-20  Jim Meyering  <jim@meyering.net>
128298         * modules/closeout (Depends-on): Add exitfail.
128299         Suggestion from Bruno Haible.
128301 2003-07-19  Karl Berry  <karl@gnu.org>
128303         * config/config.sub: update from prep.
128305 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128307         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128308         Remove.
128309         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128310         to test that it can stand by itself.  Include "exitfail.h".
128311         Clients should set exit_failure instead.
128312         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128314 2003-07-18  Bruno Haible  <bruno@clisp.org>
128316         * modules/getndelim2: New file.
128317         * modules/getline: Share files with module getndelim2.
128318         * modules/getnline: Depend on getndelim2 instead of sharing files with
128319         it. Add getnline.c to lib_SOURCES.
128320         * MODULES.html.sh (func_all_modules): Add getndelim2.
128322 2003-07-18  Bruno Haible  <bruno@clisp.org>
128324         * m4/getndelim2.m4: New file.
128325         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128326         invoke gl_PREREQ_GETNDELIM2.
128327         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128328         gl_PREREQ_GETNDELIM2.
128329         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128330         gl_GETNDELIM2.
128332 2003-07-18  Bruno Haible  <bruno@clisp.org>
128334         * lib/getndelim2.h: New file.
128335         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128336         getndelim2.h.
128337         (getndelim2): Make non-static. Change return type to ssize_t.
128338         * lib/getline.h: Change argument names.
128339         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128340         * lib/getnline.c: Include getndelim2.h.
128342 2003-07-18  Andreas Schwab  <schwab@suse.de>
128344         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128346 2003-07-17  Karl Berry  <karl@gnu.org>
128348         * config/config.sub: update from prep.
128350 2003-07-17  Bruno Haible  <bruno@clisp.org>
128352         * modules/getnline: New file.
128353         * modules/getline: Add lib/getndelim2.c to source file list.
128354         * MODULES.html.sh (func_all_modules): Add getnline.
128356 2003-07-17  Bruno Haible  <bruno@clisp.org>
128358         * m4/getnline.m4: New file.
128360 2003-07-17  Bruno Haible  <bruno@clisp.org>
128362         * m4/Makefile.am.in: Remove file.
128363         * m4/Makefile.am: Remove file.
128364         * m4/Makefile.in: Remove file.
128366 2003-07-17  Bruno Haible  <bruno@clisp.org>
128368         * lib/getnline.h: New file.
128369         * lib/getnline.c: New file.
128370         * lib/getndelim2.c: New file, extracted from getline.c.
128371         (getndelim2): Renamed from getdelim2, with added nmax argument.
128372         * lib/getline.c: Include getndelim2.c.
128373         (getdelim2): Moved out to getndelim2.c.
128374         (getline, getdelim): Update.
128376 2003-07-17  Bruno Haible  <bruno@clisp.org>
128378         * lib/Makefile.am: Remove file.
128379         * lib/Makefile.in: Remove file.
128381 2003-07-17  Bruno Haible  <bruno@clisp.org>
128383         * configure.in: Remove file.
128384         * Makefile.in: Remove file.
128386 2003-07-17  Bruno Haible  <bruno@clisp.org>
128388         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128390 2003-07-16  Karl Berry  <karl@gnu.org>
128392         * config/srclist-update: was running fixlicense twice, which caused
128393                 texinfo.tex to be nullified for some reason.  Simplify,
128394                 $gplsrc is no longer needed as far as I can see?
128396 2003-07-16  Jim Meyering  <jim@meyering.net>
128398         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128400 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128402         * config/srclist.txt: Get the following files from gettext-runtime/intl
128403         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128404         ref-del.sin.  From Bruno Haible.
128405         * config/srclist-update (fixfile): Change grep pattern again, since the
128406         previous fix didn't work (there was another trailing $).  Use
128407         '[$]' to escape the $s.
128409 2003-07-15  Karl Berry  <karl@gnu.org>
128411         * lib/vasnprintf.c: update from gettext.
128413 2003-07-15  Karl Berry  <karl@gnu.org>
128415         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128416         gets expanded when surrounded by '$'.
128418 2003-07-15  Jim Meyering  <jim@meyering.net>
128420         * modules/save-cwd: Don't depend on error.  From Derek Price.
128422 2003-07-15  Jim Meyering  <jim@meyering.net>
128424         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128426 2003-07-14  Simon Josefsson  <jas@extundo.com>
128428         * modules/mempcpy: New file.
128429         * MODULES.html.sh (func_all_modules): Add mempcpy.
128431 2003-07-14  Simon Josefsson  <jas@extundo.com>
128433         * m4/mempcpy.m4: New file.
128435 2003-07-14  Simon Josefsson  <jas@extundo.com>
128437         * lib/mempcpy.h: New file.
128438         * lib/mempcpy.c: New file.
128440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128442         * modules/getdate, modules/posixtm: Depend on mktime.
128444 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128446         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128447         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128448         unicodeio.c, unicodeio.h, unlocked-io.h:
128449         Switch from LGPL to GPL.
128451 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128453         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128454         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128455         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128456         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128457         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128458         updated automatically by ../config/srclist-update.  This changes
128459         their license from LPGL to GPL.
128461 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128463         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128464         assumed to refer to the root of the most recent stable gettext version.
128465         * config/srclistvars.sh: Add defaults for eggert.
128466         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128467         Match "This program" as well as "The program".  This is needed
128468         for gettext.
128470 2003-07-14  Jim Meyering  <jim@meyering.net>
128472         Don't emit diagnostics.  Let callers do that.
128473         * lib/save-cwd.c: Don't include "error.h".
128474         (save_cwd): Don't call error.  Ensure that errno is valid
128475         when returning nonzero.
128477         * lib/save-cwd.h (restore_cwd): Update prototype.
128478         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128479         Simplify.  Don't call error upon failure.  Let callers do that.
128480         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128481         when auditing is enabled.  But don't bother updating the #if.
128483 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128485         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128486         it breaks C++ compilation.
128487         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128489 2003-07-10  Simon Josefsson  <jas@extundo.com>
128491         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128493 2003-07-10  Jim Meyering  <jim@meyering.net>
128495         * m4/clock_time.m4: Remove trailing blank.
128496         * m4/intmax_t.m4: Likewise.
128498 2003-07-10  Jim Meyering  <jim@meyering.net>
128500         * lib/vasnprintf.c: Remove trailing blanks.
128501         Make cpp indentation consistent.
128503 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128505         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128506         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128507         Switch from LGPL to GPL.
128509 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128511         * config/srclist.txt: Sort sublists.  Add
128512         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128513         that differ from gnulib for one reason or another; we'd like this list
128514         to be smaller but for now let's document what we have.
128516 2003-07-08  Paul Eggert  <eggert@twinsun.com>
128518         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
128519         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
128520         and sweeter "eval x=$x".
128521         * config/srclist.txt: Get lib/argp* from glibc.
128523 2003-07-07  Paul Eggert  <eggert@twinsun.com>
128525         * lib/mktime.c: Fix some boundary cases and remove need for floating
128526         point.
128528         Issue a compile-time diagnostic if time_t is floating point, or if
128529         two's complement arithmetic is not in effect, or if arithmetic
128530         right shift does not propagate the sign.  These assumptions were
128531         all in the original code but they weren't checked.
128533         (TIME_T_MIDPOINT, verify): New macros.
128534         (__isleap): Remove; it has integer overflow problems.
128535         (leapyear): New function, without those problems.
128536         (ydhms_tm_diff): Remove; splitting into two parts.
128537         (ydhms_diff): New function, containing the arithmetic part of
128538         the old ydhms_tm_diff function.  Issue a compile-time
128539         diagnostic if we are not using C99 integer division.
128540         Avoid casts when possible.
128541         (guess_time_tm): New function, containing the checking part of
128542         the old ydhms_tm_diff function.  Return the new value, rather than
128543         the difference between it and the old.  Accept a new argument T
128544         so that *T specifies the old value.  Check for overflow in the result.
128546         (__mktime_internal): Use a time_t offset, not a long int offset.
128547         This undoes the 2003-06-04 change, which is no longer needed now
128548         that we have better overflow checking.
128549         (localtime_offset): Likewise.
128551         (__mktime_internal): Avoid harmful overflow on hosts where time_t
128552         and long are 64-bit but int is only 32-bit.
128553         (ydhms_diff): Use long int to store year1 and yday1.
128554         Issue a compile-time diagnostic if long int is not wide enough.
128556         (__mktime_internal): Use long int to store adjusted year and yday.
128557         Use plain C rather than preprocessor commands, if that doesn't
128558         affect efficiency.
128559         Check for overflow (and try to repair) after each probe
128560         rather than checking only at the very end.  This avoids some bugs
128561         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
128562         does not equal GMT offset at maximum time).
128563         Use integer to check for overflow rather than floating point; this
128564         is more portable to non-IEEE hosts, and is a tad faster.
128565         When we detect that we are oscillating between two values,
128566         don't check whether tm_isdst has the requested value, since
128567         we already know the answer.  When tm_isdst has the wrong value,
128568         use a different heuristic to find the right one, based on the
128569         extreme values actually observed in practice in tz2003a,
128570         rather than the (overly optimistic) "previous 3 calendar quarters".
128572         (not_equal_tm, print_tm, check_result): Use "const T" rather than
128573         "T const" to accommodate glibc style.
128574         (check_result): Use less-confusing report format.  "long" -> "long int.
128575         (main): Likewise.
128576         Don't loop if the iteration overflows time_t.
128577         Allow a negative step in the iteration.
128579 2003-07-06  Karl Berry  <karl@gnu.org>
128581         * config/depcomp: update from automake.
128582         * config/config.sub: update from prep.
128584 2003-07-03  Karl Berry  <karl@gnu.org>
128586         * config/config.guess: update from prep.
128588 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128590         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
128591         xreadlink.c now includes it unconditionally.
128593 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128595         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128596         having it depend on HAVE_SYS_TYPES_H.
128598 2003-07-01  Bruno Haible  <bruno@clisp.org>
128600         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128601         <sys/types.h> should be sufficient.
128602         Reported by Paul Eggert.
128604 2003-06-26  Karl Berry  <karl@gnu.org>
128606         * config/depcomp: update from automake.
128608 2003-06-26  Bruno Haible  <bruno@clisp.org>
128610         * modules/human: Depend on module stdbool.
128612 2003-06-25  Bruno Haible  <bruno@clisp.org>
128614         * modules/readlink: New file.
128615         * modules/xreadlink: Depend on it.
128616         * MODULES.html.sh (func_all_modules): Add readlink.
128618 2003-06-25  Bruno Haible  <bruno@clisp.org>
128620         * m4/readlink.m4: New file.
128622 2003-06-25  Bruno Haible  <bruno@clisp.org>
128624         * lib/readlink.c: New file.
128626 2003-06-22  Karl Berry  <karl@gnu.org>
128628         * config/srclist.txt: update mkinstalldirs from automake.
128629         * config/mkinstalldirs: update.
128631 2003-06-22  Bruno Haible  <bruno@clisp.org>
128633         Portability to mingw32.
128634         * m4/ssize_t.m4: New file, from GNU gettext.
128635         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128636         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128638 2003-06-22  Bruno Haible  <bruno@clisp.org>
128640         * modules/safe-read: Add m4/ssize_t.m4.
128641         * modules/xreadlink: Add m4/ssize_t.m4.
128643 2003-06-20  Bruno Haible  <bruno@clisp.org>
128645         Assume C89, so PARAMS isn't needed.
128646         * lib/unicodeio.h (PARAMS): Remove.
128647         * lib/unicodeio.c: Don't use PARAMS.
128649 2003-06-18  Karl Berry  <karl@gnu.org>
128651         * config/config.{guess,sub}: update from prep.
128653 2003-06-18  Jim Meyering  <jim@meyering.net>
128655         Merge changes from coreutils.
128656         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128657         Remove explicit declarations of xmalloc and realloc.
128658         Include xalloc.h.
128659         (read_utmp): Remove anachronistic cast of xmalloc.
128661 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128663         Assume C89, so PARAMS isn't needed.
128664         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128665         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128666         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128667         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128668         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128669         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128670         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128671         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128672         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128673         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128674         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128675         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128676         no longer needed. Anyway, config.h should always be included before any
128677         other file.
128679 2003-06-11  Simon Josefsson  <jas@extundo.com>
128681         * modules/sysexits: New file.
128682         * MODULES.html.sh (func_all_modules): Add sysexits.
128684 2003-06-11  Simon Josefsson  <jas@extundo.com>
128686         * lib/sysexit_.h: New file.
128688 2003-06-11  Derek Price  <derek@ximbiot.com>
128690         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128691         necessary.
128693 2003-06-11  Bruno Haible  <bruno@clisp.org>
128695         * m4/sysexits.m4: New file.
128697 2003-06-10  Simon Josefsson  <jas@extundo.com>
128699         * lib/argp.h: New file, from glibc.
128700         * lib/argp-ba.c: New file, from glibc.
128701         * lib/argp-eexst.c: New file, from glibc.
128702         * lib/argp-fmtstream.c: New file, from glibc.
128703         * lib/argp-fmtstream.h: New file, from glibc.
128704         * lib/argp-fs-xinl.c: New file, from glibc.
128705         * lib/argp-help.c: New file, from glibc.
128706         * lib/argp-namefrob.h: New file, from glibc.
128707         * lib/argp-parse.c: New file, from glibc.
128708         * lib/argp-pv.c: New file, from glibc.
128709         * lib/argp-pvh.c: New file, from glibc.
128710         * lib/argp-xinl.c: New file, from glibc.
128712 2003-06-10  Simon Josefsson  <jas@extundo.com>
128714         * modules/strchrnul: New file.
128716 2003-06-10  Simon Josefsson  <jas@extundo.com>
128718         * modules/argp: New file.
128720 2003-06-10  Simon Josefsson  <jas@extundo.com>
128722         * m4/strchrnul.m4: New file.
128724 2003-06-10  Simon Josefsson  <jas@extundo.com>
128726         * lib/strchrnul.h: New file.
128727         * lib/strchrnul.c: New file.
128729 2003-06-10  Bruno Haible  <bruno@clisp.org>
128731         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128733 2003-06-07  Karl Berry  <karl@gnu.org>
128735         * config/config.{guess,sub}: update from prep.
128737 2003-06-07  Jim Meyering  <jim@meyering.net>
128739         * modules/strtod: Use $(...) notation, not @...@ for
128740         AC_REPLACE'd variables.
128741         * modules/localcharset: Likewise.
128743 2003-06-07  Jim Meyering  <jim@meyering.net>
128745         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128746         in place of my name in the copyright comment.
128747         Remove definition and uses of __P.
128749         From coreutils.
128750         * lib/stat.c: Don't declare xmalloc explicitly.
128751         Instead, include "xalloc.h".
128752         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128753         xrealloc, and xcalloc return values.
128754         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128755         Improve comment.
128756         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128758 2003-06-07  Bruno Haible  <bruno@clisp.org>
128760         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128761         avoid AC_CONFIG_LINKS.
128762         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128763         fnmatch.h, to avoid AC_CONFIG_LINKS.
128764         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128766 2003-06-07  Bruno Haible  <bruno@clisp.org>
128768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128769         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128770         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128771         directory.
128772         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128773         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128774         directory.
128776 2003-06-06  Jim Meyering  <jim@meyering.net>
128778         Merge from coreutils.
128779         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128780         Consolidate declarations and initializations of *_base* locals.
128782         Merge from coreutils.
128783         This avoids a core dump on systems without GNU putenv,
128784         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128785         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128786         (unsetenv): New static function, from GNU libc.
128787         (rpl_putenv): Use it.
128789         * lib/modechange.c: Remove trailing blanks.
128791         Merge from coreutils.
128792         * lib/fsusage.c: Remove declaration of statfs.
128793         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128795         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128797 2003-06-06  Jim Meyering  <jim@meyering.net>
128799         * lib/stdbool_.h: Renamed from stdbool.h.in.
128801 2003-06-06  Jim Meyering  <jim@meyering.net>
128802             Bruno Haible  <bruno@clisp.org>
128804         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128805         Adjust Makefile.am snippet not to redirect directly to target.
128806         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128808 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128810         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128811         mismatch, look in future quarters as well as past.  This fixes a
128812         bug when processing fall-backwards gaps immediately after a long
128813         period of daylight-saving time.
128815         * lib/mktime.c: Assume freestanding C89 or better.
128816         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128817         (__P): Remove; not used.
128818         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128819         (mktime, not_equal_tm, print_tm, check_result,
128820         main): Use prototypes.  Use const * where appropriate.
128821         (main): Fix typo in testing code that uncovered by above changes.
128822         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128824 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128826         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128827         locale.h, localeconv.  This merges changes from coreutils.
128829         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128830         It can be removed after the next Autoconf is released.
128831         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128832         needed.
128834 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128836         * lib/mktime.c: Fix Debian bug 177940
128837         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128838         (localtime_offset): Now long int, not time_t, because we want it
128839         to be guaranteed to be signed.  All uses changed.
128840         (__mktime_internal): If overflow would occur when adding offset,
128841         don't add it.
128843         Merge 'human' changes from coreutils.  Rewrite to support
128844         locale-specific notations like thousands separators.
128845         * lib/human.c: Simplify authorship notice.
128846         Include human.h immediately after config.h.
128847         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128848         <limits.h>: Do not include, since human.h does.
128849         (SIZE_MAX, UINTMAX_MAX): New macros.
128850         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128851         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128852         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128853         (power_letter): Renamed from suffixes.
128854         (generate_suffix_backwards): Remove.
128855         (adjust_value): Now takes int style (because of human.h changes)
128856         and long double value (for greater precision on some platforms).
128857         (group_number): New function.
128858         (human_readable): Use it.  Use integer options, not enum.
128859         Put the options before the sizes in the arg list.
128860         Support all the new options.
128861         The old human_readable function has been removed;
128862         use inttostr.h instead.
128863         (human_readable, default_block_size, humblock):
128864         Use uintmax_t, not int, for block sizes.
128865         (human_readable_inexact, block_size_types): Remove.
128866         (block_size_opts): New constant.
128867         (human_options): Renamed from human_block_size, with new signature
128868         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128869         * lib/human.h: Add copyright and authorship notice.
128870         Include <limits.h> and <stdbool.h> unconditionally.
128871         (PARAMS): Remove.  All uses removed.
128872         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128873         (enum human_inexact_style): Remove tag; now a nameless enum.
128874         (human_floor, human_ceiling, human_round_to_even): Now have
128875         values 2, 0, 1 rather than -1, 1, 0.
128876         (human_group_digits, human_suppress_point_zero, human_autoscale,
128877         human_base_1024, human_SI, human_B): New constants.
128878         (human_readable_inexact, human_block_size): Remove.
128879         (human_readable): Size args are now uintmax_t, not int.
128880         (human_options): New decl.
128882         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128883         unnecessary now that we assume C89 or better.  This change
128884         imported from coreutils.
128886         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128887         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128888         in the 2003-05-30 sync from glibc.
128890         .h files should stand alone, but we shouldn't include <sys/types.h>
128891         if we can get away with just <stddef.h>.
128893         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128894         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128895         rather than <sys/types.h>, as we merely need size_t.
128896         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128897         to get size_t.
128898         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128899         Include <stdio.h>, to get FILE.
128900         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128901         memcasecmp.h has included <stddef.h> and all we need is size_t.
128902         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128903         our interface, instead of including <sys/types.h>
128905 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128907         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128908         now, as glibc mktime is buggy on non-glibc systems.
128910 2003-06-03  Karl Berry  <karl@gnu.org>
128912         * config/config.sub: update from prep.
128914 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128916         [from coreutils]
128917         Fix some minor time-related bugs with POSIX time arguments.
128918         Some valid time stamps were being rejected (notably -1, and
128919         time stamps before 1900 on 64-bit hosts).  And some invalid
128920         time stamps were being accepted, e.g. September 31.
128922         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128923         that we can return (time_t) -1 successfully.
128924         * lib/posixtm.c: Likewise.
128925         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128926         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128927         (t): Remove static var.
128928         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128929         of static var.  All uses changed.
128930         (year): Do not reject years before 1900; they can occur with
128931         64-bit time_t.
128932         (posix_time_parse): Do not check for out-of-range components;
128933         that is now the caller's responsibility, since our checks were
128934         only approximations.
128935         (posixtime): Use mktime to check for out-of-range components,
128936         since it knows them exactly.
128937         If mktime returns (time_t) -1, check whether an error actually occurred
128938         by invoking localtime on -1.
128939         (main) [TEST_POSIXTIME]: Check for input data errors, and report
128940         posixtime failures better.
128941         Improve the test data (in comments only).
128943 2003-06-02  Karl Berry  <karl@gnu.org>
128945         * config/mkinstalldirs (version): new variable.
128946         (--version): new option.
128947         (usage): improve message.
128949 2003-05-30  Karl Berry  <karl@gnu.org>
128951         * lib/mktime.c: update from libc.
128953 2003-05-30  Bruno Haible  <bruno@clisp.org>
128955         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128956         * config/config.rpath: Upgrade to gettext-0.12.1.
128958 2003-05-30  Bruno Haible  <bruno@clisp.org>
128960         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128961         * m4/nls.m4: New file, from gettext-0.12.1.
128962         * m4/po.m4: New file, from gettext-0.12.1.
128963         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128965 2003-05-30  Bruno Haible  <bruno@clisp.org>
128967         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128968         * lib/localcharset.h: Likewise.
128969         * lib/localcharset.c: Likewise.
128971 2003-05-29  Karl Berry  <karl@gnu.org>
128973         * config/config.rpath: update from gettext.
128975 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128977         Assume the headers required for C89 freestanding compilers.
128978         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128979         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128980         * m4/human.m4 (gl_HUMAN): Likewise.
128981         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128982         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128983         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128984         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128985         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128986         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128988 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128990         Assume the headers required for C89 freestanding compilers.
128991         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128992         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128993         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128994         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128995         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128996         define, since <limits.h> is guaranteed to do that.
128997         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128998         * lib/exclude.c: Include <stdbool.h> unconditionally.
128999         * lib/tempname.c: Include <stddef.h> unconditionally.
129000         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129001         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129002         <stddef.h> does that.
129003         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129004         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129005         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129006         needed.
129007         * lib/xstrtol.c: Likewise.
129008         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129009         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129011         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129012         warnings on some platforms.
129014         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129015         arbitrarily.
129017 2003-05-26  Jim Meyering  <jim@meyering.net>
129019         Merge in a change from coreutils:
129020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129021         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129022         that condition, rather than `-1' which is slightly misleading.
129023         Change the name of the cache variable to have the gl_ prefix.
129024         Prompted by a patch from Richard Dawe for DJGPP.
129026 2003-05-24  Karl Berry  <karl@gnu.org>
129028         * config/config.guess: update from prep.
129030 2003-05-22  Karl Berry  <karl@gnu.org>
129032         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129034 2003-05-20  Karl Berry  <karl@gnu.org>
129036         * config/config.guess: update from prep.
129038 2003-05-18  Karl Berry  <karl@gnu.org>
129040         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129041         might actually be set by the user.
129043         * config/depcomp, install-sh, mdate-sh: update from automake.
129045 2003-05-17  Bruno Haible  <bruno@clisp.org>
129047         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129048         invalid expansion for AC_EGREP_CPP.
129049         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129050         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129051         Suggested by Akim Demaille <akim@epita.fr> in
129052         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129054 2003-05-12  Jim Meyering  <jim@meyering.net>
129056         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129057         the space-padded-by-default conversion specifiers, %e, %k, %l.
129059 2003-05-12  Bruno Haible  <bruno@clisp.org>
129061         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129062         the string is longer than 4 KB.
129064 2003-05-11  Karl Berry  <karl@gnu.org>
129066         * config/config.{guess,sub}: update from prep.
129068 2003-05-09  Bruno Haible  <bruno@clisp.org>
129070         * modules/error: Add m4/strerror_r.m4 to file list.
129072 2003-05-03  Bruno Haible  <bruno@clisp.org>
129074         Upgrade to Unicode-4.0.
129075         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129076         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129077         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129078         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129079         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129080         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129081         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129082         Change width of U+E0100..U+E01EF from 1 to 0.
129084 2003-04-25  Jim Meyering  <jim@meyering.net>
129086         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129087         of type size_t, not int.
129089 2003-04-25  Bruno Haible  <bruno@clisp.org>
129091         * lib/copy-file.c: Include <stddef.h>, for size_t.
129093 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129095         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129096         code which expansion is under static control.  Patch imported from
129097         Akim Demaille's patch to Bison; see
129098         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129100 2003-04-14  Bruno Haible  <bruno@clisp.org>
129102         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129104 2003-04-11  Jim Meyering  <jim@meyering.net>
129106         Merge changes from Coreutils.
129108         2003-03-22  Jim Meyering  <jim@meyering.net>
129110         * lib/strftime.c (widen): Cast alloca return value to proper type.
129112         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129114         From GNU libc.
129115         * lib/strftime.c (my_strftime): Handle very large width
129116         specifications for numeric values correctly.  Improve checks for
129117         overflow.
129119         2003-01-19  Jim Meyering  <jim@meyering.net>
129121         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129122         definitions.
129123         (nl_get_alt_digit) [! defined my_strftime]: Define.
129124         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129125         _nl_get_alt_digit and _nl_get_walt_digit.
129127         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129128         libc. These changes have no effect outside of _LIBC.
129130 2003-04-10  Bruno Haible  <bruno@clisp.org>
129132         * modules/findprog: New file.
129133         * MODULES.html.sh (func_all_modules): Add it.
129135 2003-04-10  Bruno Haible  <bruno@clisp.org>
129137         * m4/findprog.m4: New file.
129138         * m4/eaccess.m4: New file.
129140 2003-04-10  Bruno Haible  <bruno@clisp.org>
129142         * lib/findprog.h: New file, from GNU gettext.
129143         * lib/findprog.c: New file, from GNU gettext.
129145 2003-04-05  Jim Meyering  <jim@meyering.net>
129147         Merge changes from Coreutils.
129149         * lib/exclude.h (PARAMS): Remove definition and uses.
129150         * lib/exclude.c: Remove uses of `PARAMS'.
129152         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129153         Add test-cases for DOS filenames. Declare program_name.
129154         (main): Set up program_name.  Patch by Rich Dawe.
129156         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129157         error from mntctl.
129158         Use mntctl's return value to drive the entry-processing loop, since
129159         we can't rely on the value of the vmt_length member in the last
129160         entry.  On some systems doing so could result in exhausting
129161         virtual memory.  Based in part on a patch from Mike Jetzer.
129163 2003-04-04  Bruno Haible  <bruno@clisp.org>
129165         * modules/linebreak: New file.
129166         * MODULES.html.sh (func_all_modules): Add it.
129168 2003-04-04  Bruno Haible  <bruno@clisp.org>
129170         * m4/linebreak.m4: New file.
129172 2003-04-04  Bruno Haible  <bruno@clisp.org>
129174         * lib/linebreak.h: New file, from GNU gettext.
129175         * lib/linebreak.c: New file, from GNU gettext with slight
129176         modifications.
129177         * lib/lbrkprop.h: New file, from GNU gettext.
129179 2003-04-03  Bruno Haible  <bruno@clisp.org>
129181         * modules/utf8-ucs4: New file.
129182         * modules/utf16-ucs4: New file.
129183         * modules/ucs4-utf8: New file.
129184         * modules/ucs4-utf16: New file.
129185         * MODULES.html.sh (func_all_modules): Add them.
129187 2003-04-03  Bruno Haible  <bruno@clisp.org>
129189         * m4/utf-ucs4.m4: New file.
129190         * m4/ucs4-utf.m4: New file.
129192 2003-04-03  Bruno Haible  <bruno@clisp.org>
129194         * lib/utf8-ucs4.h: New file, from GNU gettext.
129195         * lib/utf16-ucs4.h: New file, from GNU gettext.
129196         * lib/ucs4-utf8.h: New file, from GNU gettext.
129197         * lib/ucs4-utf16.h: New file, from GNU gettext.
129199 2003-04-02  Bruno Haible  <bruno@clisp.org>
129201         * modules/binary-io: New file.
129202         * MODULES.html.sh (func_all_modules): Add it.
129204 2003-04-02  Bruno Haible  <bruno@clisp.org>
129206         * lib/binary-io.h: New file, from GNU gettext.
129208 2003-04-01  Bruno Haible  <bruno@clisp.org>
129210         * modules/pathname: New file.
129211         * MODULES.html.sh (func_all_modules): Add it.
129213 2003-04-01  Bruno Haible  <bruno@clisp.org>
129215         * lib/pathname.h: New file, from GNU gettext.
129216         * lib/concatpath.c: New file, from GNU gettext.
129218 2003-03-30  Bruno Haible  <bruno@clisp.org>
129220         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129222 2003-03-30  Bruno Haible  <bruno@clisp.org>
129224         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129225         function chown() doesn't exist.
129227 2003-03-28  Bruno Haible  <bruno@clisp.org>
129229         * modules/copy-file: New file.
129230         * MODULES.html.sh (func_all_modules): Add it.
129232 2003-03-28  Bruno Haible  <bruno@clisp.org>
129234         * m4/copy-file.m4: New file.
129236 2003-03-28  Bruno Haible  <bruno@clisp.org>
129238         * lib/copy-file.h: New file, from GNU gettext.
129239         * lib/copy-file.c: New file, from GNU gettext.
129241 2003-03-18  Jim Meyering  <jim@meyering.net>
129243         * lib/quote.c (quote_n): Fix typo in comment.
129245 2003-03-18  Bruno Haible  <bruno@clisp.org>
129247         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129248         checking.
129249         * m4/onceonly_2_57.m4: Likewise.
129251 2003-03-17  Bruno Haible  <bruno@clisp.org>
129253         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129254         (m4_quote): Remove macro.
129255         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129257 2003-03-14  Jim Meyering  <jim@meyering.net>
129259         Merge changes from Coreutils.
129260         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129261         to be const, in order to avoid warnings.
129262         (obstack_room): Likewise.
129263         (obstack_empty_p): Likewise.
129265 2003-03-14  Bruno Haible  <bruno@clisp.org>
129267         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129268         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129270 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129272         Merge changes from Bison.
129273         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129274         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129275         when compiling Bison 1.875's `bitset bset = obstack_alloc
129276         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129277         * lib/hash.c: Include <stdbool.h> unconditionally.
129279 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129281         * m4/onceonly.m4 (m4_quote): New macro.
129282         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129283         Quote AC_FOREACH variable-expansions properly.
129285 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129287         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129289 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129291         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129292         Reported by Bruce Becker; see:
129293         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129295 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129296             Bruno Haible  <bruno@clisp.org>
129298         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129299         Reported by John Hughes, see
129300         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129302 2003-02-20  Bruno Haible  <bruno@clisp.org>
129304         * MODULES.html.sh (func_all_modules): Add poll.
129306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129308         * modules/poll: New file.
129310 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129312         * lib/poll_.h: New file.
129313         * lib/poll.c: New file.
129315 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129317         * m4/poll.m4: New file.
129319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129321         * modules/mathl: New file.
129323 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129325         * lib/mathl.h: New file.
129326         * lib/acosl.c: New file.
129327         * lib/asinl.c: New file.
129328         * lib/atanl.c: New file.
129329         * lib/ceill.c: New file.
129330         * lib/cosl.c: New file.
129331         * lib/expl.c: New file.
129332         * lib/floorl.c: New file.
129333         * lib/frexpl.c: New file.
129334         * lib/ldexpl.c: New file.
129335         * lib/logl.c: New file.
129336         * lib/sincosl.c: New file.
129337         * lib/sinl.c: New file.
129338         * lib/sqrtl.c: New file.
129339         * lib/tanl.c: New file.
129340         * lib/trigl.c: New file.
129341         * lib/trigl.h: New file.
129343 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129345         * m4/mathl.m4: New file.
129347 2003-02-18  Bruno Haible  <bruno@clisp.org>
129349         * MODULES.html.sh (func_all_modules): Add mathl.
129351 2003-02-17  Bruno Haible  <bruno@clisp.org>
129353         * modules/mkdtemp: New module.
129354         * MODULES.html.sh (func_all_modules): Add it.
129356 2003-02-17  Bruno Haible  <bruno@clisp.org>
129358         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129360 2003-02-17  Bruno Haible  <bruno@clisp.org>
129362         * lib/mkdtemp.h: New file, from GNU gettext.
129363         * lib/mkdtemp.c: New file, from GNU gettext.
129365 2003-02-02  Jim Meyering  <jim@meyering.net>
129367         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129368         e.g. glibc-2.2.93.
129370 2003-01-31  Bruno Haible  <bruno@clisp.org>
129372         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129373         'rpl_rename'.
129374         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129375         'rpl_strnlen'.
129376         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129377         'rpl_strtod'.
129378         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129379         'rpl_utime'.
129381 2003-01-31  Bruno Haible  <bruno@clisp.org>
129383         * lib/rename.c: #undef rename before defining rpl_rename.
129384         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129386 2003-01-30  Bruno Haible  <bruno@clisp.org>
129388         * modules/vasnprintf, modules/vasprintf: New modules.
129389         * MODULES.html.sh (func_all_modules): Add them.
129391 2003-01-30  Bruno Haible  <bruno@clisp.org>
129393         * m4/signed.m4: New file, from GNU gettext.
129394         * m4/longdouble.m4: New file, from GNU gettext.
129395         * m4/wchar_t.m4: New file, from GNU gettext.
129396         * m4/wint_t.m4: New file, from GNU gettext.
129397         * m4/vasnprintf.m4: New file.
129398         * m4/vasprintf.m4: New file.
129400 2003-01-30  Bruno Haible  <bruno@clisp.org>
129402         * lib/printf-args.h: New file, from GNU gettext.
129403         * lib/printf-args.c: New file, from GNU gettext.
129404         * lib/printf-parse.h: New file, from GNU gettext.
129405         * lib/printf-parse.c: New file, from GNU gettext.
129406         * lib/vasnprintf.h: New file, from GNU gettext.
129407         * lib/vasnprintf.c: New file, from GNU gettext.
129408         * lib/asnprintf.c: New file, from GNU gettext.
129409         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129410         * lib/vasprintf.c: New file, from GNU gettext.
129411         * lib/asprintf.c: New file, from GNU gettext.
129413 2003-01-29  Bruno Haible  <bruno@clisp.org>
129415         * modules/stpncpy: New module.
129416         * MODULES.html.sh (func_all_modules): Add it.
129418 2003-01-29  Bruno Haible  <bruno@clisp.org>
129420         * m4/stpncpy.m4: New file.
129422 2003-01-29  Bruno Haible  <bruno@clisp.org>
129424         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129425         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129427 2003-01-28  Bruno Haible  <bruno@clisp.org>
129429         * modules/c-ctype: New module.
129430         * MODULES.html.sh (func_all_modules): Add it.
129432 2003-01-28  Bruno Haible  <bruno@clisp.org>
129434         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129435         Paul Eggert.
129436         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129437         Paul Eggert.
129439 2003-01-27  Bruno Haible  <bruno@clisp.org>
129441         * modules/xsetenv: New module.
129442         * MODULES.html.sh (func_all_modules): Add it.
129444 2003-01-27  Bruno Haible  <bruno@clisp.org>
129446         * lib/xsetenv.h: New file, from GNU gettext.
129447         * lib/xsetenv.c: New file, from GNU gettext.
129449 2003-01-23  Jim Meyering  <jim@meyering.net>
129451         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129452         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129454 2003-01-23  Bruno Haible  <bruno@clisp.org>
129456         * modules/minmax: New module.
129457         * MODULES.html.sh (func_all_modules): Add it.
129459 2003-01-23  Bruno Haible  <bruno@clisp.org>
129461         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129462         Eggert.
129464 2003-01-22  Bruno Haible  <bruno@clisp.org>
129466         * modules/exit: New module.
129467         * MODULES.html.sh (func_all_modules): Add it.
129469 2003-01-22  Bruno Haible  <bruno@clisp.org>
129471         * lib/exit.h: New file, from GNU gettext.
129473 2003-01-19  Bruno Haible  <bruno@clisp.org>
129475         * gnulib-tool: Recognize option --extract-maintainer.
129476         (func_get_maintainer): New function.
129477         * modules/*: Add Maintainer entry.
129479 2003-01-16  Jim Meyering  <jim@meyering.net>
129481         * m4/regex.m4: The `regex' struct is both input and output.
129482         Initialize it before each use.  Patch by Tim Waugh.
129484 2003-01-16  Bruno Haible  <bruno@clisp.org>
129486         * MODULES.html.sh: Add a table of contents. Add the module name as
129487         leftmost column. Add hyperlinks.
129489 2003-01-15  Bruno Haible  <bruno@clisp.org>
129491         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129493 2003-01-15  Bruno Haible  <bruno@clisp.org>
129495         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129496         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129497         suffix.
129499 2003-01-15  Bruno Haible  <bruno@clisp.org>
129501         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129503 2003-01-15  Bruno Haible  <bruno@clisp.org>
129505         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129506         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129508 2003-01-14  Jim Meyering  <jim@meyering.net>
129510         * lib/same.c (same_name): Tweak a comment.
129512 2003-01-14  Bruno Haible  <bruno@clisp.org>
129514         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
129515         when a string comparison is sufficient.
129517 2003-01-14  Bruno Haible  <bruno@clisp.org>
129519         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
129520         'unsigned int'.
129522 2003-01-14  Bruno Haible  <bruno@clisp.org>
129524         * lib/hash-pjw.c: Add comment about low quality of this function.
129526 2003-01-13  Bruno Haible  <bruno@clisp.org>
129528         * modules/stpcpy: Distribute lib/stpcpy.h.
129529         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
129531 2003-01-13  Bruno Haible  <bruno@clisp.org>
129533         * modules/*: Add a description.
129534         * modules/strpbrk: Fix Makefile.am snippet.
129535         * modules/strtoimax: Fix dependencies.
129536         * modules/strtoumax: Likewise.
129538 2003-01-13  Bruno Haible  <bruno@clisp.org>
129540         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
129541         * modules/alloca (Makefile.am): All object files depend on alloca.h.
129542         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
129544 2003-01-13  Bruno Haible  <bruno@clisp.org>
129546         * gnulib-tool (func_create_testdir): Store config/* files in the main
129547         directory.
129548         * config.rpath: Move to ...
129549         * config/config.rpath: ... here.
129550         * modules/gettext: Contains config/config.rpath, not config.rpath.
129551         * modules/iconv: Likewise.
129553 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129555         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129556         to avoid collisions with libcurses and libreadline.
129558         * m4/getstr.m4: Remove.
129559         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
129561 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129563         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129564         to avoid collisions with libcurses and libreadline.
129566         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
129567         * lib/getstr.h, getstr.c: Remove.
129568         * lib/getline.c: Include "getline.h", to check interface.
129569         Move body of old getstr.c here: this defines MIN_CHUNK and
129570         declares getdelim2, which is renamed from getstr.
129571         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
129573         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
129574         All uses changed.
129575         * lib/linebuffer.h: Likewise.
129576         (readline): Remove backward-compatibility macro.
129578 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129580         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129581         to avoid collisions with libcurses and libreadline.
129582         * getstr: Remove.
129583         * MODULES.html.sh: Remove getstr.
129584         * modules/getline: Depend on unlocked-io, not getstr.
129586 2003-01-12  Jim Meyering  <jim@meyering.net>
129588         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
129590 2003-01-10  Bruno Haible  <bruno@clisp.org>
129592         * modules/alloca: Change Makefile.am requirements. Simplify Include
129593         requirements. Add lib/alloca_.h to file list.
129595 2003-01-10  Bruno Haible  <bruno@clisp.org>
129597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129599 2003-01-10  Bruno Haible  <bruno@clisp.org>
129601         * lib/alloca_.h: New file.
129602         * lib/getdate.y: Unconditionally include alloca.h.
129603         * lib/makepath.c: Likewise.
129604         * lib/setenv.c: Likewise.
129605         * lib/userspec.c: Likewise.
129607 2003-01-09  Karl Berry  <karl@gnu.org>
129609         * MODULES.html.sh: include `dirname $0` in PATH, to find
129610         gnulib-tool.
129612 2003-01-09  Bruno Haible  <bruno@clisp.org>
129614         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129615         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129617 2003-01-09  Bruno Haible  <bruno@clisp.org>
129619         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129621 2003-01-09  Bruno Haible  <bruno@clisp.org>
129623         * lib/stdbool.h.in: New file.
129625 2003-01-09  Bruno Haible  <bruno@clisp.org>
129627         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129628         * MODULES.html.sh: Likewise.
129630 2003-01-08  Jim Meyering  <jim@meyering.net>
129632         * lib/full-write.c: Undefine and define-away `const' after inclusion
129633         of errno.h, not before.  Suggestion from Bruno Haible.
129635 2003-01-08  Bruno Haible  <bruno@clisp.org>
129637         * modules/full-read: Depend on full-write.
129639 2003-01-08  Bruno Haible  <bruno@clisp.org>
129641         * lib/safe-read.c: Include specification header first, to ensure its
129642         selfcontainedness.
129643         * lib/full-write.c: Likewise.
129645 2003-01-07  Jim Meyering  <jim@meyering.net>
129647         * lib/full-write.c: Rework so that it may serve to define full_read,
129648         too.
129649         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129651 2003-01-07  Bruno Haible  <bruno@clisp.org>
129653         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129654         <inttypes.h>.
129655         * lib/xstrtol.h: Likewise.
129656         * lib/xstrtoimax.c: Likewise.
129657         * lib/xstrtoumax.c: Likewise.
129658         * lib/human.h: Likewise.
129660         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129661         on systems that have <inttypes.h> but not <stdint.h>.
129663 2003-01-07  Bruno Haible  <bruno@clisp.org>
129665         * MODULES.html.sh: Add copyright notice.
129666         (missed_files): Omit CVS directory entries.
129667         (func_module): Make it work with sed-3.02.
129668         * MODULES.txt: Remove file.
129670 2003-01-06  Jim Meyering  <jim@meyering.net>
129672         * lib/version-etc.c: Update year in translatable copyright string.
129674 2003-01-03  Karl Berry  <karl@gnu.org>
129676         * config/config.{guess,sub}: update from prep.
129678 2003-01-02  Karl Berry  <karl@gnu.org>
129680         * doc/COPYING.DOC: belatedly updated to 1.2.
129682 2003-01-01  Karl Berry  <karl@gnu.org>
129684         * gnulib-tool (func_verify_module): report module name $module in
129685         error message, not $1.
129686         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129687         be created, only if it doesn't exist.
129688         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129690 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129692         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129694 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129696         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129697         memcmp if strcoll doesn't work.
129699 2002-12-31  Bruno Haible  <bruno@clisp.org>
129701         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129702         nonempty.
129704 2002-12-31  Bruno Haible  <bruno@clisp.org>
129706         * lib/memcoll.c (STRCOLL): New macro.
129707         (memcoll): Use it.
129709 2002-12-31  Bruno Haible  <bruno@clisp.org>
129711         * lib/localcharset.h: New file.
129712         * lib/localcharset.c: Include it.
129713         * lib/unicodeio.c: Likewise.
129715 2002-12-31  Bruno Haible  <bruno@clisp.org>
129717         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129718         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129720 2002-12-31  Bruno Haible  <bruno@clisp.org>
129722         * lib/getline.h: Include <stddef.h>, for size_t.
129724         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129725         * lib/unicodeio.c: Don't include <stddef.h>.
129727 2002-12-31  Bruno Haible  <bruno@clisp.org>
129729         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129730         HAVE_TM_ZONE.
129732 2002-12-24  Karl Berry  <karl@gnu.org>
129734         * config/config.guess: update from prep.
129736 2002-12-24  Bruno Haible  <bruno@clisp.org>
129738         General infrasructure.
129739         * m4/README: Rewritten.
129740         * m4/onceonly.m4: New file.
129741         * m4/onceonly_2_57.m4: New file.
129743         Module atexit.
129744         * m4/atexit.m4: New file.
129746         Module strtod.
129747         * m4/strtod.m4: New file.
129749         Module strtol.
129750         * m4/strtol.m4: New file.
129752         Module strtoul.
129753         * m4/strtoul.m4: New file.
129755         Module memchr.
129756         * m4/memchr.m4: New file.
129758         Module memcmp.
129759         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129760         (jm_FUNC_MEMCMP): Invoke it.
129762         Module memcpy.
129763         * m4/memcpy.m4: New file.
129765         Module memmove.
129766         * m4/memmove.m4: New file.
129768         Module memset.
129769         * m4/memset.m4: New file.
129771         Module strcspn.
129772         * m4/strcspn.m4: New file.
129774         Module strpbrk.
129775         * m4/strpbrk.m4: New file.
129777         Module strstr.
129778         * m4/strstr.m4: New file.
129780         Module strerror.
129781         * m4/strerror.m4: New file.
129783         Module mktime.
129784         * m4/mktime.m4: Renamed from jm-mktime.m4.
129785         (gl_PREREQ_MKTIME): New macro.
129786         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129788         Module malloc.
129789         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129790         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129791         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129793         Module realloc.
129794         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129795         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129796         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129798         Module strftime.
129799         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129801         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129802         gl_TM_GMTOFF.
129803         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129805         Module xalloc.
129806         * m4/xalloc.m4: New file.
129808         Module alloca.
129809         * m4/alloca.m4: New file.
129811         Module putenv.
129812         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129813         (jm_FUNC_PUTENV): Invoke it.
129815         Module setenv.
129816         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129817         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129818         when invoked twice.
129819         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129820         gt_FUNC_SETENV.
129822         Module memrchr.
129823         * m4/memrchr.m4: New file.
129825         Module stpcpy.
129826         * m4/stpcpy.m4: New file.
129828         Module strcase.
129829         * m4/strcase.m4: New file.
129831         Module strdup.
129832         * m4/strdup.m4: New file.
129834         Module strnlen.
129835         * m4/strnlen.m4: New file.
129837         Module strndup.
129838         * m4/strndup.m4: New file.
129840         Module xstrtod.
129841         * m4/xstrtod.m4: New file.
129843         Module xstrtol.
129844         * m4/xstrtol.m4: New file.
129846         Module getdate.
129847         * m4/getdate.m4: New file.
129849         Module unlocked-io.
129850         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129851         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129852         * m4/jm-glibc-io.m4n: Remove file.
129854         Module long-options.
129855         * m4/long-options.m4: New file.
129857         Module md5.
129858         * m4/md5.m4: New file.
129860         Module sha.
129861         * m4/sha.m4: New file.
129863         Module getstr.
129864         * m4/getstr.m4: New file.
129866         Module getline.
129867         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129868         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129869         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129870         simply getline. Infoke gl_PREREQ_GETLINE.
129872         Module obstack.
129873         * m4/obstack.m4: New file.
129875         Module hash.
129876         * m4/hash.m4: New file.
129878         Module readtokens.
129879         * m4/readtokens.m4: New file.
129881         Module strverscmp.
129882         * m4/strverscmp.m4: New file.
129884         Module stdbool.
129885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129886         OSF/1.
129888         Module strtoll.
129889         * m4/strtoll.m4: New file.
129891         Module strtoull.
129892         * m4/strtoull.m4: New file.
129894         Module strtoimax.
129895         * m4/strtoimax.m4: New file.
129897         Module strtoumax.
129898         * m4/strtoumax.m4: New file.
129900         Module xstrtoimax.
129901         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129902         jm_AC_PREREQ_XSTRTOIMAX.
129903         Moved the strtol prerequisites to strtol.m4.
129904         Moved the strtoll prerequisites to strtoll.m4.
129905         Moved the strtoimax prerequisites to strtoimax.m4.
129907         Module xstrtoumax.
129908         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129909         jm_AC_PREREQ_XSTRTOUMAX.
129910         Moved the strtoul prerequisites to strtoul.m4.
129911         Moved the strtoull prerequisites to strtoull.m4.
129912         Moved the strtoumax prerequisites to strtoumax.m4.
129914         Module chown.
129915         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129916         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129918         Module dup2.
129919         * m4/dup2.m4: New file.
129921         Module ftruncate.
129922         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129923         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129925         Module getgroups.
129926         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129927         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129929         Module gettimeofday.
129930         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129931         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129932         gl_PREREQ_GETTIMEOFDAY.
129934         Module mkdir.
129935         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
129936         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
129938         Module mkstemp.
129939         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
129940         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
129941         jm_AC_TYPE_UINTMAX_T.
129942         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
129944         Module stat.
129945         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
129946         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129948         Module lstat.
129949         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129950         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129952         Module timespec.
129953         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129954         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129955         * m4/st_mtim.m4: Indentation.
129957         Module nanosleep.
129958         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129959         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129960         gl_PREREQ_NANOSLEEP.
129962         Module regex.
129963         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129964         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129965         (gl_REGEX): New macro.
129967         Module rename.
129968         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129969         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129971         Module rmdir.
129972         * m4/rmdir.m4: New file.
129974         Module utime.
129975         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129976         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129977         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129979         Module dirname.
129980         * m4/dirname.m4: New file.
129982         Module getopt.
129983         * m4/getopt.m4: New file.
129985         Module unistd-safer.
129986         * m4/unistd-safer.m4: New file.
129988         Module fnmatch.
129989         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129990         declaration.
129991         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129992         (gl_FUNC_FNMATCH_POSIX): New macro.
129993         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129994         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129995         simply fnmatch.
129997         Module exclude.
129998         * m4/exclude.m4: New file.
130000         Module human.
130001         * m4/human.m4: New file.
130003         Module acl.
130004         * m4/acl.m4: Nop.
130006         Module backupfile.
130007         * m4/backupfile.m4: New file.
130008         * m4/d-ino.m4: Indentation.
130010         Module fsusage.
130011         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130012         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130013         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130015         Module dirfd.
130016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130017         requirements.
130019         Module euidaccess.
130020         * m4/euidaccess.m4: New file.
130022         Module file-type.
130023         * m4/file-type.m4: New file.
130025         Module fileblocks.
130026         * m4/fileblocks.m4: New file.
130028         Module filemode.
130029         * m4/filemode.m4: New file.
130031         Module isdir.
130032         * m4/isdir.m4: New file.
130034         Module lchown.
130035         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130036         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130038         Module makepath.
130039         * m4/makepath.m4: New file.
130041         Module modechange.
130042         * m4/modechange.m4: New file.
130044         Module mountlist.
130045         * m4/mountlist.m4: New file.
130046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130047         Indentation.
130049         Module path-concat.
130050         * m4/path-concat.m4: New file.
130052         Module pathmax.
130053         * m4/pathmax.m4: New file.
130055         Module same.
130056         * m4/same.m4: New file.
130058         Module save-cwd.
130059         * m4/save-cwd.m4: New file.
130061         Module savedir.
130062         * m4/savedir.m4: New file.
130064         Module xgetcwd.
130065         * m4/xgetcwd.m4: New file.
130066         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130068         Module xreadlink.
130069         * m4/xreadlink.m4: New file.
130071         Module safe-read.
130072         * m4/safe-read.m4: New file.
130074         Module safe-write.
130075         * m4/safe-write.m4: New file.
130077         Module closeout.
130078         * m4/closeout.m4: New file.
130080         Module stdio-safer.
130081         * m4/stdio-safer.m4: New file.
130083         Module getpass.
130084         * m4/getpass.m4: New file.
130086         Module getugroups.
130087         * m4/getugroups.m4: New file.
130089         Module group-member.
130090         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130091         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130093         Module idcache.
130094         * m4/idcache.m4: New file.
130096         Module userspec.
130097         * m4/userspec.m4: New file.
130099         Module gettime.
130100         * m4/clock_time.m4: New file.
130101         * m4/gettime.m4: New file.
130103         Module settime.
130104         * m4/settime.m4: New file.
130106         Module posixtm.
130107         * m4/posixtm.m4: New file.
130109         Module gethostname.
130110         * m4/gethostname.m4: New file.
130112         Module canon-host.
130113         * m4/canon-host.m4: New file.
130115         Module gettext.
130116         * m4/codeset.m4: New file, from gettext-0.11.5.
130117         * m4/gettext.m4: New file, from gettext-0.11.5.
130118         * m4/glibc21.m4: New file, from gettext-0.11.5.
130119         * m4/iconv.m4: New file, from gettext-0.11.5.
130120         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130121         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130122         * m4/inttypes.m4: New file, from gettext-0.11.5.
130123         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130124         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130125         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130126         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130127         * m4/lib-link.m4: New file, from gettext-0.11.5.
130128         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130129         * m4/progtest.m4: New file, from gettext-0.11.5.
130130         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130131         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130132         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130134         Module localcharset.
130135         * m4/localcharset.m4: New file.
130137         Module hard-locale.
130138         * m4/hard-locale.m4: New file.
130140         Module mbswidth.
130141         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130142         onceonly macros.
130143         * m4/mbrtowc.m4: Add comment.
130145         Module memcasecmp.
130146         * m4/memcasecmp.m4: New file.
130148         Module memcoll.
130149         * m4/memcoll.m4: New file.
130151         Module unicodeio.
130152         * m4/unicodeio.m4: New file.
130154         Module rpmatch.
130155         * m4/rpmatch.m4: New file.
130157         Module yesno.
130158         * m4/yesno.m4: New file.
130160         Module exitfail.
130161         * m4/exitfail.m4: New file.
130163         Module c-stack.
130164         * m4/c-stack.m4 (gl_C_STACK): New macro.
130165         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130167         Module error.
130168         * m4/error.m4 (gl_ERROR): New macro.
130169         (jm_PREREQ_ERROR): Use onceonly macros.
130171         Module fatal.
130172         * m4/fatal.m4: New file.
130174         Module getloadavg.
130175         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130176         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130178         Module getpagesize.
130179         * m4/getpagesize.m4: New file.
130181         Module getusershell.
130182         * m4/getusershell.m4: New file.
130184         Module physmem.
130185         * m4/physmem.m4: New file.
130187         Module posixver.
130188         * m4/posixver.m4: New file.
130190         Module quotearg.
130191         * m4/quotearg.m4: New file.
130193         Module quote.
130194         * m4/quote.m4: New file.
130196         Module readutmp.
130197         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130199         Module sig2str.
130200         * m4/sig2str.m4: New file.
130202         Other.
130203         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130204         ulonglong.m4.
130205         * m4/intmax_t.m4: New file.
130206         * m4/d-type.m4: Indentation.
130207         * m4/jm-macros.m4: Update.
130208         * m4/prereq.m4 (jm_PREREQ): Update.
130209         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130210         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130211         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130212         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130213         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130214         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130215         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130216         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130217         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130218         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130219         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130220         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130221         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130222         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130223         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130224         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130225         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130226         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130227         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130229 2002-12-24  Bruno Haible  <bruno@clisp.org>
130231         * MODULES.txt: Update according to m4/ changes.
130233         Module gettext.
130234         * config.rpath: New file, from gettext-0.11.5.
130236         * modules/*: New module descriptions.
130237         * gnulib-tool: New file.
130238         * MODULES.html.sh: New file.
130240 2002-12-21  Karl Berry  <karl@gnu.org>
130242         * doc/fdl.texi: update to version 1.2.
130244 2002-12-19  Karl Berry  <karl@gnu.org>
130246         * config/config.guess: update from prep.
130248 2002-12-18  Bruno Haible  <bruno@clisp.org>
130250         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130251         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130253 2002-12-17  Bruno Haible  <bruno@clisp.org>
130255         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130256         stdlib.h, string.h.
130258 2002-12-17  Bruno Haible  <bruno@clisp.org>
130260         * lib/canon-host.c (strdup): Remove unused declaration.
130262         * lib/fsusage.c: Include full_read.h.
130263         (get_fs_usage): Use full_read instead of safe_read.
130265         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130267 2002-12-12  Karl Berry  <karl@gnu.org>
130269         * config/config.guess: update from prep.
130271 2002-12-11  Bruno Haible  <bruno@clisp.org>
130273         * m4/setenv.m4: New file, from gettext-0.11.5.
130275 2002-12-11  Bruno Haible  <bruno@clisp.org>
130277         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130278         not unsetenv().
130279         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130280         modifications:
130282         2002-12-11  Bruno Haible  <bruno@clisp.org>
130284                 * setenv.c (alloca): Fall back to malloc.
130285                 (freea): New macro.
130286                 (setenv): Use freea() to free memory allocated with alloca().
130288         2002-11-13  Bruno Haible  <bruno@clisp.org>
130290                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130291                 function declarations.
130292                 * unsetenv.c (unsetenv): Likewise.
130294         2002-03-04  Bruno Haible  <bruno@clisp.org>
130296                 Portability to AIX 4.3.3.
130297                 * unsetenv.c: New file, extracted from setenv.c.
130298                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130300         2001-12-20  Bruno Haible  <bruno@clisp.org>
130302                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130303                 use malloc instead. For SunOS 4.
130305         2001-12-11  Bruno Haible  <bruno@clisp.org>
130307                 * setenv.c: Declare alloca.
130308                 (compar_fn_t): New typedef.
130309                 (KNOWN_VALUE, STORE_VALUE): Use it.
130311         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130312         setenv.h.
130314 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130316         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130317         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130318         Choose values that are less likely to collide with system fnmatch
130319         options.
130320         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130321         defined (e.g., a pure POSIX system).
130322         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130323         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130325 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130327         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130328         a pain in practice to deal with generated m4 files.  This change
130329         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130331         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130332         and jm-glibc-io.m4, as they are no longer a special case.
130333         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130334         kludge and the auto-generation stuff.  Check only whether the
130335         functions are declared, not whether they exist, since older hosts
130336         that don't declare the functions can't use the optimization anyway.
130338 2002-12-06  Jim Meyering  <jim@meyering.net>
130340         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130342         Merge in changes from libc's misc/error.c, in preparation
130343         for the merge of gnulib's changes back into libc.
130345         * lib/error.c (_): Define only if not already defined.
130346         Move definition to follow all #include directives.
130347         Include unlocked-io.h only if !_LIBC.
130348         [_LIBC]: Include <libio/libioP.h>.
130349         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130350         (fflush): Tweak definition to use INTUSE.
130351         (putc): Define.
130353 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130355         * lib/alloca.c [defined emacs]: Include "lisp.h".
130356         (xalloc_die) [defined emacs]: New macro.
130357         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130358         [! defined emacs]: Include <xalloc.h>.
130359         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130360         (pointer): Typedef to POINTER_TYPE *.
130361         (malloc): Remove decl; we now always use xmalloc.
130362         (alloca): Use old-style definition, since Emacs needs this.
130363         Check for arithmetic overflow when computing combined size.
130365 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130367         Do not generate unlocked-io.h automatically, since it's easier to
130368         maintain it by hand.
130370         * lib/unlocked-io.h: New file, from GNU diffutils,
130371         but with proper copyright notice and attribution.
130372         * lib/gen-uio: Remove.
130373         * lib/Makefile.am: Add copyright notice.
130374         (libfetish_a_SOURCES): Add unlocked-io.h.
130375         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130376         (DISTCLEANFILES, io_functions): Remove macros.
130377         (EXTRA_DIST): Remove gen_uio.
130378         (unlocked-io.h): Remove rule.
130380 2002-12-04  Jim Meyering  <jim@meyering.net>
130382         Reflect the fact that stat.c and lstat.c are no longer generated.
130383         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130384         (DISTCLEANFILES): Likewise.
130385         (EXTRA_DIST): Likewise.
130386         (all_local): Don't depend on stat.c or lstat.c.
130387         (stat.c, lstat.c): Remove rules.
130388         (EXTRA_DIST): Remove xstat.in.
130390         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130391         * lib/stat.c: New file.  Contents mostly from xstat.in.
130392         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130393         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130395         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130396         too.
130397         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130399 2002-12-03  Jim Meyering  <jim@meyering.net>
130401         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130402         but not semantics, to minimize the differences between these two files.
130403         (safe_read): Change comment to mention SAFE_READ_ERROR.
130405         * lib/safe-read.c (IS_EINTR): Define.
130406         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130408 2002-12-02  Jim Meyering  <jim@meyering.net>
130410         * lib/safe-read.c (EINTR): Define.
130411         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130412         (INT_MAX): Provide fallback.
130413         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130415         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130417 2002-12-02  Bruno Haible  <bruno@clisp.org>
130419         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130420         Define, taken from safe-read.c.
130421         (INT_MAX): Provide fallback.
130422         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130423         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130425         * lib/safe-read.c (EINTR): Remove definition.
130426         (safe_read): Don't use EINTR if it is absent.
130428 2002-12-01  Jim Meyering  <jim@meyering.net>
130430         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130431         zero.
130432         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130434 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130436         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130437         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130438         with `if (! (value < limit)) abort ();', for readability.
130440 2002-11-26  Karl Berry  <karl@gnu.org>
130442         * lib/strdup.c: copy from libc again, with jim's ok.
130443         * lib/.cppi-disable: re-add strdup.c
130445 2002-11-25  Karl Berry  <karl@gnu.org>
130447         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130448         instead of "strtol.c".
130450 2002-11-25  Karl Berry  <karl@gnu.org>
130452         * config/install-sh: update from automake for variable quoting, $0 in
130453         error msgs, etc.
130455         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130456         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130457         entry.
130459 2002-11-25  Jim Meyering  <jim@meyering.net>
130461         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130463 2002-11-24  Karl Berry  <karl@gnu.org>
130465         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130466         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130468 2002-11-24  Jim Meyering  <jim@meyering.net>
130470         Update from coreutils:
130472         * lib/mktime.c: Merge in changes from libc.
130474         Avoid a link-time failure on some Linux systems.
130475         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130476         (otherwise).
130477         (__mon_yday): Declare with the STATIC attribute.
130478         (__mktime_internal): Likewise.
130479         Based on a report from Greg Schafer.
130481 2002-11-23  Jim Meyering  <jim@meyering.net>
130483         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130484         Use `unsigned', not `int', as type of index.
130486         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130488         * lib/fsusage.c: Remove unneeded parentheses around operands of
130489         `defined'.
130491 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130493         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130494         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130495         so that we can be included first.
130496         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130497         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130498         No need to include stddef.h or sys/types.h any more.
130499         Surround local include files with "", not "<>".
130500         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130501         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130502         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130503         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130504         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130505         (ISPRINT): Remove; no longer needed now that we assume C89.
130507         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130508         Preserve errno.
130510         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130511         quotearg_char): Use SIZE_MAX rather than
130512         (size_t) -1 when we are talking about "infinity".
130514         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
130516 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130518         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
130519         hint that one should use `if (! x) abort ();' rather than `assert
130520         (x);', and anyway it's one less thing to worry about configuring.
130521         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
130522         hash_rehash, hash_insert): Use abort rather than assert.
130524 2002-11-22  Bruno Haible  <bruno@clisp.org>
130526         * lib/safe-read.h: Assume C89. Add comments.
130527         (safe_read): Change return type to size_t.
130528         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
130529         byte counts > SSIZE_MAX correctly.
130530         * lib/safe-write.h: New file.
130531         * lib/safe-write.c: New file.
130532         * lib/full-read.h: New file.
130533         * lib/full-read.c: New file.
130534         * lib/full-write.h: Assume C89. Add comments.
130535         * lib/full-write.c: Include safe-write.h.
130536         (full_write): Rewritten to use safe_write.
130537         Suggested by Jim Meyering and Paul Eggert.
130539 2002-11-21  Jim Meyering  <jim@meyering.net>
130541         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
130543         Merge in changes from the coreutils.
130545         2002-09-25  Paul Eggert  <eggert@twinsun.com>
130546         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
130547         <stdint.h>.
130548         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
130549         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
130550         int.  Work more efficiently if X is the same width as uintmax_t.
130551         Do not compare X to -1, to avoid bogus compiler warning.
130552         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
130553         Don't assume that f_frsize and f_bsize are the same type.
130555         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
130556         warning on FreeBSD.
130558         * lib/makepath.c (make_path): Restore umask *before* creating the final
130559         component.
130560         (make_path): Minor reformatting.
130562         * lib/xmalloc.c: Adjust to work with new autoconf macros,
130563         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
130564         HAVE_MALLOC/HAVE_REALLOC.
130566         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
130567         dummy ones.  At least on GNU/Linux systems, `auto' means something
130568         else.
130569         From Michael Stone.
130571 2002-11-21  Bruno Haible  <bruno@clisp.org>
130573         Remove case insensitive option matching.
130574         * lib/argmatch.h (argcasematch): Remove declaration.
130575         (ARGCASEMATCH): Remove macro.
130576         (__xargmatch_internal): Remove case_sensitive argument.
130577         (XARGMATCH): Update.
130578         (XARGCASEMATCH): Remove macro.
130579         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
130580         case_sensitive argument.
130581         (argcasematch): Remove function.
130582         (__xargmatch_internal): Remove case_sensitive argument.
130583         (main): Use XARGMATCH instead of XARGCASEMATCH.
130585         * lib/xmalloc.c: Change compile-time error message. Add comment about
130586         required autoconf version.
130588 2002-11-20  Paul Eggert  <eggert@twinsun.com>
130590         Merge argmatch cleanups from Bison.  Assume C89.
130592         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130593         Include stdlib.h, for EXIT_FAILURE.
130594         Always include <string.h>, since we assume C89.
130595         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130596         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130597         Include <stddef.h> instead, since it's all we need for size_t.
130598         (PARAMS): Remove.  All uses removed.
130599         (ARRAY_CARDINALITY): Do not bother to #undef.
130600         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130601         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130602         Remove unnecessary parentheses.
130603         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130604         Insert necessary parentheses.
130605         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130606         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130608 2002-11-19  Bruno Haible  <bruno@clisp.org>
130610         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
130611         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130613         * lib/mbswidth.h (PARAMS): Remove macro.
130614         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130615         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130617         * lib/gcd.h (PARAMS): Remove macro.
130618         (gcd): Use ANSI C function declarations.
130619         * lib/gcd.c (gcd): Likewise.
130621 2002-11-15  Bruno Haible  <bruno@clisp.org>
130623         * lib/strcspn.c: Include <stddef.h>.
130624         (strcspn): Use ANSI C function declaration. Change return type to
130625         size_t. Use NULL.
130626         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130627         (strpbrk): Use NULL.
130628         * lib/strpbrk.h (PARAMS): Remove macro.
130629         (strpbrk): Use ANSI C function declaration.
130630         * lib/strstr.c: Don't include <sys/types.h>.
130631         * lib/strstr.h (PARAMS): Remove macro.
130632         (strstr): Use ANSI C function declarations.
130634 2002-11-14  Karl Berry  <karl@gnu.org>
130636         * config/mkinstalldirs: `do' on separate line, instead of
130637         `for var; do'.
130639 2002-11-06  Bruno Haible  <bruno@clisp.org>
130641         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130642         * lib/gcd.c (gcd): Likewise.
130644 2002-11-05  Bruno Haible  <bruno@clisp.org>
130646         * lib/gcd.h: New file, from gettext-0.11.5.
130647         * lib/gcd.c: New file, from gettext-0.11.5.
130649 2002-11-05  Bruno Haible  <bruno@clisp.org>
130651         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130652         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130653         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130654         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130656         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130657         <libintl.h>.
130658         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130659         <libintl.h>.
130661         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130662         * lib/human.c: Include gettext.h instead of <libintl.h>.
130663         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130664         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130665         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130666         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130667         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130668         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130669         (textdomain): Remove definition.
130670         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130672         * lib/long-options.c: Remove include of <libintl.h> and definition of
130673         _.
130674         * lib/same.c: Remove include of <libintl.h> and definition of _.
130676 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130678         * lib/config.charset: A few additions for Solaris.
130680 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130682         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130683         * lib/localcharset.c (locale_charset): Declare as extern "C".
130685 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130687         * lib/config.charset: msdos in uk_UA uses CP1125.
130689 2002-11-04  Bruno Haible  <bruno@clisp.org>
130691         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130692         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130693         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130694         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130695         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130697 2002-11-04  Bruno Haible  <bruno@clisp.org>
130699         * lib/localcharset.c (locale_charset): Don't return an empty string.
130701 2002-11-04  Bruno Haible  <bruno@clisp.org>
130703         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130704         aliases.
130706 2002-11-04  Bruno Haible  <bruno@clisp.org>
130708         * lib/config.charset: Update for newest glibc. Add canonical names
130709         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130711 2002-11-04  Bruno Haible  <bruno@clisp.org>
130713         * lib/config.charset: Add support for NetBSD.
130715 2002-11-04  Bruno Haible  <bruno@clisp.org>
130717         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130719 2002-11-01  Bruno Haible  <bruno@clisp.org>
130721         * configure.in: Add AC_CONFIG_AUX_DIR call.
130722         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130723         test/Makefile.
130724         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130726 2002-09-28  Karl Berry  <karl@gnu.org>
130728         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130729         installed automake until the next release, since changes have been
130730         made.
130732 2002-09-25  Karl Berry  <karl@gnu.org>
130734         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130735         * lib/getopt*: copy from libc/posix.
130736         * lib/gettext.h: copy from gettext.
130737         * lib/.cppi-disable: add strdup.c, gettext.h.
130739 2002-09-25  Karl Berry  <karl@gnu.org>
130741         * config/srclist.txt: enable gettext.h check.
130742         * config/config.{guess,sub}: update from prep.
130743         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130744                 from automake 1.6.3.
130745         See srclist*.
130747 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130749         * regex.c (PATFETCH): Remove the translating fetch.
130750         (PATFETCH_RAW): Rename to PATFETCH.
130751         (set_image_of_range): New fun.
130752         (SET_RANGE_TABLE_WORK_AREA): Use it.
130753         (regex_compile): Don't translate the pattern chars so eagerly.
130754         Only do it when inserting an `exactn' bytecode or when handling
130755         a char-range.
130756         (mutually_exclusive_p): Avoid empty statement.
130758 2002-07-06  Jim Meyering  <meyering@lucent.com>
130760         * m4/README: Don't mention Makefile.am.in.
130761         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130763 2002-07-01  Jim Meyering  <meyering@lucent.com>
130765         * lib/c-stack.c: Include sys/time.h.
130766         From Volker Borchert.
130768 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130770         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130772 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130774         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130775         New macro.  Use it uniformly instead of
130776         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130777         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130778         reported by Vin Shelton.
130780 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130782         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130783         Do not assume SA_SIGINFO behavior.
130784         Bug reported by Jim Meyering on NetBSD 1.5.2.
130786 2002-06-22  Jim Meyering  <meyering@lucent.com>
130788         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130792         now that configure.ac uses AC_GNU_SOURCE.
130793         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130794         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130796         Update to latest tools.  Suggestions from Paul Eggert.
130797         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130798         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130799         * m4/fnmatch.m4: Likewise.
130800         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130801         to AC_HEADER_STDBOOL
130803 2002-06-22  Jim Meyering  <meyering@lucent.com>
130805         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130806         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130808 2002-06-22  Jim Meyering  <meyering@lucent.com>
130810         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130812         * lib/exitfail.c, exitfail.h: Likewise.
130813         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130815         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130816         of fnmatch.h.
130817         (EXTRA_DIST): Add fnmatch_loop.c.
130818         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130820         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130821         * lib/fnmatch.c: Update from diffutils-2.8.2.
130822         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130823         * lib/fnmatch.h: Remove file.
130825 2002-06-21  Jim Meyering  <meyering@lucent.com>
130827         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130828         * m4/mbrtowc.m4: Likewise.
130830         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130831         * m4/mbswidth.m4: Reflect name change:
130832         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130833         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130835         * m4/lib-link.m4: Update from gettext-0.11.2.
130836         * m4/gettext.m4: Likewise.
130838         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130839         From Alfred M. Szmidt.
130841 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130843         * lib/file-type.h: Report an error if neither S_ISREG nor
130844         S_IFREG is defined, instead of using a test specific to glibc
130845         2.2.  This should be safe, since POSIX requires S_ISREG and
130846         Unix Version 7 had S_IFREG.  We don't need to check for
130847         <sys/types.h> since we don't use any symbols that it defines.
130849 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130851         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130852         $@-t, so that each temporary file name is unique and valid in the first
130853         8 characters, for operation under DOS.
130855 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130859 2002-06-15  Jim Meyering  <meyering@lucent.com>
130861         Work even with DJGPP 2.03, which lacks support for symlinks.
130862         From Richard Dawe.
130863         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130864         is defined.
130865         * lib/lchown.c (S_ISLNK): Likewise.
130867 2002-06-15  Jim Meyering  <meyering@lucent.com>
130869         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130870         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130871         have been included before this file.
130873 2002-06-14  Jim Meyering  <meyering@lucent.com>
130875         * lib/file-type.h: Use the version from diffutils-2.8.2.
130876         * lib/file-type.c: Likewise.
130878 2002-06-07  Jim Meyering  <meyering@lucent.com>
130880         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130881         They're needed at least for NetBSD 1.5.2.
130882         ($statxfs_includes): Include those same headers.
130883         ($statxfs_includes): Include sys/vfs.h if available.
130884         ($statxfs_includes): Likewise for sys/statvfs.h.
130885         Check for the following members in both structs statfs and statvfs:
130886         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130888 2002-06-01  Jim Meyering  <meyering@lucent.com>
130890         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130891         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130893 2002-05-28  Jim Meyering  <meyering@lucent.com>
130895         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130896         Reported by Volker Borchert.
130898 2002-05-27  Jim Meyering  <meyering@lucent.com>
130900         Fix a problem seen only on nonconforming systems whereby ls.c's
130901         use of localtime, and then of gettimeofday would cause trouble:
130902         the localtime call used to initialize rpl_gettimeofday's save
130903         mechanism would clobber ls's current local time information so
130904         that in any long listing the first file would always be listed
130905         with date 1970-01-01.  Analysis by Volker Borchert.
130907         * lib/gettimeofday.c (localtime): Undefine.
130908         (rpl_localtime): New function.
130910 2002-05-27  Jim Meyering  <meyering@lucent.com>
130912         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130913         localtime.
130915         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130916         use the replacement function; it wouldn't resolve at link time.
130917         Reported by Volker Borchert.
130919 2002-05-22  Jim Meyering  <meyering@lucent.com>
130921         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130922         file-type.h.
130923         * lib/file-type.h: New file.
130924         * lib/file-type.c (file_type): New file/function.  Extracted from
130925         diffutils.
130927 2002-04-30  Jim Meyering  <meyering@lucent.com>
130929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130931 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130933         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130935 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130937         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
130938         Do not check for alloca.h (no longer used) or stdbool.h (was never
130939         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
130941 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130943         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
130945 2002-04-29  Jim Meyering  <meyering@lucent.com>
130947         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130948         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130949         Use AC_FUNC_STRNLEN here instead.
130951         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130952         With autoconf-2.53a, it's part of AC_PROG_CC.
130954 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130956         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130957         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130959 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130961         * lib/sig2str.h, lib/sig2str.c: New files.
130962         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130964 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130966         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130967         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130968         of 127, since 64 is the largest conceivable number for ancient
130969         nonstandard hosts.
130970         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130972 2002-04-28  Jim Meyering  <meyering@lucent.com>
130974         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130976 2002-04-24  Jim Meyering  <meyering@lucent.com>
130978         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130979         (jm_PREREQ): Use it.
130981         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130982         mach/mach.h fcntl.h.
130983         Check for this function: setlocale.
130985 2002-04-24  Jim Meyering  <meyering@lucent.com>
130987         * lib/gettext.h: New file, from Gettext.
130988         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130989         (libfetish_a_SOURCES): Add gettext.h.
130991 2002-04-16  Jim Meyering  <meyering@lucent.com>
130993         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130994         ut_pid, ut_id, ut_exit.
130996 2002-04-16  Jim Meyering  <meyering@lucent.com>
130998         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130999         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131000         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131002 2002-04-12  Jim Meyering  <meyering@lucent.com>
131004         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131005         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131006         existence of the getmntinfo function.  Needed for Darwin 5.3.
131008         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131009         This is necessary at least on Darwin 5.3.
131011         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131012         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131013         strnlen.o in the library, and that makes some versions of ranlib
131014         object.
131016 2002-04-12  Jim Meyering  <meyering@lucent.com>
131018         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131020 2002-04-09  Jim Meyering  <meyering@lucent.com>
131022         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131023         to be more precise.  Rather than saying we're checking whether the
131024         function `works', say what we're testing.
131025         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131026         Reported by Bruno Haible.
131028 2002-03-10  Jim Meyering  <meyering@lucent.com>
131030         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131031         Suggestion from Santiago Vila.
131033 2002-03-08  Jim Meyering  <meyering@lucent.com>
131035         * lib/rename.c: Mention that this wrapper is needed also on
131036         mips-dec-ultrix4.4 systems.
131038 2002-03-02  Jim Meyering  <meyering@lucent.com>
131040         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131041         not HAVE_CLOCK_SETTIME.
131043 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131045         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131046         Check for clock_settime.
131048 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131050         * lib/nanosleep.h: Rename to....
131051         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131053         * lib/gettime.c: New file.
131054         * lib/settime.c: New file.
131055         * lib/stime.c: Remove.
131057         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131058         timespec.h.  Remove nanosleep.h.
131060 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131062         * m4/acl.m4: New file.
131063         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131064         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131066 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131068         * lib/acl.c, lib/acl.h: New files.
131069         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131071 2002-02-24  Jim Meyering  <meyering@lucent.com>
131073         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131074         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131075         cause trouble.  Reported by Nelson Beebe.
131077 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131079         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131080         compilers that don't know that xalloc_die never returns.
131082 2002-02-20  Jim Meyering  <meyering@lucent.com>
131084         * lib/getdate.c: Regenerate using bison-1.33.
131086 2002-02-17  Jim Meyering  <meyering@lucent.com>
131088         * config/config.guess (main): Don't use `head -1'; it's no longer
131089         portable. Use `sed 1q' instead.
131091 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131093         * m4/codeset.m4: Upgrade to gettext-0.11.
131094         * m4/gettext.m4: Upgrade to gettext-0.11.
131095         * m4/glibc21.m4: Upgrade to gettext-0.11.
131096         * m4/iconv.m4: Upgrade to gettext-0.11.
131097         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131098         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131099         * m4/lib-ld.m4: New file, from gettext-0.11.
131100         * m4/lib-link.m4: New file, from gettext-0.11.
131101         * m4/lib-prefix.m4: New file, from gettext-0.11.
131102         * m4/progtest.m4: Upgrade to gettext-0.11.
131104 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131106         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131107         (jm_PREREQ): Use it.
131109 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131111         * lib/posixver.c, lib/posixver.h: New files.
131112         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131114 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131115             Bruno Haible  <bruno@clisp.org>
131117         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131118         (fwrite_success_callback): New declaration.
131119         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131120         print_unicode_char. Call failure callback instead of error.
131121         (fwrite_success_callback): New function.
131122         (exit_failure_callback): New function.
131123         (fallback_failure_callback): New function.
131124         (print_unicode_char): Call unicode_to_mb.
131126 2002-01-26  Jim Meyering  <meyering@lucent.com>
131128         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131129         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131131 2002-01-26  Jim Meyering  <meyering@lucent.com>
131133         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131135 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131137         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131139 2002-01-22  Jim Meyering  <meyering@lucent.com>
131141         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131142         Otherwise, some versions of automake would omit the rule that makes
131143         Makefile from Makefile.in.
131145 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131147         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131148         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131149         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131150         (memcoll): Set errno to zero if there is no error.
131152         * lib/quotearg.c (quotearg_buffer_restyled):
131153         Fix bug with quoting buffers containing NUL when backslashing escapes.
131154         This bug was exposed by the other changes in this patch.
131155         (quotearg_n_options): New arg ARGSIZE.
131156         All callers changed.
131157         (quoting_options_from_style): New function.
131158         (quotearg_n_style): Use it.
131159         (quotearg_n_style_mem): New function.
131161         * lib/quotearg.h (quotearg_n_style_mem): New function.
131163 2002-01-19  Jim Meyering  <meyering@lucent.com>
131165         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131166         Remove useless quotes: DF_PROG="df".
131167         * m4/strnlen.m4: New file.
131169 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131171         * lib/backupfile.c (ISDIGIT): Comment fix.
131172         * lib/getdate.y (ISDIGIT): Likewise.
131173         * lib/posixtm.c (ISDIGIT, year): Likewise.
131174         * lib/strverscmp.c (ISDIGIT): Likewise.
131175         * lib/userspec.c (ISDIGIT): Likewise.
131177 2002-01-16  Jim Meyering  <meyering@lucent.com>
131179         * lib/getdate.y: Add three semicolons, each just before a closing
131180         brace. Bison (as of version 1.31) no longer papers over that mistake.
131182 2002-01-05  Jim Meyering  <meyering@lucent.com>
131184         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131186 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131188         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131189         not silently exit merely because the output buffer happens to
131190         have nothing pending.
131192 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131194         See the big note in ../ChangeLog.
131195         * lib/human.c (suffixes): Prefer K to k for 1024.
131196         (generate_suffix_backwards): New function.
131197         (human_readable_inexact): Use it.
131198         * lib/xstrtol.c (__xstrtol): If there is no number but there
131199         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131200         Accept 'K' as well as 'k'.
131202 2001-12-15  Jim Meyering  <meyering@lucent.com>
131204         * lib/regex.h (__restrict_arr): Update from libc.
131206         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131207         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131208         (STREQ): Define.
131210 2001-12-14  Jim Meyering  <meyering@lucent.com>
131212         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131213         Suggestion from Bruno Haible.
131215 2001-12-10  Jim Meyering  <meyering@lucent.com>
131217         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131218         xrealloc, Instead, include "xalloc.h".
131219         (initbuffer): Don't cast xmalloc return value to char*.
131220         (readline): Reword comment.
131221         Don't cast xrealloc return value to char*
131222         Return NULL, not 0.
131224 2001-12-09  Jim Meyering  <meyering@lucent.com>
131226         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131227         about `signed and unsigned type in conditional expression'.
131228         * lib/posixtm.c (posix_time_parse): Likewise.
131230         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131232         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131233         to avoid a pedantic warning.
131235         * lib/getstr.c: Don't include assert.h.
131236         (getstr): Remove warning-evoking assertions.
131237         Return -1 if offset parameter is out of bounds.
131238         Change the type of a local from int to size_t.
131240         * lib/strftime.c (my_strftime_localtime_r): Include this function
131241         definition in the `#if ! HAVE_TM_GMTOFF' block.
131243         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131244         Include xalloc.h instead.
131246 2001-12-02  Jim Meyering  <meyering@lucent.com>
131248         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131249         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131250         included.
131252         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131253         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131255 2001-11-30  Akim Demaille  <akim@epita.fr>
131257         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131258         before being defined.
131260 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131262         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131263         First arg is int, not unsigned.
131264         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131265         (SIZE_MAX, UINT_MAX): New macros.
131266         (quotearg_n_options): Abort if N is negative.
131267         Avoid overflow check on hosts where size_t is 64 bits and int
131268         is 32 bits, as overflow is impossible there.
131269         Fix off-by-one typo that caused unnecessary reallocation.
131271 2001-11-27  Jim Meyering  <meyering@lucent.com>
131273         * lib/tempname.c: Merge with version from libc.
131274         * lib/regex.c: Likewise.
131276         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131277         systems for which STDC_HEADERS is 0, it was not included, resulting in
131278         a warning about an integer-to-pointer conversion problem with getenv.
131279         Reported by Volker Borchert.
131281 2001-11-26  Jim Meyering  <meyering@lucent.com>
131283         * lib/gtod.h: Remove file.
131284         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131285         * lib/gettimeofday.c: Don't include gtod.h.
131286         (GTOD_init): Remove function.
131287         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131288         Suggestion from Volker Borchert.
131290 2001-11-23  Jim Meyering  <meyering@lucent.com>
131292         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131293         it.
131294         * lib/hash.c (struct hash_table): Define it here instead.
131296 2001-11-22  Jim Meyering  <meyering@lucent.com>
131298         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131300 2001-11-20  Jim Meyering  <meyering@lucent.com>
131302         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131303         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131305 2001-11-19  Jim Meyering  <meyering@lucent.com>
131307         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131308         directory.  Use "conftestXXXXXX" as the template.
131309         Suggestion from Paul Eggert.
131311         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131312         immediately, so the test doesn't mistakenly hit the max-open-files
131313         limit.
131315 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131317         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131318         (TEMPORARIES): New macro.
131319         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131320         removes an artificial limitation (e.g. HP-UX 10.20, where
131321         TMP_MAX is 17576).
131323 2001-11-18  Jim Meyering  <meyering@lucent.com>
131325         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131327 2001-11-18  Jim Meyering  <meyering@lucent.com>
131329         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131330         on SunOS 4.
131332         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131333         files will be created before anything else.
131335 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131337         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131338         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131340 2001-11-17  Jim Meyering  <meyering@lucent.com>
131342         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131343         Prompted by a report from Bob Proulx.
131345         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131346         Instead, require UTILS_FUNC_MKSTEMP.
131348 2001-11-17  Jim Meyering  <meyering@lucent.com>
131350         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131351         Now, that's done as part of AC_FUNC_STRTOD.
131353 2001-11-17  Jim Meyering  <meyering@lucent.com>
131355         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131356         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131357         rather than group writable.  Patch by Juan F. Codagnone.
131359         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131360         xrealloc, Instead, include "xalloc.h".
131362         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131363         Remove explicit declarations of xmalloc, xrealloc,
131364         and xstrdup.  Instead, include "xalloc.h".
131366         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131367         unlocked-io.h.
131368         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131369         Likewise.
131370         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131372         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131373         Reported by Padraig Brady.
131375         * lib/mkstemp.c: #undef mkstemp.
131376         Include config.h.
131377         (rpl_mkstemp): Rename from mkstemp.
131378         Protoize.
131380 2001-11-16  Jim Meyering  <meyering@lucent.com>
131382         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131383         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131384         determine the amount of total physical memory, use pstat_getstatic.
131385         HPUX-11 doesn't define _SC_PHYS_PAGES.
131386         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131387         If sysconf couldn't be used to determine the amount of available
131388         physical memory, use both pstat_getstatic and pstat_getdynamic.
131389         Based on a patch from Bob Proulx.
131391 2001-11-10  Jim Meyering  <meyering@lucent.com>
131393         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131394         (jm_PREREQ): Use it.
131396 2001-11-09  Jim Meyering  <meyering@lucent.com>
131398         * m4/jm-macros.m4: Require autoconf-2.52f.
131399         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131400         Use these AC_-prefixed names, not the AM_-prefixed ones.
131402         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131404 2001-11-05  Jim Meyering  <meyering@lucent.com>
131406         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131408 2001-11-04  Jim Meyering  <meyering@lucent.com>
131410         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131411         $DEFS.
131413 2001-11-03  Jim Meyering  <meyering@lucent.com>
131415         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131416         of AC_DEFUN.
131418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131419         know the name of the variable in the macro definition.
131421 2001-11-03  Jim Meyering  <meyering@lucent.com>
131423         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131424         in argmatch_to_argument call.
131426         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131427         argument.
131429         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131430         e.g., a fault due to an attempt to free a NULL pointer.
131432 2001-11-01  Jim Meyering  <meyering@lucent.com>
131434         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131435         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131437 2001-11-01  Jim Meyering  <meyering@lucent.com>
131439         * lib/dirfd.c, lib/dirfd.h: New files.
131440         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131442         * lib/hash.c (hash_print) [TESTING]: Clean up.
131444 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131446         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131447         to avoid a warning if -Wall.
131449 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131451         * README: New file
131452         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131453         (per RMS's instructions, this is now the canonical source)
131454         * lgpl/, gpl/: New directories.
131456 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131458         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131460 2001-10-21  Jim Meyering  <meyering@lucent.com>
131462         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131463         this code would end up calling gettext even in packages built
131464         with --disable-nls.
131465         * lib/getopt.c (_): Likewise.
131466         * lib/regex.c (_): Likewise.
131468 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131470         * m4/error.m4 (jm_PREREQ_ERROR):
131471         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131472         AC_FUNC_STRERROR_R does that.
131473         Check for strerror declaration.
131475         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131476         are supposed to have them these days.
131477         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131478         Merge changes from latest Autoconf CVS.
131479         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131480         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131481         POSIX decided to standardize on the int flavor of strerror_r.
131483 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131485         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131486         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131487         Use strerror_r that is only a macro, even if it is not a function.
131488         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131489         (private_strerror): Use prototypes, not old-style function definition.
131490         (print_errno_message): New function.
131491         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131492         char*-flavored one.
131493         (error_tail, error, error_at_line): Use it.
131495 2001-10-11  Jim Meyering  <meyering@lucent.com>
131497         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131498         and quote_n (1, ... to avoid clobbering a buffer.
131500 2001-10-05  Jim Meyering  <meyering@lucent.com>
131502         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131503         hash-pjw.h.
131504         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131505         * lib/hash-pjw.h: New file.
131507 2001-09-30  Jim Meyering  <meyering@lucent.com>
131509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131510         `struct fsstat' has the `f_fstypename' member.
131511         Use that to define FS_TYPE, which is now used to make
131512         the getfsstat link test tighter.
131514 2001-09-30  Jim Meyering  <meyering@lucent.com>
131516         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
131517         Include <sys/ucred.h>, for Apple Darwin.
131518         Include sys/mount.h and sys/fs_types.h only if available.
131519         (FS_TYPE): Define.
131520         (read_filesystem_list): Use FS_TYPE.
131522 2001-09-29  Paul Eggert  <eggert@twinsun.com>
131524         * lib/exclude.c (excluded_filename): 0 -> false, since it's
131525         a boolean context.
131527 2001-09-29  Jim Meyering  <meyering@lucent.com>
131529         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131530         [one-argument getmntent function]): Include stdio.h before mntent.h.
131531         SunOS 4.1.x needs it for the declaration of `FILE'.
131532         Patch by Volker Borchert.
131534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131535         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
131536         sys/fs_types.h, and make the link-test for getfsstat guard #include
131537         directives with appropriate #if HAVE_*_H tests so that we can
131538         detect getfsstat on Apple Darwin1.3.7 systems.
131539         Reported by Nelson Beebe.
131540         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
131542 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131544         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131545         #defines strtoimax.  Also treat the other strto* functions
131546         like strtoimax.
131548         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131549         Check for strtoul and strtoumax,
131550         as those declarations are made even in the signed case.
131551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
131552         Likewise, for strtol and strtoimax.
131554 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131556         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131557         #defines strtoimax.  Also treat the other strto* functions
131558         like strtoimax.
131560         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
131561         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
131562         (strtoimax, strtoumax): Do not declare if already defined as a macro.
131564 2001-09-26  Jim Meyering  <meyering@lucent.com>
131566         Most macros in unlocked-io.h had the wrong number of arguments.
131567         * lib/gen-uio: New script.
131568         (USE_UNLOCKED_IO): Define to 1 if not already defined.
131569         * lib/unlocked-io.hin: Remove file.
131570         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
131571         rather than trying to embed it here.
131572         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
131573         Reported by Padraig Brady.
131575 2001-09-25  Volker Borchert  <bt@teknon.de>
131577         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
131578         `result'.
131580 2001-09-24  Jim Meyering  <meyering@lucent.com>
131582         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
131584 2001-09-23  Jim Meyering  <meyering@lucent.com>
131586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
131587         instead of the mere test for existence of mntent.h.  The latter
131588         would get a false-positive on AIX 3.4 systems.
131589         In the outer getmntent if-block, don't die if neither of the getmntent
131590         tests succeeds.  Instead, just fall through and continue with the
131591         remaining tests.
131593 2001-09-23  Jim Meyering  <meyering@lucent.com>
131595         * lib/mountlist.c: Remove useless parentheses in #if directives.
131596         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131597         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131599 2001-09-22  Jim Meyering  <meyering@lucent.com>
131601         * m4/gettext.m4: New file.  From gettext.
131602         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131603         * m4/progtest.m4: Likewise
131604         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131605         * m4/glibc21.m4: Likewise.
131607         * m4/libintl.m4: Remove.  No longer used.
131609 2001-09-22  Jim Meyering  <meyering@lucent.com>
131611         * lib/localcharset.c: Update from latest gettext.
131612         * lib/config.charset: Likewise.
131614 2001-09-20  Jim Meyering  <meyering@lucent.com>
131616         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131617         strtoimax.
131618         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131619         strtoumax.
131621 2001-09-20  Jim Meyering  <meyering@lucent.com>
131623         * lib/xstrtol.c (strtoimax): Guard declaration with
131624         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131625         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131626         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131627         (strtoumax): Likewise, for completeness (it wasn't necessary).
131629 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131631         * lib/strtoimax.c (HAVE_LONG_LONG):
131632         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131633         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131634         to work around bug in IBM C compiler.
131636 2001-09-17  Jim Meyering  <meyering@lucent.com>
131638         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131639         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131640         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131641         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131642         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131643         whenever the right hand side need not be expanded by the shell.
131645 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131647         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131648         library.  It's not correct, as some older glibcs are buggy.
131649         fnmatch wasn't fixed until glibc 2.2.
131651         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131652         special shell magic here.
131654 2001-09-16  Jim Meyering  <meyering@lucent.com>
131656         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131657         * m4/jm-macros.m4: Require it.
131659 2001-09-16  Jim Meyering  <meyering@lucent.com>
131661         * lib/mkdir.c: New file.
131663 2001-09-15  Jim Meyering  <meyering@lucent.com>
131665         * m4/jm-macros.m4: Check for help2man.
131667 2001-09-11  Jim Meyering  <meyering@lucent.com>
131669         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131670         The body, by Paul Eggert, was moved here from configure.in.
131671         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131673 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131675         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131676         (jm_PREREQ): Use it.
131678 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131680         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131681         Use ssize_t, not int, to store result of readlink.
131682         Check for ssize_t overflow as well as size_t overflow,
131683         as POSIX says the result of readlink is implementation-defined
131684         when ssize_t overflows.
131685         Remove unnecessary cast to char*.
131686         Use free+malloc instead of realloc, as the storage doesn't need
131687         to be preserved and it's clearer and can be more efficient that way.
131688         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131689         * lib/xreadlink.h (xreadlink): Update prototype.
131691 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131693         * lib/xgetcwd.c: Revert some of the previous change; intead,
131694         fix the HAVE_GETCWD_NULL code to behave more like the
131695         !HAVE_GETCWD_NULL code used to.
131697         Include "xalloc.h".
131698         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131699         invoke xalloc_die.
131701 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131703         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131704         sys/param.h, as pathmax.h includes them.
131706 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131709         (jm_PREREQ_XGETCWD): New macro.
131711         * m4/getcwd.m4: New file.
131713 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131715         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131716         like the HAVE_GETCWD_NULL code.
131717         Include pathmax.h if not HAVE_GETCWD.
131718         Do not include xalloc.h.
131719         (INITIAL_BUFFER_SIZE): New symbol.
131720         Do not use xmalloc / xrealloc, since the caller is responsible for
131721         handling errors.  Preserve errno around `free' during failure.
131722         Do not overrun buffer when using getwd.
131724 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131726         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131727         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131728         getcwd (NULL, 0).
131730 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131732         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131733         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131734         spotted by Jim Meyering.
131736 2001-09-03  Jim Meyering  <meyering@lucent.com>
131738         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131739         failure.
131741 2001-09-02  Jim Meyering  <meyering@lucent.com>
131743         * lib/error.c: Update from GNU libc.
131745 2001-09-01  Jim Meyering  <meyering@lucent.com>
131747         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131748         Used by df.
131750 2001-09-01  Jim Meyering  <meyering@lucent.com>
131752         * lib/xreadlink.c: New file.
131753         * lib/xreadlink.h: New file.
131754         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131755         xreadlink.h.
131757         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131758         doesn't conflict with sparc Solaris 7's definition in
131759         /usr/include/sys/int_types.h.
131761         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131762         files.
131763         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131764         and strncasecmp as r-values.  Unixware didn't have declarations.
131766 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131768         * lib/xstrtol.h: Add copyright notice.
131769         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131770         LONGINT_INVALID_SUFFIX_CHAR.
131772 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131774         * lib/xstrtol.c (strtoimax): New decl.
131776 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131778         * lib/xgetcwd.c: Don't include pathmax.h.
131779         Include stdlib.h and unistd.h if available.
131780         Include xalloc.h.
131781         (xmalloc, xstrdup, free): Remove decls.
131782         (xgetcwd): Don't assume sizes fit in unsigned.
131783         Check for overflow when computing sizes.
131784         Simplify reallocation code.
131786 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131788         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131789         a directory's st_size can have an arbitrary value, so the old
131790         usage could waste an arbitrary amount of memory.  All uses
131791         changed.
131792         * lib/savedir.h: Update prototype.
131794 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131796         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131798         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131799         old strtoimax.c.
131801         Also, make the following further changes to make this file's
131802         configuration more similar to that of strtol.c:
131803         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131804         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131805         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131806         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131807         changed to signed values.
131809         And make the following changes as well:
131810         Fix copyright notice, as 1999 was missing.
131811         (verify): New macro.
131812         (strtoimax): Check sizes at compile-time, not run-time.
131813         Prefer strtol to strtoll if both work.
131814         (main): Remove; it was not that useful and was a pain to maintain.
131816         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131818 2001-08-31  Jim Meyering  <meyering@lucent.com>
131820         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131821         Use an initial, malloc'd, buffer of length 128 rather than
131822         a statically allocated one of length 1024.
131824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131826         Simplify code, partly by assuming autoconf 2.52 semantics.
131828         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131830         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131831         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131832         All uses removed.
131833         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131834         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131835         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131836         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131837         jm_AC_HEADER_INTTYPES_H.
131838         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131840         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131842         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131843         Quote first arg of AC_DEFUN.
131844         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131845         since they are needed to parse the include file even if we need
131846         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131847         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131848         but with opposite signedness.
131850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131852         Merge 'exclude' changes from tar 1.13.22.
131853         This fixes one or two unlikely storage allocation overflow bugs,
131854         but doesn't change user-visible behavior otherwise.
131856 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131858         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131859         (jm_PREREQ_EXCLUDE): New macro.
131861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131863         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131864         tm to be declared.
131866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131868         * lib/hash.c: Remove '2001' from copyright notice.
131870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131872         * lib/full-write.h: New file.
131873         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131874         * lib/full-write.c: Correct credits, as cccp.c no longer
131875         exists and anyway it was so heavily changed from the old cccp
131876         code as to be unrecognizable.  Include full-write.h.
131877         (full_write): Return size_t, with short writes meaning failure.
131878         All callers changed.  This fixes a bug with large buffers
131879         on 64-bit hosts.
131880         * lib/utime.c: Include full-write.h.
131882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131884         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131885         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131886         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131887         Include if available.
131888         (<xalloc.h>): Include
131889         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131890         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131891         collide with FNM macros.
131892         (struct patopts): New struct.
131893         (struct exclude): Use it, as exclude patterns now come with options.
131894         (new_exclude): Support above changes.
131895         (new_exclude, add_exclude_file):
131896         Initial size must now be a power of two to simplify overflow checking.
131897         (free_exclude, fnmatch_no_wildcards): New function.
131898         (excluded_filename): No longer requires options arg, as the options
131899         are determined by add_exclude.  Now returns bool, not int.
131900         (excluded_filename, add_exclude):
131901         Add support for the fancy new exclusion options.
131902         (add_exclude, add_exclude_file): Now takes int options arg.
131903         Check for arithmetic overflow when computing sizes.
131904         (add_exclude_file): xrealloc might modify errno, so don't
131905         realloc until after errno might be used.
131907         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131908         New macros.
131909         (free_exclude): New decl.
131910         (add_exclude, add_exclude_file): Now takes int options arg.
131911         (excluded_filename): No longer requires options arg, as the options
131912         are determined by add_exclude.  Now returns bool, not int.
131914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131916         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131918 2001-08-27  Jim Meyering  <meyering@lucent.com>
131920         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131922         * lib/version-etc.c (N_): Remove definition.
131923         Revert most of last change.
131924         Instead, simply don't mark the `Copyright...' string for translation.
131925         Based on advice from Paul Eggert.
131927         * lib/strtoxmax.c: Tweak comment.
131929 2001-08-26  Jim Meyering  <meyering@lucent.com>
131931         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131933         * m4/xstrtoimax.m4: New file.
131934         * m4/xstrtoumax.m4: Add comments explaining why we
131935         AC_REPLACE_FUNCS(strtol).
131937 2001-08-26  Jim Meyering  <meyering@lucent.com>
131939         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
131940         of copyright with `%s' so translators don't get an untranslated
131941         message in 2002.
131942         (COPYRIGHT_YEAR): Define.
131943         (version_etc): Use fprintf rather than fputs.
131944         Suggestion from Ulrich Drepper.
131946         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131948         * lib/strtoll.c: New file, from GNU libc.
131949         * lib/xstrtoimax.c: New file.
131951         * lib/xstrtol.h: Add xstrtoimax.
131952         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131953         * lib/strtoimax.c: New file.  Likewise, but first define
131954         STRTOUXMAX_SIGNED.
131956         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131957         ...
131958         * lib/strtoxmax.c: ... then renamed to this.
131960 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131962         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131963         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131964         (jm_AC_TYPE_INTMAX_T): New macro.
131965         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131967         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131969         * m4/longlong.m4: Renamed from ulonglong.m4.
131970         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131971         * m4/uintmax_t.m4: Removed.
131973 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131975         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131976         Port to Solaris 8, where 'sed' requires a space after the 'r'
131977         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131978         Redirect output to $tmp just once.
131980 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131982         * lib/addext.c (<errno.h>): Include.
131983         (errno): Declare if not defined.
131984         (addext): Work correctly when pathconf returns -1 and leaves
131985         errno alone because there is no limit.  Also, work even if
131986         pathconf returns a value greater than SIZE_MAX.
131988 2001-08-12  Jim Meyering  <meyering@lucent.com>
131990         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131991         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131992         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131993         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131994         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131995         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131996         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131997         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131998         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131999         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132000         utime.m4, utimes.m4, xstrtoumax.m4:
132001         Quote the first argument in each use of AC_DEFUN.
132003 2001-08-12  Jim Meyering  <meyering@lucent.com>
132005         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132006         Simply `return getcwd (NULL, 0);'.
132007         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132008         Use 1300 as initial value for length, not PATH_MAX.
132010         * lib/pathmax.h: Clean up cpp syntax.
132012 2001-08-12  Jim Meyering  <meyering@lucent.com>
132014         * lib/gettimeofday.c: New file.
132015         * lib/gtod.h: New file.
132016         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132018 2001-08-05  Jim Meyering  <meyering@lucent.com>
132020         * m4/jm-macros.m4: Require autoconf-2.52.
132022 2001-08-04  Jim Meyering  <meyering@lucent.com>
132024         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132025         stmt, to get in sync with glibc.
132027 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132029         The following changes are from gettext 0.10.39 as maintained by
132030         Bruno Haible.
132032         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132033         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132034         with inverted sense.  All uses changed.
132036         * lib/mbswidth.c: Don't include <limits.h>.
132037         Include <stdlib.h> and <string.h> unconditionally.
132038         (iswcntrl, mbsinit, ISCNTRL): New macros.
132039         (mbsnwidth): Use K&R style function declarations.
132040         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132041         can optimize it when MB_CUR_MAX == 1.
132042         The width of control characters is zero, not 1.
132044 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132046         The following changes are from gettext 0.10.39 as maintained by
132047         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132049         * m4/codeset.m4: Upgrade to serial AM1.
132050         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132051         all uses changed.  Quote first arg of AC_DEFUN.
132052         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132054         * m4/iconv.m4: Upgrade to serial AM2.
132055         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132056         Add --with-libconv-prefix.
132057         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132058         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132059         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132060         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132061         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132063         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132064         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132065         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132066         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132067         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132068         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132069         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132070         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132071         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132073         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132074         string.h any more.
132076         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132077         not the default value.
132079         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132081         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132082         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132083         Also check for iswcntrl, used for wcwidth fallback.
132084         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132085         to Autoconf 2.13.
132087 2001-08-03  Jim Meyering  <meyering@lucent.com>
132089         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132090         as it was in the original.  Reported by Paul Eggert.
132092 2001-07-16  Jim Meyering  <meyering@lucent.com>
132094         * m4/gettimeofday.m4: New file.
132095         Prompted by a report from Bernhard Baehr.
132097 2001-07-15  Jim Meyering  <meyering@lucent.com>
132099         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132100         stuff. Now it's in ../Makefile.cfg.
132102 2001-07-15  Jim Meyering  <meyering@lucent.com>
132104         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132105         (BUILT_SOURCES): Add unlocked-io.h.
132106         (io_functions): Define.
132107         (unlocked-io.h): New rule.
132108         (DISTCLEANFILES): Add unlocked-io.h.
132109         (all-local): Depend on unlocked-io.h, to ensure it is created.
132111         * lib/unlocked-io.hin: New file
132113         * lib/regex.c: Update from glibc.
132115 2001-07-05  Jim Meyering  <meyering@lucent.com>
132117         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132118         recommendation.
132119         (libfetish_a_SOURCES): Put all .h files here instead.
132120         Remove a thus-exposed (better checks in automake) duplicate and
132121         two unnecessary .h files.
132123 2001-07-04  Jim Meyering  <meyering@lucent.com>
132125         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132126         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132127         distcheck failure.
132129 2001-07-02  Jim Meyering  <meyering@lucent.com>
132131         The following changes were prompted by suggestions from Bruno Haible.
132133         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132134         is now generated.
132135         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132136         definition of EXTRA_DIST.
132137         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132138         ensure that the generated file is created/updated whenever the list
132139         of $(unlocked_functions) is changed.
132140         (jm-glibc-io.m4): New rule.
132141         (unlocked-io.h): New rule -- currently unused.
132143 2001-06-24  Jim Meyering  <meyering@lucent.com>
132145         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132146         unmatched right bracket, rather than kludging it with an extra,
132147         falsely-matching quote in a comment.  Patch by Akim Demaille.
132149 2001-06-11  Jim Meyering  <meyering@lucent.com>
132151         * lib/regex.c: Update from GNU libc.
132153 2001-05-27  Jim Meyering  <meyering@lucent.com>
132155         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132156         Check for ut_type in struct utmp.
132158 2001-05-27  Jim Meyering  <meyering@lucent.com>
132160         * lib/readutmp.h (UT_TYPE): Define.
132162 2001-05-24  Jim Meyering  <meyering@lucent.com>
132164         * lib/argmatch.c: Include "quote.h".
132165         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132166         quote function.  Reported by Göran Uddeborg.
132168 2001-05-22  Jim Meyering  <meyering@lucent.com>
132170         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132171         now that we use the package-supplied version unconditionally.
132172         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132174 2001-05-21  Jim Meyering  <meyering@lucent.com>
132176         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132177         shell syntax errors.
132179 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132181         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132183 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132185         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132186         Don't bother to check library strftime, since
132187         we'll be using our own my_strftime function anyway.
132188         Define my_strftime instead of strftime.
132190 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132192         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132193         which is not yet declared.
132195 2001-05-15  Jim Meyering  <meyering@lucent.com>
132197         * m4/regex.m4: Use proper quoting so brackets appear in the test
132198         program.
132199         Reported by, and with help from, Bruno Haible.
132201 2001-05-13  Jim Meyering  <meyering@lucent.com>
132203         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132204         undefined.
132206 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132208         dirname code cleanup.  base_name now behaves more compatibly
132209         with POSIX basename when given file names that have trailing
132210         slashes, and similarly for dir_name.  Add new primitives
132211         base_len and dir_len.  Put the directory-name-related decls
132212         into dirname.h.
132214         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132215         * lib/backupfile.c (base_name): Likewise.
132216         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132217         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132218         * lib/makepath.c (strip_trailing_slashes): Likewise.
132219         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132220         ISSLASH): Likewise.
132221         * lib/rename.c (strip_trailing_slashes): Likewise.
132222         * lib/same.c (base_name): Likewise.
132223         * lib/stripslash.c (ISSLASH): Likewise.
132225         * lib/addext.c: Include <dirname.h> after size_t is defined.
132226         * lib/backupfile.c: Likewise.
132228         * lib/addext.c (addext): Use base_len to trim redundant
132229         trailing slashes instead of doing it ourselves.
132230         But do not trim the last slash if it is not redundant.
132232         * lib/backupfile.c (find_backup_file_name,
132233         max_backup_version): Use base_len instead of rolling it ourselves.
132234         Handle the case of "" and (on DOS) "C:" correctly.
132236         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132237         needed. Include <string.h>, <dirname.h>.
132238         (base_name): Allow file names ending in slashes, other than names
132239         that are all slashes.  In this case, return the basename followed
132240         by the slashes.  This is more general, and can be used in places
132241         where the original base_name purposely had an assertion failure.
132242         (base_len): New function.
132244         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132245         Do not include <assert.h>; no longer needed.
132246         Include xalloc.h.
132247         (memrchr): Remove decl.
132248         (dir_name_r): Remove.
132249         (dir_len): Renamed from dirlen.  All callers changed.
132250         Rewrite in terms of base_name, for simplicity and consistency.
132251         (dir_name): Never return NULL.  All callers changed.
132252         Do not include <stdlib.h> in test program; no longer needed.
132253         return 0; is fine for test program.
132255         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132256         New macros.
132257         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132259         * lib/path-concat.c (path_concat): Use base_len to compute
132260         base length, not strlen; this means we cannot rely on memcpy
132261         to null-terminate.
132263         * lib/same.c (STREQ): Remove.
132264         (same_name): Handle the case where the basename ends in trailing '/'.
132266         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132267         a slash was stripped.  Do not strip the last slash after a
132268         file system prefix.
132270 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132272         * lib/Makefile.am (libfetish_a_SOURCES):
132273         Add strftime.c, since we now compile it on all hosts.
132275         * lib/strftime.c (my_strftime):
132276         Define to nstrftime if emacs, but only if my_strftime is not defined.
132277         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132278         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132279         Add one more extra argument: a nanoseconds value.
132280         All uses changed.
132281         (ns): New macro.
132282         (my_strftime function): Add %N format.
132283         (emacs_strftimeu): Renamed from emacs_strftime,
132284         with extra ut argument.
132286 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132288         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132290 2001-04-21  Jim Meyering  <meyering@lucent.com>
132292         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132293         doesn't interfere.
132295 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132297         * m4/ftruncate.m4: Check for chsize.
132298         Link with ftruncate.o unconditionally if ftruncate is missing.
132299         This was required when cross-compiling to i586-mingw32msvc.
132301 2001-04-08  Jim Meyering  <meyering@lucent.com>
132303         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132304         recomputed; that's necessary when the offset spans a DST transition.
132305         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132307 2001-04-02  Jim Meyering  <meyering@lucent.com>
132309         * lib/regex.h, regex.c: Update from GNU libc.
132311 2001-03-24  Jim Meyering  <meyering@lucent.com>
132313         * m4/jm-macros.m4: Require autoconf-2.49d.
132315 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132317         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132319 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132321         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132323 2001-03-17  Jim Meyering  <meyering@lucent.com>
132325         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132326         now that the version in autoconf is equivalent.
132327         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132329         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132330         Suggestion from Akim Demaille.
132332         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132333         (jm_PREREQ_TEMPNAME): New function.
132335 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132337         * lib/tempname.c (uint64_t): Define to uintmax_t if
132338         not defined, and if UINT64_MAX is not defined.
132339         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132340         Reported by John David Anglin.
132342 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132344         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132345         resolve alias if codeset is empty.
132346         * lib/config.charset (BeOS): Use wildcard syntax.
132348 2001-03-13  Jim Meyering  <meyering@lucent.com>
132350         * lib/path-concat.c (path_concat)
132351         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132352         concatenating e.g., `C:' and `foo'.
132353         From Bruno Haible.
132355 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132357         * lib/localcharset.c (locale_charset): Don't use
132358         setlocale(LC_CTYPE,NULL). Don't return NULL.
132359         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132361 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132363         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132364         support for DOS/DJGPP.
132366 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132368         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132369         lacks mkstemp.  Compile our own tempname.c if we compile our own
132370         mkstemp.c, as mkstemp relies on tempname.
132372 2001-03-01  Jim Meyering  <meyering@lucent.com>
132374         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132375         AH_VERBATIM really does output its argument verbatim.
132377 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132379         * lib/Makefile.am (libfetish_a_SOURCES):
132380         Add dup-safer.c, fopen-safer.c.
132381         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132383         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132384         * lib/unistd-safer.h: New files.
132386 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132388         The mkstemp replacement is taken from glibc 2.2.2, with some
132389         portability fixes for use outside glibc, as follows:
132391         * lib/tempname.c (struct_stat64): New macro.
132392         (direxists, __gen_tempname): Use it.
132393         This avoids a portability problem with Solaris 8.
132395         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132396         (<stddef.h>, <stdint.h>, <string.h>):
132397         Include only if STDC_HEADERS || _LIBC.
132398         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132399         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132400         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132401         (__set_errno): Define this macro if <errno.h> doesn't.
132402         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132403         Define these macros if <stdio.h> doesn't.
132404         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132405         Define these macros if <sys/stat.h>
132406         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132407         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132408         __xstat64): Define if not _LIBC.
132409         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132410         (__gen_tempname): Invoke gettimeofday only if
132411         HAVE_GETTIMEOFDAY || _LIBC;
132412         otherwise, fall back on plain "time".
132413         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132415         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132417         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132419 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132421         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132423 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132425         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132426         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132427         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132428         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132430 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132432         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132433         Remove workaround macros for hosts that have mbrtowc but not
132434         mbstate_t, as we now insist on proper declarations for both
132435         before using mbrtowc.
132437 2001-02-17  Jim Meyering  <meyering@lucent.com>
132439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132440         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132441         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132442         UnixWare 7.1.1.
132444         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132445         rather than AC_CACHE_VAL.
132447 2001-02-17  Jim Meyering  <meyering@lucent.com>
132449         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132450         around included file name.
132452         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132454         * lib/strftime.c: Update from GNU libc (the only changes were to
132455         comments).
132457 2001-02-17  Jim Meyering  <meyering@lucent.com>
132459         * lib/regex.c: Update from libc.
132461 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132463         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132464         clash.
132466 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132468         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132469         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132470         Reported by Mark Hounschell via Paul Eggert.
132472 2001-02-07  Jim Meyering  <meyering@lucent.com>
132474         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132476 2001-02-05  Jim Meyering  <meyering@lucent.com>
132478         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132479         it includes the patch required for `large file' support with at least
132480         HP-UX's 10.20 /bin/cc.
132482 2001-02-03  Jim Meyering  <meyering@lucent.com>
132484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132485         AS_IF, now that it works once again (mysteriously).
132486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132488 2001-01-30  Jim Meyering  <meyering@lucent.com>
132490         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132491         * m4/chown.m4: Rename conftestchown to conftest.chown.
132492         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132493         s/conftestdir2/conftest.d2/.
132494         * m4/utimes.m4: s/conftestdata/conftest.data/
132495         Inspired by Pavel Roskin's change in autoconf.
132497 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132499         * lib/config.charset: Update for FreeBSD 4.2.
132501 2001-01-27  Jim Meyering  <meyering@lucent.com>
132503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132504         a use of AS_IF.
132505         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132507 2001-01-26  Jim Meyering  <meyering@lucent.com>
132509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132510         quotearg.c includes it.
132512 2001-01-26  Jim Meyering  <meyering@lucent.com>
132514         * lib/quotearg.c: Include stddef.h.
132515         * lib/quote.c: Include stddef.h.
132516         Reported by Axel Kittenberger.
132518         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
132519         line in double quotes so that it evokes a better diagnostic.
132520         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
132521         Reported by Axel Kittenberger.
132523 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
132525         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
132526         as if it was a `charset'.
132528 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132530         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
132531         has const.
132533 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132535         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
132536         to avoid a warning.  Add back 'const' to inptr.
132538 2001-01-20  Jim Meyering  <meyering@lucent.com>
132540         Be sure that headers are checked before used in code compiled
132541         for the type checks.
132542         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
132543         In place of that, invoke jm_CHECK_ALL_TYPES.
132544         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
132545         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
132546         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
132547         The check for ssize_t was mistakenly run before the test for unistd.h.
132549         The configure-time check for stdbool.h was missing.
132550         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
132551         (jm_PREREQ_HASH): New function.
132553 2001-01-17  Jim Meyering  <meyering@lucent.com>
132555         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
132556         for autoconf-2.49c.
132557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
132559 2001-01-16  Jim Meyering  <meyering@lucent.com>
132561         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
132562         From Bruno Haible.
132564 2001-01-14  Jim Meyering  <meyering@lucent.com>
132566         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
132567         foo and bar.  Create conftestdir/ in the script, not in the C code.
132568         Remove directories in the script, not in the C code.
132569         Remove conftestdir{,2} before trying to create the directory.
132570         Make the entire configure script fail if the mkdir fails.
132572 2001-01-14  Jim Meyering  <meyering@lucent.com>
132574         * lib/rename.c: New file.  From Volker Borchert.
132575         Include stdlib.h, string.h or strings.h, and xalloc.h.
132576         Use strip_trailing_slashes rather than open-coding it.
132578 2001-01-03  Paul Eggert  <eggert@twinsun.com>
132580         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
132582 2001-01-03  Jim Meyering  <meyering@lucent.com>
132584         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
132585         of local `inptr' to avoid warning with some system declarations of
132586         iconv.
132588 2001-01-02  Volker Borchert  <bt@teknon.de>
132590         * m4/rename.m4: New file.
132591         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132593 2001-01-01  Jim Meyering  <meyering@lucent.com>
132595         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132596         even on systems with utmpx.h.  It's necessary for the declaration of
132597         utmp's ut_user member.  Reported by Andreas Jaeger.
132599         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132600         available. They are required for the declarations of getgrgid and
132601         getpwuid resp.
132602         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132603         Reported by Andreas Jaeger.
132605 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132607         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132608         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
132609         so `make install' also works in VPATH builds.
132611 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132613         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132614         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132615         can be used in subdirectories.
132617 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132619         * lib/modechange.c: Do not assume that mode_t uses the
132620         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132621         the other-execute bit of FOO even if S_IXOTH != 1.
132623         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132624         WOTH, XOTH, ALLM): New macros.
132625         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132626          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132627         Use them.
132628         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132629         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132630         (mode_compile):
132631         No need to use uintmax_t; unsigned long is long enough.
132632         Don't bother to get suffix since we don't use it.
132634 2000-12-26  Jim Meyering  <meyering@lucent.com>
132636         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132637         better with autoheader.
132639 2000-12-24  Jim Meyering  <meyering@lucent.com>
132641         * lib/hash.c (is_prime): Return explicit boolean values.
132642         (hash_get_first): Return NULL to appease Irix5.6's 89.
132643         Reported by Nelson Beebe.
132645 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132647         * lib/localcharset.c (locale_charset): Add support for Win32.
132649 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132651         * lib/physmem.h, lib/physmem.c: New files.
132653         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132654         (noinst_HEADERS): Add physmem.h.
132656         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132657         't' for compatibility with Solaris 8 sort.
132659 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132661         * lib/config.charset: Add support for BeOS.
132663 2000-12-17  Jim Meyering  <meyering@lucent.com>
132665         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132666         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132668 2000-12-16  Jim Meyering  <meyering@lucent.com>
132670         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132671         N and M) would have treated it like `chown N:N FILE'.
132673         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132675 2000-12-16  Jim Meyering  <meyering@lucent.com>
132677         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132678         SHELLS_FILE to a file name that's useful on djgpp systems.
132679         Include stdlib.h.
132680         (ADDITIONAL_DEFAULT_SHELLS): Define.
132681         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132682         Based mostly on a patch from Prashant TR.
132684 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132686         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132687         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132688         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132690 2000-12-08  Andreas Schwab  <schwab@suse.de>
132692         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132693         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132695 2000-12-07  Jim Meyering  <meyering@lucent.com>
132697         * lib/stripslash.c (ISSLASH): Define.
132698         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132699         `/'.
132700         From Prashant TR.
132702         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132703         (dir_name_r): Declare this function as static.
132704         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132705         manifest itself on a name containing a mix of slashes and
132706         backslashes.
132707         Make this function work with names starting with a DOS-style
132708         drive letter and colon prefix.
132709         (dir_name): Append `.' if necessary.
132710         Based mostly on patches from Prashant TR and Eli Zaretskii.
132712         * lib/dirname.h (dir_name_r): Remove prototype.
132714 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132716         * m4/off_t-format.m4: Remove this file.
132717         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132719 2000-12-06  Jim Meyering  <meyering@lucent.com>
132721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132722         replacement strtoull, we may well need the replacement strtoul, too.
132723         Check for declarations of strtoul and strtoull.
132724         Check for strtol.  Mainly as a cue to cause automake to include
132725         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132726         Check for limits.h -- strtol.c needs it.
132728 2000-12-05  Jim Meyering  <meyering@lucent.com>
132730         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132732 2000-12-04  Jim Meyering  <meyering@lucent.com>
132734         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132735         Also include memory.h, stdlib.h, unistd.h if appropriate.
132736         Reported by Andreas Jaeger (conflicting declaration of malloc).
132738 2000-12-02  Jim Meyering  <meyering@lucent.com>
132740         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132741         * m4/jm-macros.m4 (jm_MACROS): require it.
132743 2000-12-02  Jim Meyering  <meyering@lucent.com>
132745         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132747 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132749         * lib/memrchr.c: Include <config.h> before any system include file.
132751 2000-11-30  Jim Meyering  <meyering@lucent.com>
132753         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132755 2000-11-30  Jim Meyering  <meyering@lucent.com>
132757         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132759 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132761         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132763 2000-11-26  Jim Meyering  <meyering@lucent.com>
132765         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132767 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132769         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132770         size of (size_t) -1; it's not portable.
132772 2000-11-17  Jim Meyering  <meyering@lucent.com>
132774         * lib/strstr.c: Update from GNU libc.
132776 2000-11-17  Akim Demaille  <akim@epita.fr>
132778         * lib/obstack.h: Formatting changes.
132779         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132780         prevent type checking.
132781         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132782         cast the value to (void *): assigning a `foo *' to a `void *'
132783         variable is valid.
132784         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132786 2000-11-16  Jim Meyering  <meyering@lucent.com>
132788         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132790 2000-11-11  Jim Meyering  <meyering@lucent.com>
132792         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132794 2000-11-10  Jim Meyering  <meyering@lucent.com>
132796         * lib/obstack.h: Update from GNU libc.
132797         * lib/obstack.c: Likewise.
132799 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132801         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132803 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132805         * lib/getusershell.c (setusershell): Use rewind rather than
132806         fseek/fseeko, to avoid configuration hassles with fseeko.
132807         Don't bother opening SHELLS_FILE if shellstream is NULL;
132808         it's not necessary.
132810 2000-11-05  Jim Meyering  <meyering@lucent.com>
132812         * lib/makepath.h (make_dir): Declare.
132813         * lib/makepath.c (make_dir): Remove `static' attribute.
132814         Tweak a comment.
132816 2000-11-04  Jim Meyering  <meyering@lucent.com>
132818         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132820 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132822         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132823         last one in a bucket, advance to the next bucket.
132825 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132827         * lib/fnmatch.c: Do not comment out all the code if we are using
132828         the GNU C library, because in some cases we are replacing buggy
132829         code in the GNU C library itself.
132831 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132833         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132834         (regex_compile): Catch bogus \(\1\).
132836 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132838         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132839         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132840         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132842 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132844         * lib/error.h, getline.h, modechange.h:
132845         Remove "2000" from Copyright line, as the file hasn't been
132846         changed this year other than in the copyright notice.
132848         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132849         was changed this year.
132851 2000-10-29  Jim Meyering  <meyering@lucent.com>
132853         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132854         renaming.
132855         * m4/ls-mntd-fs.m4: Likewise
132857 2000-10-29  Jim Meyering  <meyering@lucent.com>
132859         * lib/xstat.in: Fix grammar in comment.
132861 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132863         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132864         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132865         doesn't define __restrict_arr.
132867 2000-10-28  Jim Meyering  <meyering@lucent.com>
132869         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132870         (jm_PREREQ_MEMCHR): New function.
132872 2000-10-28  Jim Meyering  <meyering@lucent.com>
132874         * lib/memchr.c: Update from libc.
132875         Adjust for portability:
132876         [HAVE_STDLIB_H]: Include stdlib.h.
132877         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132878         Undef __memchr, too.
132879         [!weak_alias]: Define __memchr to memchr.
132881         * lib/regex.c: Update from libc.
132882         * lib/regex.h: Likewise.
132883         * lib/getopt1.c: Likewise.
132884         * lib/memcmp.c: Likewise.
132886         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132887         Avoid using fseek, when possible -- it's broken by design.
132888         Patch by Ulrich Drepper.
132890 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132892         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132893         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132894         Giving in to popular pressure to shut up the compiler with casts.
132896 2000-10-26  Jim Meyering  <meyering@lucent.com>
132898         * lib/strftime.c: Update from libc.
132900 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132902         * regex.c: More `unsigned char' -> `re_char' changes.
132903         Also change several `int' into `re_wchar_t'.
132904         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132905         (PUSH_FAILURE_POINTER): Don't cast any more.
132906         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132907         We want GCC to complain, since this piece of code makes
132908         re_match non-reentrant, which *should* be fixed.
132909         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132910         (EXTEND_BUFFER): Use RETALLOC.
132911         (SET_LIST_BIT): Don't cast.
132912         (re_wchar_t): New type.
132913         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132914         that those two functions will always properly return.
132915         (IMMEDIATE_QUIT_CHECK): Cast to void.
132916         (analyse_first): Use recursion rather than an explicit stack.
132917         (re_compile_fastmap): Can't fail anymore.
132918         (re_search_2): Don't check re_compile_fastmap for failure.
132919         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132920         Now also sets the new value (passed in a new argument).
132921         (re_match_2_internal): Use it.
132922         Also, use a new var `reg' of type size_t when looping through regs
132923         rather than reuse the inappropriate `mcnt'.
132925 2000-10-25  Jim Meyering  <meyering@lucent.com>
132927         * lib/obstack.c: Update from libc.
132929 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132931         * regex.c (regex_compile): Change the way of handling a range from
132932         a char less than 256 to a char not less than 256.
132934 2000-10-24  Andrew Innes  <andrewi@gnu.org>
132936         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
132937         NT-Emacs only.
132938         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
132939         so that re_search functions only quit when callers expect them to.
132941 2000-10-23  Jim Meyering  <meyering@lucent.com>
132943         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
132944         wrong.  That set_locale call must not have any side effects.
132945         From Paul Eggert.
132947 2000-10-22  Jim Meyering  <meyering@lucent.com>
132949         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132950         [CYCLIC]: Remove now-unused definition.
132952         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132953         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132954         Suggestion from Ulrich Drepper.
132956 2000-10-21  Jim Meyering  <meyering@lucent.com>
132958         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132959         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132962 2000-10-21  Jim Meyering  <meyering@lucent.com>
132964         * lib/dirname.c (memrchr): Declare if necessary.
132965         (dir_name): Remove the restriction that there be no
132966         trailing slashes.  Now, this code skips past them, effectively
132967         ignoring them.
132968         [TEST_DIRNAME] (main): New unit tests.
132970         * lib/memrchr.c: New file from GNU libc.
132971         Undef __memrchr, too.
132972         [!weak_alias]: Define __memrchr to memrchr.
132973         Guard weak_alias use with `#ifdef weak_alias'.
132975 2000-10-21  Jim Meyering  <meyering@lucent.com>
132977         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132978         (dir_name): Use dir_name_r.
132979         * lib/dirname.h (dir_name_r): Declare it.
132981 2000-10-17  Jim Meyering  <meyering@lucent.com>
132983         * lib/quote.h (PARAMS): Define and use.
132984         Reported by Akim Demaille.
132986         * lib/getopt.c: Update from libc.
132988 2000-10-16  Jim Meyering  <meyering@lucent.com>
132990         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132991         setlocale.
132992         From Jan Fedak.
132994 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132996         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132998 2000-09-25  Jim Meyering  <meyering@lucent.com>
133000         * lib/md5.h (rol): Define (from GnuPG).
133002         * lib/sha.c: Give credit (GnuPG) where due.
133003         (M): Use rol rather than open-coding it.
133004         Add a FIXME comment.
133006 2000-09-21  Jim Meyering  <meyering@lucent.com>
133008         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133009         Reported by Michael Stone.
133011 2000-09-20  Jim Meyering  <meyering@lucent.com>
133013         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133014         (noinst_HEADERS): Add sha.h.
133015         Based on code from Scott G. Miller and from GnuPG.
133017 2000-09-18  Jim Meyering  <meyering@lucent.com>
133019         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133020         LIBS. Otherwise, everyone ends up linking with -lelf for some
133021         configurations.
133022         Reported by Mike Stone.
133024 2000-09-15  Jim Meyering  <meyering@lucent.com>
133026         * lib/regex.c: Update from libc.
133028 2000-09-10  Jim Meyering  <meyering@lucent.com>
133030         * lib/getopt.c (_getopt_internal): Update from glibc.
133032 2000-09-09  Jim Meyering  <meyering@lucent.com>
133034         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133035         think it should be used as a general replacement for isascii.
133036         * lib/fnmatch.c: Likewise.
133037         * lib/mbswidth.c: Likewise
133038         * lib/regex.c: Likewise.
133040         Don't use atoi.
133041         * lib/userspec.c: Include sys/param.h and limits.h.
133042         Include xstrtol.h.
133043         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133044         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133045         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133046         UID, GID.  Check range.
133048 2000-09-06  Jim Meyering  <meyering@lucent.com>
133050         * lib/getopt.c (_getopt_internal): Update from glibc.
133052 2000-08-30  Jim Meyering  <meyering@lucent.com>
133054         * lib/strftime.c: Merge in changes from GNU libc.
133056 2000-08-26  Jim Meyering  <meyering@lucent.com>
133058         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133059         * m4/fpending.m4: New file.
133061 2000-08-26  Jim Meyering  <meyering@lucent.com>
133063         * lib/closeout.c: Include "__fpending.h".
133064         (close_stdout_status): Return right away if there's nothing to flush.
133066         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133067         * lib/__fpending.c: New file.
133068         * lib/__fpending.h: New file.
133070 2000-08-20  Jim Meyering  <meyering@lucent.com>
133072         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133073         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133074         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133076 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133078         Improve fileutils installation on systems where running
133079         programs (like install) can't be unlinked.
133080         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133081         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133083 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133085         Standardize on "memory exhausted" instead of "Memory exhausted"
133086         or "virtual memory exhausted".
133087         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133088         "virtual memory exhausted".
133089         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133090         our own message.
133091         * lib/userspec.c (parse_user_spec): Likewise.
133092         * lib/bumpalloc.h: comment fix
133093         * lib/same.c, userspec.c: Include xalloc.h.
133095         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133096         not char *const and pointing to a constant array.
133097         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133098         (xrealloc): Comment fix.
133100         * lib/userspec.c (parse_user_spec):
133101         Don't translate a message until just before returning,
133102         to avoid unnecessary translation.
133104 2000-08-07  Jim Meyering  <meyering@lucent.com>
133106         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133107         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133108         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133109         getgroups.c, gethostname.c, getopt.h, group-member.c,
133110         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133111         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133112         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133113         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133114         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133115         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133116         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133117         yesno.c: Back out Copyright date changes for each file with no change
133118         this year.  This eases coordination with other programs using the same
133119         source code modules.  From Paul Eggert.
133121 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133123         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133124         not char, for compatibility with glibc 2.1.3 strftime.c.
133126 2000-08-03  Greg McGary  <greg@mcgary.org>
133128         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133129         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133130         (EXTEND_BUFFER): Use them.
133132 2000-08-01  Jim Meyering  <meyering@lucent.com>
133134         * lib/dirname.c (ISSLASH): Define.
133135         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133136         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133137         both `\' and `/' may be use as path separators.
133138         Based on a patch from Prashant TR.
133140 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133142         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133143         slot vector a constant, since it might get modified.
133145 2000-07-31  Jim Meyering  <meyering@lucent.com>
133147         * lib/xmalloc.c: Use `virtual memory exhausted', not
133148         `Memory exhausted'.
133149         * lib/obstack.c (print_and_abort): Likewise.
133151 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133153         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133154         buffer, so that the caller can always quote one small
133155         component of a "memory exhausted" message in slot 0.
133156         From a suggestion by Jim Meyering.
133158 2000-07-30  Jim Meyering  <meyering@lucent.com>
133160         * lib/makepath.c (make_path): Quote the other instance, too.
133162         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133163         (STATIC_BUF_SIZE): Define.
133164         (quotearg_n_options): Use only statically allocated storage when
133165         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133166         than STATIC_BUF_SIZE.
133168 2000-07-29  Jim Meyering  <meyering@lucent.com>
133170         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133171         * lib/dirname.c (dir_name): Likewise.
133173         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133174         `/'.
133176         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133177         (dir_name): Assert that there are no trailing slashes.
133179 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133181         * lib/mbswidth.h (mbswidth): Add a flags argument.
133182         (mbswidth): New declaration.
133183         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133184         * lib/mbswidth.c (mbswidth): Add a flags argument.
133185         (mbsnwidth): New function.
133187 2000-07-24  Jim Meyering  <meyering@lucent.com>
133189         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133193         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133195 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133197         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133198         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133199         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133200         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133201         invoke multibyte primitives.
133203 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133205         * lib/quotearg.c:
133206         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133207         so that mbstate_t is always defined.
133209         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133210         be 1 in at least one GCC installation, and this configuration
133211         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133212         performance on hosts that have mbrtowc but have only unibyte
133213         locales, but I assume these hosts are rare.
133215 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133217         * lib/mbswidth.c (_XOPEN_SOURCE):
133218         Don't define; this causes problems on Solaris 7.
133219         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133221 2000-07-23  Jim Meyering  <meyering@lucent.com>
133223         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133224         too: getgrgid, getpwuid, getuid.
133226 2000-07-23  Jim Meyering  <meyering@lucent.com>
133228         * lib/basename.c (base_name): Add an assertion.
133230 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133232         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133233         shadow its mbsinit function.
133235 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133237         * lib/mbswidth.h: New file.
133238         * lib/mbswidth.c: New file.
133239         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133240         (noinst_HEADERS): Add mbswidth.h.
133242 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133244         * lib/config.charset: Add support for FreeBSD. Improve support for
133245         HP-UX and IRIX 6.
133247 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133249         * m4/mbswidth.m4: New file.
133250         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133252 2000-07-15  Jim Meyering  <meyering@lucent.com>
133254         * lib/makepath.c: Include quote.h.
133255         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133256         corresponding argument in a `quote (...)' call.
133257         Give better diagnostics.
133259         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133260         (noinst_HEADERS): Add quote.h.
133262         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133263         from tar's src/misc.c.
133264         * lib/quote.h: New file.  Prototypes for same.
133266 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133268         From a suggestion by Bruno Haible.
133269         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133270         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133271         to decide whether to define the BeOS workaround macro;
133272         this adjusts to the change to AC_MBSTATE_T.
133274 2000-07-14  Jim Meyering  <meyering@lucent.com>
133276         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133277         jm_AC_TYPE_UINTMAX_T.
133279 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133281         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133283         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133284         quotearg_buffer_restyled): Add support for
133285         clocale_quoting_style.  Undo previous change to
133286         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133287         and "{RIGHT QUOTATION MARK}" msgids.
133289 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133291         From a suggestion by Bruno Haible.
133292         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133293         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133294         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133295         and mbstate_t, to a single-part test that simply defines mbstate_t.
133296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133297         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133299 2000-07-10  Jim Meyering  <meyering@lucent.com>
133301         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133303         * m4/gnu-source.m4: Output to confdefs.h directly.
133304         Suggestion from Akim Demaille.
133306 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133308         The old behavior of quoting `like this' doesn't look good with
133309         newer, ISO-style fonts.  See:
133310         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133312         Instead, quote "like this" by default.  Let the translator
133313         tailor the locale-specific quoting behavior by providing
133314         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133316         * lib/quotearg.c (N_): New macro.
133317         (gettext_default): New function.
133318         (quotearg_buffer_restyled): Use
133319         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133320         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133322 2000-07-09  Jim Meyering  <meyering@lucent.com>
133324         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133325         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133327         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133330 2000-07-09  Jim Meyering  <meyering@lucent.com>
133332         * lib/Most files: Update copyright dates to include 2000.
133334 2000-07-08  Jim Meyering  <meyering@lucent.com>
133336         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133337         if not defined.
133338         (xgethostname): Remove now-unnecessary #ifdef.
133339         Move declaration of `err' into loop where it's used.
133341 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133342         and Bruno Haible  <haible@clisp.cons.org>
133344         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133345         only if the test for an object-type mbstate_t fails.  This
133346         prevents us from mistakenly reporting that mbstate_t is a
133347         system object type after we "#define mbstate_t int" to work
133348         around its lack.
133350 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133351         and Bruno Haible  <haible@clisp.cons.org>
133353         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133355 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133357         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133358         to strerror_r.
133359         Include <ctype.h> for use of isalpha.
133361 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133363         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133364         by allocating a larger buffer. Test the gethostname return value for
133365         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133366         returns an error and ENAMETOOLONG isn't defined.
133368 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133370         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133371         dimension.
133373 2000-07-04  Jim Meyering  <meyering@lucent.com>
133375         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133376         of the deprecated AC_CHECKING.
133378 2000-07-04  Jim Meyering  <meyering@lucent.com>
133380         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133381         Reported by Bruno Haible.
133383 2000-07-04  Jim Meyering  <meyering@lucent.com>
133385         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133386         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133387         lacks mbrtowc.
133389 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133391         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133392         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133394 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133395         and Bruno Haible  <haible@clisp.cons.org>
133397         * lib/quotearg.c (mbrtowc):
133398         Assign to *pwc, and return 1 only if result is nonzero.
133399         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133401 2000-07-03  Jim Meyering  <meyering@lucent.com>
133403         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133405 2000-07-03  Jim Meyering  <meyering@lucent.com>
133407         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133408         This is necessary to get a definition of e.g., UTMP_FILE on
133409         HP-UX 10.20.
133410         From Bob Proulx.
133412 2000-07-02  Jim Meyering  <meyering@lucent.com>
133414         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133416         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133417         AC_LIBOBJ(function_name).
133418         * m4/chown.m4: Likewise.
133419         * m4/fnmatch.m4: Likewise.
133420         * m4/ftruncate.m4: Likewise.
133421         * m4/getgroups.m4: Likewise.
133422         * m4/getline.m4: Likewise.
133423         * m4/group-member.m4: Likewise.
133424         * m4/jm-macros.m4: Likewise.
133425         * m4/lstat.m4: Likewise.
133426         * m4/malloc.m4: Likewise.
133427         * m4/memcmp.m4: Likewise.
133428         * m4/nanosleep.m4: Likewise.
133429         * m4/putenv.m4: Likewise.
133430         * m4/realloc.m4: Likewise.
133431         * m4/regex.m4: Likewise.
133432         * m4/stat.m4: Likewise.
133433         * m4/strftime.m4: Likewise.
133435 2000-07-02  Jim Meyering  <meyering@lucent.com>
133437         * lib/quotearg.c (mbstate_t): Don't define here.
133439 2000-07-02  Jim Meyering  <meyering@lucent.com>
133441         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133443 2000-07-01  Jim Meyering  <meyering@lucent.com>
133445         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133447 2000-07-01  Jim Meyering  <meyering@lucent.com>
133449         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133450         problem.
133452 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133455         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133457 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133459         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133460         per change in ../m4/ls-mntd-fs.m4.
133461         (read_filesystem_list): Ignore symbolic links.
133463 2000-06-29  Jim Meyering  <meyering@lucent.com>
133465         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133466         for declaration of strcmp.
133468         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133470         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133471         Avoid warning by casting result to `char *' to remove `const'.
133473 2000-06-28  Jim Meyering  <meyering@lucent.com>
133475         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133476         included by quotearg.c, for which we perform this test.  From
133477         Bruno Haible.
133479 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133481         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133483         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133485 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133487         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133489 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133491         savedir now sets errno on failure and invokes xmalloc to get memory.
133492         Fix a couple of other minor bugs while we're at it.
133494         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133495         (NAMLEN): Remove macro.
133496         (malloc, realloc): Remove decls.
133497         (stpcpy): Likewise.
133498         ("xalloc.h"): Include.
133499         (NAME_SIZE_DEFAULT): New macro.
133500         (savedir): Use xmalloc / xrealloc to allocate memory.
133501         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133502         Skip "" directory entries.
133503         Use strlen to calculate directory entry length, since the old method
133504         is rarely used these days and isn't worth supporting.
133505         Don't use a pointer after freeing it.
133506         Check for integer overflow when calculating allocation size.
133507         Use memcpy to copy entries, instead of stpcpy.
133508         Set errno properly when returning NULL.
133509         Check for readdir error.
133511 2000-06-26  Jim Meyering  <meyering@lucent.com>
133513         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
133515 2000-06-25  Jim Meyering  <meyering@lucent.com>
133517         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
133518         Linux header bug when _XOPEN_SOURCE is defined to 500.
133520 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133522         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
133523         deficiency.
133525 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133527         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
133528         Include xalloc.h.
133529         Don't include <stdlib.h>.  Don't declare malloc, realloc.
133531 2000-06-24  Jim Meyering  <meyering@lucent.com>
133533         * m4/strerror_r.m4: Revive this file -- to try out an experimental
133534         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
133535         for which strerror does return char*, but which lacks a conveniently
133536         accessible declaration of the function.  If the compile-test says
133537         strerror_r doesn't work, then resort to a `run'-test that works on
133538         BeOS and segfaults on DEC Unix.
133540 2000-06-24  Jim Meyering  <meyering@lucent.com>
133542         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
133544 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133546         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
133547         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
133549 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133551         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
133552         (mbrtowc, mbstate_t): Define substitutes if
133553         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
133554         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
133555         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
133557 2000-06-23  Jim Meyering  <meyering@lucent.com>
133559         * m4/afs.m4: Add missing AC_MSG_RESULT.
133560         Reported by Bruno Haible.
133562         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
133563         Suggestion from Bruno Haible.
133565 2000-06-23  Jim Meyering  <meyering@lucent.com>
133567         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
133569 2000-06-21  Jim Meyering  <meyering@lucent.com>
133571         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
133573 2000-06-21  Jim Meyering  <meyering@lucent.com>
133575         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
133576         (noinst_HEADERS): Add getstr.h.
133578         * lib/getline.c (getstr): Move into a separate file.
133579         * lib/getstr.c (getstr): New file, extracted from getline.c, with
133580         the following changes: new parameter, delim2; both delim[12]
133581         parameters have type `int', not `char'.  The latter would lose
133582         with 8-bit delimiters.
133583         * lib/getstr.h: New file.
133585 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133587         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
133588         than 1024, return a memory chunk of least possible size, instead
133589         of size PATH_MAX + 2. In the loop, increment the size proportionally.
133590         Use free/xmalloc instead of xrealloc to avoid copying for very long
133591         paths.
133593 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133595         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133596         the empty string.
133598 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133600         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133601         address, not strdup.  Include <stdlib.h> and don't declare free().
133603 2000-06-19  Jim Meyering  <meyering@lucent.com>
133605         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133607 2000-06-18  Jim Meyering  <meyering@lucent.com>
133609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
133611         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133612         `checking whether...' message to be consistent with that of the
133613         lstat test.
133615 2000-06-18  Jim Meyering  <meyering@lucent.com>
133617         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133618         Besides, these days every porting target provides a mkdir function.
133620         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133621         needed. (this snippet comes from src/system.h).
133623 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133625         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133627 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133629         * lib/human.c (adjust_value): New function.
133630         (human_readable_inexact): Apply rounding style even when
133631         printing approximate values.
133633 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133635         * lib/human.c (human_readable_inexact): Allow an input block
133636         size that is not a multiple of the output block size, and vice versa.
133637         Reported by Piergiorgio Sartor.
133639 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133641         * lib/getdate.y (get_date): Apply relative times after time
133642         zone indicator, not before.  Reported by Todd A. Jacobs.
133644 2000-06-13  Jim Meyering  <meyering@lucent.com>
133646         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133648         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133650 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133652         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133654 2000-06-12  Jim Meyering  <meyering@lucent.com>
133656         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133657         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133658         optional argument.
133659         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133660         the optional argument, `lib'.
133662 2000-06-08  Jim Meyering  <meyering@lucent.com>
133664         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133666 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133668         Rewrite largefile configuration so that we don't need to run
133669         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133670         AC_CANONICAL_HOST in configure.in -- jmm]
133672         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133673         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133674         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133675         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133676         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133677         All uses changed.
133678         Instead of inspecting the output of getconf, try to compile the
133679         test program without and with the macro definition.
133680         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133681         for getconf.  Instead, check for the needed flags by compiling
133682         test programs.
133684 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133686         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133688 2000-06-04  Jim Meyering  <meyering@lucent.com>
133690         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133691         SunOS 4.1.4 for which gid_t is an unsigned type.
133693 2000-06-03  Jim Meyering  <meyering@lucent.com>
133695         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133696         now that autoconf requires that.
133698         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133699         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133700         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133702 2000-06-03  Jim Meyering  <meyering@lucent.com>
133704         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133706 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133708         * m4/glibc21.m4: New file.
133709         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133711 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133713         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133714         newer, don't install charset.alias.
133715         * lib/config.charset: Change the Linux/glibc rules so they become empty
133716         on glibc-2.1 or newer.
133718 2000-06-02  Jim Meyering  <meyering@lucent.com>
133720         * lib/mountlist.c: Back out last change.  Instead, do this...
133721         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133722         me_dummy member using the same `ignore'-testing code.
133723         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133724         fs_type strings.
133725         From Mark D. Roth.
133727 2000-05-29  Jim Meyering  <meyering@lucent.com>
133729         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133730         mounts with the `ignore' attribute.  Based on a patch from
133731         Mark D. Roth.
133733 2000-05-28  Jim Meyering  <meyering@lucent.com>
133735         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133736         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133737         * m4/stat.m4: Likewise.
133738         * m4/lstat.m4: Likewise.
133739         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133741         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133742         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133744 2000-05-26  Jim Meyering  <meyering@lucent.com>
133746         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133748 2000-05-24  Jim Meyering  <meyering@lucent.com>
133750         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133751         autoconf requires that.
133752         * m4/lib-check.m4: Likewise.
133753         * m4/jm-macros.m4: Likewise.
133754         * m4/strftime.m4: Likewise.
133756         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133757         AC_CHECK_DECLS, now that autoconf requires that.
133759 2000-05-22  Jim Meyering  <meyering@lucent.com>
133761         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133762         * m4/lstat.m4: Likewise.
133764 2000-05-22  Jim Meyering  <meyering@lucent.com>
133766         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133768 2000-05-20  Jim Meyering  <meyering@lucent.com>
133770         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133771         (jm_PREREQ): Use it.
133773 2000-05-18  Jim Meyering  <meyering@lucent.com>
133775         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133776         back, too, since it may have been modified by allocate_entry.
133777         (hash_delete): Rewrite to use neither the assignment operator
133778         nor the comma operator in an if-expression.
133780 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133782         * lib/closeout.c:
133783         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133784         Remove; no longer needed.
133785         "quotearg.h": Add include.
133786         (file_name): Do not bother to explicitly initialize to NULL; it's less
133787         efficient on some hosts.
133788         (close_stdout_status): Remove test as to whether stdout was already
133789         closed; it breaks for the case "echo x | sort >&-".
133790         Quote file name colons.
133791         Do not assume that _("write error") lacks format strings.
133793 2000-05-15  Jim Meyering  <meyering@lucent.com>
133795         * lib/version-etc.c (version_etc_copyright): Update the copyright
133796         string used in all --version output.
133798 2000-05-14  Jim Meyering  <meyering@lucent.com>
133800         * lib/closeout.c (close_stdout_set_file_name): New function.
133801         (close_stdout_status): Use new file-scoped global.
133802         Return right away if fstat says the stdout file descriptor is invalid.
133803         * lib/closeout.h (close_stdout_set_file_name): Declare.
133805 2000-05-10  Jim Meyering  <meyering@lucent.com>
133807         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133808         (close_stdout_set_status): New function.
133809         * lib/closeout.h (close_stdout_set_status): Declare.
133811 2000-05-09  Jim Meyering  <meyering@lucent.com>
133813         * m4/gettext.m4: Rename this...
133814         * m4/libintl.m4: ...to this.
133816 2000-05-08  Jim Meyering  <meyering@lucent.com>
133818         * lib/long-options.c: Don't include closeout.h.
133819         (parse_long_options): Don't call close_stdout for --version.
133821 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133823         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133824         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133825         2.1.3 bug.  This avoids a clash when files like regex.c define
133826         _GNU_SOURCE.
133828 2000-05-06  Jim Meyering  <meyering@lucent.com>
133830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133831         (AC_REPLACE_FUNCS): Add strnlen.
133833         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133834         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133837         AC_SEARCH_LIBS call for nanosleep.
133838         (LIB_NANOSLEEP): Set and AC_SUBST.
133840 2000-05-06  Jim Meyering  <meyering@lucent.com>
133842         * lib/strnlen.c: Undefine __strnlen and strnlen.
133843         [!weak_alias]: Define __strnlen to strnlen.
133845         * lib/atexit.c: New file, from libiberty.
133847 2000-05-06  Jim Meyering  <meyering@lucent.com>
133849         * lib/closeout.c (close_stdout_status): Also check for errors on the
133850         stderr stream.
133852 2000-05-05  Jim Meyering  <meyering@lucent.com>
133854         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133855         AC_SEARCH_LIBS call for clock_gettime.
133856         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133858         * m4/search-libs.m4: Update from autoconf.
133860         su doesn't work on Solaris 2.6.
133861         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133862         <shadow.h>.  Reported by Dragos Harabor.
133864 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133866         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133867         memcpy instead of xmalloc, xrealloc, path_concat.
133868         (locale_charset): Treat empty environment variables as absent.
133869         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133871 2000-05-04  Jim Meyering  <meyering@lucent.com>
133873         * lib/getopt.c: Update from glibc.
133874         * lib/obstack.c: Likewise.
133875         * lib/obstack.h: Likewise.
133876         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133877         file
133879         * lib/regex.h: Likewise.
133880         * lib/strndup.c: Likewise.
133881         * lib/strnlen.c: New file, from glibc.
133883 2000-05-03  Jim Meyering  <meyering@lucent.com>
133885         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133887 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133889         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133890         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133891         compile-time test, rather than inspecting host and OS, to
133892         decide whether to define _LARGEFILE_SOURCE.
133894 2000-05-01  Jim Meyering  <meyering@lucent.com>
133896         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133899         Based on a patch from Bruno Haible.
133901 2000-05-01  Jim Meyering  <meyering@lucent.com>
133903         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133905 2000-04-29  Jim Meyering  <meyering@lucent.com>
133907         * lib/path-concat.c: Declare strdup only if it's not defined.
133908         * lib/canon-host.c: Likewise.
133910 2000-04-28  Jim Meyering  <meyering@lucent.com>
133912         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133913         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133914         is included first, then limits.h is included by locale.h by libintl.h.
133915         From John David Anglin.
133917 2000-04-25  Jim Meyering  <meyering@lucent.com>
133919         * lib/makepath.c (S_IRWXUGO): Define.
133920         (make_path): Always perform explicit chmod if MODE specifies any
133921         of the `special' permission bits.  Prompted by a bug report against
133922         install from Mate Wierdl and Joost van Baal.
133924 2000-04-18  Jim Meyering  <meyering@lucent.com>
133926         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133927         (jm_PREREQ): Use it.
133929 2000-04-18  Jim Meyering  <meyering@lucent.com>
133931         * lib/README: New file.
133933         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133934         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
133936 2000-04-17  Jim Meyering  <meyering@lucent.com>
133938         Get it right :-)
133939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
133940         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
133941         Suggestion from Akim Demaille.
133943 2000-04-17  Jim Meyering  <meyering@lucent.com>
133945         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
133946         the definition of it to rpl_strftime also defined-away the system's
133947         declaration.
133949 2000-04-15  Jim Meyering  <meyering@lucent.com>
133951         Use `C' to denote so-called `contiguous' files, the same way
133952         that tar does.
133953         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133954         (ftypelet): Use S_ISCTG.
133955         From Michael Deutschmann.
133957 2000-04-14  Jim Meyering  <meyering@lucent.com>
133959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133960         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133961         clobbered.
133963 2000-04-14  Jim Meyering  <meyering@lucent.com>
133965         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133967 2000-04-13  Jim Meyering  <meyering@lucent.com>
133969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133970         AH_VERBATIM to insert required #ifndef into config.h.in.
133971         Suggestion from Akim Demaille.
133973 2000-04-12  Jim Meyering  <meyering@lucent.com>
133975         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133976         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133977         Christian Krackowizer.
133979         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133980         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133981         (AC_SYS_LARGEFILE): Require.
133982         (AM_C_PROTOTYPES): Require.
133984 2000-04-08  Jim Meyering  <meyering@lucent.com>
133986         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133987         names don't conflict.  Reported by Eli Zaretskii.
133989 2000-04-07  Jim Meyering  <meyering@lucent.com>
133991         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133992         sys/types.h, to work around system header problems on AIX 3.2.5.
133993         From Bruno Haible.
133995 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133997         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133998         bug.  Deal with the different error behavior of Irix iconv.
134000 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134002         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134003         IRIX if the installer said otherwise.
134005 2000-04-05  Jim Meyering  <meyering@lucent.com>
134007         Portability tweaks required for ultrix4.3.
134008         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134009         (jm_CHECK_DECLS): Add getutent to the list of functions.
134010         (_jm_DECL_HEADERS): Add utmpx.h.
134011         From John David Anglin.
134013         * m4/strftime.m4: Back out the 2000-04-02 change.
134014         Instead of that change, simply undefine putenv in the test program.
134016 2000-04-05  Jim Meyering  <meyering@lucent.com>
134018         Portability tweaks required for ultrix4.3.
134019         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134020         getutent.
134021         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134022         * lib/canon-host.c: Declare strdup.
134023         * lib/path-concat.c: Likewise.
134024         From John David Anglin.
134026 2000-04-04  Jim Meyering  <meyering@lucent.com>
134028         Be more DOS 8.3-friendly.
134029         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134030         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134031         * lib/Makefile.am: Reflect renaming.
134032         Reported by Eli Zaretskii.
134034         Use a temporary file name that won't clash with `charset.alias'
134035         in the DOS 8.3 name space.
134036         * lib/Makefile.am (charset_tmp): Define.
134037         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134038         (uninstall-local): Likewise.
134039         Reported by Eli Zaretskii.
134041 2000-04-03  Jim Meyering  <meyering@lucent.com>
134043         * m4/gettext.m4: Fix typo in comment.
134045         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134046         textutils/configure.in).  Suggestion from Paul Eggert.
134047         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134049 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134051         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134052         variable in the shell rather than using putenv, which isn't
134053         portable.  This avoids the configure-time inter-test dependency
134054         on the potentially-renamed putenv function.
134056 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134059         before checking struct stat.st_blksize, so that
134060         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134062 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134065         since strftime.c uses HAVE_STRFTIME to decide whether to use
134066         the underlying strftime.
134068 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134070         * lib/time/strftime.c (my_strftime): Make sure we call the system
134071         strftime, not ourselves, when invoking the underlying strftime.
134073 2000-03-24  Jim Meyering  <meyering@lucent.com>
134075         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134076         (charset_alias): Define.
134077         (install-exec-local): Factor out common code.
134078         (uninstall-local): Split lines longer than 80.
134079         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134080         (SUFFIXES): Define.
134081         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134082         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134084 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134086         * lib/config.charset: Output a line containing "Packages using this
134087         file".
134088         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134089         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134090         ref-del.sed): New rules.
134092 2000-03-17  Jim Meyering  <meyering@lucent.com>
134094         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134095         Otherwise, include <strings.h>
134097 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134099         * lib/unicodeio.c (utf8_wctomb): New function.
134100         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134101         format instead of in UCS-4 with platform dependent endianness.
134103 2000-03-10  Jim Meyering  <meyering@lucent.com>
134105         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134106         From Marco Franzen.
134108 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134110         * lib/savedir.c (savedir): Work even if directory size is
134111         negative; this can happen with some screwy NFS configurations.
134113 2000-03-06  Jim Meyering  <meyering@lucent.com>
134115         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134116         if it's NULL (because we ran out of memory).  From Bruno Haible.
134118 2000-03-05  Jim Meyering  <meyering@lucent.com>
134120         * lib/localcharset.c ("path-concat.h"): Include.
134121         (get_charset_aliases): Use path_concat instead of ANSI string
134122         concatenation.
134124         * lib/unicodeio.h (PARAMS): Define.
134125         Use it to guard prototype.
134127 2000-03-04  Jim Meyering  <meyering@lucent.com>
134129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134130         for lib/localcharset.c.
134132 2000-03-04  Jim Meyering  <meyering@lucent.com>
134134         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134135         installing into it.
134136         (uninstall-local): Uncomment this rule so `make distcheck' works
134137         once again.
134139         * lib/unicodeio.c (<errno.h>): Include it.
134140         (errno): Declare if not defined.
134142         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134144         * lib/config.charset: New version, incorporating remarks from a linux
134145         i18n mailing list.  From Bruno Haible.
134147 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134149         * m4/codeset.m4: New file.
134150         * m4/iconv.m4: New file.
134151         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134153 2000-03-03  Jim Meyering  <meyering@lucent.com>
134155         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134157 2000-03-02  Jim Meyering  <meyering@lucent.com>
134159         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134160         the messages come out on separate lines.
134162         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134163         rather than jm_CHECK_DECLARATIONS.
134164         * m4/decl.m4: Remove now-unused file.
134166         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134167         geteuid.
134169 2000-03-02  Jim Meyering  <meyering@lucent.com>
134171         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134173 2000-03-01  Jim Meyering  <meyering@lucent.com>
134175         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134176         * lib/unicodeio.c: Likewise.
134178 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134180         * lib/config.charset: New file.
134181         * lib/localcharset.c: New file.
134182         * lib/unicodeio.h, lib/unicodeio.c: New files.
134183         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134184         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134185         (noinst_HEADERS): Add unicodeio.h.
134186         (all-local, install-exec-local, charset.alias): New targets.
134188 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134190         * lib/quotearg.c (ALERT_CHAR): New macro.
134191         (quotearg_buffer_restyled): Use it.
134193 2000-02-27  Jim Meyering  <meyering@lucent.com>
134195         * m4/check-decl.m4: Add getenv to the list.
134197 2000-02-27  Jim Meyering  <meyering@lucent.com>
134199         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134200         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134202         * lib/backupfile.c: Guard inclusion of stdlib.h with
134203         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134204         Declare malloc if needed.
134206         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134207         `#ifndef HAVE_DECL..'
134208         now that autoconf always defines the HAVE_DECL_ symbols.
134209         * lib/human.c: Likewise.
134210         * lib/same.c: Likewise.
134211         * lib/strtoumax.c: Likewise.
134213         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134214         declaration check was not run.
134215         * lib/hash.c: Likewise.
134216         * lib/human.c: Likewise.
134217         * lib/same.c: Likewise.
134218         * lib/strtoumax.c: Likewise.
134220         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134221         `.', then first look up the entire `.'-containing string as a login
134222         name.
134224 2000-02-23  Jim Meyering  <meyering@lucent.com>
134226         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134227         in place of my hack.
134229 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134231         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134232         (textint): New typedef.
134233         (parser_control): Member year changed from int to textint.
134234         All uses changed.
134235         (YYSTYPE): Removed; replaced by %union with int and textint members.
134236         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134237         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134238         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134239         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134240         (date, number, to_year): Use width of number in digits, not its value,
134241         to determine whether it's a 2-digit year, or a 2-digit time.
134242         (yylex): Store number of digits of numeric tokens.
134243         Reported by John Kendall.
134245         (parser_control): Changed from struct parser_control to typedef (for
134246         consistency).  All uses changed.
134248         (tID): Removed; not used.
134249         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134251 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134253         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134254         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134256 2000-02-12  Jim Meyering  <meyering@lucent.com>
134258         * lib/userspec.c (ISDIGIT): Define it.
134259         (isdigit): Remove definition.
134260         (is_number): Use ISDIGIT, not isdigit.
134261         <libintl.h>: Include.
134262         (_ and N_): Define.
134263         (parse_user_spec): Mark translatable strings.
134265 2000-02-10  Jim Meyering  <meyering@lucent.com>
134267         With these changes, nanosleep.[ch] are finally enough like the other
134268         lib/* replacement files to compile on a few more losing systems.
134270         * lib/nanosleep.h: Don't include config.h.
134271         Remove prototype from declaration of nanosleep.
134272         (PARAMS): Remove now-unneeded definition.
134273         * lib/nanosleep.c: #undef nanosleep.
134274         (rpl_nanosleep): Rename from nanosleep.
134276 2000-02-10  Jim Meyering  <meyering@lucent.com>
134278         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134279         gnu_nanosleep to rpl_nanosleep.
134281 2000-02-09  Jim Meyering  <meyering@lucent.com>
134283         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134284         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134286 2000-02-08  Akim Demaille  <akim@epita.fr>
134288         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134289         `[' and `]' and remove uses of `changequote'.
134290         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134291         (AC_SYS_LARGEFILE): Likewise.
134292         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134293         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134294         of changequote.
134295         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134296         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134297         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134298         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134300 2000-02-05  Jim Meyering  <meyering@lucent.com>
134302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134303         Remove explicit use of AC_HEADER_TIME.  It is required by
134304         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134305         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134306         in autoconf whereby the expansion of the latter ended up preceding
134307         the expansion of its prerequisite, AC_HEADER_TIME.
134308         Reported by Volker Borchert.
134310 2000-02-03  Jim Meyering  <meyering@lucent.com>
134312         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134314 2000-02-03  Jim Meyering  <meyering@lucent.com>
134316         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134317         rather than with `#if HAVE_UTMPNAME'.
134319 2000-02-02  Jim Meyering  <meyering@lucent.com>
134321         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134322         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134323         Reported by Eli Zaretskii.
134325 2000-02-01  Jim Meyering  <meyering@lucent.com>
134327         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134329 2000-01-31  Jim Meyering  <meyering@lucent.com>
134331         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134332         functions.  Add the time.h and sys/time.h headers along with the
134333         AC_REQUIRE'ment of AC_HEADER_TIME.
134335 2000-01-31  Jim Meyering  <meyering@lucent.com>
134337         * lib/nanosleep.h (nanosleep): Guard declaration with
134338         `#if ! HAVE_DECL_NANOSLEEP'.
134339         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134340         the declaration in that vendor's sys/timers.h.
134341         Reported by Christian Krackowizer.
134343         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134344         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134345         (ISPRINT): Likewise.
134346         Reported by Tom Tromey.
134348 2000-01-30  Jim Meyering  <meyering@lucent.com>
134350         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134352         * m4/prereq.m4 (utmp_includes): Define.
134353         Check for ut_user and ut_name members in both struct utmpx
134354         and struct utmp.
134356 2000-01-30  Jim Meyering  <meyering@lucent.com>
134358         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134359         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134360         header files where only utmpx.ut_user is declared.
134362         * lib/readutmp.h (UT_USER): Define.
134364 2000-01-29  Jim Meyering  <meyering@lucent.com>
134366         * m4/lib-check.m4: New file containing library-related checks from
134367         fileutils and sh-utils (textutils had none).
134369 2000-01-28  Jim Meyering  <meyering@lucent.com>
134371         * m4/perl.m4: Change format of warning message to look more like that
134372         from the missing script.  Suggestion from François Pinard.
134374 2000-01-25  Jim Meyering  <meyering@lucent.com>
134376         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134377         well as time.h in the compile check.
134378         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134379         Fix typo in cross-compiling case: s/yes/no/.
134381 2000-01-23  Jim Meyering  <meyering@lucent.com>
134383         * m4/jm-macros.m4: Move df-related tests here from
134384         fileutils/configure.in
134386         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134387         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134389         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134390         s/space/ac_fsusage_space/.
134391         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134393         * m4/ftruncate.m4: New file (derived from part of
134394         fileutils/configure.in).
134395         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134396         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134398         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134399         AC_SUBST these here, rather than just in sh-util/configure.in, so
134400         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134401         all the same.
134402         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134403         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134404         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134405         (AC_SUBST(POW_LIBM)): Likewise.
134406         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134408 2000-01-23  Jim Meyering  <meyering@lucent.com>
134410         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134411         obstack.c.
134413 2000-01-22  Jim Meyering  <meyering@lucent.com>
134415         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134417         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134419         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134420         configure.in
134421         (AC_CHECK_HEADERS): Likewise for sh-utils.
134422         (AC_CHECK_HEADERS): Likewise for textutils.
134423         Merge the three lists of headers.
134425         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134426         from fileutils' configure.in.
134428         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134429         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134430         check-decl.m4.
134432         * m4/check-decl.m4: Use #if rather than #ifdef.
134433         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134434         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134435         (_jm_DECL_HEADERS): Define new function.
134436         (jm_CHECK_DECLARATIONS): Require it.
134438 2000-01-22  Jim Meyering  <meyering@lucent.com>
134440         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134441         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134442         Required for some AIX systems.  Reported by Christian Krackowizer.
134443         [TESTING] (main): New function.
134445         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134446         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134447         letters.
134449         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134450         iswprint.
134452         * lib/strverscmp.c (ISDIGIT): Define.
134453         (strverscmp): Use ISDIGIT, not isdigit.
134455 2000-01-19  Jim Meyering  <meyering@lucent.com>
134457         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134458         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134459         defines `struct timespec' in <sys/time.h>
134461         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134462         Thanks to Akim for explaining.
134464 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134466         * lib/nanosleep.c (nanosleep):
134467         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134468         POSIX.1 doesn't require SA_INTERRUPT and some systems
134469         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134470         it's been part of POSIX.1 since day 1 (in 1988).
134472 2000-01-17  Jim Meyering  <meyering@lucent.com>
134474         * lib/interlock: Remove unused file.  Reported by François Pinard.
134476 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134478         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134479         alert, backslash, formfeed, and vertical tab unnecessarily in
134480         shell quoting style.
134482 2000-01-16  Jim Meyering  <meyering@lucent.com>
134484         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134485         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134486         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134487         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134489 2000-01-16  Jim Meyering  <meyering@lucent.com>
134491         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134492         because the latter didn't work.
134494 2000-01-15  Jim Meyering  <meyering@lucent.com>
134496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134497         (AC_REPLACE_FUNCS): Add memcpy and memset.
134498         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134499         Add strpbrk.
134500         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134502 2000-01-12  Jim Meyering  <meyering@lucent.com>
134504         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134505         (jm_PREREQ): Use it.
134506         (jm_PREREQ_READUTMP): New macro.
134507         (jm_PREREQ): Use it.
134509 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134511         Quote multibyte characters correctly.
134512         * m4/c-bs-a.m4: New file.
134513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134514         (jm_PREREQ): Use it.
134516 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134518         * m4/uintmax_t.m4: Port to autoconf 2.13.
134520 2000-01-08  Jim Meyering  <meyering@ascend.com>
134522         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
134523         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
134525 2000-01-04  Jim Meyering  <meyering@ascend.com>
134527         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
134528         jm_STRUCT_DIRENT_D_TYPE.
134529         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
134530         jm_STRUCT_DIRENT_D_INO.
134531         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
134532         jm_STRUCT_UTIMBUF.
134533         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
134534         renamings.
134535         * m4/utime.m4: Likewise.
134537         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
134538         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
134540 2000-01-03  Paul Eggert  <eggert@twinsun.com>
134542         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
134543         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
134545 2000-01-02  Jim Meyering  <meyering@ascend.com>
134547         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
134548         remember if this is necessary.
134550 1999-12-26  Jim Meyering  <meyering@ascend.com>
134552         * m4/jm-macros.m4: Use it here.
134553         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
134555 1999-12-23  Jim Meyering  <meyering@ascend.com>
134557         * m4/jm-macros.m4: Check for clock_gettime (moved from
134558         fileutils/configure.in)
134559         Check for gettimeofday.
134561 1999-12-20  Jim Meyering  <meyering@ascend.com>
134563         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
134564         autoconf-2.14a-1999-12-20.
134566 1999-12-19  Jim Meyering  <meyering@ascend.com>
134568         * m4/lstat-slash.m4: New file.
134569         * m4/jm-macros.m4: Use the new macro:
134570         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134572 1999-12-07  Jim Meyering  <meyering@ascend.com>
134574         * m4/perl.m4: Require that File::Compare be available, too.
134575         Too many systems seem to lack it.
134577         * m4/strftime.m4: Add checks for most of the cpp macros tested in
134578         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
134580 1999-11-18  Paul Eggert  <eggert@twinsun.com>
134582         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
134583         problem with the QNX 4.25 shell, which doesn't propagate exit
134584         status of failed commands inside shell assignments.
134586 1999-11-17  Jim Meyering  <meyering@ascend.com>
134588         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
134590 1999-11-07  Jim Meyering  <meyering@ascend.com>
134592         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134594 1999-11-06  Jim Meyering  <meyering@ascend.com>
134596         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134597         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134599 1999-11-05  Jim Meyering  <meyering@ascend.com>
134601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134602         configure.in of textutils, fileutils, and sh-utils into this one
134603         (shared between those packages) file.
134604         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134605         AC_STRUCT_ST_BLKSIZE.
134607 1999-11-03  Jim Meyering  <meyering@ascend.com>
134609         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
134610         of AC_CHECK_TYPE checks includes unistd.h.
134611         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134612         Suggestion from Akim Demaille.
134614 1999-10-30  Jim Meyering  <meyering@ascend.com>
134616         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134617         m4-quoted string.
134618         * m4/ls-mntd-fs.m4: Likewise.
134619         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134620         * m4/jm-winsz1.m4: Likewise.
134622         * m4/const.m4: Remove file, since the fix made it into the experimental
134623         version of autoconf.
134624         * m4/mktime.m4: Likewise.
134626         * m4/check-type.m4: Remove file, now that the latest version of
134627         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134629         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134630         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134631         AC_CHECK_TYPE.
134633 1999-10-04  Jim Meyering  <meyering@ascend.com>
134635         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134637 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134639         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134640         2.95.1 bug with HP-UX 10.20.
134642 1999-09-17  Jim Meyering  <meyering@ascend.com>
134644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134645         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134646         due to missing strdup (against sh-utils-2.0).
134648 1999-08-29  Jim Meyering  <meyering@ascend.com>
134650         * m4/jm-macros.m4: Require jm_BISON.
134651         * m4/bison.m4: New file.
134653 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134655         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134656         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134658 1999-08-05  Jim Meyering  <meyering@ascend.com>
134660         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134661         to avoid conflicts with `conftest' on 8+3 filesystems.
134662         Suggestion from Eli Zaretskii.
134664 1999-08-04  Jim Meyering  <meyering@ascend.com>
134666         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134667         fileutils and sh-utils (textutils's getline test was inadequate).
134668         (AM_FUNC_GETLINE): Run this test.
134669         (AC_CHECK_FUNCS): Check for getdelim.
134670         Reported by Bob Proulx.
134672 1999-08-02  Jim Meyering  <meyering@ascend.com>
134674         * m4/jm-macros.m4: Add a comment.
134676 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134678         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134679         <inttypes.h> defines strtoumax as a macro (and not as a
134680         function).
134682 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134684         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134685         that we can shift, multiply and divide unsigned long long
134686         values; Ultrix cc can't do it.
134688 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134690         * m4/mktime.m4: New file, which is a preview of what should appear
134691         in the next public autoconf release.
134693 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134695         * m4/lfs.m4: Remove this file.
134696         * m4/largefile.m4: New file.  It contains the old contents of
134697         lfs.m4, except that all names with prefix AC_LFS have been
134698         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134699         compatible with future autoconf versions.  Also, some minor m4
134700         quoting problems have been fixed.
134702 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134704         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134705         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134706         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134707         and simplify the shell code.
134709 1999-08-01  Jim Meyering  <meyering@ascend.com>
134711         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134712         m4.
134714 1999-07-20  Jim Meyering  <meyering@ascend.com>
134716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134718 1999-07-15  Jim Meyering  <meyering@ascend.com>
134720         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134722 1999-05-22  Jim Meyering  <meyering@ascend.com>
134724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134726 1999-05-20  Jim Meyering  <meyering@ascend.com>
134728         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134729         Add a colon after each `then' in case $4 is empty.
134731 1999-05-16  Jim Meyering  <meyering@ascend.com>
134733         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134735 1999-05-10  Jim Meyering  <meyering@ascend.com>
134737         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134739         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134740         AC_FUNC_MKTIME.
134742 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134744         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134746 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134748         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134749         not CPPFLAGS, so that linking works correctly in IRIX.
134751 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134755 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134757         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134758         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134760         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134761         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134763         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134765 1999-04-20  Jim Meyering  <meyering@ascend.com>
134767         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134768         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134769         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134771 1999-04-18  Jim Meyering  <meyering@ascend.com>
134773         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134774         * m4/jm-macros.m4: Use it.
134776 1999-04-06  Jim Meyering  <meyering@ascend.com>
134778         * m4/strftime.m4: Remove test for %f.
134780 1999-03-29  Jim Meyering  <meyering@ascend.com>
134782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134783         superset of the AC_TYPE_* checks in the textutils, fileutils,
134784         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134785         AC_TYPE_PID_T.
134787 1999-03-28  Jim Meyering  <meyering@ascend.com>
134789         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134790         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134791         replaced e.g., in the *.sh files of the sh-utils.
134793 1999-03-20  Jim Meyering  <meyering@ascend.com>
134795         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134796         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134797         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134799 1999-03-19  Jim Meyering  <meyering@ascend.com>
134801         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134803 1999-03-12  Jim Meyering  <meyering@ascend.com>
134805         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134807 1999-03-07  Jim Meyering  <meyering@ascend.com>
134809         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134810         declared.
134812 1999-02-17  Jim Meyering  <meyering@ascend.com>
134814         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134815         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134817 1999-02-07  Jim Meyering  <meyering@ascend.com>
134819         * m4/group-member.m4: New file -- extracted from sh-utils'
134820         configure.in.
134822         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134823         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134825 1999-02-06  Jim Meyering  <meyering@ascend.com>
134827         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134828         * m4/fnmatch.m4: Likewise.
134829         * m4/getgroups.m4: Likewise.
134830         * m4/lstat.m4: Likewise.
134831         * m4/malloc.m4: Likewise.
134832         * m4/putenv.m4: Likewise.
134833         * m4/realloc.m4: Likewise.
134834         * m4/regex.m4: Likewise.
134835         * m4/stat.m4: Likewise.
134836         * m4/strftime.m4: Likewise.
134837         Suggestion from Alain Magloire.
134839         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134840         * m4/fnmatch.m4: Likewise.
134841         * m4/getgroups.m4: Likewise.
134842         * m4/getline.m4: Likewise.
134843         * m4/lstat.m4: Likewise.
134844         * m4/malloc.m4: Likewise.
134845         * m4/memcmp.m4: Likewise.
134846         * m4/putenv.m4: Likewise.
134847         * m4/realloc.m4: Likewise.
134848         * m4/regex.m4: Likewise.
134849         * m4/stat.m4: Likewise.
134850         * m4/strftime.m4: Likewise.
134851         Suggestion from Alain Magloire.
134853         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134854         an argument.
134856         * m4/regex.m4: Add a run-time Test for proper operation of
134857         re_compile_pattern.
134859 1999-01-31  Jim Meyering  <meyering@ascend.com>
134861         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134863 1999-01-30  Jim Meyering  <meyering@ascend.com>
134865         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134867         * m4/jm-mktime.m4: Make this a wrapper around the official
134868         AM_FUNC_MKTIME rather than my private copy, now that the official one
134869         is up to date.
134870         * m4/mktime.m4: Remove file.
134872         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134873         * m4/uptime.m4: Likewise.
134874         * m4/uintmax_t.m4: Likewise.
134876 1999-01-28  Jim Meyering  <meyering@ascend.com>
134878         * m4/jm-macros.m4: Use jm_AFS.
134879         * m4/afs.m4: New file (from fileutils' configure.in).
134881         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134882         * m4/chown.m4: Likewise.
134883         * m4/d-ino.m4: Likewise.
134884         * m4/d-type.m4: Likewise.
134885         * m4/fnmatch.m4: Likewise.
134886         * m4/getgroups.m4: Likewise.
134887         * m4/gettext.m4: Likewise.
134888         * m4/jm-mktime.m4: Likewise.
134889         * m4/jm-winsz2.m4: Likewise.
134890         * m4/lcmessage.m4: Likewise.
134891         * m4/ls-mntd-fs.m4: Likewise.
134892         * m4/malloc.m4: Likewise.
134893         * m4/memcmp.m4: Likewise.
134894         * m4/putenv.m4: Likewise.
134895         * m4/realloc.m4: Likewise.
134896         * m4/st_mtim.m4: Likewise.
134897         * m4/strftime.m4: Likewise.
134899 1999-01-16  Jim Meyering  <meyering@ascend.com>
134901         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134902         (ARGMATCH_DIE_DECL): Define.
134904 1999-01-12  Jim Meyering  <meyering@ascend.com>
134906         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134907         Reported by Lars Hecking.
134909 1999-01-10  Jim Meyering  <meyering@ascend.com>
134911         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134912         gross kludge.
134913         * m4/inttypes_h.m4: Likewise.
134914         * m4/lstat.m4: Likewise.
134915         * m4/malloc.m4: Likewise.
134916         * m4/readdir.m4: Likewise.
134917         * m4/realloc.m4: Likewise.
134918         * m4/st_dm_mode.m4: Likewise.
134919         * m4/stat.m4: Likewise.
134920         * m4/utimbuf.m4: Likewise.
134921         * m4/utimes.m4: Likewise.
134923         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134924         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134925         comments in config.h.in are meaningful.
134927         * m4/jm-macros.m4: Require autoconf-2.13 here.
134929         * m4/regex.m4: By default, don't use the included regex.c on systems
134930         with glibc 2.  Suggestion from Uli Drepper.
134932 1999-01-02  Jim Meyering  <meyering@ascend.com>
134934         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
134936 1998-12-18  Jim Meyering  <meyering@ascend.com>
134938         * m4/Makefile.am.in (Makefile.am): Simplify rule.
134939         Based on a suggestion from Lars Hecking.
134941 1998-11-16  Paul Eggert  <eggert@twinsun.com>
134943         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
134945 1998-11-16  Jim Meyering  <meyering@ascend.com>
134947         * m4/lfs.m4: Double-quote the `uname...` expression.
134949 1998-11-14  Jim Meyering  <meyering@ascend.com>
134951         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134952         * m4/stat.m4: Likewise.
134954 1998-11-03  Jim Meyering  <meyering@ascend.com>
134956         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134957         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134959 1998-10-18  Jim Meyering  <meyering@ascend.com>
134961         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134963 1998-10-17  Jim Meyering  <meyering@ascend.com>
134965         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134966         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134967         calls for those previously hard-coded headers.  Instead, take a new
134968         parameter.
134969         (jm_CHECK_DECLARATIONS): Reflect interface change.
134970         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134971         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134973         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134975 1998-10-14  Jim Meyering  <meyering@ascend.com>
134977         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134978         instead of "TZ=America/Vancouver".  From Paul Eggert.
134980 1998-10-11  Jim Meyering  <meyering@ascend.com>
134982         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134983         This adds a test for a recently added compatibility fix for mktime.c.
134984         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134986 1998-09-27  Jim Meyering  <meyering@ascend.com>
134988         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134990         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134991         ../configure.in, including a change from Gordon Matzigkeit to allow
134992         cross-compiling for the Hurd.
134994         * m4/glibc.m4: New file/macro to test for the GNU C Library
134995         versions 1 and 2.  From Gordon Matzigkeit.
134996         Indent.
134998 1998-09-21  Jim Meyering  <meyering@ascend.com>
135000         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135002 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135004         Port nanosecond-resolution times to UnixWare 2.1.2 and
135005         pedantic Solaris 2.6.
135007         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135008         AC_STRUCT_ST_MTIM.
135009         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135010         Generate name of ns member, instead of just 1 or undef.
135011         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135013 1998-08-15  Jim Meyering  <meyering@ascend.com>
135015         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135016         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135017         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135018         instead of jm_TYPE_SSIZE_T.
135020 1998-08-12  Jim Meyering  <meyering@ascend.com>
135022         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135024 1998-08-02  Jim Meyering  <meyering@ascend.com>
135026         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135027         in acconfig.h manually.
135029 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135031         * m4/st_mtim.m4: New file.
135033 1998-07-28  Jim Meyering  <meyering@ascend.com>
135035         * m4/utimes.m4: Undef stat.
135037 1998-07-25  Jim Meyering  <meyering@ascend.com>
135039         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135040         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135042 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135044         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135045         uid and gid actually remain unchanged.
135047 1998-07-07  Jim Meyering  <meyering@ascend.com>
135049         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135051 1998-07-04  Jim Meyering  <meyering@ascend.com>
135053         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135054         to prove that this macro can be used in packages without regex.c.
135056 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135058         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135059         is to be used.
135061 1998-07-03  Jim Meyering  <meyering@ascend.com>
135063         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135065         * m4/gettext.m4: New file -- from gettext-0.10.35.
135066         * m4/lcmessage.m4: Likewise.
135067         * m4/progtest.m4: Likewise.
135069         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135070         * m4/jm-macros.m4: Require the new macro.
135072 1998-06-29  Jim Meyering  <meyering@ascend.com>
135074         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135075         for the definition of NGROUPS (used in a system header included
135076         by sys/mount.h).
135078 1998-06-28  Jim Meyering  <meyering@ascend.com>
135080         * m4/ls-mntd-fs.m4: New file.
135081         * m4/fstypename.m4: New file.
135083         * m4/jm-macros.m4: Require the new macro.
135084         * m4/jm-glibc-io.m4: New file.
135086 1998-05-19  Jim Meyering  <meyering@ascend.com>
135088         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135089         * m4/lchown.m4: New file.
135091         * m4/Makefile.am.in: New file.
135092         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135094 1998-05-14  Jim Meyering  <meyering@ascend.com>
135096         * m4/Makefile.am (EXTRA_DIST): Add them.
135097         * m4/jm-macros.m4: New file.
135098         * m4/utimbuf.m4: New file.
135100 1998-05-12  Jim Meyering  <meyering@ascend.com>
135102         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135104 1998-05-11  Jim Meyering  <meyering@ascend.com>
135106         * m4/isc-posix.m4: New file.
135108 1998-05-10  Jim Meyering  <meyering@ascend.com>
135110         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135112 1998-05-09  Jim Meyering  <meyering@ascend.com>
135114         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135115         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135116         with automake.
135118         * m4/ssize_t.m4: New file.
135119         * m4/mktime.m4: Remove file -- the new automake has this now.
135121 1998-04-26  Jim Meyering  <meyering@ascend.com>
135123         * m4/assert.m4: New file.
135124         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135126 1998-04-05  Jim Meyering  <meyering@ascend.com>
135128         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135129         (jm_PREREQ): Use it here.
135131 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135133         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135134         in acconfig.h.
135136 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135138         * m4/prereq.m4: New file.
135139         * m4/error.m4: New file.
135140         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135142 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135144         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135145         cache-check for the same variable -- that defeated the purpose of
135146         the test; the test program was never run.  This was a problem only
135147         on systems with losing getline functions -- HP-UX 10.20 is one.
135148         Reported by Bjorn Helgaas.
135150 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135152         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135154 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135156         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135158         * m4/const.m4: New file.  Use an initializer in this declaration
135159         typedef int charset[2]; const charset x;
135160         Reported by Bob Glickstein.
135162 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135164         * m4/chown.m4: Fix reversed types on -1 args to chown.
135165         From Kaveh Ghazi.
135167 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135169         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135170         Add lseek and memchr.
135172         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135173         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135174         have a 20-character limit on names.
135176 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135178         * m4/inttypes_h.m4: New file.
135179         * m4/uintmax_t.m4: New file.
135180         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135183         -----
135185         Local Variables:
135186         coding: utf-8
135187         End:
135189         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135191         Copying and distribution of this file, with or without
135192         modification, are permitted provided the copyright notice
135193         and this notice are preserved.